]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Correct aclocal.m4
[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 TRUEPRG
805 FALSEPRG
806 VERSION
807 DATE
808 LSMDATE
809 BACULA
810 post_host
811 CC
812 CFLAGS
813 LDFLAGS
814 CPPFLAGS
815 ac_ct_CC
816 EXEEXT
817 OBJEXT
818 CXX
819 CXXFLAGS
820 ac_ct_CXX
821 CPP
822 GREP
823 EGREP
824 INSTALL_PROGRAM
825 INSTALL_SCRIPT
826 INSTALL_DATA
827 MV
828 REMOVE
829 CP
830 SED
831 ECHO
832 CMP
833 TBL
834 AR
835 OPENSSL
836 MTX
837 DD
838 MKISOFS
839 PYTHON
840 GROWISOFS
841 DVDRWMEDIAINFO
842 DVDRWFORMAT
843 PKGCONFIG
844 QMAKE
845 QMAKEQT4
846 WXCONFIG
847 WXFLAGS
848 CDRECORD
849 PIDOF
850 AWK
851 ARFLAGS
852 MAKE_SHELL
853 LOCAL_LIBS
854 LOCAL_CFLAGS
855 LOCAL_LDFLAGS
856 LOCAL_DEFS
857 LIBTOOL
858 build
859 build_cpu
860 build_vendor
861 build_os
862 host
863 host_cpu
864 host_vendor
865 host_os
866 FGREP
867 LD
868 DUMPBIN
869 ac_ct_DUMPBIN
870 NM
871 LN_S
872 OBJDUMP
873 STRIP
874 RANLIB
875 lt_ECHO
876 DSYMUTIL
877 NMEDIT
878 LIPO
879 OTOOL
880 OTOOL64
881 CXXCPP
882 DEFAULT_OBJECT_TYPE
883 DEFAULT_ARCHIVE_TYPE
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
887 LIBTOOL_CLEAN_TARGET
888 QMAKE_LIBTOOL
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
891 HAVE_SUN_OS_TRUE
892 HAVE_SUN_OS_FALSE
893 HAVE_OSF1_OS_TRUE
894 HAVE_OSF1_OS_FALSE
895 HAVE_AIX_OS_TRUE
896 HAVE_AIX_OS_FALSE
897 HAVE_HPUX_OS_TRUE
898 HAVE_HPUX_OS_FALSE
899 HAVE_LINUX_OS_TRUE
900 HAVE_LINUX_OS_FALSE
901 HAVE_FREEBSD_OS_TRUE
902 HAVE_FREEBSD_OS_FALSE
903 HAVE_NETBSD_OS_TRUE
904 HAVE_NETBSD_OS_FALSE
905 HAVE_OPENBSD_OS_TRUE
906 HAVE_OPENBSD_OS_FALSE
907 HAVE_BSDI_OS_TRUE
908 HAVE_BSDI_OS_FALSE
909 HAVE_SGI_OS_TRUE
910 HAVE_SGI_OS_FALSE
911 HAVE_IRIX_OS_TRUE
912 HAVE_IRIX_OS_FALSE
913 HAVE_DARWIN_OS_TRUE
914 HAVE_DARWIN_OS_FALSE
915 SET_MAKE
916 MKINSTALLDIRS
917 USE_NLS
918 MSGFMT
919 GMSGFMT
920 XGETTEXT
921 MSGMERGE
922 INTL_MACOSX_LIBS
923 LIBICONV
924 LTLIBICONV
925 INTLLIBS
926 LIBINTL
927 LTLIBINTL
928 POSUB
929 GLIBC2
930 ALLOCA
931 GLIBC21
932 HAVE_POSIX_PRINTF
933 HAVE_ASPRINTF
934 HAVE_SNPRINTF
935 HAVE_WPRINTF
936 INTLBISON
937 BUILD_INCLUDED_LIBINTL
938 USE_INCLUDED_LIBINTL
939 CATOBJEXT
940 DATADIRNAME
941 INSTOBJEXT
942 GENCAT
943 INTLOBJS
944 INTL_LIBTOOL_SUFFIX_PREFIX
945 GNOME_INCLUDEDIR
946 GNOMEUI_LIBS
947 GNOME_LIBDIR
948 GNOME_LIBS
949 GNOME_DIR
950 BAT_DIR
951 QWT_INC
952 QWT_LDFLAGS
953 QWT_LIB
954 QWT
955 WXCONS_CPPFLAGS
956 WXCONS_LDFLAGS
957 WX_DIR
958 TRAY_MONITOR_CPPFLAGS
959 TRAY_MONITOR_LDFLAGS
960 TRAY_MONITOR_DIR
961 TTOOL_LDFLAGS
962 STATIC_FD
963 STATIC_SD
964 STATIC_DIR
965 STATIC_CONS
966 STATIC_GNOME_CONS
967 STATIC_WX_CONS
968 ALL_DIRS
969 DIRD_DIR
970 DIR_TOOLS
971 STORED_DIR
972 CONS_INC
973 CONS_OBJ
974 CONS_SRC
975 CONS_LIBS
976 CONS_LDFLAGS
977 READLINE_SRC
978 PYTHON_LIBS
979 PYTHON_INCDIR
980 OPENSSL_LIBS
981 OPENSSL_INC
982 working_dir
983 archivedir
984 scriptdir
985 plugindir
986 dump_email
987 job_email
988 smtp_host
989 piddir
990 subsysdir
991 baseport
992 dir_port
993 fd_port
994 sd_port
995 dir_password
996 fd_password
997 sd_password
998 mon_dir_password
999 mon_fd_password
1000 mon_sd_password
1001 db_name
1002 db_user
1003 db_password
1004 db_port
1005 dir_user
1006 dir_group
1007 sd_user
1008 sd_group
1009 fd_user
1010 fd_group
1011 SBINPERM
1012 SQL_LFLAGS
1013 SQL_INCLUDE
1014 SQL_BINDIR
1015 DBI_DBD_DRIVERDIR
1016 uncomment_dbi
1017 DB_PROG
1018 DB_PROG_LIB
1019 cats
1020 DB_TYPE
1021 GETCONF
1022 XMKMF
1023 X_CFLAGS
1024 X_PRE_LIBS
1025 X_LIBS
1026 X_EXTRA_LIBS
1027 LIBOBJS
1028 FDLIBS
1029 DEBUG
1030 DINCLUDE
1031 DLIB
1032 DB_LIBS
1033 WCFLAGS
1034 WLDFLAGS
1035 WRAPLIBS
1036 OBJLIST
1037 hostname
1038 TAPEDRIVE
1039 PSCMD
1040 WIN32
1041 MACOSX
1042 DISTNAME
1043 DISTVER
1044 LTLIBOBJS'
1045 ac_subst_files='MCOMMON'
1046       ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1049 CC
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1054 CXX
1055 CXXFLAGS
1056 CCC
1057 CPP
1058 WXCONFIG
1059 WXFLAGS
1060 CXXCPP
1061 XMKMF'
1062
1063
1064 # Initialize some variables set by options.
1065 ac_init_help=
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1070 exec_prefix=NONE
1071 no_create=
1072 no_recursion=
1073 prefix=NONE
1074 program_prefix=NONE
1075 program_suffix=NONE
1076 program_transform_name=s,x,x,
1077 silent=
1078 site=
1079 srcdir=
1080 verbose=
1081 x_includes=NONE
1082 x_libraries=NONE
1083
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1102 htmldir='${docdir}'
1103 dvidir='${docdir}'
1104 pdfdir='${docdir}'
1105 psdir='${docdir}'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1109
1110 ac_prev=
1111 ac_dashdash=
1112 for ac_option
1113 do
1114   # If the previous option needs an argument, assign it.
1115   if test -n "$ac_prev"; then
1116     eval $ac_prev=\$ac_option
1117     ac_prev=
1118     continue
1119   fi
1120
1121   case $ac_option in
1122   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123   *)    ac_optarg=yes ;;
1124   esac
1125
1126   # Accept the important Cygnus configure options, so we can diagnose typos.
1127
1128   case $ac_dashdash$ac_option in
1129   --)
1130     ac_dashdash=yes ;;
1131
1132   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1133     ac_prev=bindir ;;
1134   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135     bindir=$ac_optarg ;;
1136
1137   -build | --build | --buil | --bui | --bu)
1138     ac_prev=build_alias ;;
1139   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140     build_alias=$ac_optarg ;;
1141
1142   -cache-file | --cache-file | --cache-fil | --cache-fi \
1143   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144     ac_prev=cache_file ;;
1145   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147     cache_file=$ac_optarg ;;
1148
1149   --config-cache | -C)
1150     cache_file=config.cache ;;
1151
1152   -datadir | --datadir | --datadi | --datad)
1153     ac_prev=datadir ;;
1154   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155     datadir=$ac_optarg ;;
1156
1157   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158   | --dataroo | --dataro | --datar)
1159     ac_prev=datarootdir ;;
1160   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162     datarootdir=$ac_optarg ;;
1163
1164   -disable-* | --disable-*)
1165     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169    { (exit 1); exit 1; }; }
1170     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171     eval enable_$ac_feature=no ;;
1172
1173   -docdir | --docdir | --docdi | --doc | --do)
1174     ac_prev=docdir ;;
1175   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176     docdir=$ac_optarg ;;
1177
1178   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1179     ac_prev=dvidir ;;
1180   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181     dvidir=$ac_optarg ;;
1182
1183   -enable-* | --enable-*)
1184     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188    { (exit 1); exit 1; }; }
1189     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190     eval enable_$ac_feature=\$ac_optarg ;;
1191
1192   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194   | --exec | --exe | --ex)
1195     ac_prev=exec_prefix ;;
1196   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198   | --exec=* | --exe=* | --ex=*)
1199     exec_prefix=$ac_optarg ;;
1200
1201   -gas | --gas | --ga | --g)
1202     # Obsolete; use --with-gas.
1203     with_gas=yes ;;
1204
1205   -help | --help | --hel | --he | -h)
1206     ac_init_help=long ;;
1207   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208     ac_init_help=recursive ;;
1209   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210     ac_init_help=short ;;
1211
1212   -host | --host | --hos | --ho)
1213     ac_prev=host_alias ;;
1214   -host=* | --host=* | --hos=* | --ho=*)
1215     host_alias=$ac_optarg ;;
1216
1217   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1218     ac_prev=htmldir ;;
1219   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1220   | --ht=*)
1221     htmldir=$ac_optarg ;;
1222
1223   -includedir | --includedir | --includedi | --included | --include \
1224   | --includ | --inclu | --incl | --inc)
1225     ac_prev=includedir ;;
1226   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227   | --includ=* | --inclu=* | --incl=* | --inc=*)
1228     includedir=$ac_optarg ;;
1229
1230   -infodir | --infodir | --infodi | --infod | --info | --inf)
1231     ac_prev=infodir ;;
1232   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233     infodir=$ac_optarg ;;
1234
1235   -libdir | --libdir | --libdi | --libd)
1236     ac_prev=libdir ;;
1237   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238     libdir=$ac_optarg ;;
1239
1240   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241   | --libexe | --libex | --libe)
1242     ac_prev=libexecdir ;;
1243   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244   | --libexe=* | --libex=* | --libe=*)
1245     libexecdir=$ac_optarg ;;
1246
1247   -localedir | --localedir | --localedi | --localed | --locale)
1248     ac_prev=localedir ;;
1249   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250     localedir=$ac_optarg ;;
1251
1252   -localstatedir | --localstatedir | --localstatedi | --localstated \
1253   | --localstate | --localstat | --localsta | --localst | --locals)
1254     ac_prev=localstatedir ;;
1255   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257     localstatedir=$ac_optarg ;;
1258
1259   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1260     ac_prev=mandir ;;
1261   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262     mandir=$ac_optarg ;;
1263
1264   -nfp | --nfp | --nf)
1265     # Obsolete; use --without-fp.
1266     with_fp=no ;;
1267
1268   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269   | --no-cr | --no-c | -n)
1270     no_create=yes ;;
1271
1272   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1274     no_recursion=yes ;;
1275
1276   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278   | --oldin | --oldi | --old | --ol | --o)
1279     ac_prev=oldincludedir ;;
1280   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283     oldincludedir=$ac_optarg ;;
1284
1285   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1286     ac_prev=prefix ;;
1287   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288     prefix=$ac_optarg ;;
1289
1290   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291   | --program-pre | --program-pr | --program-p)
1292     ac_prev=program_prefix ;;
1293   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295     program_prefix=$ac_optarg ;;
1296
1297   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298   | --program-suf | --program-su | --program-s)
1299     ac_prev=program_suffix ;;
1300   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302     program_suffix=$ac_optarg ;;
1303
1304   -program-transform-name | --program-transform-name \
1305   | --program-transform-nam | --program-transform-na \
1306   | --program-transform-n | --program-transform- \
1307   | --program-transform | --program-transfor \
1308   | --program-transfo | --program-transf \
1309   | --program-trans | --program-tran \
1310   | --progr-tra | --program-tr | --program-t)
1311     ac_prev=program_transform_name ;;
1312   -program-transform-name=* | --program-transform-name=* \
1313   | --program-transform-nam=* | --program-transform-na=* \
1314   | --program-transform-n=* | --program-transform-=* \
1315   | --program-transform=* | --program-transfor=* \
1316   | --program-transfo=* | --program-transf=* \
1317   | --program-trans=* | --program-tran=* \
1318   | --progr-tra=* | --program-tr=* | --program-t=*)
1319     program_transform_name=$ac_optarg ;;
1320
1321   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1322     ac_prev=pdfdir ;;
1323   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324     pdfdir=$ac_optarg ;;
1325
1326   -psdir | --psdir | --psdi | --psd | --ps)
1327     ac_prev=psdir ;;
1328   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1329     psdir=$ac_optarg ;;
1330
1331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332   | -silent | --silent | --silen | --sile | --sil)
1333     silent=yes ;;
1334
1335   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1336     ac_prev=sbindir ;;
1337   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1338   | --sbi=* | --sb=*)
1339     sbindir=$ac_optarg ;;
1340
1341   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343   | --sharedst | --shareds | --shared | --share | --shar \
1344   | --sha | --sh)
1345     ac_prev=sharedstatedir ;;
1346   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1349   | --sha=* | --sh=*)
1350     sharedstatedir=$ac_optarg ;;
1351
1352   -site | --site | --sit)
1353     ac_prev=site ;;
1354   -site=* | --site=* | --sit=*)
1355     site=$ac_optarg ;;
1356
1357   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1358     ac_prev=srcdir ;;
1359   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360     srcdir=$ac_optarg ;;
1361
1362   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363   | --syscon | --sysco | --sysc | --sys | --sy)
1364     ac_prev=sysconfdir ;;
1365   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367     sysconfdir=$ac_optarg ;;
1368
1369   -target | --target | --targe | --targ | --tar | --ta | --t)
1370     ac_prev=target_alias ;;
1371   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372     target_alias=$ac_optarg ;;
1373
1374   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1375     verbose=yes ;;
1376
1377   -version | --version | --versio | --versi | --vers | -V)
1378     ac_init_version=: ;;
1379
1380   -with-* | --with-*)
1381     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid package name: $ac_package" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387     eval with_$ac_package=\$ac_optarg ;;
1388
1389   -without-* | --without-*)
1390     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393       { echo "$as_me: error: invalid package name: $ac_package" >&2
1394    { (exit 1); exit 1; }; }
1395     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396     eval with_$ac_package=no ;;
1397
1398   --x)
1399     # Obsolete; use --with-x.
1400     with_x=yes ;;
1401
1402   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403   | --x-incl | --x-inc | --x-in | --x-i)
1404     ac_prev=x_includes ;;
1405   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407     x_includes=$ac_optarg ;;
1408
1409   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411     ac_prev=x_libraries ;;
1412   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414     x_libraries=$ac_optarg ;;
1415
1416   -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418    { (exit 1); exit 1; }; }
1419     ;;
1420
1421   *=*)
1422     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423     # Reject names that are not valid shell variable names.
1424     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426    { (exit 1); exit 1; }; }
1427     eval $ac_envvar=\$ac_optarg
1428     export $ac_envvar ;;
1429
1430   *)
1431     # FIXME: should be removed in autoconf 3.0.
1432     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1436     ;;
1437
1438   esac
1439 done
1440
1441 if test -n "$ac_prev"; then
1442   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443   { echo "$as_me: error: missing argument to $ac_option" >&2
1444    { (exit 1); exit 1; }; }
1445 fi
1446
1447 # Be sure to have absolute directory names.
1448 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449                 datadir sysconfdir sharedstatedir localstatedir includedir \
1450                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451                 libdir localedir mandir
1452 do
1453   eval ac_val=\$$ac_var
1454   case $ac_val in
1455     [\\/$]* | ?:[\\/]* )  continue;;
1456     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457   esac
1458   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459    { (exit 1); exit 1; }; }
1460 done
1461
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1465 build=$build_alias
1466 host=$host_alias
1467 target=$target_alias
1468
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471   if test "x$build_alias" = x; then
1472     cross_compiling=maybe
1473     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474     If a cross compiler is detected then cross compile mode will be used." >&2
1475   elif test "x$build_alias" != "x$host_alias"; then
1476     cross_compiling=yes
1477   fi
1478 fi
1479
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482
1483 test "$silent" = yes && exec 6>/dev/null
1484
1485
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489   { echo "$as_me: error: Working directory cannot be determined" >&2
1490    { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492   { echo "$as_me: error: pwd does not report name of working directory" >&2
1493    { (exit 1); exit 1; }; }
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$0" : 'X\(//\)[^/]' \| \
1503          X"$0" : 'X\(//\)$' \| \
1504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1505 echo X"$0" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533    { (exit 1); exit 1; }; }
1534 fi
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538    { (exit 1); exit 1; }; }
1539         pwd)`
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542   srcdir=.
1543 fi
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1547 case $srcdir in
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 esac
1550 for ac_var in $ac_precious_vars; do
1551   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_env_${ac_var}_value=\$${ac_var}
1553   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 done
1556
1557 #
1558 # Report the --help message.
1559 #
1560 if test "$ac_init_help" = "long"; then
1561   # Omit some internal or obsolete options to make the list less imposing.
1562   # This message is too long to be a string in the A/UX 3.1 sh.
1563   cat <<_ACEOF
1564 \`configure' configures this package to adapt to many kinds of systems.
1565
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1567
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE.  See below for descriptions of some of the useful variables.
1570
1571 Defaults for the options are specified in brackets.
1572
1573 Configuration:
1574   -h, --help              display this help and exit
1575       --help=short        display options specific to this package
1576       --help=recursive    display the short help of all the included packages
1577   -V, --version           display version information and exit
1578   -q, --quiet, --silent   do not print \`checking...' messages
1579       --cache-file=FILE   cache test results in FILE [disabled]
1580   -C, --config-cache      alias for \`--cache-file=config.cache'
1581   -n, --no-create         do not create output files
1582       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1583
1584 Installation directories:
1585   --prefix=PREFIX         install architecture-independent files in PREFIX
1586                           [$ac_default_prefix]
1587   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1588                           [PREFIX]
1589
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1594
1595 For better control, use the options below.
1596
1597 Fine tuning of the installation directories:
1598   --bindir=DIR           user executables [EPREFIX/bin]
1599   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1600   --libexecdir=DIR       program executables [EPREFIX/libexec]
1601   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1602   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1603   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1604   --libdir=DIR           object code libraries [EPREFIX/lib]
1605   --includedir=DIR       C header files [PREFIX/include]
1606   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1607   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1608   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1609   --infodir=DIR          info documentation [DATAROOTDIR/info]
1610   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1611   --mandir=DIR           man documentation [DATAROOTDIR/man]
1612   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1613   --htmldir=DIR          html documentation [DOCDIR]
1614   --dvidir=DIR           dvi documentation [DOCDIR]
1615   --pdfdir=DIR           pdf documentation [DOCDIR]
1616   --psdir=DIR            ps documentation [DOCDIR]
1617 _ACEOF
1618
1619   cat <<\_ACEOF
1620
1621 X features:
1622   --x-includes=DIR    X include files are in DIR
1623   --x-libraries=DIR   X library files are in DIR
1624
1625 System types:
1626   --build=BUILD     configure for building on BUILD [guessed]
1627   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1637   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1638   --enable-libtool        enable building using GNU libtool [default=yes]
1639   --enable-shared[=PKGS]  build shared libraries [default=yes]
1640   --enable-static[=PKGS]  build static libraries [default=no]
1641   --enable-fast-install[=PKGS]
1642                           optimize for fast installation [default=yes]
1643   --disable-libtool-lock  avoid locking (might break parallel builds)
1644   --enable-includes       enable installing of include files [default=yes]
1645   --disable-nls           do not use Native Language Support
1646   --disable-rpath         do not hardcode runtime library paths
1647   --enable-gnome          enable build of bgnome-console GUI [default=no]
1648   --enable-bat            enable build of bat Qt4 GUI [default=no]
1649   --enable-bwx-console    enable build of wxWidgets console [default=no]
1650   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1651                           KDE [default=no]
1652   --enable-smartalloc     enable smartalloc debugging support [default=no]
1653   --enable-static-tools   enable static tape tools [default=no]
1654   --enable-static-fd      enable static File daemon [default=no]
1655   --enable-static-sd      enable static Storage daemon [default=no]
1656   --enable-static-dir     enable static Director [default=no]
1657   --enable-static-cons    enable static Console [default=no]
1658   --enable-client-only    build client (File daemon) only [default=no]
1659   --enable-build-dird     enable building of dird (Director) [default=yes]
1660   --enable-build-stored   enable building of stored (Storage daemon)
1661                           [default=yes]
1662   --disable-conio         disable conio support [default=no]
1663   --enable-ipv6           enable ipv6 support [default=yes]
1664   --disable-readline      disable readline support [default=yes]
1665   --enable-batch-insert   enable the DB batch insert code [default=no]
1666   --disable-largefile     omit support for large files
1667
1668 Optional Packages:
1669   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1670   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1671   --with-pic              try to use only PIC/non-PIC objects [default=use
1672                           both]
1673   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1674   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1675   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1676   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1677   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1678   --without-libintl-prefix     don't search for libintl in includedir and libdir
1679   --with-included-gettext use the GNU gettext library included here
1680   --with-qwt[=DIR]        specify qwt library directory
1681   --with-readline[=DIR]   specify readline library directory
1682   --with-python[=DIR]     Include Python support. DIR is the Python base
1683                           install directory, default is to search through a
1684                           number of common places for the Python files.
1685   --with-tcp-wrappers[=DIR]
1686                           enable tcpwrappers support
1687   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1688   --with-working-dir=PATH specify path of Bacula working directory
1689   --with-archivedir=PATH  specify path of SD archive directory
1690   --with-scriptdir=PATH   specify path of Bacula scripts directory
1691   --with-plugindir=PATH   specify path of Bacula plugins directory
1692   --with-dump-email=EMAIL dump email address
1693   --with-job-email=EMAIL  job output email address
1694   --with-smtp-host=HOST   SMTP mail host address
1695   --with-pid-dir=PATH     specify location of Bacula pid files
1696   --with-subsys-dir=PATH  specify location of Bacula subsys file
1697   --with-baseport=PORT    specify base port address for daemons
1698   --with-dir-password=PASSWORD
1699                           specify Director's password
1700   --with-fd-password=PASSWORD
1701                           specify Client's password
1702   --with-sd-password=PASSWORD
1703                           specify Storage daemon's password
1704   --with-mon-dir-password=PASSWORD
1705                           specify Director's password used by the monitor
1706   --with-mon-fd-password=PASSWORD
1707                           specify Client's password used by the monitor
1708   --with-mon-sd-password=PASSWORD
1709                           specify Storage daemon's password used by the
1710                           monitor
1711   --with-db-name=DBNAME   specify database name [default=bacula]
1712   --with-db-user=UNAME    specify database user [default=bacula]
1713   --with-db-password=PWD  specify database password [default=*none*]
1714   --with-db-port=DBPORT   specify a database port [default=null]
1715   --with-dir-user=USER    specify user for Director daemon
1716   --with-dir-group=GROUP  specify group for Director daemon
1717   --with-sd-user=USER     specify user for Storage daemon
1718   --with-sd-group=GROUP   specify group for Storage daemon
1719   --with-fd-user=USER     specify user for File daemon
1720   --with-fd-group=GROUP   specify group for File daemon
1721   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1722   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1723                           base install directory, defaults to /usr/local/pgsql
1724
1725   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1726                           install directory, default is to search through
1727                           a number of common places for the MySQL files.
1728
1729   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1730                           install directory, default is to search through
1731                           a number of common places for the MySQL files.
1732
1733   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1734                           install directory, default is to search through
1735                           a number of common places for the SQLite3 files.
1736
1737   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1738                           install directory, default is to search through
1739                           a number of common places for the SQLite files.
1740
1741   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1742                           install directory, default is to search through
1743                           a number of common places for the DBI files.
1744
1745   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1746                           the one DBI driver like Mysql, Postgresql, others.
1747                           Default is to not configure any driver.
1748   --with-x                use the X Window System
1749
1750 Some influential environment variables:
1751   CC          C compiler command
1752   CFLAGS      C compiler flags
1753   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1754               nonstandard directory <lib dir>
1755   LIBS        libraries to pass to the linker, e.g. -l<library>
1756   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1757               you have headers in a nonstandard directory <include dir>
1758   CXX         C++ compiler command
1759   CXXFLAGS    C++ compiler flags
1760   CPP         C preprocessor
1761   WXCONFIG    wx-config command. On some systems, you must set it to
1762               wx-config-2.6 to use wxWidgets 2.6.
1763   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1764   CXXCPP      C++ preprocessor
1765   XMKMF       Path to xmkmf, Makefile generator for X Window System
1766
1767 Use these variables to override the choices made by `configure' or to help
1768 it to find libraries and programs with nonstandard names/locations.
1769
1770 _ACEOF
1771 ac_status=$?
1772 fi
1773
1774 if test "$ac_init_help" = "recursive"; then
1775   # If there are subdirs, report their specific --help.
1776   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1777     test -d "$ac_dir" || continue
1778     ac_builddir=.
1779
1780 case "$ac_dir" in
1781 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 *)
1783   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1784   # A ".." for each directory in $ac_dir_suffix.
1785   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1786   case $ac_top_builddir_sub in
1787   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1789   esac ;;
1790 esac
1791 ac_abs_top_builddir=$ac_pwd
1792 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1793 # for backward compatibility:
1794 ac_top_builddir=$ac_top_build_prefix
1795
1796 case $srcdir in
1797   .)  # We are building in place.
1798     ac_srcdir=.
1799     ac_top_srcdir=$ac_top_builddir_sub
1800     ac_abs_top_srcdir=$ac_pwd ;;
1801   [\\/]* | ?:[\\/]* )  # Absolute name.
1802     ac_srcdir=$srcdir$ac_dir_suffix;
1803     ac_top_srcdir=$srcdir
1804     ac_abs_top_srcdir=$srcdir ;;
1805   *) # Relative name.
1806     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1807     ac_top_srcdir=$ac_top_build_prefix$srcdir
1808     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1809 esac
1810 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1811
1812     cd "$ac_dir" || { ac_status=$?; continue; }
1813     # Check for guested configure.
1814     if test -f "$ac_srcdir/configure.gnu"; then
1815       echo &&
1816       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1817     elif test -f "$ac_srcdir/configure"; then
1818       echo &&
1819       $SHELL "$ac_srcdir/configure" --help=recursive
1820     else
1821       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822     fi || ac_status=$?
1823     cd "$ac_pwd" || { ac_status=$?; break; }
1824   done
1825 fi
1826
1827 test -n "$ac_init_help" && exit $ac_status
1828 if $ac_init_version; then
1829   cat <<\_ACEOF
1830 configure
1831 generated by GNU Autoconf 2.61
1832
1833 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1834 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1837 _ACEOF
1838   exit
1839 fi
1840 cat >config.log <<_ACEOF
1841 This file contains any messages produced by compilers while
1842 running configure, to aid debugging if configure makes a mistake.
1843
1844 It was created by $as_me, which was
1845 generated by GNU Autoconf 2.61.  Invocation command line was
1846
1847   $ $0 $@
1848
1849 _ACEOF
1850 exec 5>>config.log
1851 {
1852 cat <<_ASUNAME
1853 ## --------- ##
1854 ## Platform. ##
1855 ## --------- ##
1856
1857 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1858 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1859 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1860 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1861 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862
1863 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1864 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1865
1866 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1867 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1868 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1869 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1870 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1871 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1872 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1873
1874 _ASUNAME
1875
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1878 do
1879   IFS=$as_save_IFS
1880   test -z "$as_dir" && as_dir=.
1881   echo "PATH: $as_dir"
1882 done
1883 IFS=$as_save_IFS
1884
1885 } >&5
1886
1887 cat >&5 <<_ACEOF
1888
1889
1890 ## ----------- ##
1891 ## Core tests. ##
1892 ## ----------- ##
1893
1894 _ACEOF
1895
1896
1897 # Keep a trace of the command line.
1898 # Strip out --no-create and --no-recursion so they do not pile up.
1899 # Strip out --silent because we don't want to record it for future runs.
1900 # Also quote any args containing shell meta-characters.
1901 # Make two passes to allow for proper duplicate-argument suppression.
1902 ac_configure_args=
1903 ac_configure_args0=
1904 ac_configure_args1=
1905 ac_must_keep_next=false
1906 for ac_pass in 1 2
1907 do
1908   for ac_arg
1909   do
1910     case $ac_arg in
1911     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1912     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1913     | -silent | --silent | --silen | --sile | --sil)
1914       continue ;;
1915     *\'*)
1916       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1917     esac
1918     case $ac_pass in
1919     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1920     2)
1921       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1922       if test $ac_must_keep_next = true; then
1923         ac_must_keep_next=false # Got value, back to normal.
1924       else
1925         case $ac_arg in
1926           *=* | --config-cache | -C | -disable-* | --disable-* \
1927           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1928           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1929           | -with-* | --with-* | -without-* | --without-* | --x)
1930             case "$ac_configure_args0 " in
1931               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932             esac
1933             ;;
1934           -* ) ac_must_keep_next=true ;;
1935         esac
1936       fi
1937       ac_configure_args="$ac_configure_args '$ac_arg'"
1938       ;;
1939     esac
1940   done
1941 done
1942 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1943 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1944
1945 # When interrupted or exit'd, cleanup temporary files, and complete
1946 # config.log.  We remove comments because anyway the quotes in there
1947 # would cause problems or look ugly.
1948 # WARNING: Use '\'' to represent an apostrophe within the trap.
1949 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1950 trap 'exit_status=$?
1951   # Save into config.log some information that might help in debugging.
1952   {
1953     echo
1954
1955     cat <<\_ASBOX
1956 ## ---------------- ##
1957 ## Cache variables. ##
1958 ## ---------------- ##
1959 _ASBOX
1960     echo
1961     # The following way of writing the cache mishandles newlines in values,
1962 (
1963   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1964     eval ac_val=\$$ac_var
1965     case $ac_val in #(
1966     *${as_nl}*)
1967       case $ac_var in #(
1968       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1969 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1970       esac
1971       case $ac_var in #(
1972       _ | IFS | as_nl) ;; #(
1973       *) $as_unset $ac_var ;;
1974       esac ;;
1975     esac
1976   done
1977   (set) 2>&1 |
1978     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979     *${as_nl}ac_space=\ *)
1980       sed -n \
1981         "s/'\''/'\''\\\\'\'''\''/g;
1982           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1983       ;; #(
1984     *)
1985       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1986       ;;
1987     esac |
1988     sort
1989 )
1990     echo
1991
1992     cat <<\_ASBOX
1993 ## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##
1996 _ASBOX
1997     echo
1998     for ac_var in $ac_subst_vars
1999     do
2000       eval ac_val=\$$ac_var
2001       case $ac_val in
2002       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003       esac
2004       echo "$ac_var='\''$ac_val'\''"
2005     done | sort
2006     echo
2007
2008     if test -n "$ac_subst_files"; then
2009       cat <<\_ASBOX
2010 ## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##
2013 _ASBOX
2014       echo
2015       for ac_var in $ac_subst_files
2016       do
2017         eval ac_val=\$$ac_var
2018         case $ac_val in
2019         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020         esac
2021         echo "$ac_var='\''$ac_val'\''"
2022       done | sort
2023       echo
2024     fi
2025
2026     if test -s confdefs.h; then
2027       cat <<\_ASBOX
2028 ## ----------- ##
2029 ## confdefs.h. ##
2030 ## ----------- ##
2031 _ASBOX
2032       echo
2033       cat confdefs.h
2034       echo
2035     fi
2036     test "$ac_signal" != 0 &&
2037       echo "$as_me: caught signal $ac_signal"
2038     echo "$as_me: exit $exit_status"
2039   } >&5
2040   rm -f core *.core core.conftest.* &&
2041     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042     exit $exit_status
2043 ' 0
2044 for ac_signal in 1 2 13 15; do
2045   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2046 done
2047 ac_signal=0
2048
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest* confdefs.h
2051
2052 # Predefined preprocessor variables.
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_NAME "$PACKAGE_NAME"
2056 _ACEOF
2057
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2061 _ACEOF
2062
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2066 _ACEOF
2067
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_STRING "$PACKAGE_STRING"
2071 _ACEOF
2072
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2076 _ACEOF
2077
2078
2079 # Let the site file select an alternate cache file if it wants to.
2080 # Prefer explicitly selected file to automatically selected ones.
2081 if test -n "$CONFIG_SITE"; then
2082   set x "$CONFIG_SITE"
2083 elif test "x$prefix" != xNONE; then
2084   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2085 else
2086   set x "$ac_default_prefix/share/config.site" \
2087         "$ac_default_prefix/etc/config.site"
2088 fi
2089 shift
2090 for ac_site_file
2091 do
2092   if test -r "$ac_site_file"; then
2093     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2094 echo "$as_me: loading site script $ac_site_file" >&6;}
2095     sed 's/^/| /' "$ac_site_file" >&5
2096     . "$ac_site_file"
2097   fi
2098 done
2099
2100 if test -r "$cache_file"; then
2101   # Some versions of bash will fail to source /dev/null (special
2102   # files actually), so we avoid doing that.
2103   if test -f "$cache_file"; then
2104     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2105 echo "$as_me: loading cache $cache_file" >&6;}
2106     case $cache_file in
2107       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2108       *)                      . "./$cache_file";;
2109     esac
2110   fi
2111 else
2112   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2113 echo "$as_me: creating cache $cache_file" >&6;}
2114   >$cache_file
2115 fi
2116
2117 # Check that the precious variables saved in the cache have kept the same
2118 # value.
2119 ac_cache_corrupted=false
2120 for ac_var in $ac_precious_vars; do
2121   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2122   eval ac_new_set=\$ac_env_${ac_var}_set
2123   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2124   eval ac_new_val=\$ac_env_${ac_var}_value
2125   case $ac_old_set,$ac_new_set in
2126     set,)
2127       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2129       ac_cache_corrupted=: ;;
2130     ,set)
2131       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2132 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2133       ac_cache_corrupted=: ;;
2134     ,);;
2135     *)
2136       if test "x$ac_old_val" != "x$ac_new_val"; then
2137         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2138 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2139         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2140 echo "$as_me:   former value:  $ac_old_val" >&2;}
2141         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2142 echo "$as_me:   current value: $ac_new_val" >&2;}
2143         ac_cache_corrupted=:
2144       fi;;
2145   esac
2146   # Pass precious variables to config.status.
2147   if test "$ac_new_set" = set; then
2148     case $ac_new_val in
2149     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2150     *) ac_arg=$ac_var=$ac_new_val ;;
2151     esac
2152     case " $ac_configure_args " in
2153       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2154       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2155     esac
2156   fi
2157 done
2158 if $ac_cache_corrupted; then
2159   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2160 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2162 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2163    { (exit 1); exit 1; }; }
2164 fi
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182 ac_ext=c
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187
2188
2189 BUILD_DIR=`pwd`
2190 cd ..
2191 TOP_DIR=`pwd`
2192 cd ${BUILD_DIR}
2193
2194
2195 ac_aux_dir=
2196 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2197   if test -f "$ac_dir/install-sh"; then
2198     ac_aux_dir=$ac_dir
2199     ac_install_sh="$ac_aux_dir/install-sh -c"
2200     break
2201   elif test -f "$ac_dir/install.sh"; then
2202     ac_aux_dir=$ac_dir
2203     ac_install_sh="$ac_aux_dir/install.sh -c"
2204     break
2205   elif test -f "$ac_dir/shtool"; then
2206     ac_aux_dir=$ac_dir
2207     ac_install_sh="$ac_aux_dir/shtool install -c"
2208     break
2209   fi
2210 done
2211 if test -z "$ac_aux_dir"; then
2212   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2213 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2214    { (exit 1); exit 1; }; }
2215 fi
2216
2217 # These three variables are undocumented and unsupported,
2218 # and are intended to be withdrawn in a future Autoconf release.
2219 # They can cause serious problems if a builder's source tree is in a directory
2220 # whose full name contains unusual characters.
2221 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2222 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2223 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2224
2225
2226 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2227
2228
2229
2230
2231 for ac_prog in true
2232 do
2233   # Extract the first word of "$ac_prog", so it can be a program name with args.
2234 set dummy $ac_prog; ac_word=$2
2235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2238   echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240   case $TRUEPRG in
2241   [\\/]* | ?:[\\/]*)
2242   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2243   ;;
2244   *)
2245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   for ac_exec_ext in '' $ac_executable_extensions; do
2251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254     break 2
2255   fi
2256 done
2257 done
2258 IFS=$as_save_IFS
2259
2260   ;;
2261 esac
2262 fi
2263 TRUEPRG=$ac_cv_path_TRUEPRG
2264 if test -n "$TRUEPRG"; then
2265   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2266 echo "${ECHO_T}$TRUEPRG" >&6; }
2267 else
2268   { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2270 fi
2271
2272
2273   test -n "$TRUEPRG" && break
2274 done
2275 test -n "$TRUEPRG" || TRUEPRG=":"
2276
2277 for ac_prog in false
2278 do
2279   # Extract the first word of "$ac_prog", so it can be a program name with args.
2280 set dummy $ac_prog; ac_word=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2284   echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286   case $FALSEPRG in
2287   [\\/]* | ?:[\\/]*)
2288   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2289   ;;
2290   *)
2291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294   IFS=$as_save_IFS
2295   test -z "$as_dir" && as_dir=.
2296   for ac_exec_ext in '' $ac_executable_extensions; do
2297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300     break 2
2301   fi
2302 done
2303 done
2304 IFS=$as_save_IFS
2305
2306   ;;
2307 esac
2308 fi
2309 FALSEPRG=$ac_cv_path_FALSEPRG
2310 if test -n "$FALSEPRG"; then
2311   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2312 echo "${ECHO_T}$FALSEPRG" >&6; }
2313 else
2314   { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2316 fi
2317
2318
2319   test -n "$FALSEPRG" && break
2320 done
2321 test -n "$FALSEPRG" || FALSEPRG=":"
2322
2323
2324 post_host=
2325 if test "x$BACULA" != x; then
2326    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2327 fi
2328 BACULA=${BACULA-Bacula}
2329 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2330 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2331 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2332 echo "configuring for ${BACULA} $VERSION ($DATE)"
2333
2334
2335 ac_ext=c
2336 ac_cpp='$CPP $CPPFLAGS'
2337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 if test -n "$ac_tool_prefix"; then
2341   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2342 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_CC+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   if test -n "$CC"; then
2349   ac_cv_prog_CC="$CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360     break 2
2361   fi
2362 done
2363 done
2364 IFS=$as_save_IFS
2365
2366 fi
2367 fi
2368 CC=$ac_cv_prog_CC
2369 if test -n "$CC"; then
2370   { echo "$as_me:$LINENO: result: $CC" >&5
2371 echo "${ECHO_T}$CC" >&6; }
2372 else
2373   { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2375 fi
2376
2377
2378 fi
2379 if test -z "$ac_cv_prog_CC"; then
2380   ac_ct_CC=$CC
2381   # Extract the first word of "gcc", so it can be a program name with args.
2382 set dummy gcc; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   if test -n "$ac_ct_CC"; then
2389   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396   for ac_exec_ext in '' $ac_executable_extensions; do
2397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398     ac_cv_prog_ac_ct_CC="gcc"
2399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403 done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 else
2413   { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2415 fi
2416
2417   if test "x$ac_ct_CC" = x; then
2418     CC=""
2419   else
2420     case $cross_compiling:$ac_tool_warned in
2421 yes:)
2422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet.  If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&5
2425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet.  If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2428 ac_tool_warned=yes ;;
2429 esac
2430     CC=$ac_ct_CC
2431   fi
2432 else
2433   CC="$ac_cv_prog_CC"
2434 fi
2435
2436 if test -z "$CC"; then
2437           if test -n "$ac_tool_prefix"; then
2438     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}cc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$CC"; then
2446   ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_CC="${ac_tool_prefix}cc"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467   { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475   fi
2476 fi
2477 if test -z "$CC"; then
2478   # Extract the first word of "cc", so it can be a program name with args.
2479 set dummy cc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$CC"; then
2486   ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488   ac_prog_rejected=no
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2497        ac_prog_rejected=yes
2498        continue
2499      fi
2500     ac_cv_prog_CC="cc"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 if test $ac_prog_rejected = yes; then
2509   # We found a bogon in the path, so make sure we never use it.
2510   set dummy $ac_cv_prog_CC
2511   shift
2512   if test $# != 0; then
2513     # We chose a different compiler from the bogus one.
2514     # However, it has the same basename, so the bogon will be chosen
2515     # first if we set CC to just the basename; use the full file name.
2516     shift
2517     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2518   fi
2519 fi
2520 fi
2521 fi
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524   { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527   { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2529 fi
2530
2531
2532 fi
2533 if test -z "$CC"; then
2534   if test -n "$ac_tool_prefix"; then
2535   for ac_prog in cl.exe
2536   do
2537     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   if test -n "$CC"; then
2545   ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552   for ac_exec_ext in '' $ac_executable_extensions; do
2553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566   { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2568 else
2569   { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2571 fi
2572
2573
2574     test -n "$CC" && break
2575   done
2576 fi
2577 if test -z "$CC"; then
2578   ac_ct_CC=$CC
2579   for ac_prog in cl.exe
2580 do
2581   # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$ac_ct_CC"; then
2589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596   for ac_exec_ext in '' $ac_executable_extensions; do
2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598     ac_cv_prog_ac_ct_CC="$ac_prog"
2599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611 echo "${ECHO_T}$ac_ct_CC" >&6; }
2612 else
2613   { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2615 fi
2616
2617
2618   test -n "$ac_ct_CC" && break
2619 done
2620
2621   if test "x$ac_ct_CC" = x; then
2622     CC=""
2623   else
2624     case $cross_compiling:$ac_tool_warned in
2625 yes:)
2626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet.  If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&5
2629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2630 whose name does not start with the host triplet.  If you think this
2631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2632 ac_tool_warned=yes ;;
2633 esac
2634     CC=$ac_ct_CC
2635   fi
2636 fi
2637
2638 fi
2639
2640
2641 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details." >&5
2643 echo "$as_me: error: no acceptable C compiler found in \$PATH
2644 See \`config.log' for more details." >&2;}
2645    { (exit 1); exit 1; }; }
2646
2647 # Provide some information about the compiler.
2648 echo "$as_me:$LINENO: checking for C compiler version" >&5
2649 ac_compiler=`set X $ac_compile; echo $2`
2650 { (ac_try="$ac_compiler --version >&5"
2651 case "(($ac_try" in
2652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653   *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656   (eval "$ac_compiler --version >&5") 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }
2660 { (ac_try="$ac_compiler -v >&5"
2661 case "(($ac_try" in
2662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663   *) ac_try_echo=$ac_try;;
2664 esac
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666   (eval "$ac_compiler -v >&5") 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }
2670 { (ac_try="$ac_compiler -V >&5"
2671 case "(($ac_try" in
2672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673   *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676   (eval "$ac_compiler -V >&5") 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }
2680
2681 cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 ac_clean_files_save=$ac_clean_files
2697 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2698 # Try to create an executable without -o first, disregard a.out.
2699 # It will help us diagnose broken compilers, and finding out an intuition
2700 # of exeext.
2701 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2702 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2703 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2704 #
2705 # List of possible output files, starting from the most likely.
2706 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2707 # only as a last resort.  b.out is created by i960 compilers.
2708 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2709 #
2710 # The IRIX 6 linker writes into existing files which may not be
2711 # executable, retaining their permissions.  Remove them first so a
2712 # subsequent execution test works.
2713 ac_rmfiles=
2714 for ac_file in $ac_files
2715 do
2716   case $ac_file in
2717     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2718     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2719   esac
2720 done
2721 rm -f $ac_rmfiles
2722
2723 if { (ac_try="$ac_link_default"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_link_default") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; then
2733   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2734 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2735 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2736 # so that the user can short-circuit this test for compilers unknown to
2737 # Autoconf.
2738 for ac_file in $ac_files ''
2739 do
2740   test -f "$ac_file" || continue
2741   case $ac_file in
2742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2743         ;;
2744     [ab].out )
2745         # We found the default executable, but exeext='' is most
2746         # certainly right.
2747         break;;
2748     *.* )
2749         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2750         then :; else
2751            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2752         fi
2753         # We set ac_cv_exeext here because the later test for it is not
2754         # safe: cross compilers may not add the suffix if given an `-o'
2755         # argument, so we may need to know it at that point already.
2756         # Even if this section looks crufty: it has the advantage of
2757         # actually working.
2758         break;;
2759     * )
2760         break;;
2761   esac
2762 done
2763 test "$ac_cv_exeext" = no && ac_cv_exeext=
2764
2765 else
2766   ac_file=''
2767 fi
2768
2769 { echo "$as_me:$LINENO: result: $ac_file" >&5
2770 echo "${ECHO_T}$ac_file" >&6; }
2771 if test -z "$ac_file"; then
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: C compiler cannot create executables
2778 See \`config.log' for more details." >&2;}
2779    { (exit 77); exit 77; }; }
2780 fi
2781
2782 ac_exeext=$ac_cv_exeext
2783
2784 # Check that the compiler produces executables we can run.  If not, either
2785 # the compiler is broken, or we cross compile.
2786 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2787 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2788 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2789 # If not cross compiling, check that we can run a simple program.
2790 if test "$cross_compiling" != yes; then
2791   if { ac_try='./$ac_file'
2792   { (case "(($ac_try" in
2793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794   *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797   (eval "$ac_try") 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }; }; then
2801     cross_compiling=no
2802   else
2803     if test "$cross_compiling" = maybe; then
2804         cross_compiling=yes
2805     else
2806         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \`config.log' for more details." >&5
2809 echo "$as_me: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details." >&2;}
2812    { (exit 1); exit 1; }; }
2813     fi
2814   fi
2815 fi
2816 { echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6; }
2818
2819 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2820 ac_clean_files=$ac_clean_files_save
2821 # Check that the compiler produces executables we can run.  If not, either
2822 # the compiler is broken, or we cross compile.
2823 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2824 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2825 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2826 echo "${ECHO_T}$cross_compiling" >&6; }
2827
2828 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2829 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2830 if { (ac_try="$ac_link"
2831 case "(($ac_try" in
2832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833   *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836   (eval "$ac_link") 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; then
2840   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2842 # work properly (i.e., refer to `conftest.exe'), while it won't with
2843 # `rm'.
2844 for ac_file in conftest.exe conftest conftest.*; do
2845   test -f "$ac_file" || continue
2846   case $ac_file in
2847     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849           break;;
2850     * ) break;;
2851   esac
2852 done
2853 else
2854   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&2;}
2858    { (exit 1); exit 1; }; }
2859 fi
2860
2861 rm -f conftest$ac_cv_exeext
2862 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2863 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2864
2865 rm -f conftest.$ac_ext
2866 EXEEXT=$ac_cv_exeext
2867 ac_exeext=$EXEEXT
2868 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2869 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2870 if test "${ac_cv_objext+set}" = set; then
2871   echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873   cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879
2880 int
2881 main ()
2882 {
2883
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.o conftest.obj
2889 if { (ac_try="$ac_compile"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_compile") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; then
2899   for ac_file in conftest.o conftest.obj conftest.*; do
2900   test -f "$ac_file" || continue;
2901   case $ac_file in
2902     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2903     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2904        break;;
2905   esac
2906 done
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&2;}
2915    { (exit 1); exit 1; }; }
2916 fi
2917
2918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2919 fi
2920 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2921 echo "${ECHO_T}$ac_cv_objext" >&6; }
2922 OBJEXT=$ac_cv_objext
2923 ac_objext=$OBJEXT
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935
2936 int
2937 main ()
2938 {
2939 #ifndef __GNUC__
2940        choke me
2941 #endif
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_compile") 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } && {
2961          test -z "$ac_c_werror_flag" ||
2962          test ! -s conftest.err
2963        } && test -s conftest.$ac_objext; then
2964   ac_compiler_gnu=yes
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969         ac_compiler_gnu=no
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974
2975 fi
2976 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2978 GCC=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CFLAGS=${CFLAGS+set}
2980 ac_save_CFLAGS=$CFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2982 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_g+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   ac_save_c_werror_flag=$ac_c_werror_flag
2987    ac_c_werror_flag=yes
2988    ac_cv_prog_cc_g=no
2989    CFLAGS="-g"
2990    cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } && {
3019          test -z "$ac_c_werror_flag" ||
3020          test ! -s conftest.err
3021        } && test -s conftest.$ac_objext; then
3022   ac_cv_prog_cc_g=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027         CFLAGS=""
3028       cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034
3035 int
3036 main ()
3037 {
3038
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_compile") 2>conftest.er1
3051   ac_status=$?
3052   grep -v '^ *+' conftest.er1 >conftest.err
3053   rm -f conftest.er1
3054   cat conftest.err >&5
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } && {
3057          test -z "$ac_c_werror_flag" ||
3058          test ! -s conftest.err
3059        } && test -s conftest.$ac_objext; then
3060   :
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065         ac_c_werror_flag=$ac_save_c_werror_flag
3066          CFLAGS="-g"
3067          cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_compile") 2>conftest.er1
3090   ac_status=$?
3091   grep -v '^ *+' conftest.er1 >conftest.err
3092   rm -f conftest.er1
3093   cat conftest.err >&5
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } && {
3096          test -z "$ac_c_werror_flag" ||
3097          test ! -s conftest.err
3098        } && test -s conftest.$ac_objext; then
3099   ac_cv_prog_cc_g=yes
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104
3105 fi
3106
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 fi
3109
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 fi
3112
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114    ac_c_werror_flag=$ac_save_c_werror_flag
3115 fi
3116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3118 if test "$ac_test_CFLAGS" = set; then
3119   CFLAGS=$ac_save_CFLAGS
3120 elif test $ac_cv_prog_cc_g = yes; then
3121   if test "$GCC" = yes; then
3122     CFLAGS="-g -O2"
3123   else
3124     CFLAGS="-g"
3125   fi
3126 else
3127   if test "$GCC" = yes; then
3128     CFLAGS="-O2"
3129   else
3130     CFLAGS=
3131   fi
3132 fi
3133 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3134 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cc_c89+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   ac_cv_prog_cc_c89=no
3139 ac_save_CC=$CC
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146 #include <stdarg.h>
3147 #include <stdio.h>
3148 #include <sys/types.h>
3149 #include <sys/stat.h>
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3154      char **p;
3155      int i;
3156 {
3157   return p[i];
3158 }
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3160 {
3161   char *s;
3162   va_list v;
3163   va_start (v,p);
3164   s = g (p, va_arg (v,int));
3165   va_end (v);
3166   return s;
3167 }
3168
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3170    function prototypes and stuff, but not '\xHH' hex character constants.
3171    These don't provoke an error unfortunately, instead are silently treated
3172    as 'x'.  The following induces an error, until -std is added to get
3173    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3174    array size at least.  It's necessary to write '\x00'==0 to get something
3175    that's true only with -std.  */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3177
3178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3179    inside strings and character constants.  */
3180 #define FOO(x) 'x'
3181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3182
3183 int test (int i, double x);
3184 struct s1 {int (*f) (int a);};
3185 struct s2 {int (*f) (double a);};
3186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187 int argc;
3188 char **argv;
3189 int
3190 main ()
3191 {
3192 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3198         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3199 do
3200   CC="$ac_save_CC $ac_arg"
3201   rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208   (eval "$ac_compile") 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } && {
3215          test -z "$ac_c_werror_flag" ||
3216          test ! -s conftest.err
3217        } && test -s conftest.$ac_objext; then
3218   ac_cv_prog_cc_c89=$ac_arg
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223
3224 fi
3225
3226 rm -f core conftest.err conftest.$ac_objext
3227   test "x$ac_cv_prog_cc_c89" != "xno" && break
3228 done
3229 rm -f conftest.$ac_ext
3230 CC=$ac_save_CC
3231
3232 fi
3233 # AC_CACHE_VAL
3234 case "x$ac_cv_prog_cc_c89" in
3235   x)
3236     { echo "$as_me:$LINENO: result: none needed" >&5
3237 echo "${ECHO_T}none needed" >&6; } ;;
3238   xno)
3239     { echo "$as_me:$LINENO: result: unsupported" >&5
3240 echo "${ECHO_T}unsupported" >&6; } ;;
3241   *)
3242     CC="$CC $ac_cv_prog_cc_c89"
3243     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3245 esac
3246
3247
3248 ac_ext=c
3249 ac_cpp='$CPP $CPPFLAGS'
3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253
3254 ac_ext=cpp
3255 ac_cpp='$CXXCPP $CPPFLAGS'
3256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3259 if test -z "$CXX"; then
3260   if test -n "$CCC"; then
3261     CXX=$CCC
3262   else
3263     if test -n "$ac_tool_prefix"; then
3264   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3265   do
3266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3270 if test "${ac_cv_prog_CXX+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   if test -n "$CXX"; then
3274   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   for ac_exec_ext in '' $ac_executable_extensions; do
3282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CXX=$ac_cv_prog_CXX
3294 if test -n "$CXX"; then
3295   { echo "$as_me:$LINENO: result: $CXX" >&5
3296 echo "${ECHO_T}$CXX" >&6; }
3297 else
3298   { echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6; }
3300 fi
3301
3302
3303     test -n "$CXX" && break
3304   done
3305 fi
3306 if test -z "$CXX"; then
3307   ac_ct_CXX=$CXX
3308   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3309 do
3310   # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   if test -n "$ac_ct_CXX"; then
3318   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   for ac_exec_ext in '' $ac_executable_extensions; do
3326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327     ac_cv_prog_ac_ct_CXX="$ac_prog"
3328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3338 if test -n "$ac_ct_CXX"; then
3339   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3340 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3341 else
3342   { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3344 fi
3345
3346
3347   test -n "$ac_ct_CXX" && break
3348 done
3349
3350   if test "x$ac_ct_CXX" = x; then
3351     CXX="g++"
3352   else
3353     case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet.  If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&5
3358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3359 whose name does not start with the host triplet.  If you think this
3360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3361 ac_tool_warned=yes ;;
3362 esac
3363     CXX=$ac_ct_CXX
3364   fi
3365 fi
3366
3367   fi
3368 fi
3369 # Provide some information about the compiler.
3370 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3371 ac_compiler=`set X $ac_compile; echo $2`
3372 { (ac_try="$ac_compiler --version >&5"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378   (eval "$ac_compiler --version >&5") 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }
3382 { (ac_try="$ac_compiler -v >&5"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_compiler -v >&5") 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }
3392 { (ac_try="$ac_compiler -V >&5"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_compiler -V >&5") 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }
3402
3403 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3404 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3405 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414
3415 int
3416 main ()
3417 {
3418 #ifndef __GNUC__
3419        choke me
3420 #endif
3421
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_compile") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } && {
3440          test -z "$ac_cxx_werror_flag" ||
3441          test ! -s conftest.err
3442        } && test -s conftest.$ac_objext; then
3443   ac_compiler_gnu=yes
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448         ac_compiler_gnu=no
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3453
3454 fi
3455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3457 GXX=`test $ac_compiler_gnu = yes && echo yes`
3458 ac_test_CXXFLAGS=${CXXFLAGS+set}
3459 ac_save_CXXFLAGS=$CXXFLAGS
3460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_cxx_g+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3466    ac_cxx_werror_flag=yes
3467    ac_cv_prog_cxx_g=no
3468    CXXFLAGS="-g"
3469    cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491   (eval "$ac_compile") 2>conftest.er1
3492   ac_status=$?
3493   grep -v '^ *+' conftest.er1 >conftest.err
3494   rm -f conftest.er1
3495   cat conftest.err >&5
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); } && {
3498          test -z "$ac_cxx_werror_flag" ||
3499          test ! -s conftest.err
3500        } && test -s conftest.$ac_objext; then
3501   ac_cv_prog_cxx_g=yes
3502 else
3503   echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506         CXXFLAGS=""
3507       cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529   (eval "$ac_compile") 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } && {
3536          test -z "$ac_cxx_werror_flag" ||
3537          test ! -s conftest.err
3538        } && test -s conftest.$ac_objext; then
3539   :
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3545          CXXFLAGS="-g"
3546          cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h.  */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h.  */
3552
3553 int
3554 main ()
3555 {
3556
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3563 case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_compile") 2>conftest.er1
3569   ac_status=$?
3570   grep -v '^ *+' conftest.er1 >conftest.err
3571   rm -f conftest.er1
3572   cat conftest.err >&5
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); } && {
3575          test -z "$ac_cxx_werror_flag" ||
3576          test ! -s conftest.err
3577        } && test -s conftest.$ac_objext; then
3578   ac_cv_prog_cxx_g=yes
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3594 fi
3595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3597 if test "$ac_test_CXXFLAGS" = set; then
3598   CXXFLAGS=$ac_save_CXXFLAGS
3599 elif test $ac_cv_prog_cxx_g = yes; then
3600   if test "$GXX" = yes; then
3601     CXXFLAGS="-g -O2"
3602   else
3603     CXXFLAGS="-g"
3604   fi
3605 else
3606   if test "$GXX" = yes; then
3607     CXXFLAGS="-O2"
3608   else
3609     CXXFLAGS=
3610   fi
3611 fi
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618 if test "x$CC" != xcc; then
3619   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3620 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3621 else
3622   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3623 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3624 fi
3625 set dummy $CC; ac_cc=`echo $2 |
3626                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3627 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 # Make sure it works both with $CC and with simple cc.
3646 # We do the test twice because some compilers refuse to overwrite an
3647 # existing .o file with -o, though they will create one.
3648 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3649 rm -f conftest2.*
3650 if { (case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655   (eval "$ac_try") 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } &&
3659    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664   (eval "$ac_try") 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); };
3668 then
3669   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3670   if test "x$CC" != xcc; then
3671     # Test first that cc exists at all.
3672     if { ac_try='cc -c conftest.$ac_ext >&5'
3673   { (case "(($ac_try" in
3674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675   *) ac_try_echo=$ac_try;;
3676 esac
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678   (eval "$ac_try") 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; }; then
3682       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3683       rm -f conftest2.*
3684       if { (case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689   (eval "$ac_try") 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } &&
3693          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698   (eval "$ac_try") 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); };
3702       then
3703         # cc works too.
3704         :
3705       else
3706         # cc exists but doesn't like -o.
3707         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3708       fi
3709     fi
3710   fi
3711 else
3712   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3713 fi
3714 rm -f core conftest*
3715
3716 fi
3717 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3718   { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3720 else
3721   { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3723
3724 cat >>confdefs.h <<\_ACEOF
3725 #define NO_MINUS_C_MINUS_O 1
3726 _ACEOF
3727
3728 fi
3729
3730 ac_ext=c
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3736 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3737 # On Suns, sometimes $CPP names a directory.
3738 if test -n "$CPP" && test -d "$CPP"; then
3739   CPP=
3740 fi
3741 if test -z "$CPP"; then
3742   if test "${ac_cv_prog_CPP+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745       # Double quotes because CPP needs to be expanded
3746     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3747     do
3748       ac_preproc_ok=false
3749 for ac_c_preproc_warn_flag in '' yes
3750 do
3751   # Use a header file that comes with gcc, so configuring glibc
3752   # with a fresh cross-compiler works.
3753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754   # <limits.h> exists even on freestanding compilers.
3755   # On the NeXT, cc -E runs the code through the compiler's parser,
3756   # not just through cpp. "Syntax error" is here to catch this case.
3757   cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 #ifdef __STDC__
3764 # include <limits.h>
3765 #else
3766 # include <assert.h>
3767 #endif
3768                      Syntax error
3769 _ACEOF
3770 if { (ac_try="$ac_cpp conftest.$ac_ext"
3771 case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3777   ac_status=$?
3778   grep -v '^ *+' conftest.er1 >conftest.err
3779   rm -f conftest.er1
3780   cat conftest.err >&5
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } >/dev/null && {
3783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3784          test ! -s conftest.err
3785        }; then
3786   :
3787 else
3788   echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791   # Broken: fails on valid input.
3792 continue
3793 fi
3794
3795 rm -f conftest.err conftest.$ac_ext
3796
3797   # OK, works on sane cases.  Now check whether nonexistent headers
3798   # can be detected and how.
3799   cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h.  */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h.  */
3805 #include <ac_nonexistent.h>
3806 _ACEOF
3807 if { (ac_try="$ac_cpp conftest.$ac_ext"
3808 case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814   ac_status=$?
3815   grep -v '^ *+' conftest.er1 >conftest.err
3816   rm -f conftest.er1
3817   cat conftest.err >&5
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); } >/dev/null && {
3820          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821          test ! -s conftest.err
3822        }; then
3823   # Broken: success on invalid input.
3824 continue
3825 else
3826   echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829   # Passes both tests.
3830 ac_preproc_ok=:
3831 break
3832 fi
3833
3834 rm -f conftest.err conftest.$ac_ext
3835
3836 done
3837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3838 rm -f conftest.err conftest.$ac_ext
3839 if $ac_preproc_ok; then
3840   break
3841 fi
3842
3843     done
3844     ac_cv_prog_CPP=$CPP
3845
3846 fi
3847   CPP=$ac_cv_prog_CPP
3848 else
3849   ac_cv_prog_CPP=$CPP
3850 fi
3851 { echo "$as_me:$LINENO: result: $CPP" >&5
3852 echo "${ECHO_T}$CPP" >&6; }
3853 ac_preproc_ok=false
3854 for ac_c_preproc_warn_flag in '' yes
3855 do
3856   # Use a header file that comes with gcc, so configuring glibc
3857   # with a fresh cross-compiler works.
3858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859   # <limits.h> exists even on freestanding compilers.
3860   # On the NeXT, cc -E runs the code through the compiler's parser,
3861   # not just through cpp. "Syntax error" is here to catch this case.
3862   cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868 #ifdef __STDC__
3869 # include <limits.h>
3870 #else
3871 # include <assert.h>
3872 #endif
3873                      Syntax error
3874 _ACEOF
3875 if { (ac_try="$ac_cpp conftest.$ac_ext"
3876 case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3882   ac_status=$?
3883   grep -v '^ *+' conftest.er1 >conftest.err
3884   rm -f conftest.er1
3885   cat conftest.err >&5
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); } >/dev/null && {
3888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3889          test ! -s conftest.err
3890        }; then
3891   :
3892 else
3893   echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896   # Broken: fails on valid input.
3897 continue
3898 fi
3899
3900 rm -f conftest.err conftest.$ac_ext
3901
3902   # OK, works on sane cases.  Now check whether nonexistent headers
3903   # can be detected and how.
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 #include <ac_nonexistent.h>
3911 _ACEOF
3912 if { (ac_try="$ac_cpp conftest.$ac_ext"
3913 case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3919   ac_status=$?
3920   grep -v '^ *+' conftest.er1 >conftest.err
3921   rm -f conftest.er1
3922   cat conftest.err >&5
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); } >/dev/null && {
3925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3926          test ! -s conftest.err
3927        }; then
3928   # Broken: success on invalid input.
3929 continue
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934   # Passes both tests.
3935 ac_preproc_ok=:
3936 break
3937 fi
3938
3939 rm -f conftest.err conftest.$ac_ext
3940
3941 done
3942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3943 rm -f conftest.err conftest.$ac_ext
3944 if $ac_preproc_ok; then
3945   :
3946 else
3947   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3948 See \`config.log' for more details." >&5
3949 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3950 See \`config.log' for more details." >&2;}
3951    { (exit 1); exit 1; }; }
3952 fi
3953
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
3960
3961 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3962 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3963 if test "${ac_cv_path_GREP+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   # Extract the first word of "grep ggrep" to use in msg output
3967 if test -z "$GREP"; then
3968 set dummy grep ggrep; ac_prog_name=$2
3969 if test "${ac_cv_path_GREP+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_path_GREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_prog in grep ggrep; do
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3983     # Check for GNU ac_path_GREP and select it if it is found.
3984   # Check for GNU $ac_path_GREP
3985 case `"$ac_path_GREP" --version 2>&1` in
3986 *GNU*)
3987   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 *)
3989   ac_count=0
3990   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991   while :
3992   do
3993     cat "conftest.in" "conftest.in" >"conftest.tmp"
3994     mv "conftest.tmp" "conftest.in"
3995     cp "conftest.in" "conftest.nl"
3996     echo 'GREP' >> "conftest.nl"
3997     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999     ac_count=`expr $ac_count + 1`
4000     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001       # Best one so far, save it but keep looking for a better one
4002       ac_cv_path_GREP="$ac_path_GREP"
4003       ac_path_GREP_max=$ac_count
4004     fi
4005     # 10*(2^10) chars as input seems more than enough
4006     test $ac_count -gt 10 && break
4007   done
4008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4010
4011
4012     $ac_path_GREP_found && break 3
4013   done
4014 done
4015
4016 done
4017 IFS=$as_save_IFS
4018
4019
4020 fi
4021
4022 GREP="$ac_cv_path_GREP"
4023 if test -z "$GREP"; then
4024   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 else
4030   ac_cv_path_GREP=$GREP
4031 fi
4032
4033
4034 fi
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4037  GREP="$ac_cv_path_GREP"
4038
4039
4040 { echo "$as_me:$LINENO: checking for egrep" >&5
4041 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046    then ac_cv_path_EGREP="$GREP -E"
4047    else
4048      # Extract the first word of "egrep" to use in msg output
4049 if test -z "$EGREP"; then
4050 set dummy egrep; ac_prog_name=$2
4051 if test "${ac_cv_path_EGREP+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   ac_path_EGREP_found=false
4055 # Loop through the user's path and test for each of PROGNAME-LIST
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_prog in egrep; do
4062   for ac_exec_ext in '' $ac_executable_extensions; do
4063     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4065     # Check for GNU ac_path_EGREP and select it if it is found.
4066   # Check for GNU $ac_path_EGREP
4067 case `"$ac_path_EGREP" --version 2>&1` in
4068 *GNU*)
4069   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 *)
4071   ac_count=0
4072   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073   while :
4074   do
4075     cat "conftest.in" "conftest.in" >"conftest.tmp"
4076     mv "conftest.tmp" "conftest.in"
4077     cp "conftest.in" "conftest.nl"
4078     echo 'EGREP' >> "conftest.nl"
4079     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081     ac_count=`expr $ac_count + 1`
4082     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083       # Best one so far, save it but keep looking for a better one
4084       ac_cv_path_EGREP="$ac_path_EGREP"
4085       ac_path_EGREP_max=$ac_count
4086     fi
4087     # 10*(2^10) chars as input seems more than enough
4088     test $ac_count -gt 10 && break
4089   done
4090   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 esac
4092
4093
4094     $ac_path_EGREP_found && break 3
4095   done
4096 done
4097
4098 done
4099 IFS=$as_save_IFS
4100
4101
4102 fi
4103
4104 EGREP="$ac_cv_path_EGREP"
4105 if test -z "$EGREP"; then
4106   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108    { (exit 1); exit 1; }; }
4109 fi
4110
4111 else
4112   ac_cv_path_EGREP=$EGREP
4113 fi
4114
4115
4116    fi
4117 fi
4118 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4119 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4120  EGREP="$ac_cv_path_EGREP"
4121
4122
4123 if test $ac_cv_c_compiler_gnu = yes; then
4124     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4125 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4126 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129     ac_pattern="Autoconf.*'x'"
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #include <sgtty.h>
4137 Autoconf TIOCGETP
4138 _ACEOF
4139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4141   ac_cv_prog_gcc_traditional=yes
4142 else
4143   ac_cv_prog_gcc_traditional=no
4144 fi
4145 rm -f conftest*
4146
4147
4148   if test $ac_cv_prog_gcc_traditional = no; then
4149     cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <termio.h>
4156 Autoconf TCGETA
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4160   ac_cv_prog_gcc_traditional=yes
4161 fi
4162 rm -f conftest*
4163
4164   fi
4165 fi
4166 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4167 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4168   if test $ac_cv_prog_gcc_traditional = yes; then
4169     CC="$CC -traditional"
4170   fi
4171 fi
4172
4173 BASECC=`basename $CC`
4174 have_gcc=no
4175 if test "x$BASECC" = xgcc; then
4176    cat >>confdefs.h <<\_ACEOF
4177 #define HAVE_GCC 1
4178 _ACEOF
4179
4180    have_gcc=yes
4181 fi
4182 # Extract the first word of "$CXX", so it can be a program name with args.
4183 set dummy $CXX; ac_word=$2
4184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4186 if test "${ac_cv_path_CXX+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   case $CXX in
4190   [\\/]* | ?:[\\/]*)
4191   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4192   ;;
4193   *)
4194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199   for ac_exec_ext in '' $ac_executable_extensions; do
4200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206 done
4207 IFS=$as_save_IFS
4208
4209   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4210   ;;
4211 esac
4212 fi
4213 CXX=$ac_cv_path_CXX
4214 if test -n "$CXX"; then
4215   { echo "$as_me:$LINENO: result: $CXX" >&5
4216 echo "${ECHO_T}$CXX" >&6; }
4217 else
4218   { echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6; }
4220 fi
4221
4222
4223 if test ! -e $CXX; then
4224    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4225 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4226    { (exit 1); exit 1; }; }
4227 fi
4228
4229 # Find a good install program.  We prefer a C program (faster),
4230 # so one script is as good as another.  But avoid the broken or
4231 # incompatible versions:
4232 # SysV /etc/install, /usr/sbin/install
4233 # SunOS /usr/etc/install
4234 # IRIX /sbin/install
4235 # AIX /bin/install
4236 # AmigaOS /C/install, which installs bootblocks on floppy discs
4237 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4238 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4239 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4240 # OS/2's system install, which has a completely different semantic
4241 # ./install, which can be erroneously created by make from ./install.sh.
4242 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4243 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4244 if test -z "$INSTALL"; then
4245 if test "${ac_cv_path_install+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253   # Account for people who put trailing slashes in PATH elements.
4254 case $as_dir/ in
4255   ./ | .// | /cC/* | \
4256   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4257   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4258   /usr/ucb/* ) ;;
4259   *)
4260     # OSF1 and SCO ODT 3.0 have their own names for install.
4261     # Don't use installbsd from OSF since it installs stuff as root
4262     # by default.
4263     for ac_prog in ginstall scoinst install; do
4264       for ac_exec_ext in '' $ac_executable_extensions; do
4265         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4266           if test $ac_prog = install &&
4267             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268             # AIX install.  It has an incompatible calling convention.
4269             :
4270           elif test $ac_prog = install &&
4271             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4272             # program-specific install script used by HP pwplus--don't use.
4273             :
4274           else
4275             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4276             break 3
4277           fi
4278         fi
4279       done
4280     done
4281     ;;
4282 esac
4283 done
4284 IFS=$as_save_IFS
4285
4286
4287 fi
4288   if test "${ac_cv_path_install+set}" = set; then
4289     INSTALL=$ac_cv_path_install
4290   else
4291     # As a last resort, use the slow shell script.  Don't cache a
4292     # value for INSTALL within a source directory, because that will
4293     # break other packages using the cache if that directory is
4294     # removed, or if the value is a relative name.
4295     INSTALL=$ac_install_sh
4296   fi
4297 fi
4298 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4299 echo "${ECHO_T}$INSTALL" >&6; }
4300
4301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4302 # It thinks the first close brace ends the variable substitution.
4303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4304
4305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4306
4307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4308
4309 # Extract the first word of "mv", so it can be a program name with args.
4310 set dummy mv; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_path_MV+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   case $MV in
4317   [\\/]* | ?:[\\/]*)
4318   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4319   ;;
4320   *)
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334 IFS=$as_save_IFS
4335
4336   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4337   ;;
4338 esac
4339 fi
4340 MV=$ac_cv_path_MV
4341 if test -n "$MV"; then
4342   { echo "$as_me:$LINENO: result: $MV" >&5
4343 echo "${ECHO_T}$MV" >&6; }
4344 else
4345   { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4347 fi
4348
4349
4350 # Extract the first word of "rm", so it can be a program name with args.
4351 set dummy rm; ac_word=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_path_REMOVE+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   case $REMOVE in
4358   [\\/]* | ?:[\\/]*)
4359   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4360   ;;
4361   *)
4362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367   for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4378   ;;
4379 esac
4380 fi
4381 REMOVE=$ac_cv_path_REMOVE
4382 if test -n "$REMOVE"; then
4383   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4384 echo "${ECHO_T}$REMOVE" >&6; }
4385 else
4386   { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4388 fi
4389
4390
4391 # Extract the first word of "cp", so it can be a program name with args.
4392 set dummy cp; ac_word=$2
4393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395 if test "${ac_cv_path_CP+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   case $CP in
4399   [\\/]* | ?:[\\/]*)
4400   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4401   ;;
4402   *)
4403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408   for ac_exec_ext in '' $ac_executable_extensions; do
4409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4419   ;;
4420 esac
4421 fi
4422 CP=$ac_cv_path_CP
4423 if test -n "$CP"; then
4424   { echo "$as_me:$LINENO: result: $CP" >&5
4425 echo "${ECHO_T}$CP" >&6; }
4426 else
4427   { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429 fi
4430
4431
4432 # Extract the first word of "sed", so it can be a program name with args.
4433 set dummy sed; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_SED+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   case $SED in
4440   [\\/]* | ?:[\\/]*)
4441   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4442   ;;
4443   *)
4444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457 IFS=$as_save_IFS
4458
4459   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4460   ;;
4461 esac
4462 fi
4463 SED=$ac_cv_path_SED
4464 if test -n "$SED"; then
4465   { echo "$as_me:$LINENO: result: $SED" >&5
4466 echo "${ECHO_T}$SED" >&6; }
4467 else
4468   { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4470 fi
4471
4472
4473 # Extract the first word of "echo", so it can be a program name with args.
4474 set dummy echo; ac_word=$2
4475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4477 if test "${ac_cv_path_ECHO+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   case $ECHO in
4481   [\\/]* | ?:[\\/]*)
4482   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4483   ;;
4484   *)
4485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for ac_exec_ext in '' $ac_executable_extensions; do
4491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494     break 2
4495   fi
4496 done
4497 done
4498 IFS=$as_save_IFS
4499
4500   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4501   ;;
4502 esac
4503 fi
4504 ECHO=$ac_cv_path_ECHO
4505 if test -n "$ECHO"; then
4506   { echo "$as_me:$LINENO: result: $ECHO" >&5
4507 echo "${ECHO_T}$ECHO" >&6; }
4508 else
4509   { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4511 fi
4512
4513
4514 # Extract the first word of "cmp", so it can be a program name with args.
4515 set dummy cmp; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_path_CMP+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   case $CMP in
4522   [\\/]* | ?:[\\/]*)
4523   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4524   ;;
4525   *)
4526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531   for ac_exec_ext in '' $ac_executable_extensions; do
4532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535     break 2
4536   fi
4537 done
4538 done
4539 IFS=$as_save_IFS
4540
4541   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4542   ;;
4543 esac
4544 fi
4545 CMP=$ac_cv_path_CMP
4546 if test -n "$CMP"; then
4547   { echo "$as_me:$LINENO: result: $CMP" >&5
4548 echo "${ECHO_T}$CMP" >&6; }
4549 else
4550   { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4552 fi
4553
4554
4555 # Extract the first word of "tbl", so it can be a program name with args.
4556 set dummy tbl; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_path_TBL+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   case $TBL in
4563   [\\/]* | ?:[\\/]*)
4564   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4565   ;;
4566   *)
4567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572   for ac_exec_ext in '' $ac_executable_extensions; do
4573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4583   ;;
4584 esac
4585 fi
4586 TBL=$ac_cv_path_TBL
4587 if test -n "$TBL"; then
4588   { echo "$as_me:$LINENO: result: $TBL" >&5
4589 echo "${ECHO_T}$TBL" >&6; }
4590 else
4591   { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4593 fi
4594
4595
4596 # Extract the first word of "ar", so it can be a program name with args.
4597 set dummy ar; ac_word=$2
4598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4600 if test "${ac_cv_path_AR+set}" = set; then
4601   echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603   case $AR in
4604   [\\/]* | ?:[\\/]*)
4605   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4606   ;;
4607   *)
4608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613   for ac_exec_ext in '' $ac_executable_extensions; do
4614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4624   ;;
4625 esac
4626 fi
4627 AR=$ac_cv_path_AR
4628 if test -n "$AR"; then
4629   { echo "$as_me:$LINENO: result: $AR" >&5
4630 echo "${ECHO_T}$AR" >&6; }
4631 else
4632   { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4634 fi
4635
4636
4637 # Extract the first word of "openssl", so it can be a program name with args.
4638 set dummy openssl; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_path_OPENSSL+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   case $OPENSSL in
4645   [\\/]* | ?:[\\/]*)
4646   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4647   ;;
4648   *)
4649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654   for ac_exec_ext in '' $ac_executable_extensions; do
4655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4665   ;;
4666 esac
4667 fi
4668 OPENSSL=$ac_cv_path_OPENSSL
4669 if test -n "$OPENSSL"; then
4670   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4671 echo "${ECHO_T}$OPENSSL" >&6; }
4672 else
4673   { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4675 fi
4676
4677
4678 # Extract the first word of "mtx", so it can be a program name with args.
4679 set dummy mtx; ac_word=$2
4680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4682 if test "${ac_cv_path_MTX+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   case $MTX in
4686   [\\/]* | ?:[\\/]*)
4687   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4688   ;;
4689   *)
4690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695   for ac_exec_ext in '' $ac_executable_extensions; do
4696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4706   ;;
4707 esac
4708 fi
4709 MTX=$ac_cv_path_MTX
4710 if test -n "$MTX"; then
4711   { echo "$as_me:$LINENO: result: $MTX" >&5
4712 echo "${ECHO_T}$MTX" >&6; }
4713 else
4714   { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4716 fi
4717
4718
4719 # Extract the first word of "dd", so it can be a program name with args.
4720 set dummy dd; ac_word=$2
4721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4723 if test "${ac_cv_path_DD+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   case $DD in
4727   [\\/]* | ?:[\\/]*)
4728   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4729   ;;
4730   *)
4731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736   for ac_exec_ext in '' $ac_executable_extensions; do
4737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740     break 2
4741   fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4747   ;;
4748 esac
4749 fi
4750 DD=$ac_cv_path_DD
4751 if test -n "$DD"; then
4752   { echo "$as_me:$LINENO: result: $DD" >&5
4753 echo "${ECHO_T}$DD" >&6; }
4754 else
4755   { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4757 fi
4758
4759
4760 # Extract the first word of "mkisofs", so it can be a program name with args.
4761 set dummy mkisofs; ac_word=$2
4762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4764 if test "${ac_cv_path_MKISOFS+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   case $MKISOFS in
4768   [\\/]* | ?:[\\/]*)
4769   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4770   ;;
4771   *)
4772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4788   ;;
4789 esac
4790 fi
4791 MKISOFS=$ac_cv_path_MKISOFS
4792 if test -n "$MKISOFS"; then
4793   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4794 echo "${ECHO_T}$MKISOFS" >&6; }
4795 else
4796   { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4798 fi
4799
4800
4801 # Extract the first word of "python", so it can be a program name with args.
4802 set dummy python; ac_word=$2
4803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4805 if test "${ac_cv_path_PYTHON+set}" = set; then
4806   echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808   case $PYTHON in
4809   [\\/]* | ?:[\\/]*)
4810   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4811   ;;
4812   *)
4813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818   for ac_exec_ext in '' $ac_executable_extensions; do
4819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822     break 2
4823   fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4829   ;;
4830 esac
4831 fi
4832 PYTHON=$ac_cv_path_PYTHON
4833 if test -n "$PYTHON"; then
4834   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4835 echo "${ECHO_T}$PYTHON" >&6; }
4836 else
4837   { echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6; }
4839 fi
4840
4841
4842 # Extract the first word of "growisofs", so it can be a program name with args.
4843 set dummy growisofs; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   case $GROWISOFS in
4850   [\\/]* | ?:[\\/]*)
4851   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4852   ;;
4853   *)
4854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857   IFS=$as_save_IFS
4858   test -z "$as_dir" && as_dir=.
4859   for ac_exec_ext in '' $ac_executable_extensions; do
4860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863     break 2
4864   fi
4865 done
4866 done
4867 IFS=$as_save_IFS
4868
4869   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4870   ;;
4871 esac
4872 fi
4873 GROWISOFS=$ac_cv_path_GROWISOFS
4874 if test -n "$GROWISOFS"; then
4875   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4876 echo "${ECHO_T}$GROWISOFS" >&6; }
4877 else
4878   { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4880 fi
4881
4882
4883 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4884 set dummy dvd+rw-mediainfo; ac_word=$2
4885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4887 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   case $DVDRWMEDIAINFO in
4891   [\\/]* | ?:[\\/]*)
4892   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4893   ;;
4894   *)
4895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898   IFS=$as_save_IFS
4899   test -z "$as_dir" && as_dir=.
4900   for ac_exec_ext in '' $ac_executable_extensions; do
4901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4911   ;;
4912 esac
4913 fi
4914 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4915 if test -n "$DVDRWMEDIAINFO"; then
4916   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4917 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4918 else
4919   { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4921 fi
4922
4923
4924 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4925 set dummy dvd+rw-format; ac_word=$2
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   case $DVDRWFORMAT in
4932   [\\/]* | ?:[\\/]*)
4933   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4934   ;;
4935   *)
4936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941   for ac_exec_ext in '' $ac_executable_extensions; do
4942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4952   ;;
4953 esac
4954 fi
4955 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4956 if test -n "$DVDRWFORMAT"; then
4957   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4958 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4959 else
4960   { echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6; }
4962 fi
4963
4964
4965 # Extract the first word of "pkg-config", so it can be a program name with args.
4966 set dummy pkg-config; ac_word=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   case $PKGCONFIG in
4973   [\\/]* | ?:[\\/]*)
4974   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4975   ;;
4976   *)
4977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989 done
4990 IFS=$as_save_IFS
4991
4992   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4993   ;;
4994 esac
4995 fi
4996 PKGCONFIG=$ac_cv_path_PKGCONFIG
4997 if test -n "$PKGCONFIG"; then
4998   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4999 echo "${ECHO_T}$PKGCONFIG" >&6; }
5000 else
5001   { echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6; }
5003 fi
5004
5005
5006 # Extract the first word of "qmake", so it can be a program name with args.
5007 set dummy qmake; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_path_QMAKE+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   case $QMAKE in
5014   [\\/]* | ?:[\\/]*)
5015   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5016   ;;
5017   *)
5018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023   for ac_exec_ext in '' $ac_executable_extensions; do
5024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5034   ;;
5035 esac
5036 fi
5037 QMAKE=$ac_cv_path_QMAKE
5038 if test -n "$QMAKE"; then
5039   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5040 echo "${ECHO_T}$QMAKE" >&6; }
5041 else
5042   { echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6; }
5044 fi
5045
5046
5047 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5048 set dummy qmake-qt4; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   case $QMAKEQT4 in
5055   [\\/]* | ?:[\\/]*)
5056   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5057   ;;
5058   *)
5059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5075   ;;
5076 esac
5077 fi
5078 QMAKEQT4=$ac_cv_path_QMAKEQT4
5079 if test -n "$QMAKEQT4"; then
5080   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5081 echo "${ECHO_T}$QMAKEQT4" >&6; }
5082 else
5083   { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5085 fi
5086
5087
5088
5089 if test "x$WXCONFIG" = x; then
5090    WXCONFIG=wx-config
5091 fi
5092 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5093 set dummy ${WXCONFIG}; ac_word=$2
5094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5096 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   case $WXCONFIG in
5100   [\\/]* | ?:[\\/]*)
5101   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5102   ;;
5103   *)
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109   for ac_exec_ext in '' $ac_executable_extensions; do
5110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5120   ;;
5121 esac
5122 fi
5123 WXCONFIG=$ac_cv_path_WXCONFIG
5124 if test -n "$WXCONFIG"; then
5125   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5126 echo "${ECHO_T}$WXCONFIG" >&6; }
5127 else
5128   { echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6; }
5130 fi
5131
5132
5133
5134 # Extract the first word of "cdrecord", so it can be a program name with args.
5135 set dummy cdrecord; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_CDRECORD+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   case $CDRECORD in
5142   [\\/]* | ?:[\\/]*)
5143   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5144   ;;
5145   *)
5146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151   for ac_exec_ext in '' $ac_executable_extensions; do
5152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5162   ;;
5163 esac
5164 fi
5165 CDRECORD=$ac_cv_path_CDRECORD
5166 if test -n "$CDRECORD"; then
5167   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5168 echo "${ECHO_T}$CDRECORD" >&6; }
5169 else
5170   { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5172 fi
5173
5174
5175 # Extract the first word of "pidof", so it can be a program name with args.
5176 set dummy pidof; ac_word=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_path_PIDOF+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   case $PIDOF in
5183   [\\/]* | ?:[\\/]*)
5184   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5185   ;;
5186   *)
5187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192   for ac_exec_ext in '' $ac_executable_extensions; do
5193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199 done
5200 IFS=$as_save_IFS
5201
5202   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5203   ;;
5204 esac
5205 fi
5206 PIDOF=$ac_cv_path_PIDOF
5207 if test -n "$PIDOF"; then
5208   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5209 echo "${ECHO_T}$PIDOF" >&6; }
5210 else
5211   { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }
5213 fi
5214
5215
5216 for ac_prog in gawk mawk nawk awk
5217 do
5218   # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_prog_AWK+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   if test -n "$AWK"; then
5226   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233   for ac_exec_ext in '' $ac_executable_extensions; do
5234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235     ac_cv_prog_AWK="$ac_prog"
5236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 AWK=$ac_cv_prog_AWK
5246 if test -n "$AWK"; then
5247   { echo "$as_me:$LINENO: result: $AWK" >&5
5248 echo "${ECHO_T}$AWK" >&6; }
5249 else
5250   { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5252 fi
5253
5254
5255   test -n "$AWK" && break
5256 done
5257
5258 # Some AWK programs fail, so test it and warn the user
5259 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5260       { if ((prog == $2) || (("(" prog ")") == $2) ||
5261       (("" prog "") == $2) ||
5262       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5263 else
5264   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265    The regex engine of $AWK is too broken to be used you
5266    might want to install GNU AWK.
5267    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5268 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5269    The regex engine of $AWK is too broken to be used you
5270    might want to install GNU AWK.
5271    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5272    { (exit 1); exit 1; }; }
5273 fi
5274 THE_AWK=$AWK
5275 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5276 set dummy $THE_AWK; 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_path_AWK+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   case $AWK in
5283   [\\/]* | ?:[\\/]*)
5284   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5285   ;;
5286   *)
5287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5303   ;;
5304 esac
5305 fi
5306 AWK=$ac_cv_path_AWK
5307 if test -n "$AWK"; then
5308   { echo "$as_me:$LINENO: result: $AWK" >&5
5309 echo "${ECHO_T}$AWK" >&6; }
5310 else
5311   { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5313 fi
5314
5315
5316
5317
5318 test -n "$ARFLAG" || ARFLAGS="cr"
5319
5320
5321 MAKE_SHELL=/bin/sh
5322
5323
5324
5325
5326
5327
5328
5329 # Check whether --enable-libtool was given.
5330 if test "${enable_libtool+set}" = set; then
5331   enableval=$enable_libtool;
5332        if test x$enableval = xno; then
5333           use_libtool=no
5334        fi
5335
5336
5337 fi
5338
5339 case `pwd` in
5340   *\ * | *\     *)
5341     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5342 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5343 esac
5344
5345
5346
5347 macro_version='2.2.6'
5348 macro_revision='1.3012'
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362 ltmain="$ac_aux_dir/ltmain.sh"
5363
5364 # Make sure we can run config.sub.
5365 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5366   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5367 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5368    { (exit 1); exit 1; }; }
5369
5370 { echo "$as_me:$LINENO: checking build system type" >&5
5371 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5372 if test "${ac_cv_build+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375   ac_build_alias=$build_alias
5376 test "x$ac_build_alias" = x &&
5377   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5378 test "x$ac_build_alias" = x &&
5379   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5380 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5381    { (exit 1); exit 1; }; }
5382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5383   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5384 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5385    { (exit 1); exit 1; }; }
5386
5387 fi
5388 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5389 echo "${ECHO_T}$ac_cv_build" >&6; }
5390 case $ac_cv_build in
5391 *-*-*) ;;
5392 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5393 echo "$as_me: error: invalid value of canonical build" >&2;}
5394    { (exit 1); exit 1; }; };;
5395 esac
5396 build=$ac_cv_build
5397 ac_save_IFS=$IFS; IFS='-'
5398 set x $ac_cv_build
5399 shift
5400 build_cpu=$1
5401 build_vendor=$2
5402 shift; shift
5403 # Remember, the first character of IFS is used to create $*,
5404 # except with old shells:
5405 build_os=$*
5406 IFS=$ac_save_IFS
5407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5408
5409
5410 { echo "$as_me:$LINENO: checking host system type" >&5
5411 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5412 if test "${ac_cv_host+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   if test "x$host_alias" = x; then
5416   ac_cv_host=$ac_cv_build
5417 else
5418   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5419     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5420 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5421    { (exit 1); exit 1; }; }
5422 fi
5423
5424 fi
5425 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5426 echo "${ECHO_T}$ac_cv_host" >&6; }
5427 case $ac_cv_host in
5428 *-*-*) ;;
5429 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5430 echo "$as_me: error: invalid value of canonical host" >&2;}
5431    { (exit 1); exit 1; }; };;
5432 esac
5433 host=$ac_cv_host
5434 ac_save_IFS=$IFS; IFS='-'
5435 set x $ac_cv_host
5436 shift
5437 host_cpu=$1
5438 host_vendor=$2
5439 shift; shift
5440 # Remember, the first character of IFS is used to create $*,
5441 # except with old shells:
5442 host_os=$*
5443 IFS=$ac_save_IFS
5444 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5445
5446
5447 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5448 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5449 if test "${ac_cv_path_SED+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5453      for ac_i in 1 2 3 4 5 6 7; do
5454        ac_script="$ac_script$as_nl$ac_script"
5455      done
5456      echo "$ac_script" | sed 99q >conftest.sed
5457      $as_unset ac_script || ac_script=
5458      # Extract the first word of "sed gsed" to use in msg output
5459 if test -z "$SED"; then
5460 set dummy sed gsed; ac_prog_name=$2
5461 if test "${ac_cv_path_SED+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   ac_path_SED_found=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471   for ac_prog in sed gsed; do
5472   for ac_exec_ext in '' $ac_executable_extensions; do
5473     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5474     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5475     # Check for GNU ac_path_SED and select it if it is found.
5476   # Check for GNU $ac_path_SED
5477 case `"$ac_path_SED" --version 2>&1` in
5478 *GNU*)
5479   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5480 *)
5481   ac_count=0
5482   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5483   while :
5484   do
5485     cat "conftest.in" "conftest.in" >"conftest.tmp"
5486     mv "conftest.tmp" "conftest.in"
5487     cp "conftest.in" "conftest.nl"
5488     echo '' >> "conftest.nl"
5489     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491     ac_count=`expr $ac_count + 1`
5492     if test $ac_count -gt ${ac_path_SED_max-0}; then
5493       # Best one so far, save it but keep looking for a better one
5494       ac_cv_path_SED="$ac_path_SED"
5495       ac_path_SED_max=$ac_count
5496     fi
5497     # 10*(2^10) chars as input seems more than enough
5498     test $ac_count -gt 10 && break
5499   done
5500   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501 esac
5502
5503
5504     $ac_path_SED_found && break 3
5505   done
5506 done
5507
5508 done
5509 IFS=$as_save_IFS
5510
5511
5512 fi
5513
5514 SED="$ac_cv_path_SED"
5515 if test -z "$SED"; then
5516   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5517 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5518    { (exit 1); exit 1; }; }
5519 fi
5520
5521 else
5522   ac_cv_path_SED=$SED
5523 fi
5524
5525 fi
5526 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5527 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5528  SED="$ac_cv_path_SED"
5529   rm -f conftest.sed
5530
5531 test -z "$SED" && SED=sed
5532 Xsed="$SED -e 1s/^X//"
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544 { echo "$as_me:$LINENO: checking for fgrep" >&5
5545 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5546 if test "${ac_cv_path_FGREP+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5550    then ac_cv_path_FGREP="$GREP -F"
5551    else
5552      # Extract the first word of "fgrep" to use in msg output
5553 if test -z "$FGREP"; then
5554 set dummy fgrep; ac_prog_name=$2
5555 if test "${ac_cv_path_FGREP+set}" = set; then
5556   echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558   ac_path_FGREP_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565   for ac_prog in fgrep; do
5566   for ac_exec_ext in '' $ac_executable_extensions; do
5567     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5568     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5569     # Check for GNU ac_path_FGREP and select it if it is found.
5570   # Check for GNU $ac_path_FGREP
5571 case `"$ac_path_FGREP" --version 2>&1` in
5572 *GNU*)
5573   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5574 *)
5575   ac_count=0
5576   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5577   while :
5578   do
5579     cat "conftest.in" "conftest.in" >"conftest.tmp"
5580     mv "conftest.tmp" "conftest.in"
5581     cp "conftest.in" "conftest.nl"
5582     echo 'FGREP' >> "conftest.nl"
5583     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585     ac_count=`expr $ac_count + 1`
5586     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5587       # Best one so far, save it but keep looking for a better one
5588       ac_cv_path_FGREP="$ac_path_FGREP"
5589       ac_path_FGREP_max=$ac_count
5590     fi
5591     # 10*(2^10) chars as input seems more than enough
5592     test $ac_count -gt 10 && break
5593   done
5594   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5595 esac
5596
5597
5598     $ac_path_FGREP_found && break 3
5599   done
5600 done
5601
5602 done
5603 IFS=$as_save_IFS
5604
5605
5606 fi
5607
5608 FGREP="$ac_cv_path_FGREP"
5609 if test -z "$FGREP"; then
5610   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5612    { (exit 1); exit 1; }; }
5613 fi
5614
5615 else
5616   ac_cv_path_FGREP=$FGREP
5617 fi
5618
5619
5620    fi
5621 fi
5622 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5623 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5624  FGREP="$ac_cv_path_FGREP"
5625
5626
5627 test -z "$GREP" && GREP=grep
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 # Check whether --with-gnu-ld was given.
5648 if test "${with_gnu_ld+set}" = set; then
5649   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5650 else
5651   with_gnu_ld=no
5652 fi
5653
5654 ac_prog=ld
5655 if test "$GCC" = yes; then
5656   # Check if gcc -print-prog-name=ld gives a path.
5657   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5658 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5659   case $host in
5660   *-*-mingw*)
5661     # gcc leaves a trailing carriage return which upsets mingw
5662     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5663   *)
5664     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5665   esac
5666   case $ac_prog in
5667     # Accept absolute paths.
5668     [\\/]* | ?:[\\/]*)
5669       re_direlt='/[^/][^/]*/\.\./'
5670       # Canonicalize the pathname of ld
5671       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5672       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5673         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5674       done
5675       test -z "$LD" && LD="$ac_prog"
5676       ;;
5677   "")
5678     # If it fails, then pretend we aren't using GCC.
5679     ac_prog=ld
5680     ;;
5681   *)
5682     # If it is relative, then search for the first ld in PATH.
5683     with_gnu_ld=unknown
5684     ;;
5685   esac
5686 elif test "$with_gnu_ld" = yes; then
5687   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5688 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5689 else
5690   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5691 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5692 fi
5693 if test "${lt_cv_path_LD+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   if test -z "$LD"; then
5697   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5698   for ac_dir in $PATH; do
5699     IFS="$lt_save_ifs"
5700     test -z "$ac_dir" && ac_dir=.
5701     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5702       lt_cv_path_LD="$ac_dir/$ac_prog"
5703       # Check to see if the program is GNU ld.  I'd rather use --version,
5704       # but apparently some variants of GNU ld only accept -v.
5705       # Break only if it was the GNU/non-GNU ld that we prefer.
5706       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5707       *GNU* | *'with BFD'*)
5708         test "$with_gnu_ld" != no && break
5709         ;;
5710       *)
5711         test "$with_gnu_ld" != yes && break
5712         ;;
5713       esac
5714     fi
5715   done
5716   IFS="$lt_save_ifs"
5717 else
5718   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5719 fi
5720 fi
5721
5722 LD="$lt_cv_path_LD"
5723 if test -n "$LD"; then
5724   { echo "$as_me:$LINENO: result: $LD" >&5
5725 echo "${ECHO_T}$LD" >&6; }
5726 else
5727   { echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6; }
5729 fi
5730 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5731 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5732    { (exit 1); exit 1; }; }
5733 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5734 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5735 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5739 case `$LD -v 2>&1 </dev/null` in
5740 *GNU* | *'with BFD'*)
5741   lt_cv_prog_gnu_ld=yes
5742   ;;
5743 *)
5744   lt_cv_prog_gnu_ld=no
5745   ;;
5746 esac
5747 fi
5748 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5749 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5750 with_gnu_ld=$lt_cv_prog_gnu_ld
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5761 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5762 if test "${lt_cv_path_NM+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   if test -n "$NM"; then
5766   # Let the user override the test.
5767   lt_cv_path_NM="$NM"
5768 else
5769   lt_nm_to_check="${ac_tool_prefix}nm"
5770   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5771     lt_nm_to_check="$lt_nm_to_check nm"
5772   fi
5773   for lt_tmp_nm in $lt_nm_to_check; do
5774     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5775     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5776       IFS="$lt_save_ifs"
5777       test -z "$ac_dir" && ac_dir=.
5778       tmp_nm="$ac_dir/$lt_tmp_nm"
5779       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5780         # Check to see if the nm accepts a BSD-compat flag.
5781         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5782         #   nm: unknown option "B" ignored
5783         # Tru64's nm complains that /dev/null is an invalid object file
5784         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5785         */dev/null* | *'Invalid file or object type'*)
5786           lt_cv_path_NM="$tmp_nm -B"
5787           break
5788           ;;
5789         *)
5790           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5791           */dev/null*)
5792             lt_cv_path_NM="$tmp_nm -p"
5793             break
5794             ;;
5795           *)
5796             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5797             continue # so that we can try to find one that supports BSD flags
5798             ;;
5799           esac
5800           ;;
5801         esac
5802       fi
5803     done
5804     IFS="$lt_save_ifs"
5805   done
5806   : ${lt_cv_path_NM=no}
5807 fi
5808 fi
5809 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5810 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5811 if test "$lt_cv_path_NM" != "no"; then
5812   NM="$lt_cv_path_NM"
5813 else
5814   # Didn't find any BSD compatible name lister, look for dumpbin.
5815   if test -n "$ac_tool_prefix"; then
5816   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5817   do
5818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$DUMPBIN"; then
5826   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 DUMPBIN=$ac_cv_prog_DUMPBIN
5846 if test -n "$DUMPBIN"; then
5847   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5848 echo "${ECHO_T}$DUMPBIN" >&6; }
5849 else
5850   { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5852 fi
5853
5854
5855     test -n "$DUMPBIN" && break
5856   done
5857 fi
5858 if test -z "$DUMPBIN"; then
5859   ac_ct_DUMPBIN=$DUMPBIN
5860   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5861 do
5862   # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$ac_ct_DUMPBIN"; then
5870   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5890 if test -n "$ac_ct_DUMPBIN"; then
5891   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5892 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898
5899   test -n "$ac_ct_DUMPBIN" && break
5900 done
5901
5902   if test "x$ac_ct_DUMPBIN" = x; then
5903     DUMPBIN=":"
5904   else
5905     case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet.  If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&5
5910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5911 whose name does not start with the host triplet.  If you think this
5912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5913 ac_tool_warned=yes ;;
5914 esac
5915     DUMPBIN=$ac_ct_DUMPBIN
5916   fi
5917 fi
5918
5919
5920   if test "$DUMPBIN" != ":"; then
5921     NM="$DUMPBIN"
5922   fi
5923 fi
5924 test -z "$NM" && NM=nm
5925
5926
5927
5928
5929
5930
5931 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5932 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5933 if test "${lt_cv_nm_interface+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   lt_cv_nm_interface="BSD nm"
5937   echo "int some_variable = 0;" > conftest.$ac_ext
5938   (eval echo "\"\$as_me:5938: $ac_compile\"" >&5)
5939   (eval "$ac_compile" 2>conftest.err)
5940   cat conftest.err >&5
5941   (eval echo "\"\$as_me:5941: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5942   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5943   cat conftest.err >&5
5944   (eval echo "\"\$as_me:5944: output\"" >&5)
5945   cat conftest.out >&5
5946   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5947     lt_cv_nm_interface="MS dumpbin"
5948   fi
5949   rm -f conftest*
5950 fi
5951 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5952 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5953
5954 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5955 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5956 LN_S=$as_ln_s
5957 if test "$LN_S" = "ln -s"; then
5958   { echo "$as_me:$LINENO: result: yes" >&5
5959 echo "${ECHO_T}yes" >&6; }
5960 else
5961   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5962 echo "${ECHO_T}no, using $LN_S" >&6; }
5963 fi
5964
5965 # find the maximum length of command line arguments
5966 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5967 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5968 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971     i=0
5972   teststring="ABCD"
5973
5974   case $build_os in
5975   msdosdjgpp*)
5976     # On DJGPP, this test can blow up pretty badly due to problems in libc
5977     # (any single argument exceeding 2000 bytes causes a buffer overrun
5978     # during glob expansion).  Even if it were fixed, the result of this
5979     # check would be larger than it should be.
5980     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5981     ;;
5982
5983   gnu*)
5984     # Under GNU Hurd, this test is not required because there is
5985     # no limit to the length of command line arguments.
5986     # Libtool will interpret -1 as no limit whatsoever
5987     lt_cv_sys_max_cmd_len=-1;
5988     ;;
5989
5990   cygwin* | mingw* | cegcc*)
5991     # On Win9x/ME, this test blows up -- it succeeds, but takes
5992     # about 5 minutes as the teststring grows exponentially.
5993     # Worse, since 9x/ME are not pre-emptively multitasking,
5994     # you end up with a "frozen" computer, even though with patience
5995     # the test eventually succeeds (with a max line length of 256k).
5996     # Instead, let's just punt: use the minimum linelength reported by
5997     # all of the supported platforms: 8192 (on NT/2K/XP).
5998     lt_cv_sys_max_cmd_len=8192;
5999     ;;
6000
6001   amigaos*)
6002     # On AmigaOS with pdksh, this test takes hours, literally.
6003     # So we just punt and use a minimum line length of 8192.
6004     lt_cv_sys_max_cmd_len=8192;
6005     ;;
6006
6007   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6008     # This has been around since 386BSD, at least.  Likely further.
6009     if test -x /sbin/sysctl; then
6010       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6011     elif test -x /usr/sbin/sysctl; then
6012       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6013     else
6014       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6015     fi
6016     # And add a safety zone
6017     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6018     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6019     ;;
6020
6021   interix*)
6022     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6023     lt_cv_sys_max_cmd_len=196608
6024     ;;
6025
6026   osf*)
6027     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6028     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6029     # nice to cause kernel panics so lets avoid the loop below.
6030     # First set a reasonable default.
6031     lt_cv_sys_max_cmd_len=16384
6032     #
6033     if test -x /sbin/sysconfig; then
6034       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6035         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6036       esac
6037     fi
6038     ;;
6039   sco3.2v5*)
6040     lt_cv_sys_max_cmd_len=102400
6041     ;;
6042   sysv5* | sco5v6* | sysv4.2uw2*)
6043     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6044     if test -n "$kargmax"; then
6045       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6046     else
6047       lt_cv_sys_max_cmd_len=32768
6048     fi
6049     ;;
6050   *)
6051     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6052     if test -n "$lt_cv_sys_max_cmd_len"; then
6053       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6054       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6055     else
6056       # Make teststring a little bigger before we do anything with it.
6057       # a 1K string should be a reasonable start.
6058       for i in 1 2 3 4 5 6 7 8 ; do
6059         teststring=$teststring$teststring
6060       done
6061       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6062       # If test is not a shell built-in, we'll probably end up computing a
6063       # maximum length that is only half of the actual maximum length, but
6064       # we can't tell.
6065       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6066                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6067               test $i != 17 # 1/2 MB should be enough
6068       do
6069         i=`expr $i + 1`
6070         teststring=$teststring$teststring
6071       done
6072       # Only check the string length outside the loop.
6073       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6074       teststring=
6075       # Add a significant safety factor because C++ compilers can tack on
6076       # massive amounts of additional arguments before passing them to the
6077       # linker.  It appears as though 1/2 is a usable value.
6078       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6079     fi
6080     ;;
6081   esac
6082
6083 fi
6084
6085 if test -n $lt_cv_sys_max_cmd_len ; then
6086   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6087 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6088 else
6089   { echo "$as_me:$LINENO: result: none" >&5
6090 echo "${ECHO_T}none" >&6; }
6091 fi
6092 max_cmd_len=$lt_cv_sys_max_cmd_len
6093
6094
6095
6096
6097
6098
6099 : ${CP="cp -f"}
6100 : ${MV="mv -f"}
6101 : ${RM="rm -f"}
6102
6103 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6104 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6105 # Try some XSI features
6106 xsi_shell=no
6107 ( _lt_dummy="a/b/c"
6108   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6109       = c,a/b,, \
6110     && eval 'test $(( 1 + 1 )) -eq 2 \
6111     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6112   && xsi_shell=yes
6113 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6114 echo "${ECHO_T}$xsi_shell" >&6; }
6115
6116
6117 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6118 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6119 lt_shell_append=no
6120 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6121     >/dev/null 2>&1 \
6122   && lt_shell_append=yes
6123 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6124 echo "${ECHO_T}$lt_shell_append" >&6; }
6125
6126
6127 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6128   lt_unset=unset
6129 else
6130   lt_unset=false
6131 fi
6132
6133
6134
6135
6136
6137 # test EBCDIC or ASCII
6138 case `echo X|tr X '\101'` in
6139  A) # ASCII based system
6140     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6141   lt_SP2NL='tr \040 \012'
6142   lt_NL2SP='tr \015\012 \040\040'
6143   ;;
6144  *) # EBCDIC based system
6145   lt_SP2NL='tr \100 \n'
6146   lt_NL2SP='tr \r\n \100\100'
6147   ;;
6148 esac
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6159 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6160 if test "${lt_cv_ld_reload_flag+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   lt_cv_ld_reload_flag='-r'
6164 fi
6165 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6166 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6167 reload_flag=$lt_cv_ld_reload_flag
6168 case $reload_flag in
6169 "" | " "*) ;;
6170 *) reload_flag=" $reload_flag" ;;
6171 esac
6172 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6173 case $host_os in
6174   darwin*)
6175     if test "$GCC" = yes; then
6176       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6177     else
6178       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179     fi
6180     ;;
6181 esac
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 if test -n "$ac_tool_prefix"; then
6192   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199   if test -n "$OBJDUMP"; then
6200   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 OBJDUMP=$ac_cv_prog_OBJDUMP
6220 if test -n "$OBJDUMP"; then
6221   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6222 echo "${ECHO_T}$OBJDUMP" >&6; }
6223 else
6224   { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_OBJDUMP"; then
6231   ac_ct_OBJDUMP=$OBJDUMP
6232   # Extract the first word of "objdump", so it can be a program name with args.
6233 set dummy objdump; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   if test -n "$ac_ct_OBJDUMP"; then
6240   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6260 if test -n "$ac_ct_OBJDUMP"; then
6261   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6262 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268   if test "x$ac_ct_OBJDUMP" = x; then
6269     OBJDUMP="false"
6270   else
6271     case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6274 whose name does not start with the host triplet.  If you think this
6275 configuration is useful to you, please write to autoconf@gnu.org." >&5
6276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet.  If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281     OBJDUMP=$ac_ct_OBJDUMP
6282   fi
6283 else
6284   OBJDUMP="$ac_cv_prog_OBJDUMP"
6285 fi
6286
6287 test -z "$OBJDUMP" && OBJDUMP=objdump
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6298 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6299 if test "${lt_cv_deplibs_check_method+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   lt_cv_file_magic_cmd='$MAGIC_CMD'
6303 lt_cv_file_magic_test_file=
6304 lt_cv_deplibs_check_method='unknown'
6305 # Need to set the preceding variable on all platforms that support
6306 # interlibrary dependencies.
6307 # 'none' -- dependencies not supported.
6308 # `unknown' -- same as none, but documents that we really don't know.
6309 # 'pass_all' -- all dependencies passed with no checks.
6310 # 'test_compile' -- check by making test program.
6311 # 'file_magic [[regex]]' -- check by looking for files in library path
6312 # which responds to the $file_magic_cmd with a given extended regex.
6313 # If you have `file' or equivalent on your system and you're not sure
6314 # whether `pass_all' will *always* work, you probably want this one.
6315
6316 case $host_os in
6317 aix[4-9]*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 beos*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324
6325 bsdi[45]*)
6326   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6327   lt_cv_file_magic_cmd='/usr/bin/file -L'
6328   lt_cv_file_magic_test_file=/shlib/libc.so
6329   ;;
6330
6331 cygwin*)
6332   # func_win32_libid is a shell function defined in ltmain.sh
6333   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6334   lt_cv_file_magic_cmd='func_win32_libid'
6335   ;;
6336
6337 mingw* | pw32*)
6338   # Base MSYS/MinGW do not provide the 'file' command needed by
6339   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6340   # unless we find 'file', for example because we are cross-compiling.
6341   if ( file / ) >/dev/null 2>&1; then
6342     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6343     lt_cv_file_magic_cmd='func_win32_libid'
6344   else
6345     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6346     lt_cv_file_magic_cmd='$OBJDUMP -f'
6347   fi
6348   ;;
6349
6350 cegcc)
6351   # use the weaker test based on 'objdump'. See mingw*.
6352   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6353   lt_cv_file_magic_cmd='$OBJDUMP -f'
6354   ;;
6355
6356 darwin* | rhapsody*)
6357   lt_cv_deplibs_check_method=pass_all
6358   ;;
6359
6360 freebsd* | dragonfly*)
6361   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6362     case $host_cpu in
6363     i*86 )
6364       # Not sure whether the presence of OpenBSD here was a mistake.
6365       # Let's accept both of them until this is cleared up.
6366       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6367       lt_cv_file_magic_cmd=/usr/bin/file
6368       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6369       ;;
6370     esac
6371   else
6372     lt_cv_deplibs_check_method=pass_all
6373   fi
6374   ;;
6375
6376 gnu*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 hpux10.20* | hpux11*)
6381   lt_cv_file_magic_cmd=/usr/bin/file
6382   case $host_cpu in
6383   ia64*)
6384     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6385     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6386     ;;
6387   hppa*64*)
6388     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]'
6389     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6390     ;;
6391   *)
6392     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6393     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6394     ;;
6395   esac
6396   ;;
6397
6398 interix[3-9]*)
6399   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6400   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6401   ;;
6402
6403 irix5* | irix6* | nonstopux*)
6404   case $LD in
6405   *-32|*"-32 ") libmagic=32-bit;;
6406   *-n32|*"-n32 ") libmagic=N32;;
6407   *-64|*"-64 ") libmagic=64-bit;;
6408   *) libmagic=never-match;;
6409   esac
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 # This must be Linux ELF.
6414 linux* | k*bsd*-gnu)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417
6418 netbsd*)
6419   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6420     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6421   else
6422     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6423   fi
6424   ;;
6425
6426 newos6*)
6427   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6428   lt_cv_file_magic_cmd=/usr/bin/file
6429   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6430   ;;
6431
6432 *nto* | *qnx*)
6433   lt_cv_deplibs_check_method=pass_all
6434   ;;
6435
6436 openbsd*)
6437   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6439   else
6440     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6441   fi
6442   ;;
6443
6444 osf3* | osf4* | osf5*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 rdos*)
6449   lt_cv_deplibs_check_method=pass_all
6450   ;;
6451
6452 solaris*)
6453   lt_cv_deplibs_check_method=pass_all
6454   ;;
6455
6456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6457   lt_cv_deplibs_check_method=pass_all
6458   ;;
6459
6460 sysv4 | sysv4.3*)
6461   case $host_vendor in
6462   motorola)
6463     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]'
6464     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6465     ;;
6466   ncr)
6467     lt_cv_deplibs_check_method=pass_all
6468     ;;
6469   sequent)
6470     lt_cv_file_magic_cmd='/bin/file'
6471     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6472     ;;
6473   sni)
6474     lt_cv_file_magic_cmd='/bin/file'
6475     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6476     lt_cv_file_magic_test_file=/lib/libc.so
6477     ;;
6478   siemens)
6479     lt_cv_deplibs_check_method=pass_all
6480     ;;
6481   pc)
6482     lt_cv_deplibs_check_method=pass_all
6483     ;;
6484   esac
6485   ;;
6486
6487 tpf*)
6488   lt_cv_deplibs_check_method=pass_all
6489   ;;
6490 esac
6491
6492 fi
6493 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6494 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6495 file_magic_cmd=$lt_cv_file_magic_cmd
6496 deplibs_check_method=$lt_cv_deplibs_check_method
6497 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510 if test -n "$ac_tool_prefix"; then
6511   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}ar; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_AR+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   if test -n "$AR"; then
6519   ac_cv_prog_AR="$AR" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526   for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_prog_AR="${ac_tool_prefix}ar"
6529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 AR=$ac_cv_prog_AR
6539 if test -n "$AR"; then
6540   { echo "$as_me:$LINENO: result: $AR" >&5
6541 echo "${ECHO_T}$AR" >&6; }
6542 else
6543   { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6545 fi
6546
6547
6548 fi
6549 if test -z "$ac_cv_prog_AR"; then
6550   ac_ct_AR=$AR
6551   # Extract the first word of "ar", so it can be a program name with args.
6552 set dummy ar; ac_word=$2
6553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6555 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   if test -n "$ac_ct_AR"; then
6559   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566   for ac_exec_ext in '' $ac_executable_extensions; do
6567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568     ac_cv_prog_ac_ct_AR="ar"
6569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573 done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6579 if test -n "$ac_ct_AR"; then
6580   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6581 echo "${ECHO_T}$ac_ct_AR" >&6; }
6582 else
6583   { echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6; }
6585 fi
6586
6587   if test "x$ac_ct_AR" = x; then
6588     AR="false"
6589   else
6590     case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet.  If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&5
6595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6596 whose name does not start with the host triplet.  If you think this
6597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     AR=$ac_ct_AR
6601   fi
6602 else
6603   AR="$ac_cv_prog_AR"
6604 fi
6605
6606 test -z "$AR" && AR=ar
6607 test -z "$AR_FLAGS" && AR_FLAGS=cru
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619 if test -n "$ac_tool_prefix"; then
6620   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}strip; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_prog_STRIP+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   if test -n "$STRIP"; then
6628   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 STRIP=$ac_cv_prog_STRIP
6648 if test -n "$STRIP"; then
6649   { echo "$as_me:$LINENO: result: $STRIP" >&5
6650 echo "${ECHO_T}$STRIP" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_STRIP"; then
6659   ac_ct_STRIP=$STRIP
6660   # Extract the first word of "strip", so it can be a program name with args.
6661 set dummy strip; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   if test -n "$ac_ct_STRIP"; then
6668   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_prog_ac_ct_STRIP="strip"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6688 if test -n "$ac_ct_STRIP"; then
6689   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6690 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6691 else
6692   { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 fi
6695
6696   if test "x$ac_ct_STRIP" = x; then
6697     STRIP=":"
6698   else
6699     case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet.  If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet.  If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     STRIP=$ac_ct_STRIP
6710   fi
6711 else
6712   STRIP="$ac_cv_prog_STRIP"
6713 fi
6714
6715 test -z "$STRIP" && STRIP=:
6716
6717
6718
6719
6720
6721
6722 if test -n "$ac_tool_prefix"; then
6723   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_RANLIB+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   if test -n "$RANLIB"; then
6731   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738   for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 RANLIB=$ac_cv_prog_RANLIB
6751 if test -n "$RANLIB"; then
6752   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6753 echo "${ECHO_T}$RANLIB" >&6; }
6754 else
6755   { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_RANLIB"; then
6762   ac_ct_RANLIB=$RANLIB
6763   # Extract the first word of "ranlib", so it can be a program name with args.
6764 set dummy ranlib; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   if test -n "$ac_ct_RANLIB"; then
6771   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778   for ac_exec_ext in '' $ac_executable_extensions; do
6779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780     ac_cv_prog_ac_ct_RANLIB="ranlib"
6781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6791 if test -n "$ac_ct_RANLIB"; then
6792   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6793 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6794 else
6795   { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6797 fi
6798
6799   if test "x$ac_ct_RANLIB" = x; then
6800     RANLIB=":"
6801   else
6802     case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet.  If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&5
6807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6808 whose name does not start with the host triplet.  If you think this
6809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812     RANLIB=$ac_ct_RANLIB
6813   fi
6814 else
6815   RANLIB="$ac_cv_prog_RANLIB"
6816 fi
6817
6818 test -z "$RANLIB" && RANLIB=:
6819
6820
6821
6822
6823
6824
6825 # Determine commands to create old-style static archives.
6826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6827 old_postinstall_cmds='chmod 644 $oldlib'
6828 old_postuninstall_cmds=
6829
6830 if test -n "$RANLIB"; then
6831   case $host_os in
6832   openbsd*)
6833     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6834     ;;
6835   *)
6836     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6837     ;;
6838   esac
6839   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6840 fi
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875 # If no C compiler was specified, use CC.
6876 LTCC=${LTCC-"$CC"}
6877
6878 # If no C compiler flags were specified, use CFLAGS.
6879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6880
6881 # Allow CC to be a program name with arguments.
6882 compiler=$CC
6883
6884
6885 # Check for command to grab the raw symbol name followed by C symbol from nm.
6886 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6887 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6888 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891
6892 # These are sane defaults that work on at least a few old systems.
6893 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6894
6895 # Character class describing NM global symbol codes.
6896 symcode='[BCDEGRST]'
6897
6898 # Regexp to match symbols that can be accessed directly from C.
6899 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6900
6901 # Define system-specific variables.
6902 case $host_os in
6903 aix*)
6904   symcode='[BCDT]'
6905   ;;
6906 cygwin* | mingw* | pw32* | cegcc*)
6907   symcode='[ABCDGISTW]'
6908   ;;
6909 hpux*)
6910   if test "$host_cpu" = ia64; then
6911     symcode='[ABCDEGRST]'
6912   fi
6913   ;;
6914 irix* | nonstopux*)
6915   symcode='[BCDEGRST]'
6916   ;;
6917 osf*)
6918   symcode='[BCDEGQRST]'
6919   ;;
6920 solaris*)
6921   symcode='[BDRT]'
6922   ;;
6923 sco3.2v5*)
6924   symcode='[DT]'
6925   ;;
6926 sysv4.2uw2*)
6927   symcode='[DT]'
6928   ;;
6929 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6930   symcode='[ABDT]'
6931   ;;
6932 sysv4)
6933   symcode='[DFNSTU]'
6934   ;;
6935 esac
6936
6937 # If we're using GNU nm, then use its standard symbol codes.
6938 case `$NM -V 2>&1` in
6939 *GNU* | *'with BFD'*)
6940   symcode='[ABCDGIRSTW]' ;;
6941 esac
6942
6943 # Transform an extracted symbol line into a proper C declaration.
6944 # Some systems (esp. on ia64) link data and code symbols differently,
6945 # so use this general approach.
6946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6947
6948 # Transform an extracted symbol line into symbol name and symbol address
6949 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6950 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'"
6951
6952 # Handle CRLF in mingw tool chain
6953 opt_cr=
6954 case $build_os in
6955 mingw*)
6956   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6957   ;;
6958 esac
6959
6960 # Try without a prefix underscore, then with it.
6961 for ac_symprfx in "" "_"; do
6962
6963   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6964   symxfrm="\\1 $ac_symprfx\\2 \\2"
6965
6966   # Write the raw and C identifiers.
6967   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6968     # Fake it for dumpbin and say T for any non-static function
6969     # and D for any global variable.
6970     # Also find C++ and __fastcall symbols from MSVC++,
6971     # which start with @ or ?.
6972     lt_cv_sys_global_symbol_pipe="$AWK '"\
6973 "     {last_section=section; section=\$ 3};"\
6974 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6975 "     \$ 0!~/External *\|/{next};"\
6976 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6977 "     {if(hide[section]) next};"\
6978 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6979 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6980 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6981 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6982 "     ' prfx=^$ac_symprfx"
6983   else
6984     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6985   fi
6986
6987   # Check to see that the pipe works correctly.
6988   pipe_works=no
6989
6990   rm -f conftest*
6991   cat > conftest.$ac_ext <<_LT_EOF
6992 #ifdef __cplusplus
6993 extern "C" {
6994 #endif
6995 char nm_test_var;
6996 void nm_test_func(void);
6997 void nm_test_func(void){}
6998 #ifdef __cplusplus
6999 }
7000 #endif
7001 int main(){nm_test_var='a';nm_test_func();return(0);}
7002 _LT_EOF
7003
7004   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005   (eval $ac_compile) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); }; then
7009     # Now try to grab the symbols.
7010     nlist=conftest.nm
7011     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7012   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } && test -s "$nlist"; then
7016       # Try sorting and uniquifying the output.
7017       if sort "$nlist" | uniq > "$nlist"T; then
7018         mv -f "$nlist"T "$nlist"
7019       else
7020         rm -f "$nlist"T
7021       fi
7022
7023       # Make sure that we snagged all the symbols we need.
7024       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7025         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7026           cat <<_LT_EOF > conftest.$ac_ext
7027 #ifdef __cplusplus
7028 extern "C" {
7029 #endif
7030
7031 _LT_EOF
7032           # Now generate the symbol file.
7033           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7034
7035           cat <<_LT_EOF >> conftest.$ac_ext
7036
7037 /* The mapping between symbol names and symbols.  */
7038 const struct {
7039   const char *name;
7040   void       *address;
7041 }
7042 lt__PROGRAM__LTX_preloaded_symbols[] =
7043 {
7044   { "@PROGRAM@", (void *) 0 },
7045 _LT_EOF
7046           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7047           cat <<\_LT_EOF >> conftest.$ac_ext
7048   {0, (void *) 0}
7049 };
7050
7051 /* This works around a problem in FreeBSD linker */
7052 #ifdef FREEBSD_WORKAROUND
7053 static const void *lt_preloaded_setup() {
7054   return lt__PROGRAM__LTX_preloaded_symbols;
7055 }
7056 #endif
7057
7058 #ifdef __cplusplus
7059 }
7060 #endif
7061 _LT_EOF
7062           # Now try linking the two files.
7063           mv conftest.$ac_objext conftstm.$ac_objext
7064           lt_save_LIBS="$LIBS"
7065           lt_save_CFLAGS="$CFLAGS"
7066           LIBS="conftstm.$ac_objext"
7067           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7068           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069   (eval $ac_link) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7073             pipe_works=yes
7074           fi
7075           LIBS="$lt_save_LIBS"
7076           CFLAGS="$lt_save_CFLAGS"
7077         else
7078           echo "cannot find nm_test_func in $nlist" >&5
7079         fi
7080       else
7081         echo "cannot find nm_test_var in $nlist" >&5
7082       fi
7083     else
7084       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7085     fi
7086   else
7087     echo "$progname: failed program was:" >&5
7088     cat conftest.$ac_ext >&5
7089   fi
7090   rm -rf conftest* conftst*
7091
7092   # Do not use the global_symbol_pipe unless it works.
7093   if test "$pipe_works" = yes; then
7094     break
7095   else
7096     lt_cv_sys_global_symbol_pipe=
7097   fi
7098 done
7099
7100 fi
7101
7102 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7103   lt_cv_sys_global_symbol_to_cdecl=
7104 fi
7105 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7106   { echo "$as_me:$LINENO: result: failed" >&5
7107 echo "${ECHO_T}failed" >&6; }
7108 else
7109   { echo "$as_me:$LINENO: result: ok" >&5
7110 echo "${ECHO_T}ok" >&6; }
7111 fi
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134 # Check whether --enable-libtool-lock was given.
7135 if test "${enable_libtool_lock+set}" = set; then
7136   enableval=$enable_libtool_lock;
7137 fi
7138
7139 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7140
7141 # Some flags need to be propagated to the compiler or linker for good
7142 # libtool support.
7143 case $host in
7144 ia64-*-hpux*)
7145   # Find out which ABI we are using.
7146   echo 'int i;' > conftest.$ac_ext
7147   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148   (eval $ac_compile) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; then
7152     case `/usr/bin/file conftest.$ac_objext` in
7153       *ELF-32*)
7154         HPUX_IA64_MODE="32"
7155         ;;
7156       *ELF-64*)
7157         HPUX_IA64_MODE="64"
7158         ;;
7159     esac
7160   fi
7161   rm -rf conftest*
7162   ;;
7163 *-*-irix6*)
7164   # Find out which ABI we are using.
7165   echo '#line 7165 "configure"' > conftest.$ac_ext
7166   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167   (eval $ac_compile) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; then
7171     if test "$lt_cv_prog_gnu_ld" = yes; then
7172       case `/usr/bin/file conftest.$ac_objext` in
7173         *32-bit*)
7174           LD="${LD-ld} -melf32bsmip"
7175           ;;
7176         *N32*)
7177           LD="${LD-ld} -melf32bmipn32"
7178           ;;
7179         *64-bit*)
7180           LD="${LD-ld} -melf64bmip"
7181         ;;
7182       esac
7183     else
7184       case `/usr/bin/file conftest.$ac_objext` in
7185         *32-bit*)
7186           LD="${LD-ld} -32"
7187           ;;
7188         *N32*)
7189           LD="${LD-ld} -n32"
7190           ;;
7191         *64-bit*)
7192           LD="${LD-ld} -64"
7193           ;;
7194       esac
7195     fi
7196   fi
7197   rm -rf conftest*
7198   ;;
7199
7200 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7201 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
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.o` in
7210       *32-bit*)
7211         case $host in
7212           x86_64-*kfreebsd*-gnu)
7213             LD="${LD-ld} -m elf_i386_fbsd"
7214             ;;
7215           x86_64-*linux*)
7216             LD="${LD-ld} -m elf_i386"
7217             ;;
7218           ppc64-*linux*|powerpc64-*linux*)
7219             LD="${LD-ld} -m elf32ppclinux"
7220             ;;
7221           s390x-*linux*)
7222             LD="${LD-ld} -m elf_s390"
7223             ;;
7224           sparc64-*linux*)
7225             LD="${LD-ld} -m elf32_sparc"
7226             ;;
7227         esac
7228         ;;
7229       *64-bit*)
7230         case $host in
7231           x86_64-*kfreebsd*-gnu)
7232             LD="${LD-ld} -m elf_x86_64_fbsd"
7233             ;;
7234           x86_64-*linux*)
7235             LD="${LD-ld} -m elf_x86_64"
7236             ;;
7237           ppc*-*linux*|powerpc*-*linux*)
7238             LD="${LD-ld} -m elf64ppc"
7239             ;;
7240           s390*-*linux*|s390*-*tpf*)
7241             LD="${LD-ld} -m elf64_s390"
7242             ;;
7243           sparc*-*linux*)
7244             LD="${LD-ld} -m elf64_sparc"
7245             ;;
7246         esac
7247         ;;
7248     esac
7249   fi
7250   rm -rf conftest*
7251   ;;
7252
7253 *-*-sco3.2v5*)
7254   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7255   SAVE_CFLAGS="$CFLAGS"
7256   CFLAGS="$CFLAGS -belf"
7257   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7258 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7259 if test "${lt_cv_cc_needs_belf+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   ac_ext=c
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268      cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h.  */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h.  */
7274
7275 int
7276 main ()
7277 {
7278
7279   ;
7280   return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (ac_try="$ac_link"
7285 case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290   (eval "$ac_link") 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } && {
7297          test -z "$ac_c_werror_flag" ||
7298          test ! -s conftest.err
7299        } && test -s conftest$ac_exeext &&
7300        $as_test_x conftest$ac_exeext; then
7301   lt_cv_cc_needs_belf=yes
7302 else
7303   echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306         lt_cv_cc_needs_belf=no
7307 fi
7308
7309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7310       conftest$ac_exeext conftest.$ac_ext
7311      ac_ext=c
7312 ac_cpp='$CPP $CPPFLAGS'
7313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316
7317 fi
7318 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7319 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7320   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7321     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7322     CFLAGS="$SAVE_CFLAGS"
7323   fi
7324   ;;
7325 sparc*-*solaris*)
7326   # Find out which ABI we are using.
7327   echo 'int i;' > conftest.$ac_ext
7328   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329   (eval $ac_compile) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); }; then
7333     case `/usr/bin/file conftest.o` in
7334     *64-bit*)
7335       case $lt_cv_prog_gnu_ld in
7336       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7337       *)
7338         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7339           LD="${LD-ld} -64"
7340         fi
7341         ;;
7342       esac
7343       ;;
7344     esac
7345   fi
7346   rm -rf conftest*
7347   ;;
7348 esac
7349
7350 need_locks="$enable_libtool_lock"
7351
7352
7353   case $host_os in
7354     rhapsody* | darwin*)
7355     if test -n "$ac_tool_prefix"; then
7356   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   if test -n "$DSYMUTIL"; then
7364   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371   for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378 done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7384 if test -n "$DSYMUTIL"; then
7385   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7386 echo "${ECHO_T}$DSYMUTIL" >&6; }
7387 else
7388   { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7390 fi
7391
7392
7393 fi
7394 if test -z "$ac_cv_prog_DSYMUTIL"; then
7395   ac_ct_DSYMUTIL=$DSYMUTIL
7396   # Extract the first word of "dsymutil", so it can be a program name with args.
7397 set dummy dsymutil; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   if test -n "$ac_ct_DSYMUTIL"; then
7404   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411   for ac_exec_ext in '' $ac_executable_extensions; do
7412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7424 if test -n "$ac_ct_DSYMUTIL"; then
7425   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7426 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7430 fi
7431
7432   if test "x$ac_ct_DSYMUTIL" = x; then
7433     DSYMUTIL=":"
7434   else
7435     case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7438 whose name does not start with the host triplet.  If you think this
7439 configuration is useful to you, please write to autoconf@gnu.org." >&5
7440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7441 whose name does not start with the host triplet.  If you think this
7442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7443 ac_tool_warned=yes ;;
7444 esac
7445     DSYMUTIL=$ac_ct_DSYMUTIL
7446   fi
7447 else
7448   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7449 fi
7450
7451     if test -n "$ac_tool_prefix"; then
7452   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7453 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   if test -n "$NMEDIT"; then
7460   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 NMEDIT=$ac_cv_prog_NMEDIT
7480 if test -n "$NMEDIT"; then
7481   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7482 echo "${ECHO_T}$NMEDIT" >&6; }
7483 else
7484   { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7487
7488
7489 fi
7490 if test -z "$ac_cv_prog_NMEDIT"; then
7491   ac_ct_NMEDIT=$NMEDIT
7492   # Extract the first word of "nmedit", so it can be a program name with args.
7493 set dummy nmedit; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   if test -n "$ac_ct_NMEDIT"; then
7500   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517 fi
7518 fi
7519 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7520 if test -n "$ac_ct_NMEDIT"; then
7521   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7522 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528   if test "x$ac_ct_NMEDIT" = x; then
7529     NMEDIT=":"
7530   else
7531     case $cross_compiling:$ac_tool_warned in
7532 yes:)
7533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7534 whose name does not start with the host triplet.  If you think this
7535 configuration is useful to you, please write to autoconf@gnu.org." >&5
7536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7537 whose name does not start with the host triplet.  If you think this
7538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7539 ac_tool_warned=yes ;;
7540 esac
7541     NMEDIT=$ac_ct_NMEDIT
7542   fi
7543 else
7544   NMEDIT="$ac_cv_prog_NMEDIT"
7545 fi
7546
7547     if test -n "$ac_tool_prefix"; then
7548   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_prog_LIPO+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   if test -n "$LIPO"; then
7556   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563   for ac_exec_ext in '' $ac_executable_extensions; do
7564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570 done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 LIPO=$ac_cv_prog_LIPO
7576 if test -n "$LIPO"; then
7577   { echo "$as_me:$LINENO: result: $LIPO" >&5
7578 echo "${ECHO_T}$LIPO" >&6; }
7579 else
7580   { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584
7585 fi
7586 if test -z "$ac_cv_prog_LIPO"; then
7587   ac_ct_LIPO=$LIPO
7588   # Extract the first word of "lipo", so it can be a program name with args.
7589 set dummy lipo; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   if test -n "$ac_ct_LIPO"; then
7596   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_prog_ac_ct_LIPO="lipo"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7616 if test -n "$ac_ct_LIPO"; then
7617   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7618 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624   if test "x$ac_ct_LIPO" = x; then
7625     LIPO=":"
7626   else
7627     case $cross_compiling:$ac_tool_warned in
7628 yes:)
7629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7630 whose name does not start with the host triplet.  If you think this
7631 configuration is useful to you, please write to autoconf@gnu.org." >&5
7632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7633 whose name does not start with the host triplet.  If you think this
7634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7635 ac_tool_warned=yes ;;
7636 esac
7637     LIPO=$ac_ct_LIPO
7638   fi
7639 else
7640   LIPO="$ac_cv_prog_LIPO"
7641 fi
7642
7643     if test -n "$ac_tool_prefix"; then
7644   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}otool; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_prog_OTOOL+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   if test -n "$OTOOL"; then
7652   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 OTOOL=$ac_cv_prog_OTOOL
7672 if test -n "$OTOOL"; then
7673   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7674 echo "${ECHO_T}$OTOOL" >&6; }
7675 else
7676   { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7678 fi
7679
7680
7681 fi
7682 if test -z "$ac_cv_prog_OTOOL"; then
7683   ac_ct_OTOOL=$OTOOL
7684   # Extract the first word of "otool", so it can be a program name with args.
7685 set dummy otool; ac_word=$2
7686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   if test -n "$ac_ct_OTOOL"; then
7692   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699   for ac_exec_ext in '' $ac_executable_extensions; do
7700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701     ac_cv_prog_ac_ct_OTOOL="otool"
7702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706 done
7707 IFS=$as_save_IFS
7708
7709 fi
7710 fi
7711 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7712 if test -n "$ac_ct_OTOOL"; then
7713   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7714 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7715 else
7716   { echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6; }
7718 fi
7719
7720   if test "x$ac_ct_OTOOL" = x; then
7721     OTOOL=":"
7722   else
7723     case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7726 whose name does not start with the host triplet.  If you think this
7727 configuration is useful to you, please write to autoconf@gnu.org." >&5
7728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7729 whose name does not start with the host triplet.  If you think this
7730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7731 ac_tool_warned=yes ;;
7732 esac
7733     OTOOL=$ac_ct_OTOOL
7734   fi
7735 else
7736   OTOOL="$ac_cv_prog_OTOOL"
7737 fi
7738
7739     if test -n "$ac_tool_prefix"; then
7740   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7741 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   if test -n "$OTOOL64"; then
7748   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   test -z "$as_dir" && as_dir=.
7755   for ac_exec_ext in '' $ac_executable_extensions; do
7756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759     break 2
7760   fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 OTOOL64=$ac_cv_prog_OTOOL64
7768 if test -n "$OTOOL64"; then
7769   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7770 echo "${ECHO_T}$OTOOL64" >&6; }
7771 else
7772   { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776
7777 fi
7778 if test -z "$ac_cv_prog_OTOOL64"; then
7779   ac_ct_OTOOL64=$OTOOL64
7780   # Extract the first word of "otool64", so it can be a program name with args.
7781 set dummy otool64; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   if test -n "$ac_ct_OTOOL64"; then
7788   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793   IFS=$as_save_IFS
7794   test -z "$as_dir" && as_dir=.
7795   for ac_exec_ext in '' $ac_executable_extensions; do
7796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797     ac_cv_prog_ac_ct_OTOOL64="otool64"
7798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799     break 2
7800   fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7808 if test -n "$ac_ct_OTOOL64"; then
7809   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7810 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7811 else
7812   { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7814 fi
7815
7816   if test "x$ac_ct_OTOOL64" = x; then
7817     OTOOL64=":"
7818   else
7819     case $cross_compiling:$ac_tool_warned in
7820 yes:)
7821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7822 whose name does not start with the host triplet.  If you think this
7823 configuration is useful to you, please write to autoconf@gnu.org." >&5
7824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7825 whose name does not start with the host triplet.  If you think this
7826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7827 ac_tool_warned=yes ;;
7828 esac
7829     OTOOL64=$ac_ct_OTOOL64
7830   fi
7831 else
7832   OTOOL64="$ac_cv_prog_OTOOL64"
7833 fi
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7862 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7863 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   lt_cv_apple_cc_single_mod=no
7867       if test -z "${LT_MULTI_MODULE}"; then
7868         # By default we will add the -single_module flag. You can override
7869         # by either setting the environment variable LT_MULTI_MODULE
7870         # non-empty at configure time, or by adding -multi_module to the
7871         # link flags.
7872         rm -rf libconftest.dylib*
7873         echo "int foo(void){return 1;}" > conftest.c
7874         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7875 -dynamiclib -Wl,-single_module conftest.c" >&5
7876         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7877           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7878         _lt_result=$?
7879         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7880           lt_cv_apple_cc_single_mod=yes
7881         else
7882           cat conftest.err >&5
7883         fi
7884         rm -rf libconftest.dylib*
7885         rm -f conftest.*
7886       fi
7887 fi
7888 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7889 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7890     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7891 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7892 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   lt_cv_ld_exported_symbols_list=no
7896       save_LDFLAGS=$LDFLAGS
7897       echo "_main" > conftest.sym
7898       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7899       cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905
7906 int
7907 main ()
7908 {
7909
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (ac_try="$ac_link"
7916 case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_link") 2>conftest.er1
7922   ac_status=$?
7923   grep -v '^ *+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } && {
7928          test -z "$ac_c_werror_flag" ||
7929          test ! -s conftest.err
7930        } && test -s conftest$ac_exeext &&
7931        $as_test_x conftest$ac_exeext; then
7932   lt_cv_ld_exported_symbols_list=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937         lt_cv_ld_exported_symbols_list=no
7938 fi
7939
7940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941       conftest$ac_exeext conftest.$ac_ext
7942         LDFLAGS="$save_LDFLAGS"
7943
7944 fi
7945 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7946 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7947     case $host_os in
7948     rhapsody* | darwin1.[012])
7949       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7950     darwin1.*)
7951       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952     darwin*) # darwin 5.x on
7953       # if running on 10.5 or later, the deployment target defaults
7954       # to the OS version, if on x86, and 10.4, the deployment
7955       # target defaults to 10.4. Don't you love it?
7956       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7957         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7958           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7959         10.[012]*)
7960           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7961         10.*)
7962           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7963       esac
7964     ;;
7965   esac
7966     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7967       _lt_dar_single_mod='$single_module'
7968     fi
7969     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7970       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7971     else
7972       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7973     fi
7974     if test "$DSYMUTIL" != ":"; then
7975       _lt_dsymutil='~$DSYMUTIL $lib || :'
7976     else
7977       _lt_dsymutil=
7978     fi
7979     ;;
7980   esac
7981
7982 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7983 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7984 if test "${ac_cv_header_stdc+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h.  */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h.  */
7993 #include <stdlib.h>
7994 #include <stdarg.h>
7995 #include <string.h>
7996 #include <float.h>
7997
7998 int
7999 main ()
8000 {
8001
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8008 case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_compile") 2>conftest.er1
8014   ac_status=$?
8015   grep -v '^ *+' conftest.er1 >conftest.err
8016   rm -f conftest.er1
8017   cat conftest.err >&5
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } && {
8020          test -z "$ac_c_werror_flag" ||
8021          test ! -s conftest.err
8022        } && test -s conftest.$ac_objext; then
8023   ac_cv_header_stdc=yes
8024 else
8025   echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028         ac_cv_header_stdc=no
8029 fi
8030
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032
8033 if test $ac_cv_header_stdc = yes; then
8034   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 #include <string.h>
8042
8043 _ACEOF
8044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045   $EGREP "memchr" >/dev/null 2>&1; then
8046   :
8047 else
8048   ac_cv_header_stdc=no
8049 fi
8050 rm -f conftest*
8051
8052 fi
8053
8054 if test $ac_cv_header_stdc = yes; then
8055   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8056   cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062 #include <stdlib.h>
8063
8064 _ACEOF
8065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8066   $EGREP "free" >/dev/null 2>&1; then
8067   :
8068 else
8069   ac_cv_header_stdc=no
8070 fi
8071 rm -f conftest*
8072
8073 fi
8074
8075 if test $ac_cv_header_stdc = yes; then
8076   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8077   if test "$cross_compiling" = yes; then
8078   :
8079 else
8080   cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086 #include <ctype.h>
8087 #include <stdlib.h>
8088 #if ((' ' & 0x0FF) == 0x020)
8089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8091 #else
8092 # define ISLOWER(c) \
8093                    (('a' <= (c) && (c) <= 'i') \
8094                      || ('j' <= (c) && (c) <= 'r') \
8095                      || ('s' <= (c) && (c) <= 'z'))
8096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8097 #endif
8098
8099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8100 int
8101 main ()
8102 {
8103   int i;
8104   for (i = 0; i < 256; i++)
8105     if (XOR (islower (i), ISLOWER (i))
8106         || toupper (i) != TOUPPER (i))
8107       return 2;
8108   return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8113 case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_link") 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   :
8132 else
8133   echo "$as_me: program exited with status $ac_status" >&5
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ( exit $ac_status )
8138 ac_cv_header_stdc=no
8139 fi
8140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8141 fi
8142
8143
8144 fi
8145 fi
8146 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8147 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8148 if test $ac_cv_header_stdc = yes; then
8149
8150 cat >>confdefs.h <<\_ACEOF
8151 #define STDC_HEADERS 1
8152 _ACEOF
8153
8154 fi
8155
8156 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8167                   inttypes.h stdint.h unistd.h
8168 do
8169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181 $ac_includes_default
8182
8183 #include <$ac_header>
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8187 case "(($ac_try" in
8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189   *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } && {
8199          test -z "$ac_c_werror_flag" ||
8200          test ! -s conftest.err
8201        } && test -s conftest.$ac_objext; then
8202   eval "$as_ac_Header=yes"
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207         eval "$as_ac_Header=no"
8208 fi
8209
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 ac_res=`eval echo '${'$as_ac_Header'}'`
8213                { echo "$as_me:$LINENO: result: $ac_res" >&5
8214 echo "${ECHO_T}$ac_res" >&6; }
8215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8216   cat >>confdefs.h <<_ACEOF
8217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8218 _ACEOF
8219
8220 fi
8221
8222 done
8223
8224
8225
8226 for ac_header in dlfcn.h
8227 do
8228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240 $ac_includes_default
8241
8242 #include <$ac_header>
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8246 case "(($ac_try" in
8247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248   *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251   (eval "$ac_compile") 2>conftest.er1
8252   ac_status=$?
8253   grep -v '^ *+' conftest.er1 >conftest.err
8254   rm -f conftest.er1
8255   cat conftest.err >&5
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } && {
8258          test -z "$ac_c_werror_flag" ||
8259          test ! -s conftest.err
8260        } && test -s conftest.$ac_objext; then
8261   eval "$as_ac_Header=yes"
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266         eval "$as_ac_Header=no"
8267 fi
8268
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 fi
8271 ac_res=`eval echo '${'$as_ac_Header'}'`
8272                { echo "$as_me:$LINENO: result: $ac_res" >&5
8273 echo "${ECHO_T}$ac_res" >&6; }
8274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8275   cat >>confdefs.h <<_ACEOF
8276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 _ACEOF
8278
8279 fi
8280
8281 done
8282
8283
8284
8285 ac_ext=cpp
8286 ac_cpp='$CXXCPP $CPPFLAGS'
8287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8290 if test -z "$CXX"; then
8291   if test -n "$CCC"; then
8292     CXX=$CCC
8293   else
8294     if test -n "$ac_tool_prefix"; then
8295   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8296   do
8297     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8301 if test "${ac_cv_prog_CXX+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   if test -n "$CXX"; then
8305   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310   IFS=$as_save_IFS
8311   test -z "$as_dir" && as_dir=.
8312   for ac_exec_ext in '' $ac_executable_extensions; do
8313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8316     break 2
8317   fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 CXX=$ac_cv_prog_CXX
8325 if test -n "$CXX"; then
8326   { echo "$as_me:$LINENO: result: $CXX" >&5
8327 echo "${ECHO_T}$CXX" >&6; }
8328 else
8329   { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8331 fi
8332
8333
8334     test -n "$CXX" && break
8335   done
8336 fi
8337 if test -z "$CXX"; then
8338   ac_ct_CXX=$CXX
8339   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8340 do
8341   # Extract the first word of "$ac_prog", so it can be a program name with args.
8342 set dummy $ac_prog; ac_word=$2
8343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8345 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   if test -n "$ac_ct_CXX"; then
8349   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354   IFS=$as_save_IFS
8355   test -z "$as_dir" && as_dir=.
8356   for ac_exec_ext in '' $ac_executable_extensions; do
8357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358     ac_cv_prog_ac_ct_CXX="$ac_prog"
8359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8360     break 2
8361   fi
8362 done
8363 done
8364 IFS=$as_save_IFS
8365
8366 fi
8367 fi
8368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8369 if test -n "$ac_ct_CXX"; then
8370   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8371 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8372 else
8373   { echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6; }
8375 fi
8376
8377
8378   test -n "$ac_ct_CXX" && break
8379 done
8380
8381   if test "x$ac_ct_CXX" = x; then
8382     CXX="g++"
8383   else
8384     case $cross_compiling:$ac_tool_warned in
8385 yes:)
8386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8387 whose name does not start with the host triplet.  If you think this
8388 configuration is useful to you, please write to autoconf@gnu.org." >&5
8389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8390 whose name does not start with the host triplet.  If you think this
8391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8392 ac_tool_warned=yes ;;
8393 esac
8394     CXX=$ac_ct_CXX
8395   fi
8396 fi
8397
8398   fi
8399 fi
8400 # Provide some information about the compiler.
8401 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8402 ac_compiler=`set X $ac_compile; echo $2`
8403 { (ac_try="$ac_compiler --version >&5"
8404 case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409   (eval "$ac_compiler --version >&5") 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }
8413 { (ac_try="$ac_compiler -v >&5"
8414 case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_compiler -v >&5") 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }
8423 { (ac_try="$ac_compiler -V >&5"
8424 case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_compiler -V >&5") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }
8433
8434 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8435 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8436 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445
8446 int
8447 main ()
8448 {
8449 #ifndef __GNUC__
8450        choke me
8451 #endif
8452
8453   ;
8454   return 0;
8455 }
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8459 case "(($ac_try" in
8460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461   *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464   (eval "$ac_compile") 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } && {
8471          test -z "$ac_cxx_werror_flag" ||
8472          test ! -s conftest.err
8473        } && test -s conftest.$ac_objext; then
8474   ac_compiler_gnu=yes
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479         ac_compiler_gnu=no
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8484
8485 fi
8486 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8487 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8488 GXX=`test $ac_compiler_gnu = yes && echo yes`
8489 ac_test_CXXFLAGS=${CXXFLAGS+set}
8490 ac_save_CXXFLAGS=$CXXFLAGS
8491 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8492 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8493 if test "${ac_cv_prog_cxx_g+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8497    ac_cxx_werror_flag=yes
8498    ac_cv_prog_cxx_g=no
8499    CXXFLAGS="-g"
8500    cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 int
8508 main ()
8509 {
8510
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8517 case "(($ac_try" in
8518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519   *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522   (eval "$ac_compile") 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } && {
8529          test -z "$ac_cxx_werror_flag" ||
8530          test ! -s conftest.err
8531        } && test -s conftest.$ac_objext; then
8532   ac_cv_prog_cxx_g=yes
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537         CXXFLAGS=""
8538       cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544
8545 int
8546 main ()
8547 {
8548
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8555 case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_compile") 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } && {
8567          test -z "$ac_cxx_werror_flag" ||
8568          test ! -s conftest.err
8569        } && test -s conftest.$ac_objext; then
8570   :
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8576          CXXFLAGS="-g"
8577          cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583
8584 int
8585 main ()
8586 {
8587
8588   ;
8589   return 0;
8590 }
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8594 case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599   (eval "$ac_compile") 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } && {
8606          test -z "$ac_cxx_werror_flag" ||
8607          test ! -s conftest.err
8608        } && test -s conftest.$ac_objext; then
8609   ac_cv_prog_cxx_g=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614
8615 fi
8616
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 fi
8619
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 fi
8622
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8625 fi
8626 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8627 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8628 if test "$ac_test_CXXFLAGS" = set; then
8629   CXXFLAGS=$ac_save_CXXFLAGS
8630 elif test $ac_cv_prog_cxx_g = yes; then
8631   if test "$GXX" = yes; then
8632     CXXFLAGS="-g -O2"
8633   else
8634     CXXFLAGS="-g"
8635   fi
8636 else
8637   if test "$GXX" = yes; then
8638     CXXFLAGS="-O2"
8639   else
8640     CXXFLAGS=
8641   fi
8642 fi
8643 ac_ext=c
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648
8649 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8650     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8651     (test "X$CXX" != "Xg++"))) ; then
8652   ac_ext=cpp
8653 ac_cpp='$CXXCPP $CPPFLAGS'
8654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8657 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8658 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8659 if test -z "$CXXCPP"; then
8660   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663       # Double quotes because CXXCPP needs to be expanded
8664     for CXXCPP in "$CXX -E" "/lib/cpp"
8665     do
8666       ac_preproc_ok=false
8667 for ac_cxx_preproc_warn_flag in '' yes
8668 do
8669   # Use a header file that comes with gcc, so configuring glibc
8670   # with a fresh cross-compiler works.
8671   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672   # <limits.h> exists even on freestanding compilers.
8673   # On the NeXT, cc -E runs the code through the compiler's parser,
8674   # not just through cpp. "Syntax error" is here to catch this case.
8675   cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681 #ifdef __STDC__
8682 # include <limits.h>
8683 #else
8684 # include <assert.h>
8685 #endif
8686                      Syntax error
8687 _ACEOF
8688 if { (ac_try="$ac_cpp conftest.$ac_ext"
8689 case "(($ac_try" in
8690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691   *) ac_try_echo=$ac_try;;
8692 esac
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8695   ac_status=$?
8696   grep -v '^ *+' conftest.er1 >conftest.err
8697   rm -f conftest.er1
8698   cat conftest.err >&5
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } >/dev/null && {
8701          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8702          test ! -s conftest.err
8703        }; then
8704   :
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709   # Broken: fails on valid input.
8710 continue
8711 fi
8712
8713 rm -f conftest.err conftest.$ac_ext
8714
8715   # OK, works on sane cases.  Now check whether nonexistent headers
8716   # can be detected and how.
8717   cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723 #include <ac_nonexistent.h>
8724 _ACEOF
8725 if { (ac_try="$ac_cpp conftest.$ac_ext"
8726 case "(($ac_try" in
8727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728   *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8732   ac_status=$?
8733   grep -v '^ *+' conftest.er1 >conftest.err
8734   rm -f conftest.er1
8735   cat conftest.err >&5
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } >/dev/null && {
8738          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8739          test ! -s conftest.err
8740        }; then
8741   # Broken: success on invalid input.
8742 continue
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747   # Passes both tests.
8748 ac_preproc_ok=:
8749 break
8750 fi
8751
8752 rm -f conftest.err conftest.$ac_ext
8753
8754 done
8755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8756 rm -f conftest.err conftest.$ac_ext
8757 if $ac_preproc_ok; then
8758   break
8759 fi
8760
8761     done
8762     ac_cv_prog_CXXCPP=$CXXCPP
8763
8764 fi
8765   CXXCPP=$ac_cv_prog_CXXCPP
8766 else
8767   ac_cv_prog_CXXCPP=$CXXCPP
8768 fi
8769 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8770 echo "${ECHO_T}$CXXCPP" >&6; }
8771 ac_preproc_ok=false
8772 for ac_cxx_preproc_warn_flag in '' yes
8773 do
8774   # Use a header file that comes with gcc, so configuring glibc
8775   # with a fresh cross-compiler works.
8776   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8777   # <limits.h> exists even on freestanding compilers.
8778   # On the NeXT, cc -E runs the code through the compiler's parser,
8779   # not just through cpp. "Syntax error" is here to catch this case.
8780   cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 #ifdef __STDC__
8787 # include <limits.h>
8788 #else
8789 # include <assert.h>
8790 #endif
8791                      Syntax error
8792 _ACEOF
8793 if { (ac_try="$ac_cpp conftest.$ac_ext"
8794 case "(($ac_try" in
8795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796   *) ac_try_echo=$ac_try;;
8797 esac
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8800   ac_status=$?
8801   grep -v '^ *+' conftest.er1 >conftest.err
8802   rm -f conftest.er1
8803   cat conftest.err >&5
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } >/dev/null && {
8806          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8807          test ! -s conftest.err
8808        }; then
8809   :
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814   # Broken: fails on valid input.
8815 continue
8816 fi
8817
8818 rm -f conftest.err conftest.$ac_ext
8819
8820   # OK, works on sane cases.  Now check whether nonexistent headers
8821   # can be detected and how.
8822   cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 #include <ac_nonexistent.h>
8829 _ACEOF
8830 if { (ac_try="$ac_cpp conftest.$ac_ext"
8831 case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8837   ac_status=$?
8838   grep -v '^ *+' conftest.er1 >conftest.err
8839   rm -f conftest.er1
8840   cat conftest.err >&5
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } >/dev/null && {
8843          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8844          test ! -s conftest.err
8845        }; then
8846   # Broken: success on invalid input.
8847 continue
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852   # Passes both tests.
8853 ac_preproc_ok=:
8854 break
8855 fi
8856
8857 rm -f conftest.err conftest.$ac_ext
8858
8859 done
8860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8861 rm -f conftest.err conftest.$ac_ext
8862 if $ac_preproc_ok; then
8863   :
8864 else
8865   _lt_caught_CXX_error=yes
8866 fi
8867
8868 ac_ext=c
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873
8874 else
8875   _lt_caught_CXX_error=yes
8876 fi
8877
8878
8879
8880
8881
8882 # Set options
8883 # Check whether --enable-shared was given.
8884 if test "${enable_shared+set}" = set; then
8885   enableval=$enable_shared; p=${PACKAGE-default}
8886     case $enableval in
8887     yes) enable_shared=yes ;;
8888     no) enable_shared=no ;;
8889     *)
8890       enable_shared=no
8891       # Look at the argument we got.  We use all the common list separators.
8892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8893       for pkg in $enableval; do
8894         IFS="$lt_save_ifs"
8895         if test "X$pkg" = "X$p"; then
8896           enable_shared=yes
8897         fi
8898       done
8899       IFS="$lt_save_ifs"
8900       ;;
8901     esac
8902 else
8903   enable_shared=yes
8904 fi
8905
8906
8907
8908
8909
8910
8911
8912 # Check whether --enable-static was given.
8913 if test "${enable_static+set}" = set; then
8914   enableval=$enable_static; p=${PACKAGE-default}
8915     case $enableval in
8916     yes) enable_static=yes ;;
8917     no) enable_static=no ;;
8918     *)
8919      enable_static=no
8920       # Look at the argument we got.  We use all the common list separators.
8921       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8922       for pkg in $enableval; do
8923         IFS="$lt_save_ifs"
8924         if test "X$pkg" = "X$p"; then
8925           enable_static=yes
8926         fi
8927       done
8928       IFS="$lt_save_ifs"
8929       ;;
8930     esac
8931 else
8932   enable_static=no
8933 fi
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944         enable_dlopen=no
8945
8946
8947   enable_win32_dll=no
8948
8949
8950
8951
8952
8953 # Check whether --with-pic was given.
8954 if test "${with_pic+set}" = set; then
8955   withval=$with_pic; pic_mode="$withval"
8956 else
8957   pic_mode=default
8958 fi
8959
8960
8961 test -z "$pic_mode" && pic_mode=default
8962
8963
8964
8965
8966
8967
8968
8969   # Check whether --enable-fast-install was given.
8970 if test "${enable_fast_install+set}" = set; then
8971   enableval=$enable_fast_install; p=${PACKAGE-default}
8972     case $enableval in
8973     yes) enable_fast_install=yes ;;
8974     no) enable_fast_install=no ;;
8975     *)
8976       enable_fast_install=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_fast_install=yes
8983         fi
8984       done
8985       IFS="$lt_save_ifs"
8986       ;;
8987     esac
8988 else
8989   enable_fast_install=yes
8990 fi
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002 # This can be used to rebuild libtool when needed
9003 LIBTOOL_DEPS="$ltmain"
9004
9005 # Always use our own libtool.
9006 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032 test -z "$LN_S" && LN_S="ln -s"
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047 if test -n "${ZSH_VERSION+set}" ; then
9048    setopt NO_GLOB_SUBST
9049 fi
9050
9051 { echo "$as_me:$LINENO: checking for objdir" >&5
9052 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9053 if test "${lt_cv_objdir+set}" = set; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   rm -f .libs 2>/dev/null
9057 mkdir .libs 2>/dev/null
9058 if test -d .libs; then
9059   lt_cv_objdir=.libs
9060 else
9061   # MS-DOS does not allow filenames that begin with a dot.
9062   lt_cv_objdir=_libs
9063 fi
9064 rmdir .libs 2>/dev/null
9065 fi
9066 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9067 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9068 objdir=$lt_cv_objdir
9069
9070
9071
9072
9073
9074 cat >>confdefs.h <<_ACEOF
9075 #define LT_OBJDIR "$lt_cv_objdir/"
9076 _ACEOF
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094 case $host_os in
9095 aix3*)
9096   # AIX sometimes has problems with the GCC collect2 program.  For some
9097   # reason, if we set the COLLECT_NAMES environment variable, the problems
9098   # vanish in a puff of smoke.
9099   if test "X${COLLECT_NAMES+set}" != Xset; then
9100     COLLECT_NAMES=
9101     export COLLECT_NAMES
9102   fi
9103   ;;
9104 esac
9105
9106 # Sed substitution that helps us do robust quoting.  It backslashifies
9107 # metacharacters that are still active within double-quoted strings.
9108 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9109
9110 # Same as above, but do not quote variable references.
9111 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9112
9113 # Sed substitution to delay expansion of an escaped shell variable in a
9114 # double_quote_subst'ed string.
9115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9116
9117 # Sed substitution to delay expansion of an escaped single quote.
9118 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9119
9120 # Sed substitution to avoid accidental globbing in evaled expressions
9121 no_glob_subst='s/\*/\\\*/g'
9122
9123 # Global variables:
9124 ofile=libtool
9125 can_build_shared=yes
9126
9127 # All known linkers require a `.a' archive for static linking (except MSVC,
9128 # which needs '.lib').
9129 libext=a
9130
9131 with_gnu_ld="$lt_cv_prog_gnu_ld"
9132
9133 old_CC="$CC"
9134 old_CFLAGS="$CFLAGS"
9135
9136 # Set sane defaults for various variables
9137 test -z "$CC" && CC=cc
9138 test -z "$LTCC" && LTCC=$CC
9139 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9140 test -z "$LD" && LD=ld
9141 test -z "$ac_objext" && ac_objext=o
9142
9143 for cc_temp in $compiler""; do
9144   case $cc_temp in
9145     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9146     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9147     \-*) ;;
9148     *) break;;
9149   esac
9150 done
9151 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9152
9153
9154 # Only perform the check for file, if the check method requires it
9155 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9156 case $deplibs_check_method in
9157 file_magic*)
9158   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9159     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9160 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9161 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   case $MAGIC_CMD in
9165 [\\/*] |  ?:[\\/]*)
9166   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9167   ;;
9168 *)
9169   lt_save_MAGIC_CMD="$MAGIC_CMD"
9170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9171   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9172   for ac_dir in $ac_dummy; do
9173     IFS="$lt_save_ifs"
9174     test -z "$ac_dir" && ac_dir=.
9175     if test -f $ac_dir/${ac_tool_prefix}file; then
9176       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9177       if test -n "$file_magic_test_file"; then
9178         case $deplibs_check_method in
9179         "file_magic "*)
9180           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9181           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9182           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9183             $EGREP "$file_magic_regex" > /dev/null; then
9184             :
9185           else
9186             cat <<_LT_EOF 1>&2
9187
9188 *** Warning: the command libtool uses to detect shared libraries,
9189 *** $file_magic_cmd, produces output that libtool cannot recognize.
9190 *** The result is that libtool may fail to recognize shared libraries
9191 *** as such.  This will affect the creation of libtool libraries that
9192 *** depend on shared libraries, but programs linked with such libtool
9193 *** libraries will work regardless of this problem.  Nevertheless, you
9194 *** may want to report the problem to your system manager and/or to
9195 *** bug-libtool@gnu.org
9196
9197 _LT_EOF
9198           fi ;;
9199         esac
9200       fi
9201       break
9202     fi
9203   done
9204   IFS="$lt_save_ifs"
9205   MAGIC_CMD="$lt_save_MAGIC_CMD"
9206   ;;
9207 esac
9208 fi
9209
9210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9211 if test -n "$MAGIC_CMD"; then
9212   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9213 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9214 else
9215   { echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6; }
9217 fi
9218
9219
9220
9221
9222
9223 if test -z "$lt_cv_path_MAGIC_CMD"; then
9224   if test -n "$ac_tool_prefix"; then
9225     { echo "$as_me:$LINENO: checking for file" >&5
9226 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   case $MAGIC_CMD in
9231 [\\/*] |  ?:[\\/]*)
9232   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9233   ;;
9234 *)
9235   lt_save_MAGIC_CMD="$MAGIC_CMD"
9236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9237   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9238   for ac_dir in $ac_dummy; do
9239     IFS="$lt_save_ifs"
9240     test -z "$ac_dir" && ac_dir=.
9241     if test -f $ac_dir/file; then
9242       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9243       if test -n "$file_magic_test_file"; then
9244         case $deplibs_check_method in
9245         "file_magic "*)
9246           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9247           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9248           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9249             $EGREP "$file_magic_regex" > /dev/null; then
9250             :
9251           else
9252             cat <<_LT_EOF 1>&2
9253
9254 *** Warning: the command libtool uses to detect shared libraries,
9255 *** $file_magic_cmd, produces output that libtool cannot recognize.
9256 *** The result is that libtool may fail to recognize shared libraries
9257 *** as such.  This will affect the creation of libtool libraries that
9258 *** depend on shared libraries, but programs linked with such libtool
9259 *** libraries will work regardless of this problem.  Nevertheless, you
9260 *** may want to report the problem to your system manager and/or to
9261 *** bug-libtool@gnu.org
9262
9263 _LT_EOF
9264           fi ;;
9265         esac
9266       fi
9267       break
9268     fi
9269   done
9270   IFS="$lt_save_ifs"
9271   MAGIC_CMD="$lt_save_MAGIC_CMD"
9272   ;;
9273 esac
9274 fi
9275
9276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9277 if test -n "$MAGIC_CMD"; then
9278   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9279 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9280 else
9281   { echo "$as_me:$LINENO: result: no" >&5
9282 echo "${ECHO_T}no" >&6; }
9283 fi
9284
9285
9286   else
9287     MAGIC_CMD=:
9288   fi
9289 fi
9290
9291   fi
9292   ;;
9293 esac
9294
9295 # Use C for the default configuration in the libtool script
9296
9297 lt_save_CC="$CC"
9298 ac_ext=c
9299 ac_cpp='$CPP $CPPFLAGS'
9300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304
9305 # Source file extension for C test sources.
9306 ac_ext=c
9307
9308 # Object file extension for compiled C test sources.
9309 objext=o
9310 objext=$objext
9311
9312 # Code to be used in simple compile tests
9313 lt_simple_compile_test_code="int some_variable = 0;"
9314
9315 # Code to be used in simple link tests
9316 lt_simple_link_test_code='int main(){return(0);}'
9317
9318
9319
9320
9321
9322
9323
9324 # If no C compiler was specified, use CC.
9325 LTCC=${LTCC-"$CC"}
9326
9327 # If no C compiler flags were specified, use CFLAGS.
9328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9329
9330 # Allow CC to be a program name with arguments.
9331 compiler=$CC
9332
9333 # Save the default compiler, since it gets overwritten when the other
9334 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9335 compiler_DEFAULT=$CC
9336
9337 # save warnings/boilerplate of simple test code
9338 ac_outfile=conftest.$ac_objext
9339 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9340 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9341 _lt_compiler_boilerplate=`cat conftest.err`
9342 $RM conftest*
9343
9344 ac_outfile=conftest.$ac_objext
9345 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9346 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9347 _lt_linker_boilerplate=`cat conftest.err`
9348 $RM -r conftest*
9349
9350
9351 ## CAVEAT EMPTOR:
9352 ## There is no encapsulation within the following macros, do not change
9353 ## the running order or otherwise move them around unless you know exactly
9354 ## what you are doing...
9355 if test -n "$compiler"; then
9356
9357 lt_prog_compiler_no_builtin_flag=
9358
9359 if test "$GCC" = yes; then
9360   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9361
9362   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9363 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9365   echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367   lt_cv_prog_compiler_rtti_exceptions=no
9368    ac_outfile=conftest.$ac_objext
9369    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9370    lt_compiler_flag="-fno-rtti -fno-exceptions"
9371    # Insert the option either (1) after the last *FLAGS variable, or
9372    # (2) before a word containing "conftest.", or (3) at the end.
9373    # Note that $ac_compile itself does not contain backslashes and begins
9374    # with a dollar sign (not a hyphen), so the echo should work correctly.
9375    # The option is referenced via a variable to avoid confusing sed.
9376    lt_compile=`echo "$ac_compile" | $SED \
9377    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9378    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9379    -e 's:$: $lt_compiler_flag:'`
9380    (eval echo "\"\$as_me:9380: $lt_compile\"" >&5)
9381    (eval "$lt_compile" 2>conftest.err)
9382    ac_status=$?
9383    cat conftest.err >&5
9384    echo "$as_me:9384: \$? = $ac_status" >&5
9385    if (exit $ac_status) && test -s "$ac_outfile"; then
9386      # The compiler can only warn and ignore the option if not recognized
9387      # So say no if there are warnings other than the usual output.
9388      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9389      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9390      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9391        lt_cv_prog_compiler_rtti_exceptions=yes
9392      fi
9393    fi
9394    $RM conftest*
9395
9396 fi
9397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9398 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9399
9400 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9401     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9402 else
9403     :
9404 fi
9405
9406 fi
9407
9408
9409
9410
9411
9412
9413   lt_prog_compiler_wl=
9414 lt_prog_compiler_pic=
9415 lt_prog_compiler_static=
9416
9417 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9419
9420   if test "$GCC" = yes; then
9421     lt_prog_compiler_wl='-Wl,'
9422     lt_prog_compiler_static='-static'
9423
9424     case $host_os in
9425       aix*)
9426       # All AIX code is PIC.
9427       if test "$host_cpu" = ia64; then
9428         # AIX 5 now supports IA64 processor
9429         lt_prog_compiler_static='-Bstatic'
9430       fi
9431       ;;
9432
9433     amigaos*)
9434       case $host_cpu in
9435       powerpc)
9436             # see comment about AmigaOS4 .so support
9437             lt_prog_compiler_pic='-fPIC'
9438         ;;
9439       m68k)
9440             # FIXME: we need at least 68020 code to build shared libraries, but
9441             # adding the `-m68020' flag to GCC prevents building anything better,
9442             # like `-m68040'.
9443             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9444         ;;
9445       esac
9446       ;;
9447
9448     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9449       # PIC is the default for these OSes.
9450       ;;
9451
9452     mingw* | cygwin* | pw32* | os2* | cegcc*)
9453       # This hack is so that the source file can tell whether it is being
9454       # built for inclusion in a dll (and should export symbols for example).
9455       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9456       # (--disable-auto-import) libraries
9457       lt_prog_compiler_pic='-DDLL_EXPORT'
9458       ;;
9459
9460     darwin* | rhapsody*)
9461       # PIC is the default on this platform
9462       # Common symbols not allowed in MH_DYLIB files
9463       lt_prog_compiler_pic='-fno-common'
9464       ;;
9465
9466     hpux*)
9467       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9468       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9469       # sets the default TLS model and affects inlining.
9470       case $host_cpu in
9471       hppa*64*)
9472         # +Z the default
9473         ;;
9474       *)
9475         lt_prog_compiler_pic='-fPIC'
9476         ;;
9477       esac
9478       ;;
9479
9480     interix[3-9]*)
9481       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9482       # Instead, we relocate shared libraries at runtime.
9483       ;;
9484
9485     msdosdjgpp*)
9486       # Just because we use GCC doesn't mean we suddenly get shared libraries
9487       # on systems that don't support them.
9488       lt_prog_compiler_can_build_shared=no
9489       enable_shared=no
9490       ;;
9491
9492     *nto* | *qnx*)
9493       # QNX uses GNU C++, but need to define -shared option too, otherwise
9494       # it will coredump.
9495       lt_prog_compiler_pic='-fPIC -shared'
9496       ;;
9497
9498     sysv4*MP*)
9499       if test -d /usr/nec; then
9500         lt_prog_compiler_pic=-Kconform_pic
9501       fi
9502       ;;
9503
9504     *)
9505       lt_prog_compiler_pic='-fPIC'
9506       ;;
9507     esac
9508   else
9509     # PORTME Check for flag to pass linker flags through the system compiler.
9510     case $host_os in
9511     aix*)
9512       lt_prog_compiler_wl='-Wl,'
9513       if test "$host_cpu" = ia64; then
9514         # AIX 5 now supports IA64 processor
9515         lt_prog_compiler_static='-Bstatic'
9516       else
9517         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9518       fi
9519       ;;
9520
9521     mingw* | cygwin* | pw32* | os2* | cegcc*)
9522       # This hack is so that the source file can tell whether it is being
9523       # built for inclusion in a dll (and should export symbols for example).
9524       lt_prog_compiler_pic='-DDLL_EXPORT'
9525       ;;
9526
9527     hpux9* | hpux10* | hpux11*)
9528       lt_prog_compiler_wl='-Wl,'
9529       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9530       # not for PA HP-UX.
9531       case $host_cpu in
9532       hppa*64*|ia64*)
9533         # +Z the default
9534         ;;
9535       *)
9536         lt_prog_compiler_pic='+Z'
9537         ;;
9538       esac
9539       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9540       lt_prog_compiler_static='${wl}-a ${wl}archive'
9541       ;;
9542
9543     irix5* | irix6* | nonstopux*)
9544       lt_prog_compiler_wl='-Wl,'
9545       # PIC (with -KPIC) is the default.
9546       lt_prog_compiler_static='-non_shared'
9547       ;;
9548
9549     linux* | k*bsd*-gnu)
9550       case $cc_basename in
9551       # old Intel for x86_64 which still supported -KPIC.
9552       ecc*)
9553         lt_prog_compiler_wl='-Wl,'
9554         lt_prog_compiler_pic='-KPIC'
9555         lt_prog_compiler_static='-static'
9556         ;;
9557       # icc used to be incompatible with GCC.
9558       # ICC 10 doesn't accept -KPIC any more.
9559       icc* | ifort*)
9560         lt_prog_compiler_wl='-Wl,'
9561         lt_prog_compiler_pic='-fPIC'
9562         lt_prog_compiler_static='-static'
9563         ;;
9564       # Lahey Fortran 8.1.
9565       lf95*)
9566         lt_prog_compiler_wl='-Wl,'
9567         lt_prog_compiler_pic='--shared'
9568         lt_prog_compiler_static='--static'
9569         ;;
9570       pgcc* | pgf77* | pgf90* | pgf95*)
9571         # Portland Group compilers (*not* the Pentium gcc compiler,
9572         # which looks to be a dead project)
9573         lt_prog_compiler_wl='-Wl,'
9574         lt_prog_compiler_pic='-fpic'
9575         lt_prog_compiler_static='-Bstatic'
9576         ;;
9577       ccc*)
9578         lt_prog_compiler_wl='-Wl,'
9579         # All Alpha code is PIC.
9580         lt_prog_compiler_static='-non_shared'
9581         ;;
9582       xl*)
9583         # IBM XL C 8.0/Fortran 10.1 on PPC
9584         lt_prog_compiler_wl='-Wl,'
9585         lt_prog_compiler_pic='-qpic'
9586         lt_prog_compiler_static='-qstaticlink'
9587         ;;
9588       *)
9589         case `$CC -V 2>&1 | sed 5q` in
9590         *Sun\ C*)
9591           # Sun C 5.9
9592           lt_prog_compiler_pic='-KPIC'
9593           lt_prog_compiler_static='-Bstatic'
9594           lt_prog_compiler_wl='-Wl,'
9595           ;;
9596         *Sun\ F*)
9597           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9598           lt_prog_compiler_pic='-KPIC'
9599           lt_prog_compiler_static='-Bstatic'
9600           lt_prog_compiler_wl=''
9601           ;;
9602         esac
9603         ;;
9604       esac
9605       ;;
9606
9607     newsos6)
9608       lt_prog_compiler_pic='-KPIC'
9609       lt_prog_compiler_static='-Bstatic'
9610       ;;
9611
9612     *nto* | *qnx*)
9613       # QNX uses GNU C++, but need to define -shared option too, otherwise
9614       # it will coredump.
9615       lt_prog_compiler_pic='-fPIC -shared'
9616       ;;
9617
9618     osf3* | osf4* | osf5*)
9619       lt_prog_compiler_wl='-Wl,'
9620       # All OSF/1 code is PIC.
9621       lt_prog_compiler_static='-non_shared'
9622       ;;
9623
9624     rdos*)
9625       lt_prog_compiler_static='-non_shared'
9626       ;;
9627
9628     solaris*)
9629       lt_prog_compiler_pic='-KPIC'
9630       lt_prog_compiler_static='-Bstatic'
9631       case $cc_basename in
9632       f77* | f90* | f95*)
9633         lt_prog_compiler_wl='-Qoption ld ';;
9634       *)
9635         lt_prog_compiler_wl='-Wl,';;
9636       esac
9637       ;;
9638
9639     sunos4*)
9640       lt_prog_compiler_wl='-Qoption ld '
9641       lt_prog_compiler_pic='-PIC'
9642       lt_prog_compiler_static='-Bstatic'
9643       ;;
9644
9645     sysv4 | sysv4.2uw2* | sysv4.3*)
9646       lt_prog_compiler_wl='-Wl,'
9647       lt_prog_compiler_pic='-KPIC'
9648       lt_prog_compiler_static='-Bstatic'
9649       ;;
9650
9651     sysv4*MP*)
9652       if test -d /usr/nec ;then
9653         lt_prog_compiler_pic='-Kconform_pic'
9654         lt_prog_compiler_static='-Bstatic'
9655       fi
9656       ;;
9657
9658     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9659       lt_prog_compiler_wl='-Wl,'
9660       lt_prog_compiler_pic='-KPIC'
9661       lt_prog_compiler_static='-Bstatic'
9662       ;;
9663
9664     unicos*)
9665       lt_prog_compiler_wl='-Wl,'
9666       lt_prog_compiler_can_build_shared=no
9667       ;;
9668
9669     uts4*)
9670       lt_prog_compiler_pic='-pic'
9671       lt_prog_compiler_static='-Bstatic'
9672       ;;
9673
9674     *)
9675       lt_prog_compiler_can_build_shared=no
9676       ;;
9677     esac
9678   fi
9679
9680 case $host_os in
9681   # For platforms which do not support PIC, -DPIC is meaningless:
9682   *djgpp*)
9683     lt_prog_compiler_pic=
9684     ;;
9685   *)
9686     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9687     ;;
9688 esac
9689 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9690 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9691
9692
9693
9694
9695
9696
9697 #
9698 # Check to make sure the PIC flag actually works.
9699 #
9700 if test -n "$lt_prog_compiler_pic"; then
9701   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9702 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9703 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   lt_cv_prog_compiler_pic_works=no
9707    ac_outfile=conftest.$ac_objext
9708    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9709    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9710    # Insert the option either (1) after the last *FLAGS variable, or
9711    # (2) before a word containing "conftest.", or (3) at the end.
9712    # Note that $ac_compile itself does not contain backslashes and begins
9713    # with a dollar sign (not a hyphen), so the echo should work correctly.
9714    # The option is referenced via a variable to avoid confusing sed.
9715    lt_compile=`echo "$ac_compile" | $SED \
9716    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9718    -e 's:$: $lt_compiler_flag:'`
9719    (eval echo "\"\$as_me:9719: $lt_compile\"" >&5)
9720    (eval "$lt_compile" 2>conftest.err)
9721    ac_status=$?
9722    cat conftest.err >&5
9723    echo "$as_me:9723: \$? = $ac_status" >&5
9724    if (exit $ac_status) && test -s "$ac_outfile"; then
9725      # The compiler can only warn and ignore the option if not recognized
9726      # So say no if there are warnings other than the usual output.
9727      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9728      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9730        lt_cv_prog_compiler_pic_works=yes
9731      fi
9732    fi
9733    $RM conftest*
9734
9735 fi
9736 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9737 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9738
9739 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9740     case $lt_prog_compiler_pic in
9741      "" | " "*) ;;
9742      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9743      esac
9744 else
9745     lt_prog_compiler_pic=
9746      lt_prog_compiler_can_build_shared=no
9747 fi
9748
9749 fi
9750
9751
9752
9753
9754
9755
9756 #
9757 # Check to make sure the static flag actually works.
9758 #
9759 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9760 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9761 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9762 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   lt_cv_prog_compiler_static_works=no
9766    save_LDFLAGS="$LDFLAGS"
9767    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9768    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9769    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9770      # The linker can only warn and ignore the option if not recognized
9771      # So say no if there are warnings
9772      if test -s conftest.err; then
9773        # Append any errors to the config.log.
9774        cat conftest.err 1>&5
9775        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9776        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777        if diff conftest.exp conftest.er2 >/dev/null; then
9778          lt_cv_prog_compiler_static_works=yes
9779        fi
9780      else
9781        lt_cv_prog_compiler_static_works=yes
9782      fi
9783    fi
9784    $RM -r conftest*
9785    LDFLAGS="$save_LDFLAGS"
9786
9787 fi
9788 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9789 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9790
9791 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9792     :
9793 else
9794     lt_prog_compiler_static=
9795 fi
9796
9797
9798
9799
9800
9801
9802
9803   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9805 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808   lt_cv_prog_compiler_c_o=no
9809    $RM -r conftest 2>/dev/null
9810    mkdir conftest
9811    cd conftest
9812    mkdir out
9813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9814
9815    lt_compiler_flag="-o out/conftest2.$ac_objext"
9816    # Insert the option either (1) after the last *FLAGS variable, or
9817    # (2) before a word containing "conftest.", or (3) at the end.
9818    # Note that $ac_compile itself does not contain backslashes and begins
9819    # with a dollar sign (not a hyphen), so the echo should work correctly.
9820    lt_compile=`echo "$ac_compile" | $SED \
9821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9823    -e 's:$: $lt_compiler_flag:'`
9824    (eval echo "\"\$as_me:9824: $lt_compile\"" >&5)
9825    (eval "$lt_compile" 2>out/conftest.err)
9826    ac_status=$?
9827    cat out/conftest.err >&5
9828    echo "$as_me:9828: \$? = $ac_status" >&5
9829    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9830    then
9831      # The compiler can only warn and ignore the option if not recognized
9832      # So say no if there are warnings
9833      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9834      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9835      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9836        lt_cv_prog_compiler_c_o=yes
9837      fi
9838    fi
9839    chmod u+w . 2>&5
9840    $RM conftest*
9841    # SGI C++ compiler will create directory out/ii_files/ for
9842    # template instantiation
9843    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9844    $RM out/* && rmdir out
9845    cd ..
9846    $RM -r conftest
9847    $RM conftest*
9848
9849 fi
9850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9852
9853
9854
9855
9856
9857
9858   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9860 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   lt_cv_prog_compiler_c_o=no
9864    $RM -r conftest 2>/dev/null
9865    mkdir conftest
9866    cd conftest
9867    mkdir out
9868    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9869
9870    lt_compiler_flag="-o out/conftest2.$ac_objext"
9871    # Insert the option either (1) after the last *FLAGS variable, or
9872    # (2) before a word containing "conftest.", or (3) at the end.
9873    # Note that $ac_compile itself does not contain backslashes and begins
9874    # with a dollar sign (not a hyphen), so the echo should work correctly.
9875    lt_compile=`echo "$ac_compile" | $SED \
9876    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9878    -e 's:$: $lt_compiler_flag:'`
9879    (eval echo "\"\$as_me:9879: $lt_compile\"" >&5)
9880    (eval "$lt_compile" 2>out/conftest.err)
9881    ac_status=$?
9882    cat out/conftest.err >&5
9883    echo "$as_me:9883: \$? = $ac_status" >&5
9884    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9885    then
9886      # The compiler can only warn and ignore the option if not recognized
9887      # So say no if there are warnings
9888      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9889      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9890      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9891        lt_cv_prog_compiler_c_o=yes
9892      fi
9893    fi
9894    chmod u+w . 2>&5
9895    $RM conftest*
9896    # SGI C++ compiler will create directory out/ii_files/ for
9897    # template instantiation
9898    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9899    $RM out/* && rmdir out
9900    cd ..
9901    $RM -r conftest
9902    $RM conftest*
9903
9904 fi
9905 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9906 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9907
9908
9909
9910
9911 hard_links="nottested"
9912 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9913   # do not overwrite the value of need_locks provided by the user
9914   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9915 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9916   hard_links=yes
9917   $RM conftest*
9918   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9919   touch conftest.a
9920   ln conftest.a conftest.b 2>&5 || hard_links=no
9921   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9922   { echo "$as_me:$LINENO: result: $hard_links" >&5
9923 echo "${ECHO_T}$hard_links" >&6; }
9924   if test "$hard_links" = no; then
9925     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9926 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9927     need_locks=warn
9928   fi
9929 else
9930   need_locks=no
9931 fi
9932
9933
9934
9935
9936
9937
9938   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9940
9941   runpath_var=
9942   allow_undefined_flag=
9943   always_export_symbols=no
9944   archive_cmds=
9945   archive_expsym_cmds=
9946   compiler_needs_object=no
9947   enable_shared_with_static_runtimes=no
9948   export_dynamic_flag_spec=
9949   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9950   hardcode_automatic=no
9951   hardcode_direct=no
9952   hardcode_direct_absolute=no
9953   hardcode_libdir_flag_spec=
9954   hardcode_libdir_flag_spec_ld=
9955   hardcode_libdir_separator=
9956   hardcode_minus_L=no
9957   hardcode_shlibpath_var=unsupported
9958   inherit_rpath=no
9959   link_all_deplibs=unknown
9960   module_cmds=
9961   module_expsym_cmds=
9962   old_archive_from_new_cmds=
9963   old_archive_from_expsyms_cmds=
9964   thread_safe_flag_spec=
9965   whole_archive_flag_spec=
9966   # include_expsyms should be a list of space-separated symbols to be *always*
9967   # included in the symbol list
9968   include_expsyms=
9969   # exclude_expsyms can be an extended regexp of symbols to exclude
9970   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9971   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9972   # as well as any symbol that contains `d'.
9973   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9974   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9975   # platforms (ab)use it in PIC code, but their linkers get confused if
9976   # the symbol is explicitly referenced.  Since portable code cannot
9977   # rely on this symbol name, it's probably fine to never include it in
9978   # preloaded symbol tables.
9979   # Exclude shared library initialization/finalization symbols.
9980   extract_expsyms_cmds=
9981
9982   case $host_os in
9983   cygwin* | mingw* | pw32* | cegcc*)
9984     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9985     # When not using gcc, we currently assume that we are using
9986     # Microsoft Visual C++.
9987     if test "$GCC" != yes; then
9988       with_gnu_ld=no
9989     fi
9990     ;;
9991   interix*)
9992     # we just hope/assume this is gcc and not c89 (= MSVC++)
9993     with_gnu_ld=yes
9994     ;;
9995   openbsd*)
9996     with_gnu_ld=no
9997     ;;
9998   esac
9999
10000   ld_shlibs=yes
10001   if test "$with_gnu_ld" = yes; then
10002     # If archive_cmds runs LD, not CC, wlarc should be empty
10003     wlarc='${wl}'
10004
10005     # Set some defaults for GNU ld with shared library support. These
10006     # are reset later if shared libraries are not supported. Putting them
10007     # here allows them to be overridden if necessary.
10008     runpath_var=LD_RUN_PATH
10009     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010     export_dynamic_flag_spec='${wl}--export-dynamic'
10011     # ancient GNU ld didn't support --whole-archive et. al.
10012     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10013       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10014     else
10015       whole_archive_flag_spec=
10016     fi
10017     supports_anon_versioning=no
10018     case `$LD -v 2>&1` in
10019       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10020       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10021       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10022       *\ 2.11.*) ;; # other 2.11 versions
10023       *) supports_anon_versioning=yes ;;
10024     esac
10025
10026     # See if GNU ld supports shared libraries.
10027     case $host_os in
10028     aix[3-9]*)
10029       # On AIX/PPC, the GNU linker is very broken
10030       if test "$host_cpu" != ia64; then
10031         ld_shlibs=no
10032         cat <<_LT_EOF 1>&2
10033
10034 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10035 *** to be unable to reliably create shared libraries on AIX.
10036 *** Therefore, libtool is disabling shared libraries support.  If you
10037 *** really care for shared libraries, you may want to modify your PATH
10038 *** so that a non-GNU linker is found, and then restart.
10039
10040 _LT_EOF
10041       fi
10042       ;;
10043
10044     amigaos*)
10045       case $host_cpu in
10046       powerpc)
10047             # see comment about AmigaOS4 .so support
10048             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10049             archive_expsym_cmds=''
10050         ;;
10051       m68k)
10052             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)'
10053             hardcode_libdir_flag_spec='-L$libdir'
10054             hardcode_minus_L=yes
10055         ;;
10056       esac
10057       ;;
10058
10059     beos*)
10060       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10061         allow_undefined_flag=unsupported
10062         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10063         # support --undefined.  This deserves some investigation.  FIXME
10064         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10065       else
10066         ld_shlibs=no
10067       fi
10068       ;;
10069
10070     cygwin* | mingw* | pw32* | cegcc*)
10071       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10072       # as there is no search path for DLLs.
10073       hardcode_libdir_flag_spec='-L$libdir'
10074       allow_undefined_flag=unsupported
10075       always_export_symbols=no
10076       enable_shared_with_static_runtimes=yes
10077       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10078
10079       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10080         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10081         # If the export-symbols file already is a .def file (1st line
10082         # is EXPORTS), use it as is; otherwise, prepend...
10083         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10084           cp $export_symbols $output_objdir/$soname.def;
10085         else
10086           echo EXPORTS > $output_objdir/$soname.def;
10087           cat $export_symbols >> $output_objdir/$soname.def;
10088         fi~
10089         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10090       else
10091         ld_shlibs=no
10092       fi
10093       ;;
10094
10095     interix[3-9]*)
10096       hardcode_direct=no
10097       hardcode_shlibpath_var=no
10098       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10099       export_dynamic_flag_spec='${wl}-E'
10100       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10101       # Instead, shared libraries are loaded at an image base (0x10000000 by
10102       # default) and relocated if they conflict, which is a slow very memory
10103       # consuming and fragmenting process.  To avoid this, we pick a random,
10104       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10105       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10106       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10107       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'
10108       ;;
10109
10110     gnu* | linux* | tpf* | k*bsd*-gnu)
10111       tmp_diet=no
10112       if test "$host_os" = linux-dietlibc; then
10113         case $cc_basename in
10114           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10115         esac
10116       fi
10117       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10118          && test "$tmp_diet" = no
10119       then
10120         tmp_addflag=
10121         tmp_sharedflag='-shared'
10122         case $cc_basename,$host_cpu in
10123         pgcc*)                          # Portland Group C compiler
10124           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'
10125           tmp_addflag=' $pic_flag'
10126           ;;
10127         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10128           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'
10129           tmp_addflag=' $pic_flag -Mnomain' ;;
10130         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10131           tmp_addflag=' -i_dynamic' ;;
10132         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10133           tmp_addflag=' -i_dynamic -nofor_main' ;;
10134         ifc* | ifort*)                  # Intel Fortran compiler
10135           tmp_addflag=' -nofor_main' ;;
10136         lf95*)                          # Lahey Fortran 8.1
10137           whole_archive_flag_spec=
10138           tmp_sharedflag='--shared' ;;
10139         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10140           tmp_sharedflag='-qmkshrobj'
10141           tmp_addflag= ;;
10142         esac
10143         case `$CC -V 2>&1 | sed 5q` in
10144         *Sun\ C*)                       # Sun C 5.9
10145           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'
10146           compiler_needs_object=yes
10147           tmp_sharedflag='-G' ;;
10148         *Sun\ F*)                       # Sun Fortran 8.3
10149           tmp_sharedflag='-G' ;;
10150         esac
10151         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152
10153         if test "x$supports_anon_versioning" = xyes; then
10154           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10155             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10156             echo "local: *; };" >> $output_objdir/$libname.ver~
10157             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10158         fi
10159
10160         case $cc_basename in
10161         xlf*)
10162           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10163           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10164           hardcode_libdir_flag_spec=
10165           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10166           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10167           if test "x$supports_anon_versioning" = xyes; then
10168             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10169               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10170               echo "local: *; };" >> $output_objdir/$libname.ver~
10171               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10172           fi
10173           ;;
10174         esac
10175       else
10176         ld_shlibs=no
10177       fi
10178       ;;
10179
10180     netbsd*)
10181       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10182         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10183         wlarc=
10184       else
10185         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10187       fi
10188       ;;
10189
10190     solaris*)
10191       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10192         ld_shlibs=no
10193         cat <<_LT_EOF 1>&2
10194
10195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10196 *** create shared libraries on Solaris systems.  Therefore, libtool
10197 *** is disabling shared libraries support.  We urge you to upgrade GNU
10198 *** binutils to release 2.9.1 or newer.  Another option is to modify
10199 *** your PATH or compiler configuration so that the native linker is
10200 *** used, and then restart.
10201
10202 _LT_EOF
10203       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10206       else
10207         ld_shlibs=no
10208       fi
10209       ;;
10210
10211     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10212       case `$LD -v 2>&1` in
10213         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10214         ld_shlibs=no
10215         cat <<_LT_EOF 1>&2
10216
10217 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10218 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10219 *** is disabling shared libraries support.  We urge you to upgrade GNU
10220 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10221 *** your PATH or compiler configuration so that the native linker is
10222 *** used, and then restart.
10223
10224 _LT_EOF
10225         ;;
10226         *)
10227           # For security reasons, it is highly recommended that you always
10228           # use absolute paths for naming shared libraries, and exclude the
10229           # DT_RUNPATH tag from executables and libraries.  But doing so
10230           # requires that you compile everything twice, which is a pain.
10231           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10232             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10233             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10235           else
10236             ld_shlibs=no
10237           fi
10238         ;;
10239       esac
10240       ;;
10241
10242     sunos4*)
10243       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10244       wlarc=
10245       hardcode_direct=yes
10246       hardcode_shlibpath_var=no
10247       ;;
10248
10249     *)
10250       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10252         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10253       else
10254         ld_shlibs=no
10255       fi
10256       ;;
10257     esac
10258
10259     if test "$ld_shlibs" = no; then
10260       runpath_var=
10261       hardcode_libdir_flag_spec=
10262       export_dynamic_flag_spec=
10263       whole_archive_flag_spec=
10264     fi
10265   else
10266     # PORTME fill in a description of your system's linker (not GNU ld)
10267     case $host_os in
10268     aix3*)
10269       allow_undefined_flag=unsupported
10270       always_export_symbols=yes
10271       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'
10272       # Note: this linker hardcodes the directories in LIBPATH if there
10273       # are no directories specified by -L.
10274       hardcode_minus_L=yes
10275       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10276         # Neither direct hardcoding nor static linking is supported with a
10277         # broken collect2.
10278         hardcode_direct=unsupported
10279       fi
10280       ;;
10281
10282     aix[4-9]*)
10283       if test "$host_cpu" = ia64; then
10284         # On IA64, the linker does run time linking by default, so we don't
10285         # have to do anything special.
10286         aix_use_runtimelinking=no
10287         exp_sym_flag='-Bexport'
10288         no_entry_flag=""
10289       else
10290         # If we're using GNU nm, then we don't want the "-C" option.
10291         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10292         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10293           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'
10294         else
10295           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'
10296         fi
10297         aix_use_runtimelinking=no
10298
10299         # Test if we are trying to use run time linking or normal
10300         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10301         # need to do runtime linking.
10302         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10303           for ld_flag in $LDFLAGS; do
10304           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10305             aix_use_runtimelinking=yes
10306             break
10307           fi
10308           done
10309           ;;
10310         esac
10311
10312         exp_sym_flag='-bexport'
10313         no_entry_flag='-bnoentry'
10314       fi
10315
10316       # When large executables or shared objects are built, AIX ld can
10317       # have problems creating the table of contents.  If linking a library
10318       # or program results in "error TOC overflow" add -mminimal-toc to
10319       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10320       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10321
10322       archive_cmds=''
10323       hardcode_direct=yes
10324       hardcode_direct_absolute=yes
10325       hardcode_libdir_separator=':'
10326       link_all_deplibs=yes
10327       file_list_spec='${wl}-f,'
10328
10329       if test "$GCC" = yes; then
10330         case $host_os in aix4.[012]|aix4.[012].*)
10331         # We only want to do this on AIX 4.2 and lower, the check
10332         # below for broken collect2 doesn't work under 4.3+
10333           collect2name=`${CC} -print-prog-name=collect2`
10334           if test -f "$collect2name" &&
10335            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10336           then
10337           # We have reworked collect2
10338           :
10339           else
10340           # We have old collect2
10341           hardcode_direct=unsupported
10342           # It fails to find uninstalled libraries when the uninstalled
10343           # path is not listed in the libpath.  Setting hardcode_minus_L
10344           # to unsupported forces relinking
10345           hardcode_minus_L=yes
10346           hardcode_libdir_flag_spec='-L$libdir'
10347           hardcode_libdir_separator=
10348           fi
10349           ;;
10350         esac
10351         shared_flag='-shared'
10352         if test "$aix_use_runtimelinking" = yes; then
10353           shared_flag="$shared_flag "'${wl}-G'
10354         fi
10355       else
10356         # not using gcc
10357         if test "$host_cpu" = ia64; then
10358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10359         # chokes on -Wl,-G. The following line is correct:
10360           shared_flag='-G'
10361         else
10362           if test "$aix_use_runtimelinking" = yes; then
10363             shared_flag='${wl}-G'
10364           else
10365             shared_flag='${wl}-bM:SRE'
10366           fi
10367         fi
10368       fi
10369
10370       export_dynamic_flag_spec='${wl}-bexpall'
10371       # It seems that -bexpall does not export symbols beginning with
10372       # underscore (_), so it is better to generate a list of symbols to export.
10373       always_export_symbols=yes
10374       if test "$aix_use_runtimelinking" = yes; then
10375         # Warning - without using the other runtime loading flags (-brtl),
10376         # -berok will link without error, but may produce a broken library.
10377         allow_undefined_flag='-berok'
10378         # Determine the default libpath from the value encoded in an
10379         # empty executable.
10380         cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386
10387 int
10388 main ()
10389 {
10390
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399   *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402   (eval "$ac_link") 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } && {
10409          test -z "$ac_c_werror_flag" ||
10410          test ! -s conftest.err
10411        } && test -s conftest$ac_exeext &&
10412        $as_test_x conftest$ac_exeext; then
10413
10414 lt_aix_libpath_sed='
10415     /Import File Strings/,/^$/ {
10416         /^0/ {
10417             s/^0  *\(.*\)$/\1/
10418             p
10419         }
10420     }'
10421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422 # Check for a 64-bit object if we didn't find anything.
10423 if test -z "$aix_libpath"; then
10424   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10425 fi
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10434       conftest$ac_exeext conftest.$ac_ext
10435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10436
10437         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10438         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"
10439       else
10440         if test "$host_cpu" = ia64; then
10441           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10442           allow_undefined_flag="-z nodefs"
10443           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"
10444         else
10445          # Determine the default libpath from the value encoded in an
10446          # empty executable.
10447          cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h.  */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h.  */
10453
10454 int
10455 main ()
10456 {
10457
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469   (eval "$ac_link") 2>conftest.er1
10470   ac_status=$?
10471   grep -v '^ *+' conftest.er1 >conftest.err
10472   rm -f conftest.er1
10473   cat conftest.err >&5
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } && {
10476          test -z "$ac_c_werror_flag" ||
10477          test ! -s conftest.err
10478        } && test -s conftest$ac_exeext &&
10479        $as_test_x conftest$ac_exeext; then
10480
10481 lt_aix_libpath_sed='
10482     /Import File Strings/,/^$/ {
10483         /^0/ {
10484             s/^0  *\(.*\)$/\1/
10485             p
10486         }
10487     }'
10488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10489 # Check for a 64-bit object if we didn't find anything.
10490 if test -z "$aix_libpath"; then
10491   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10492 fi
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497
10498 fi
10499
10500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10501       conftest$ac_exeext conftest.$ac_ext
10502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10503
10504          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10505           # Warning - without using the other run time loading flags,
10506           # -berok will link without error, but may produce a broken library.
10507           no_undefined_flag=' ${wl}-bernotok'
10508           allow_undefined_flag=' ${wl}-berok'
10509           # Exported symbols can be pulled into shared objects from archives
10510           whole_archive_flag_spec='$convenience'
10511           archive_cmds_need_lc=yes
10512           # This is similar to how AIX traditionally builds its shared libraries.
10513           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'
10514         fi
10515       fi
10516       ;;
10517
10518     amigaos*)
10519       case $host_cpu in
10520       powerpc)
10521             # see comment about AmigaOS4 .so support
10522             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10523             archive_expsym_cmds=''
10524         ;;
10525       m68k)
10526             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)'
10527             hardcode_libdir_flag_spec='-L$libdir'
10528             hardcode_minus_L=yes
10529         ;;
10530       esac
10531       ;;
10532
10533     bsdi[45]*)
10534       export_dynamic_flag_spec=-rdynamic
10535       ;;
10536
10537     cygwin* | mingw* | pw32* | cegcc*)
10538       # When not using gcc, we currently assume that we are using
10539       # Microsoft Visual C++.
10540       # hardcode_libdir_flag_spec is actually meaningless, as there is
10541       # no search path for DLLs.
10542       hardcode_libdir_flag_spec=' '
10543       allow_undefined_flag=unsupported
10544       # Tell ltmain to make .lib files, not .a files.
10545       libext=lib
10546       # Tell ltmain to make .dll files, not .so files.
10547       shrext_cmds=".dll"
10548       # FIXME: Setting linknames here is a bad hack.
10549       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10550       # The linker will automatically build a .lib file if we build a DLL.
10551       old_archive_from_new_cmds='true'
10552       # FIXME: Should let the user specify the lib program.
10553       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10554       fix_srcfile_path='`cygpath -w "$srcfile"`'
10555       enable_shared_with_static_runtimes=yes
10556       ;;
10557
10558     darwin* | rhapsody*)
10559
10560
10561   archive_cmds_need_lc=no
10562   hardcode_direct=no
10563   hardcode_automatic=yes
10564   hardcode_shlibpath_var=unsupported
10565   whole_archive_flag_spec=''
10566   link_all_deplibs=yes
10567   allow_undefined_flag="$_lt_dar_allow_undefined"
10568   case $cc_basename in
10569      ifort*) _lt_dar_can_shared=yes ;;
10570      *) _lt_dar_can_shared=$GCC ;;
10571   esac
10572   if test "$_lt_dar_can_shared" = "yes"; then
10573     output_verbose_link_cmd=echo
10574     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10575     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10576     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}"
10577     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}"
10578
10579   else
10580   ld_shlibs=no
10581   fi
10582
10583       ;;
10584
10585     dgux*)
10586       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587       hardcode_libdir_flag_spec='-L$libdir'
10588       hardcode_shlibpath_var=no
10589       ;;
10590
10591     freebsd1*)
10592       ld_shlibs=no
10593       ;;
10594
10595     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10596     # support.  Future versions do this automatically, but an explicit c++rt0.o
10597     # does not break anything, and helps significantly (at the cost of a little
10598     # extra space).
10599     freebsd2.2*)
10600       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10601       hardcode_libdir_flag_spec='-R$libdir'
10602       hardcode_direct=yes
10603       hardcode_shlibpath_var=no
10604       ;;
10605
10606     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10607     freebsd2*)
10608       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609       hardcode_direct=yes
10610       hardcode_minus_L=yes
10611       hardcode_shlibpath_var=no
10612       ;;
10613
10614     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10615     freebsd* | dragonfly*)
10616       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10617       hardcode_libdir_flag_spec='-R$libdir'
10618       hardcode_direct=yes
10619       hardcode_shlibpath_var=no
10620       ;;
10621
10622     hpux9*)
10623       if test "$GCC" = yes; then
10624         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'
10625       else
10626         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'
10627       fi
10628       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10629       hardcode_libdir_separator=:
10630       hardcode_direct=yes
10631
10632       # hardcode_minus_L: Not really in the search PATH,
10633       # but as the default location of the library.
10634       hardcode_minus_L=yes
10635       export_dynamic_flag_spec='${wl}-E'
10636       ;;
10637
10638     hpux10*)
10639       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10640         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641       else
10642         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10643       fi
10644       if test "$with_gnu_ld" = no; then
10645         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646         hardcode_libdir_flag_spec_ld='+b $libdir'
10647         hardcode_libdir_separator=:
10648         hardcode_direct=yes
10649         hardcode_direct_absolute=yes
10650         export_dynamic_flag_spec='${wl}-E'
10651         # hardcode_minus_L: Not really in the search PATH,
10652         # but as the default location of the library.
10653         hardcode_minus_L=yes
10654       fi
10655       ;;
10656
10657     hpux11*)
10658       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10659         case $host_cpu in
10660         hppa*64*)
10661           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10662           ;;
10663         ia64*)
10664           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10665           ;;
10666         *)
10667           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668           ;;
10669         esac
10670       else
10671         case $host_cpu in
10672         hppa*64*)
10673           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10674           ;;
10675         ia64*)
10676           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10677           ;;
10678         *)
10679           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680           ;;
10681         esac
10682       fi
10683       if test "$with_gnu_ld" = no; then
10684         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685         hardcode_libdir_separator=:
10686
10687         case $host_cpu in
10688         hppa*64*|ia64*)
10689           hardcode_direct=no
10690           hardcode_shlibpath_var=no
10691           ;;
10692         *)
10693           hardcode_direct=yes
10694           hardcode_direct_absolute=yes
10695           export_dynamic_flag_spec='${wl}-E'
10696
10697           # hardcode_minus_L: Not really in the search PATH,
10698           # but as the default location of the library.
10699           hardcode_minus_L=yes
10700           ;;
10701         esac
10702       fi
10703       ;;
10704
10705     irix5* | irix6* | nonstopux*)
10706       if test "$GCC" = yes; then
10707         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'
10708         # Try to use the -exported_symbol ld option, if it does not
10709         # work, assume that -exports_file does not work either and
10710         # implicitly export all symbols.
10711         save_LDFLAGS="$LDFLAGS"
10712         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10713         cat >conftest.$ac_ext <<_ACEOF
10714 int foo(void) {}
10715 _ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_link") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } && {
10730          test -z "$ac_c_werror_flag" ||
10731          test ! -s conftest.err
10732        } && test -s conftest$ac_exeext &&
10733        $as_test_x conftest$ac_exeext; then
10734   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'
10735
10736 else
10737   echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740
10741 fi
10742
10743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10744       conftest$ac_exeext conftest.$ac_ext
10745         LDFLAGS="$save_LDFLAGS"
10746       else
10747         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'
10748         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'
10749       fi
10750       archive_cmds_need_lc='no'
10751       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10752       hardcode_libdir_separator=:
10753       inherit_rpath=yes
10754       link_all_deplibs=yes
10755       ;;
10756
10757     netbsd*)
10758       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10759         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10760       else
10761         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10762       fi
10763       hardcode_libdir_flag_spec='-R$libdir'
10764       hardcode_direct=yes
10765       hardcode_shlibpath_var=no
10766       ;;
10767
10768     newsos6)
10769       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770       hardcode_direct=yes
10771       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10772       hardcode_libdir_separator=:
10773       hardcode_shlibpath_var=no
10774       ;;
10775
10776     *nto* | *qnx*)
10777       ;;
10778
10779     openbsd*)
10780       if test -f /usr/libexec/ld.so; then
10781         hardcode_direct=yes
10782         hardcode_shlibpath_var=no
10783         hardcode_direct_absolute=yes
10784         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10785           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10786           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10787           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10788           export_dynamic_flag_spec='${wl}-E'
10789         else
10790           case $host_os in
10791            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10792              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10793              hardcode_libdir_flag_spec='-R$libdir'
10794              ;;
10795            *)
10796              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10797              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10798              ;;
10799           esac
10800         fi
10801       else
10802         ld_shlibs=no
10803       fi
10804       ;;
10805
10806     os2*)
10807       hardcode_libdir_flag_spec='-L$libdir'
10808       hardcode_minus_L=yes
10809       allow_undefined_flag=unsupported
10810       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'
10811       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10812       ;;
10813
10814     osf3*)
10815       if test "$GCC" = yes; then
10816         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10817         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'
10818       else
10819         allow_undefined_flag=' -expect_unresolved \*'
10820         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'
10821       fi
10822       archive_cmds_need_lc='no'
10823       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10824       hardcode_libdir_separator=:
10825       ;;
10826
10827     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10828       if test "$GCC" = yes; then
10829         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10830         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'
10831         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10832       else
10833         allow_undefined_flag=' -expect_unresolved \*'
10834         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'
10835         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~
10836         $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'
10837
10838         # Both c and cxx compiler support -rpath directly
10839         hardcode_libdir_flag_spec='-rpath $libdir'
10840       fi
10841       archive_cmds_need_lc='no'
10842       hardcode_libdir_separator=:
10843       ;;
10844
10845     solaris*)
10846       no_undefined_flag=' -z defs'
10847       if test "$GCC" = yes; then
10848         wlarc='${wl}'
10849         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10850         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10851           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10852       else
10853         case `$CC -V 2>&1` in
10854         *"Compilers 5.0"*)
10855           wlarc=''
10856           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10858           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10859           ;;
10860         *)
10861           wlarc='${wl}'
10862           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10863           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10864           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10865           ;;
10866         esac
10867       fi
10868       hardcode_libdir_flag_spec='-R$libdir'
10869       hardcode_shlibpath_var=no
10870       case $host_os in
10871       solaris2.[0-5] | solaris2.[0-5].*) ;;
10872       *)
10873         # The compiler driver will combine and reorder linker options,
10874         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10875         # but is careful enough not to reorder.
10876         # Supported since Solaris 2.6 (maybe 2.5.1?)
10877         if test "$GCC" = yes; then
10878           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10879         else
10880           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10881         fi
10882         ;;
10883       esac
10884       link_all_deplibs=yes
10885       ;;
10886
10887     sunos4*)
10888       if test "x$host_vendor" = xsequent; then
10889         # Use $CC to link under sequent, because it throws in some extra .o
10890         # files that make .init and .fini sections work.
10891         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10892       else
10893         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10894       fi
10895       hardcode_libdir_flag_spec='-L$libdir'
10896       hardcode_direct=yes
10897       hardcode_minus_L=yes
10898       hardcode_shlibpath_var=no
10899       ;;
10900
10901     sysv4)
10902       case $host_vendor in
10903         sni)
10904           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905           hardcode_direct=yes # is this really true???
10906         ;;
10907         siemens)
10908           ## LD is ld it makes a PLAMLIB
10909           ## CC just makes a GrossModule.
10910           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10911           reload_cmds='$CC -r -o $output$reload_objs'
10912           hardcode_direct=no
10913         ;;
10914         motorola)
10915           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10917         ;;
10918       esac
10919       runpath_var='LD_RUN_PATH'
10920       hardcode_shlibpath_var=no
10921       ;;
10922
10923     sysv4.3*)
10924       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925       hardcode_shlibpath_var=no
10926       export_dynamic_flag_spec='-Bexport'
10927       ;;
10928
10929     sysv4*MP*)
10930       if test -d /usr/nec; then
10931         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10932         hardcode_shlibpath_var=no
10933         runpath_var=LD_RUN_PATH
10934         hardcode_runpath_var=yes
10935         ld_shlibs=yes
10936       fi
10937       ;;
10938
10939     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10940       no_undefined_flag='${wl}-z,text'
10941       archive_cmds_need_lc=no
10942       hardcode_shlibpath_var=no
10943       runpath_var='LD_RUN_PATH'
10944
10945       if test "$GCC" = yes; then
10946         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948       else
10949         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951       fi
10952       ;;
10953
10954     sysv5* | sco3.2v5* | sco5v6*)
10955       # Note: We can NOT use -z defs as we might desire, because we do not
10956       # link with -lc, and that would cause any symbols used from libc to
10957       # always be unresolved, which means just about no library would
10958       # ever link correctly.  If we're not using GNU ld we use -z text
10959       # though, which does catch some bad symbols but isn't as heavy-handed
10960       # as -z defs.
10961       no_undefined_flag='${wl}-z,text'
10962       allow_undefined_flag='${wl}-z,nodefs'
10963       archive_cmds_need_lc=no
10964       hardcode_shlibpath_var=no
10965       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10966       hardcode_libdir_separator=':'
10967       link_all_deplibs=yes
10968       export_dynamic_flag_spec='${wl}-Bexport'
10969       runpath_var='LD_RUN_PATH'
10970
10971       if test "$GCC" = yes; then
10972         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974       else
10975         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977       fi
10978       ;;
10979
10980     uts4*)
10981       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982       hardcode_libdir_flag_spec='-L$libdir'
10983       hardcode_shlibpath_var=no
10984       ;;
10985
10986     *)
10987       ld_shlibs=no
10988       ;;
10989     esac
10990
10991     if test x$host_vendor = xsni; then
10992       case $host in
10993       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10994         export_dynamic_flag_spec='${wl}-Blargedynsym'
10995         ;;
10996       esac
10997     fi
10998   fi
10999
11000 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11001 echo "${ECHO_T}$ld_shlibs" >&6; }
11002 test "$ld_shlibs" = no && can_build_shared=no
11003
11004 with_gnu_ld=$with_gnu_ld
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020 #
11021 # Do we need to explicitly link libc?
11022 #
11023 case "x$archive_cmds_need_lc" in
11024 x|xyes)
11025   # Assume -lc should be added
11026   archive_cmds_need_lc=yes
11027
11028   if test "$enable_shared" = yes && test "$GCC" = yes; then
11029     case $archive_cmds in
11030     *'~'*)
11031       # FIXME: we may have to deal with multi-command sequences.
11032       ;;
11033     '$CC '*)
11034       # Test whether the compiler implicitly links with -lc since on some
11035       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11036       # to ld, don't add -lc before -lgcc.
11037       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11038 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11039       $RM conftest*
11040       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11041
11042       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043   (eval $ac_compile) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } 2>conftest.err; then
11047         soname=conftest
11048         lib=conftest
11049         libobjs=conftest.$ac_objext
11050         deplibs=
11051         wl=$lt_prog_compiler_wl
11052         pic_flag=$lt_prog_compiler_pic
11053         compiler_flags=-v
11054         linker_flags=-v
11055         verstring=
11056         output_objdir=.
11057         libname=conftest
11058         lt_save_allow_undefined_flag=$allow_undefined_flag
11059         allow_undefined_flag=
11060         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11061   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }
11065         then
11066           archive_cmds_need_lc=no
11067         else
11068           archive_cmds_need_lc=yes
11069         fi
11070         allow_undefined_flag=$lt_save_allow_undefined_flag
11071       else
11072         cat conftest.err 1>&5
11073       fi
11074       $RM conftest*
11075       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11076 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11077       ;;
11078     esac
11079   fi
11080   ;;
11081 esac
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11241
11242 if test "$GCC" = yes; then
11243   case $host_os in
11244     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11245     *) lt_awk_arg="/^libraries:/" ;;
11246   esac
11247   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11248   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11249     # if the path contains ";" then we assume it to be the separator
11250     # otherwise default to the standard path separator (i.e. ":") - it is
11251     # assumed that no part of a normal pathname contains ";" but that should
11252     # okay in the real world where ";" in dirpaths is itself problematic.
11253     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11254   else
11255     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11256   fi
11257   # Ok, now we have the path, separated by spaces, we can step through it
11258   # and add multilib dir if necessary.
11259   lt_tmp_lt_search_path_spec=
11260   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11261   for lt_sys_path in $lt_search_path_spec; do
11262     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11263       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11264     else
11265       test -d "$lt_sys_path" && \
11266         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11267     fi
11268   done
11269   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11270 BEGIN {RS=" "; FS="/|\n";} {
11271   lt_foo="";
11272   lt_count=0;
11273   for (lt_i = NF; lt_i > 0; lt_i--) {
11274     if ($lt_i != "" && $lt_i != ".") {
11275       if ($lt_i == "..") {
11276         lt_count++;
11277       } else {
11278         if (lt_count == 0) {
11279           lt_foo="/" $lt_i lt_foo;
11280         } else {
11281           lt_count--;
11282         }
11283       }
11284     }
11285   }
11286   if (lt_foo != "") { lt_freq[lt_foo]++; }
11287   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11288 }'`
11289   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11290 else
11291   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11292 fi
11293 library_names_spec=
11294 libname_spec='lib$name'
11295 soname_spec=
11296 shrext_cmds=".so"
11297 postinstall_cmds=
11298 postuninstall_cmds=
11299 finish_cmds=
11300 finish_eval=
11301 shlibpath_var=
11302 shlibpath_overrides_runpath=unknown
11303 version_type=none
11304 dynamic_linker="$host_os ld.so"
11305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11306 need_lib_prefix=unknown
11307 hardcode_into_libs=no
11308
11309 # when you set need_version to no, make sure it does not cause -set_version
11310 # flags to be left without arguments
11311 need_version=unknown
11312
11313 case $host_os in
11314 aix3*)
11315   version_type=linux
11316   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11317   shlibpath_var=LIBPATH
11318
11319   # AIX 3 has no versioning support, so we append a major version to the name.
11320   soname_spec='${libname}${release}${shared_ext}$major'
11321   ;;
11322
11323 aix[4-9]*)
11324   version_type=linux
11325   need_lib_prefix=no
11326   need_version=no
11327   hardcode_into_libs=yes
11328   if test "$host_cpu" = ia64; then
11329     # AIX 5 supports IA64
11330     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11331     shlibpath_var=LD_LIBRARY_PATH
11332   else
11333     # With GCC up to 2.95.x, collect2 would create an import file
11334     # for dependence libraries.  The import file would start with
11335     # the line `#! .'.  This would cause the generated library to
11336     # depend on `.', always an invalid library.  This was fixed in
11337     # development snapshots of GCC prior to 3.0.
11338     case $host_os in
11339       aix4 | aix4.[01] | aix4.[01].*)
11340       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11341            echo ' yes '
11342            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11343         :
11344       else
11345         can_build_shared=no
11346       fi
11347       ;;
11348     esac
11349     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11350     # soname into executable. Probably we can add versioning support to
11351     # collect2, so additional links can be useful in future.
11352     if test "$aix_use_runtimelinking" = yes; then
11353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11354       # instead of lib<name>.a to let people know that these are not
11355       # typical AIX shared libraries.
11356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357     else
11358       # We preserve .a as extension for shared libraries through AIX4.2
11359       # and later when we are not doing run time linking.
11360       library_names_spec='${libname}${release}.a $libname.a'
11361       soname_spec='${libname}${release}${shared_ext}$major'
11362     fi
11363     shlibpath_var=LIBPATH
11364   fi
11365   ;;
11366
11367 amigaos*)
11368   case $host_cpu in
11369   powerpc)
11370     # Since July 2007 AmigaOS4 officially supports .so libraries.
11371     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373     ;;
11374   m68k)
11375     library_names_spec='$libname.ixlibrary $libname.a'
11376     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11377     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'
11378     ;;
11379   esac
11380   ;;
11381
11382 beos*)
11383   library_names_spec='${libname}${shared_ext}'
11384   dynamic_linker="$host_os ld.so"
11385   shlibpath_var=LIBRARY_PATH
11386   ;;
11387
11388 bsdi[45]*)
11389   version_type=linux
11390   need_version=no
11391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392   soname_spec='${libname}${release}${shared_ext}$major'
11393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11394   shlibpath_var=LD_LIBRARY_PATH
11395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11397   # the default ld.so.conf also contains /usr/contrib/lib and
11398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11399   # libtool to hard-code these into programs
11400   ;;
11401
11402 cygwin* | mingw* | pw32* | cegcc*)
11403   version_type=windows
11404   shrext_cmds=".dll"
11405   need_version=no
11406   need_lib_prefix=no
11407
11408   case $GCC,$host_os in
11409   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11410     library_names_spec='$libname.dll.a'
11411     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11412     postinstall_cmds='base_file=`basename \${file}`~
11413       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11414       dldir=$destdir/`dirname \$dlpath`~
11415       test -d \$dldir || mkdir -p \$dldir~
11416       $install_prog $dir/$dlname \$dldir/$dlname~
11417       chmod a+x \$dldir/$dlname~
11418       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11419         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11420       fi'
11421     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11422       dlpath=$dir/\$dldll~
11423        $RM \$dlpath'
11424     shlibpath_overrides_runpath=yes
11425
11426     case $host_os in
11427     cygwin*)
11428       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11429       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11430       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11431       ;;
11432     mingw* | cegcc*)
11433       # MinGW DLLs use traditional 'lib' prefix
11434       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11435       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11436       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11437         # It is most probably a Windows format PATH printed by
11438         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11439         # path with ; separators, and with drive letters. We can handle the
11440         # drive letters (cygwin fileutils understands them), so leave them,
11441         # especially as we might pass files found there to a mingw objdump,
11442         # which wouldn't understand a cygwinified path. Ahh.
11443         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11444       else
11445         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11446       fi
11447       ;;
11448     pw32*)
11449       # pw32 DLLs use 'pw' prefix rather than 'lib'
11450       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11451       ;;
11452     esac
11453     ;;
11454
11455   *)
11456     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11457     ;;
11458   esac
11459   dynamic_linker='Win32 ld.exe'
11460   # FIXME: first we should search . and the directory the executable is in
11461   shlibpath_var=PATH
11462   ;;
11463
11464 darwin* | rhapsody*)
11465   dynamic_linker="$host_os dyld"
11466   version_type=darwin
11467   need_lib_prefix=no
11468   need_version=no
11469   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11470   soname_spec='${libname}${release}${major}$shared_ext'
11471   shlibpath_overrides_runpath=yes
11472   shlibpath_var=DYLD_LIBRARY_PATH
11473   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11474
11475   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11476   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11477   ;;
11478
11479 dgux*)
11480   version_type=linux
11481   need_lib_prefix=no
11482   need_version=no
11483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11484   soname_spec='${libname}${release}${shared_ext}$major'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   ;;
11487
11488 freebsd1*)
11489   dynamic_linker=no
11490   ;;
11491
11492 freebsd* | dragonfly*)
11493   # DragonFly does not have aout.  When/if they implement a new
11494   # versioning mechanism, adjust this.
11495   if test -x /usr/bin/objformat; then
11496     objformat=`/usr/bin/objformat`
11497   else
11498     case $host_os in
11499     freebsd[123]*) objformat=aout ;;
11500     *) objformat=elf ;;
11501     esac
11502   fi
11503   version_type=freebsd-$objformat
11504   case $version_type in
11505     freebsd-elf*)
11506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11507       need_version=no
11508       need_lib_prefix=no
11509       ;;
11510     freebsd-*)
11511       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11512       need_version=yes
11513       ;;
11514   esac
11515   shlibpath_var=LD_LIBRARY_PATH
11516   case $host_os in
11517   freebsd2*)
11518     shlibpath_overrides_runpath=yes
11519     ;;
11520   freebsd3.[01]* | freebsdelf3.[01]*)
11521     shlibpath_overrides_runpath=yes
11522     hardcode_into_libs=yes
11523     ;;
11524   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11525   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11526     shlibpath_overrides_runpath=no
11527     hardcode_into_libs=yes
11528     ;;
11529   *) # from 4.6 on, and DragonFly
11530     shlibpath_overrides_runpath=yes
11531     hardcode_into_libs=yes
11532     ;;
11533   esac
11534   ;;
11535
11536 gnu*)
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   hardcode_into_libs=yes
11544   ;;
11545
11546 hpux9* | hpux10* | hpux11*)
11547   # Give a soname corresponding to the major version so that dld.sl refuses to
11548   # link against other versions.
11549   version_type=sunos
11550   need_lib_prefix=no
11551   need_version=no
11552   case $host_cpu in
11553   ia64*)
11554     shrext_cmds='.so'
11555     hardcode_into_libs=yes
11556     dynamic_linker="$host_os dld.so"
11557     shlibpath_var=LD_LIBRARY_PATH
11558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560     soname_spec='${libname}${release}${shared_ext}$major'
11561     if test "X$HPUX_IA64_MODE" = X32; then
11562       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11563     else
11564       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11565     fi
11566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11567     ;;
11568   hppa*64*)
11569     shrext_cmds='.sl'
11570     hardcode_into_libs=yes
11571     dynamic_linker="$host_os dld.sl"
11572     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575     soname_spec='${libname}${release}${shared_ext}$major'
11576     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11577     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11578     ;;
11579   *)
11580     shrext_cmds='.sl'
11581     dynamic_linker="$host_os dld.sl"
11582     shlibpath_var=SHLIB_PATH
11583     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585     soname_spec='${libname}${release}${shared_ext}$major'
11586     ;;
11587   esac
11588   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11589   postinstall_cmds='chmod 555 $lib'
11590   ;;
11591
11592 interix[3-9]*)
11593   version_type=linux
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   shlibpath_overrides_runpath=no
11601   hardcode_into_libs=yes
11602   ;;
11603
11604 irix5* | irix6* | nonstopux*)
11605   case $host_os in
11606     nonstopux*) version_type=nonstopux ;;
11607     *)
11608         if test "$lt_cv_prog_gnu_ld" = yes; then
11609                 version_type=linux
11610         else
11611                 version_type=irix
11612         fi ;;
11613   esac
11614   need_lib_prefix=no
11615   need_version=no
11616   soname_spec='${libname}${release}${shared_ext}$major'
11617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11618   case $host_os in
11619   irix5* | nonstopux*)
11620     libsuff= shlibsuff=
11621     ;;
11622   *)
11623     case $LD in # libtool.m4 will add one of these switches to LD
11624     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11625       libsuff= shlibsuff= libmagic=32-bit;;
11626     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11627       libsuff=32 shlibsuff=N32 libmagic=N32;;
11628     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11629       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11630     *) libsuff= shlibsuff= libmagic=never-match;;
11631     esac
11632     ;;
11633   esac
11634   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11635   shlibpath_overrides_runpath=no
11636   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11637   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11638   hardcode_into_libs=yes
11639   ;;
11640
11641 # No shared lib support for Linux oldld, aout, or coff.
11642 linux*oldld* | linux*aout* | linux*coff*)
11643   dynamic_linker=no
11644   ;;
11645
11646 # This must be Linux ELF.
11647 linux* | k*bsd*-gnu)
11648   version_type=linux
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652   soname_spec='${libname}${release}${shared_ext}$major'
11653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11654   shlibpath_var=LD_LIBRARY_PATH
11655   shlibpath_overrides_runpath=no
11656   # Some binutils ld are patched to set DT_RUNPATH
11657   save_LDFLAGS=$LDFLAGS
11658   save_libdir=$libdir
11659   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11660        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11661   cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667
11668 int
11669 main ()
11670 {
11671
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (ac_try="$ac_link"
11678 case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_link") 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } && {
11690          test -z "$ac_c_werror_flag" ||
11691          test ! -s conftest.err
11692        } && test -s conftest$ac_exeext &&
11693        $as_test_x conftest$ac_exeext; then
11694   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11695   shlibpath_overrides_runpath=yes
11696 fi
11697
11698 else
11699   echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706       conftest$ac_exeext conftest.$ac_ext
11707   LDFLAGS=$save_LDFLAGS
11708   libdir=$save_libdir
11709
11710   # This implies no fast_install, which is unacceptable.
11711   # Some rework will be needed to allow for fast_install
11712   # before this can be enabled.
11713   hardcode_into_libs=yes
11714
11715   # Append ld.so.conf contents to the search path
11716   if test -f /etc/ld.so.conf; then
11717     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' ' '`
11718     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11719   fi
11720
11721   # We used to test for /lib/ld.so.1 and disable shared libraries on
11722   # powerpc, because MkLinux only supported shared libraries with the
11723   # GNU dynamic linker.  Since this was broken with cross compilers,
11724   # most powerpc-linux boxes support dynamic linking these days and
11725   # people can always --disable-shared, the test was removed, and we
11726   # assume the GNU/Linux dynamic linker is in use.
11727   dynamic_linker='GNU/Linux ld.so'
11728   ;;
11729
11730 netbsd*)
11731   version_type=sunos
11732   need_lib_prefix=no
11733   need_version=no
11734   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11736     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11737     dynamic_linker='NetBSD (a.out) ld.so'
11738   else
11739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11740     soname_spec='${libname}${release}${shared_ext}$major'
11741     dynamic_linker='NetBSD ld.elf_so'
11742   fi
11743   shlibpath_var=LD_LIBRARY_PATH
11744   shlibpath_overrides_runpath=yes
11745   hardcode_into_libs=yes
11746   ;;
11747
11748 newsos6)
11749   version_type=linux
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   shlibpath_overrides_runpath=yes
11753   ;;
11754
11755 *nto* | *qnx*)
11756   version_type=qnx
11757   need_lib_prefix=no
11758   need_version=no
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   shlibpath_var=LD_LIBRARY_PATH
11762   shlibpath_overrides_runpath=no
11763   hardcode_into_libs=yes
11764   dynamic_linker='ldqnx.so'
11765   ;;
11766
11767 openbsd*)
11768   version_type=sunos
11769   sys_lib_dlsearch_path_spec="/usr/lib"
11770   need_lib_prefix=no
11771   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11772   case $host_os in
11773     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11774     *)                          need_version=no  ;;
11775   esac
11776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11777   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11778   shlibpath_var=LD_LIBRARY_PATH
11779   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11780     case $host_os in
11781       openbsd2.[89] | openbsd2.[89].*)
11782         shlibpath_overrides_runpath=no
11783         ;;
11784       *)
11785         shlibpath_overrides_runpath=yes
11786         ;;
11787       esac
11788   else
11789     shlibpath_overrides_runpath=yes
11790   fi
11791   ;;
11792
11793 os2*)
11794   libname_spec='$name'
11795   shrext_cmds=".dll"
11796   need_lib_prefix=no
11797   library_names_spec='$libname${shared_ext} $libname.a'
11798   dynamic_linker='OS/2 ld.exe'
11799   shlibpath_var=LIBPATH
11800   ;;
11801
11802 osf3* | osf4* | osf5*)
11803   version_type=osf
11804   need_lib_prefix=no
11805   need_version=no
11806   soname_spec='${libname}${release}${shared_ext}$major'
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11810   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11811   ;;
11812
11813 rdos*)
11814   dynamic_linker=no
11815   ;;
11816
11817 solaris*)
11818   version_type=linux
11819   need_lib_prefix=no
11820   need_version=no
11821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822   soname_spec='${libname}${release}${shared_ext}$major'
11823   shlibpath_var=LD_LIBRARY_PATH
11824   shlibpath_overrides_runpath=yes
11825   hardcode_into_libs=yes
11826   # ldd complains unless libraries are executable
11827   postinstall_cmds='chmod +x $lib'
11828   ;;
11829
11830 sunos4*)
11831   version_type=sunos
11832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11834   shlibpath_var=LD_LIBRARY_PATH
11835   shlibpath_overrides_runpath=yes
11836   if test "$with_gnu_ld" = yes; then
11837     need_lib_prefix=no
11838   fi
11839   need_version=yes
11840   ;;
11841
11842 sysv4 | sysv4.3*)
11843   version_type=linux
11844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845   soname_spec='${libname}${release}${shared_ext}$major'
11846   shlibpath_var=LD_LIBRARY_PATH
11847   case $host_vendor in
11848     sni)
11849       shlibpath_overrides_runpath=no
11850       need_lib_prefix=no
11851       runpath_var=LD_RUN_PATH
11852       ;;
11853     siemens)
11854       need_lib_prefix=no
11855       ;;
11856     motorola)
11857       need_lib_prefix=no
11858       need_version=no
11859       shlibpath_overrides_runpath=no
11860       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11861       ;;
11862   esac
11863   ;;
11864
11865 sysv4*MP*)
11866   if test -d /usr/nec ;then
11867     version_type=linux
11868     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11869     soname_spec='$libname${shared_ext}.$major'
11870     shlibpath_var=LD_LIBRARY_PATH
11871   fi
11872   ;;
11873
11874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11875   version_type=freebsd-elf
11876   need_lib_prefix=no
11877   need_version=no
11878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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   if test "$with_gnu_ld" = yes; then
11884     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11885   else
11886     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11887     case $host_os in
11888       sco3.2v5*)
11889         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11890         ;;
11891     esac
11892   fi
11893   sys_lib_dlsearch_path_spec='/usr/lib'
11894   ;;
11895
11896 tpf*)
11897   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11898   version_type=linux
11899   need_lib_prefix=no
11900   need_version=no
11901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902   shlibpath_var=LD_LIBRARY_PATH
11903   shlibpath_overrides_runpath=no
11904   hardcode_into_libs=yes
11905   ;;
11906
11907 uts4*)
11908   version_type=linux
11909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11910   soname_spec='${libname}${release}${shared_ext}$major'
11911   shlibpath_var=LD_LIBRARY_PATH
11912   ;;
11913
11914 *)
11915   dynamic_linker=no
11916   ;;
11917 esac
11918 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11919 echo "${ECHO_T}$dynamic_linker" >&6; }
11920 test "$dynamic_linker" = no && can_build_shared=no
11921
11922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11923 if test "$GCC" = yes; then
11924   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11925 fi
11926
11927 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11928   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11929 fi
11930 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11931   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11932 fi
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12021 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12022 hardcode_action=
12023 if test -n "$hardcode_libdir_flag_spec" ||
12024    test -n "$runpath_var" ||
12025    test "X$hardcode_automatic" = "Xyes" ; then
12026
12027   # We can hardcode non-existent directories.
12028   if test "$hardcode_direct" != no &&
12029      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12030      # have to relink, otherwise we might link with an installed library
12031      # when we should be linking with a yet-to-be-installed one
12032      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12033      test "$hardcode_minus_L" != no; then
12034     # Linking always hardcodes the temporary library directory.
12035     hardcode_action=relink
12036   else
12037     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12038     hardcode_action=immediate
12039   fi
12040 else
12041   # We cannot hardcode anything, or else we can only hardcode existing
12042   # directories.
12043   hardcode_action=unsupported
12044 fi
12045 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12046 echo "${ECHO_T}$hardcode_action" >&6; }
12047
12048 if test "$hardcode_action" = relink ||
12049    test "$inherit_rpath" = yes; then
12050   # Fast installation is not supported
12051   enable_fast_install=no
12052 elif test "$shlibpath_overrides_runpath" = yes ||
12053      test "$enable_shared" = no; then
12054   # Fast installation is not necessary
12055   enable_fast_install=needless
12056 fi
12057
12058
12059
12060
12061
12062
12063   if test "x$enable_dlopen" != xyes; then
12064   enable_dlopen=unknown
12065   enable_dlopen_self=unknown
12066   enable_dlopen_self_static=unknown
12067 else
12068   lt_cv_dlopen=no
12069   lt_cv_dlopen_libs=
12070
12071   case $host_os in
12072   beos*)
12073     lt_cv_dlopen="load_add_on"
12074     lt_cv_dlopen_libs=
12075     lt_cv_dlopen_self=yes
12076     ;;
12077
12078   mingw* | pw32* | cegcc*)
12079     lt_cv_dlopen="LoadLibrary"
12080     lt_cv_dlopen_libs=
12081     ;;
12082
12083   cygwin*)
12084     lt_cv_dlopen="dlopen"
12085     lt_cv_dlopen_libs=
12086     ;;
12087
12088   darwin*)
12089   # if libdl is installed we need to link against it
12090     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12091 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12092 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095   ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-ldl  $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103
12104 /* Override any GCC internal prototype to avoid an error.
12105    Use char because int might match the return type of a GCC
12106    builtin and then its argument prototype would still apply.  */
12107 #ifdef __cplusplus
12108 extern "C"
12109 #endif
12110 char dlopen ();
12111 int
12112 main ()
12113 {
12114 return dlopen ();
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_link") 2>conftest.er1
12127   ac_status=$?
12128   grep -v '^ *+' conftest.er1 >conftest.err
12129   rm -f conftest.er1
12130   cat conftest.err >&5
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } && {
12133          test -z "$ac_c_werror_flag" ||
12134          test ! -s conftest.err
12135        } && test -s conftest$ac_exeext &&
12136        $as_test_x conftest$ac_exeext; then
12137   ac_cv_lib_dl_dlopen=yes
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142         ac_cv_lib_dl_dlopen=no
12143 fi
12144
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146       conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12150 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12151 if test $ac_cv_lib_dl_dlopen = yes; then
12152   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12153 else
12154
12155     lt_cv_dlopen="dyld"
12156     lt_cv_dlopen_libs=
12157     lt_cv_dlopen_self=yes
12158
12159 fi
12160
12161     ;;
12162
12163   *)
12164     { echo "$as_me:$LINENO: checking for shl_load" >&5
12165 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12166 if test "${ac_cv_func_shl_load+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12177 #define shl_load innocuous_shl_load
12178
12179 /* System header to define __stub macros and hopefully few prototypes,
12180     which can conflict with char shl_load (); below.
12181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182     <limits.h> exists even on freestanding compilers.  */
12183
12184 #ifdef __STDC__
12185 # include <limits.h>
12186 #else
12187 # include <assert.h>
12188 #endif
12189
12190 #undef shl_load
12191
12192 /* Override any GCC internal prototype to avoid an error.
12193    Use char because int might match the return type of a GCC
12194    builtin and then its argument prototype would still apply.  */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 char shl_load ();
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined __stub_shl_load || defined __stub___shl_load
12203 choke me
12204 #endif
12205
12206 int
12207 main ()
12208 {
12209 return shl_load ();
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_link") 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } && {
12228          test -z "$ac_c_werror_flag" ||
12229          test ! -s conftest.err
12230        } && test -s conftest$ac_exeext &&
12231        $as_test_x conftest$ac_exeext; then
12232   ac_cv_func_shl_load=yes
12233 else
12234   echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237         ac_cv_func_shl_load=no
12238 fi
12239
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241       conftest$ac_exeext conftest.$ac_ext
12242 fi
12243 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12244 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12245 if test $ac_cv_func_shl_load = yes; then
12246   lt_cv_dlopen="shl_load"
12247 else
12248   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12249 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12250 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-ldld  $LIBS"
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261
12262 /* Override any GCC internal prototype to avoid an error.
12263    Use char because int might match the return type of a GCC
12264    builtin and then its argument prototype would still apply.  */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char shl_load ();
12269 int
12270 main ()
12271 {
12272 return shl_load ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_link") 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } && {
12291          test -z "$ac_c_werror_flag" ||
12292          test ! -s conftest.err
12293        } && test -s conftest$ac_exeext &&
12294        $as_test_x conftest$ac_exeext; then
12295   ac_cv_lib_dld_shl_load=yes
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300         ac_cv_lib_dld_shl_load=no
12301 fi
12302
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304       conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12308 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12309 if test $ac_cv_lib_dld_shl_load = yes; then
12310   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12311 else
12312   { echo "$as_me:$LINENO: checking for dlopen" >&5
12313 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12314 if test "${ac_cv_func_dlopen+set}" = set; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h.  */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h.  */
12323 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12325 #define dlopen innocuous_dlopen
12326
12327 /* System header to define __stub macros and hopefully few prototypes,
12328     which can conflict with char dlopen (); below.
12329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12330     <limits.h> exists even on freestanding compilers.  */
12331
12332 #ifdef __STDC__
12333 # include <limits.h>
12334 #else
12335 # include <assert.h>
12336 #endif
12337
12338 #undef dlopen
12339
12340 /* Override any GCC internal prototype to avoid an error.
12341    Use char because int might match the return type of a GCC
12342    builtin and then its argument prototype would still apply.  */
12343 #ifdef __cplusplus
12344 extern "C"
12345 #endif
12346 char dlopen ();
12347 /* The GNU C library defines this for functions which it implements
12348     to always fail with ENOSYS.  Some functions are actually named
12349     something starting with __ and the normal name is an alias.  */
12350 #if defined __stub_dlopen || defined __stub___dlopen
12351 choke me
12352 #endif
12353
12354 int
12355 main ()
12356 {
12357 return dlopen ();
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 rm -f conftest.$ac_objext conftest$ac_exeext
12363 if { (ac_try="$ac_link"
12364 case "(($ac_try" in
12365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366   *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369   (eval "$ac_link") 2>conftest.er1
12370   ac_status=$?
12371   grep -v '^ *+' conftest.er1 >conftest.err
12372   rm -f conftest.er1
12373   cat conftest.err >&5
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); } && {
12376          test -z "$ac_c_werror_flag" ||
12377          test ! -s conftest.err
12378        } && test -s conftest$ac_exeext &&
12379        $as_test_x conftest$ac_exeext; then
12380   ac_cv_func_dlopen=yes
12381 else
12382   echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385         ac_cv_func_dlopen=no
12386 fi
12387
12388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12389       conftest$ac_exeext conftest.$ac_ext
12390 fi
12391 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12392 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12393 if test $ac_cv_func_dlopen = yes; then
12394   lt_cv_dlopen="dlopen"
12395 else
12396   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12399   echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401   ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-ldl  $LIBS"
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411    Use char because int might match the return type of a GCC
12412    builtin and then its argument prototype would still apply.  */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char dlopen ();
12417 int
12418 main ()
12419 {
12420 return dlopen ();
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429   *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432   (eval "$ac_link") 2>conftest.er1
12433   ac_status=$?
12434   grep -v '^ *+' conftest.er1 >conftest.err
12435   rm -f conftest.er1
12436   cat conftest.err >&5
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } && {
12439          test -z "$ac_c_werror_flag" ||
12440          test ! -s conftest.err
12441        } && test -s conftest$ac_exeext &&
12442        $as_test_x conftest$ac_exeext; then
12443   ac_cv_lib_dl_dlopen=yes
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448         ac_cv_lib_dl_dlopen=no
12449 fi
12450
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452       conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12454 fi
12455 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12456 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12457 if test $ac_cv_lib_dl_dlopen = yes; then
12458   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12459 else
12460   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12461 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12462 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12463   echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465   ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-lsvld  $LIBS"
12467 cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473
12474 /* Override any GCC internal prototype to avoid an error.
12475    Use char because int might match the return type of a GCC
12476    builtin and then its argument prototype would still apply.  */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char dlopen ();
12481 int
12482 main ()
12483 {
12484 return dlopen ();
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_link") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } && {
12503          test -z "$ac_c_werror_flag" ||
12504          test ! -s conftest.err
12505        } && test -s conftest$ac_exeext &&
12506        $as_test_x conftest$ac_exeext; then
12507   ac_cv_lib_svld_dlopen=yes
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512         ac_cv_lib_svld_dlopen=no
12513 fi
12514
12515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12516       conftest$ac_exeext conftest.$ac_ext
12517 LIBS=$ac_check_lib_save_LIBS
12518 fi
12519 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12520 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12521 if test $ac_cv_lib_svld_dlopen = yes; then
12522   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12523 else
12524   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12525 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12526 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12527   echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529   ac_check_lib_save_LIBS=$LIBS
12530 LIBS="-ldld  $LIBS"
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537
12538 /* Override any GCC internal prototype to avoid an error.
12539    Use char because int might match the return type of a GCC
12540    builtin and then its argument prototype would still apply.  */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 char dld_link ();
12545 int
12546 main ()
12547 {
12548 return dld_link ();
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_link") 2>conftest.er1
12561   ac_status=$?
12562   grep -v '^ *+' conftest.er1 >conftest.err
12563   rm -f conftest.er1
12564   cat conftest.err >&5
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } && {
12567          test -z "$ac_c_werror_flag" ||
12568          test ! -s conftest.err
12569        } && test -s conftest$ac_exeext &&
12570        $as_test_x conftest$ac_exeext; then
12571   ac_cv_lib_dld_dld_link=yes
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576         ac_cv_lib_dld_dld_link=no
12577 fi
12578
12579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12580       conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12582 fi
12583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12584 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12585 if test $ac_cv_lib_dld_dld_link = yes; then
12586   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12587 fi
12588
12589
12590 fi
12591
12592
12593 fi
12594
12595
12596 fi
12597
12598
12599 fi
12600
12601
12602 fi
12603
12604     ;;
12605   esac
12606
12607   if test "x$lt_cv_dlopen" != xno; then
12608     enable_dlopen=yes
12609   else
12610     enable_dlopen=no
12611   fi
12612
12613   case $lt_cv_dlopen in
12614   dlopen)
12615     save_CPPFLAGS="$CPPFLAGS"
12616     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12617
12618     save_LDFLAGS="$LDFLAGS"
12619     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12620
12621     save_LIBS="$LIBS"
12622     LIBS="$lt_cv_dlopen_libs $LIBS"
12623
12624     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12625 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12626 if test "${lt_cv_dlopen_self+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629           if test "$cross_compiling" = yes; then :
12630   lt_cv_dlopen_self=cross
12631 else
12632   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12633   lt_status=$lt_dlunknown
12634   cat > conftest.$ac_ext <<_LT_EOF
12635 #line 12635 "configure"
12636 #include "confdefs.h"
12637
12638 #if HAVE_DLFCN_H
12639 #include <dlfcn.h>
12640 #endif
12641
12642 #include <stdio.h>
12643
12644 #ifdef RTLD_GLOBAL
12645 #  define LT_DLGLOBAL           RTLD_GLOBAL
12646 #else
12647 #  ifdef DL_GLOBAL
12648 #    define LT_DLGLOBAL         DL_GLOBAL
12649 #  else
12650 #    define LT_DLGLOBAL         0
12651 #  endif
12652 #endif
12653
12654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12655    find out it does not work in some platform. */
12656 #ifndef LT_DLLAZY_OR_NOW
12657 #  ifdef RTLD_LAZY
12658 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12659 #  else
12660 #    ifdef DL_LAZY
12661 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12662 #    else
12663 #      ifdef RTLD_NOW
12664 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12665 #      else
12666 #        ifdef DL_NOW
12667 #          define LT_DLLAZY_OR_NOW      DL_NOW
12668 #        else
12669 #          define LT_DLLAZY_OR_NOW      0
12670 #        endif
12671 #      endif
12672 #    endif
12673 #  endif
12674 #endif
12675
12676 void fnord() { int i=42;}
12677 int main ()
12678 {
12679   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12680   int status = $lt_dlunknown;
12681
12682   if (self)
12683     {
12684       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12685       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12686       /* dlclose (self); */
12687     }
12688   else
12689     puts (dlerror ());
12690
12691   return status;
12692 }
12693 _LT_EOF
12694   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695   (eval $ac_link) 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12699     (./conftest; exit; ) >&5 2>/dev/null
12700     lt_status=$?
12701     case x$lt_status in
12702       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12703       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12704       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12705     esac
12706   else :
12707     # compilation failed
12708     lt_cv_dlopen_self=no
12709   fi
12710 fi
12711 rm -fr conftest*
12712
12713
12714 fi
12715 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12716 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12717
12718     if test "x$lt_cv_dlopen_self" = xyes; then
12719       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12720       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12721 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12722 if test "${lt_cv_dlopen_self_static+set}" = set; then
12723   echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725           if test "$cross_compiling" = yes; then :
12726   lt_cv_dlopen_self_static=cross
12727 else
12728   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12729   lt_status=$lt_dlunknown
12730   cat > conftest.$ac_ext <<_LT_EOF
12731 #line 12731 "configure"
12732 #include "confdefs.h"
12733
12734 #if HAVE_DLFCN_H
12735 #include <dlfcn.h>
12736 #endif
12737
12738 #include <stdio.h>
12739
12740 #ifdef RTLD_GLOBAL
12741 #  define LT_DLGLOBAL           RTLD_GLOBAL
12742 #else
12743 #  ifdef DL_GLOBAL
12744 #    define LT_DLGLOBAL         DL_GLOBAL
12745 #  else
12746 #    define LT_DLGLOBAL         0
12747 #  endif
12748 #endif
12749
12750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12751    find out it does not work in some platform. */
12752 #ifndef LT_DLLAZY_OR_NOW
12753 #  ifdef RTLD_LAZY
12754 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12755 #  else
12756 #    ifdef DL_LAZY
12757 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12758 #    else
12759 #      ifdef RTLD_NOW
12760 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12761 #      else
12762 #        ifdef DL_NOW
12763 #          define LT_DLLAZY_OR_NOW      DL_NOW
12764 #        else
12765 #          define LT_DLLAZY_OR_NOW      0
12766 #        endif
12767 #      endif
12768 #    endif
12769 #  endif
12770 #endif
12771
12772 void fnord() { int i=42;}
12773 int main ()
12774 {
12775   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12776   int status = $lt_dlunknown;
12777
12778   if (self)
12779     {
12780       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12781       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12782       /* dlclose (self); */
12783     }
12784   else
12785     puts (dlerror ());
12786
12787   return status;
12788 }
12789 _LT_EOF
12790   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791   (eval $ac_link) 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12795     (./conftest; exit; ) >&5 2>/dev/null
12796     lt_status=$?
12797     case x$lt_status in
12798       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12799       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12800       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12801     esac
12802   else :
12803     # compilation failed
12804     lt_cv_dlopen_self_static=no
12805   fi
12806 fi
12807 rm -fr conftest*
12808
12809
12810 fi
12811 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12812 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12813     fi
12814
12815     CPPFLAGS="$save_CPPFLAGS"
12816     LDFLAGS="$save_LDFLAGS"
12817     LIBS="$save_LIBS"
12818     ;;
12819   esac
12820
12821   case $lt_cv_dlopen_self in
12822   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12823   *) enable_dlopen_self=unknown ;;
12824   esac
12825
12826   case $lt_cv_dlopen_self_static in
12827   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12828   *) enable_dlopen_self_static=unknown ;;
12829   esac
12830 fi
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848 striplib=
12849 old_striplib=
12850 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12852 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12853   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12854   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12855   { echo "$as_me:$LINENO: result: yes" >&5
12856 echo "${ECHO_T}yes" >&6; }
12857 else
12858 # FIXME - insert some real tests, host_os isn't really good enough
12859   case $host_os in
12860   darwin*)
12861     if test -n "$STRIP" ; then
12862       striplib="$STRIP -x"
12863       old_striplib="$STRIP -S"
12864       { echo "$as_me:$LINENO: result: yes" >&5
12865 echo "${ECHO_T}yes" >&6; }
12866     else
12867       { echo "$as_me:$LINENO: result: no" >&5
12868 echo "${ECHO_T}no" >&6; }
12869     fi
12870     ;;
12871   *)
12872     { echo "$as_me:$LINENO: result: no" >&5
12873 echo "${ECHO_T}no" >&6; }
12874     ;;
12875   esac
12876 fi
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889   # Report which library types will actually be built
12890   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12891 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12892   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12893 echo "${ECHO_T}$can_build_shared" >&6; }
12894
12895   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12896 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12897   test "$can_build_shared" = "no" && enable_shared=no
12898
12899   # On AIX, shared libraries and static libraries use the same namespace, and
12900   # are all built from PIC.
12901   case $host_os in
12902   aix3*)
12903     test "$enable_shared" = yes && enable_static=no
12904     if test -n "$RANLIB"; then
12905       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12906       postinstall_cmds='$RANLIB $lib'
12907     fi
12908     ;;
12909
12910   aix[4-9]*)
12911     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12912       test "$enable_shared" = yes && enable_static=no
12913     fi
12914     ;;
12915   esac
12916   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12917 echo "${ECHO_T}$enable_shared" >&6; }
12918
12919   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12921   # Make sure either enable_shared or enable_static is yes.
12922   test "$enable_shared" = yes || enable_static=yes
12923   { echo "$as_me:$LINENO: result: $enable_static" >&5
12924 echo "${ECHO_T}$enable_static" >&6; }
12925
12926
12927
12928
12929 fi
12930 ac_ext=c
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935
12936 CC="$lt_save_CC"
12937
12938
12939 ac_ext=cpp
12940 ac_cpp='$CXXCPP $CPPFLAGS'
12941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12944
12945 archive_cmds_need_lc_CXX=no
12946 allow_undefined_flag_CXX=
12947 always_export_symbols_CXX=no
12948 archive_expsym_cmds_CXX=
12949 compiler_needs_object_CXX=no
12950 export_dynamic_flag_spec_CXX=
12951 hardcode_direct_CXX=no
12952 hardcode_direct_absolute_CXX=no
12953 hardcode_libdir_flag_spec_CXX=
12954 hardcode_libdir_flag_spec_ld_CXX=
12955 hardcode_libdir_separator_CXX=
12956 hardcode_minus_L_CXX=no
12957 hardcode_shlibpath_var_CXX=unsupported
12958 hardcode_automatic_CXX=no
12959 inherit_rpath_CXX=no
12960 module_cmds_CXX=
12961 module_expsym_cmds_CXX=
12962 link_all_deplibs_CXX=unknown
12963 old_archive_cmds_CXX=$old_archive_cmds
12964 no_undefined_flag_CXX=
12965 whole_archive_flag_spec_CXX=
12966 enable_shared_with_static_runtimes_CXX=no
12967
12968 # Source file extension for C++ test sources.
12969 ac_ext=cpp
12970
12971 # Object file extension for compiled C++ test sources.
12972 objext=o
12973 objext_CXX=$objext
12974
12975 # No sense in running all these tests if we already determined that
12976 # the CXX compiler isn't working.  Some variables (like enable_shared)
12977 # are currently assumed to apply to all compilers on this platform,
12978 # and will be corrupted by setting them based on a non-working compiler.
12979 if test "$_lt_caught_CXX_error" != yes; then
12980   # Code to be used in simple compile tests
12981   lt_simple_compile_test_code="int some_variable = 0;"
12982
12983   # Code to be used in simple link tests
12984   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12985
12986   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12987
12988
12989
12990
12991
12992
12993 # If no C compiler was specified, use CC.
12994 LTCC=${LTCC-"$CC"}
12995
12996 # If no C compiler flags were specified, use CFLAGS.
12997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12998
12999 # Allow CC to be a program name with arguments.
13000 compiler=$CC
13001
13002
13003   # save warnings/boilerplate of simple test code
13004   ac_outfile=conftest.$ac_objext
13005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13007 _lt_compiler_boilerplate=`cat conftest.err`
13008 $RM conftest*
13009
13010   ac_outfile=conftest.$ac_objext
13011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13013 _lt_linker_boilerplate=`cat conftest.err`
13014 $RM -r conftest*
13015
13016
13017   # Allow CC to be a program name with arguments.
13018   lt_save_CC=$CC
13019   lt_save_LD=$LD
13020   lt_save_GCC=$GCC
13021   GCC=$GXX
13022   lt_save_with_gnu_ld=$with_gnu_ld
13023   lt_save_path_LD=$lt_cv_path_LD
13024   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13025     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13026   else
13027     $as_unset lt_cv_prog_gnu_ld
13028   fi
13029   if test -n "${lt_cv_path_LDCXX+set}"; then
13030     lt_cv_path_LD=$lt_cv_path_LDCXX
13031   else
13032     $as_unset lt_cv_path_LD
13033   fi
13034   test -z "${LDCXX+set}" || LD=$LDCXX
13035   CC=${CXX-"c++"}
13036   compiler=$CC
13037   compiler_CXX=$CC
13038   for cc_temp in $compiler""; do
13039   case $cc_temp in
13040     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13041     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13042     \-*) ;;
13043     *) break;;
13044   esac
13045 done
13046 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13047
13048
13049   if test -n "$compiler"; then
13050     # We don't want -fno-exception when compiling C++ code, so set the
13051     # no_builtin_flag separately
13052     if test "$GXX" = yes; then
13053       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13054     else
13055       lt_prog_compiler_no_builtin_flag_CXX=
13056     fi
13057
13058     if test "$GXX" = yes; then
13059       # Set up default GNU C++ configuration
13060
13061
13062
13063 # Check whether --with-gnu-ld was given.
13064 if test "${with_gnu_ld+set}" = set; then
13065   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13066 else
13067   with_gnu_ld=no
13068 fi
13069
13070 ac_prog=ld
13071 if test "$GCC" = yes; then
13072   # Check if gcc -print-prog-name=ld gives a path.
13073   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13074 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13075   case $host in
13076   *-*-mingw*)
13077     # gcc leaves a trailing carriage return which upsets mingw
13078     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13079   *)
13080     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13081   esac
13082   case $ac_prog in
13083     # Accept absolute paths.
13084     [\\/]* | ?:[\\/]*)
13085       re_direlt='/[^/][^/]*/\.\./'
13086       # Canonicalize the pathname of ld
13087       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13088       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13089         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13090       done
13091       test -z "$LD" && LD="$ac_prog"
13092       ;;
13093   "")
13094     # If it fails, then pretend we aren't using GCC.
13095     ac_prog=ld
13096     ;;
13097   *)
13098     # If it is relative, then search for the first ld in PATH.
13099     with_gnu_ld=unknown
13100     ;;
13101   esac
13102 elif test "$with_gnu_ld" = yes; then
13103   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13104 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13105 else
13106   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13107 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13108 fi
13109 if test "${lt_cv_path_LD+set}" = set; then
13110   echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112   if test -z "$LD"; then
13113   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13114   for ac_dir in $PATH; do
13115     IFS="$lt_save_ifs"
13116     test -z "$ac_dir" && ac_dir=.
13117     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13118       lt_cv_path_LD="$ac_dir/$ac_prog"
13119       # Check to see if the program is GNU ld.  I'd rather use --version,
13120       # but apparently some variants of GNU ld only accept -v.
13121       # Break only if it was the GNU/non-GNU ld that we prefer.
13122       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13123       *GNU* | *'with BFD'*)
13124         test "$with_gnu_ld" != no && break
13125         ;;
13126       *)
13127         test "$with_gnu_ld" != yes && break
13128         ;;
13129       esac
13130     fi
13131   done
13132   IFS="$lt_save_ifs"
13133 else
13134   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13135 fi
13136 fi
13137
13138 LD="$lt_cv_path_LD"
13139 if test -n "$LD"; then
13140   { echo "$as_me:$LINENO: result: $LD" >&5
13141 echo "${ECHO_T}$LD" >&6; }
13142 else
13143   { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13145 fi
13146 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13147 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13148    { (exit 1); exit 1; }; }
13149 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13150 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13151 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13155 case `$LD -v 2>&1 </dev/null` in
13156 *GNU* | *'with BFD'*)
13157   lt_cv_prog_gnu_ld=yes
13158   ;;
13159 *)
13160   lt_cv_prog_gnu_ld=no
13161   ;;
13162 esac
13163 fi
13164 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13165 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13166 with_gnu_ld=$lt_cv_prog_gnu_ld
13167
13168
13169
13170
13171
13172
13173
13174       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13175       # archiving commands below assume that GNU ld is being used.
13176       if test "$with_gnu_ld" = yes; then
13177         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178         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'
13179
13180         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13181         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13182
13183         # If archive_cmds runs LD, not CC, wlarc should be empty
13184         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13185         #     investigate it a little bit more. (MM)
13186         wlarc='${wl}'
13187
13188         # ancient GNU ld didn't support --whole-archive et. al.
13189         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13190           $GREP 'no-whole-archive' > /dev/null; then
13191           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13192         else
13193           whole_archive_flag_spec_CXX=
13194         fi
13195       else
13196         with_gnu_ld=no
13197         wlarc=
13198
13199         # A generic and very simple default shared library creation
13200         # command for GNU C++ for the case where it uses the native
13201         # linker, instead of GNU ld.  If possible, this setting should
13202         # overridden to take advantage of the native linker features on
13203         # the platform it is being used on.
13204         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13205       fi
13206
13207       # Commands to make compiler produce verbose output that lists
13208       # what "hidden" libraries, object files and flags are used when
13209       # linking a shared library.
13210       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13211
13212     else
13213       GXX=no
13214       with_gnu_ld=no
13215       wlarc=
13216     fi
13217
13218     # PORTME: fill in a description of your system's C++ link characteristics
13219     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13221     ld_shlibs_CXX=yes
13222     case $host_os in
13223       aix3*)
13224         # FIXME: insert proper C++ library support
13225         ld_shlibs_CXX=no
13226         ;;
13227       aix[4-9]*)
13228         if test "$host_cpu" = ia64; then
13229           # On IA64, the linker does run time linking by default, so we don't
13230           # have to do anything special.
13231           aix_use_runtimelinking=no
13232           exp_sym_flag='-Bexport'
13233           no_entry_flag=""
13234         else
13235           aix_use_runtimelinking=no
13236
13237           # Test if we are trying to use run time linking or normal
13238           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13239           # need to do runtime linking.
13240           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13241             for ld_flag in $LDFLAGS; do
13242               case $ld_flag in
13243               *-brtl*)
13244                 aix_use_runtimelinking=yes
13245                 break
13246                 ;;
13247               esac
13248             done
13249             ;;
13250           esac
13251
13252           exp_sym_flag='-bexport'
13253           no_entry_flag='-bnoentry'
13254         fi
13255
13256         # When large executables or shared objects are built, AIX ld can
13257         # have problems creating the table of contents.  If linking a library
13258         # or program results in "error TOC overflow" add -mminimal-toc to
13259         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13260         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13261
13262         archive_cmds_CXX=''
13263         hardcode_direct_CXX=yes
13264         hardcode_direct_absolute_CXX=yes
13265         hardcode_libdir_separator_CXX=':'
13266         link_all_deplibs_CXX=yes
13267         file_list_spec_CXX='${wl}-f,'
13268
13269         if test "$GXX" = yes; then
13270           case $host_os in aix4.[012]|aix4.[012].*)
13271           # We only want to do this on AIX 4.2 and lower, the check
13272           # below for broken collect2 doesn't work under 4.3+
13273           collect2name=`${CC} -print-prog-name=collect2`
13274           if test -f "$collect2name" &&
13275              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13276           then
13277             # We have reworked collect2
13278             :
13279           else
13280             # We have old collect2
13281             hardcode_direct_CXX=unsupported
13282             # It fails to find uninstalled libraries when the uninstalled
13283             # path is not listed in the libpath.  Setting hardcode_minus_L
13284             # to unsupported forces relinking
13285             hardcode_minus_L_CXX=yes
13286             hardcode_libdir_flag_spec_CXX='-L$libdir'
13287             hardcode_libdir_separator_CXX=
13288           fi
13289           esac
13290           shared_flag='-shared'
13291           if test "$aix_use_runtimelinking" = yes; then
13292             shared_flag="$shared_flag "'${wl}-G'
13293           fi
13294         else
13295           # not using gcc
13296           if test "$host_cpu" = ia64; then
13297           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13298           # chokes on -Wl,-G. The following line is correct:
13299           shared_flag='-G'
13300           else
13301             if test "$aix_use_runtimelinking" = yes; then
13302               shared_flag='${wl}-G'
13303             else
13304               shared_flag='${wl}-bM:SRE'
13305             fi
13306           fi
13307         fi
13308
13309         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13310         # It seems that -bexpall does not export symbols beginning with
13311         # underscore (_), so it is better to generate a list of symbols to
13312         # export.
13313         always_export_symbols_CXX=yes
13314         if test "$aix_use_runtimelinking" = yes; then
13315           # Warning - without using the other runtime loading flags (-brtl),
13316           # -berok will link without error, but may produce a broken library.
13317           allow_undefined_flag_CXX='-berok'
13318           # Determine the default libpath from the value encoded in an empty
13319           # executable.
13320           cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326
13327 int
13328 main ()
13329 {
13330
13331   ;
13332   return 0;
13333 }
13334 _ACEOF
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (ac_try="$ac_link"
13337 case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_link") 2>conftest.er1
13343   ac_status=$?
13344   grep -v '^ *+' conftest.er1 >conftest.err
13345   rm -f conftest.er1
13346   cat conftest.err >&5
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } && {
13349          test -z "$ac_cxx_werror_flag" ||
13350          test ! -s conftest.err
13351        } && test -s conftest$ac_exeext &&
13352        $as_test_x conftest$ac_exeext; then
13353
13354 lt_aix_libpath_sed='
13355     /Import File Strings/,/^$/ {
13356         /^0/ {
13357             s/^0  *\(.*\)$/\1/
13358             p
13359         }
13360     }'
13361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13362 # Check for a 64-bit object if we didn't find anything.
13363 if test -z "$aix_libpath"; then
13364   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13365 fi
13366 else
13367   echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13369
13370
13371 fi
13372
13373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13374       conftest$ac_exeext conftest.$ac_ext
13375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13376
13377           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13378
13379           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"
13380         else
13381           if test "$host_cpu" = ia64; then
13382             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13383             allow_undefined_flag_CXX="-z nodefs"
13384             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"
13385           else
13386             # Determine the default libpath from the value encoded in an
13387             # empty executable.
13388             cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h.  */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h.  */
13394
13395 int
13396 main ()
13397 {
13398
13399   ;
13400   return 0;
13401 }
13402 _ACEOF
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_link") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } && {
13417          test -z "$ac_cxx_werror_flag" ||
13418          test ! -s conftest.err
13419        } && test -s conftest$ac_exeext &&
13420        $as_test_x conftest$ac_exeext; then
13421
13422 lt_aix_libpath_sed='
13423     /Import File Strings/,/^$/ {
13424         /^0/ {
13425             s/^0  *\(.*\)$/\1/
13426             p
13427         }
13428     }'
13429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13430 # Check for a 64-bit object if we didn't find anything.
13431 if test -z "$aix_libpath"; then
13432   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13433 fi
13434 else
13435   echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13437
13438
13439 fi
13440
13441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13442       conftest$ac_exeext conftest.$ac_ext
13443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13444
13445             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13446             # Warning - without using the other run time loading flags,
13447             # -berok will link without error, but may produce a broken library.
13448             no_undefined_flag_CXX=' ${wl}-bernotok'
13449             allow_undefined_flag_CXX=' ${wl}-berok'
13450             # Exported symbols can be pulled into shared objects from archives
13451             whole_archive_flag_spec_CXX='$convenience'
13452             archive_cmds_need_lc_CXX=yes
13453             # This is similar to how AIX traditionally builds its shared
13454             # libraries.
13455             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'
13456           fi
13457         fi
13458         ;;
13459
13460       beos*)
13461         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13462           allow_undefined_flag_CXX=unsupported
13463           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13464           # support --undefined.  This deserves some investigation.  FIXME
13465           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13466         else
13467           ld_shlibs_CXX=no
13468         fi
13469         ;;
13470
13471       chorus*)
13472         case $cc_basename in
13473           *)
13474           # FIXME: insert proper C++ library support
13475           ld_shlibs_CXX=no
13476           ;;
13477         esac
13478         ;;
13479
13480       cygwin* | mingw* | pw32* | cegcc*)
13481         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13482         # as there is no search path for DLLs.
13483         hardcode_libdir_flag_spec_CXX='-L$libdir'
13484         allow_undefined_flag_CXX=unsupported
13485         always_export_symbols_CXX=no
13486         enable_shared_with_static_runtimes_CXX=yes
13487
13488         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13489           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'
13490           # If the export-symbols file already is a .def file (1st line
13491           # is EXPORTS), use it as is; otherwise, prepend...
13492           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13493             cp $export_symbols $output_objdir/$soname.def;
13494           else
13495             echo EXPORTS > $output_objdir/$soname.def;
13496             cat $export_symbols >> $output_objdir/$soname.def;
13497           fi~
13498           $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'
13499         else
13500           ld_shlibs_CXX=no
13501         fi
13502         ;;
13503       darwin* | rhapsody*)
13504
13505
13506   archive_cmds_need_lc_CXX=no
13507   hardcode_direct_CXX=no
13508   hardcode_automatic_CXX=yes
13509   hardcode_shlibpath_var_CXX=unsupported
13510   whole_archive_flag_spec_CXX=''
13511   link_all_deplibs_CXX=yes
13512   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13513   case $cc_basename in
13514      ifort*) _lt_dar_can_shared=yes ;;
13515      *) _lt_dar_can_shared=$GCC ;;
13516   esac
13517   if test "$_lt_dar_can_shared" = "yes"; then
13518     output_verbose_link_cmd=echo
13519     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}"
13520     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13521     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}"
13522     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}"
13523        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13524       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}"
13525       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}"
13526     fi
13527
13528   else
13529   ld_shlibs_CXX=no
13530   fi
13531
13532         ;;
13533
13534       dgux*)
13535         case $cc_basename in
13536           ec++*)
13537             # FIXME: insert proper C++ library support
13538             ld_shlibs_CXX=no
13539             ;;
13540           ghcx*)
13541             # Green Hills C++ Compiler
13542             # FIXME: insert proper C++ library support
13543             ld_shlibs_CXX=no
13544             ;;
13545           *)
13546             # FIXME: insert proper C++ library support
13547             ld_shlibs_CXX=no
13548             ;;
13549         esac
13550         ;;
13551
13552       freebsd[12]*)
13553         # C++ shared libraries reported to be fairly broken before
13554         # switch to ELF
13555         ld_shlibs_CXX=no
13556         ;;
13557
13558       freebsd-elf*)
13559         archive_cmds_need_lc_CXX=no
13560         ;;
13561
13562       freebsd* | dragonfly*)
13563         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13564         # conventions
13565         ld_shlibs_CXX=yes
13566         ;;
13567
13568       gnu*)
13569         ;;
13570
13571       hpux9*)
13572         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13573         hardcode_libdir_separator_CXX=:
13574         export_dynamic_flag_spec_CXX='${wl}-E'
13575         hardcode_direct_CXX=yes
13576         hardcode_minus_L_CXX=yes # Not in the search PATH,
13577                                              # but as the default
13578                                              # location of the library.
13579
13580         case $cc_basename in
13581           CC*)
13582             # FIXME: insert proper C++ library support
13583             ld_shlibs_CXX=no
13584             ;;
13585           aCC*)
13586             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'
13587             # Commands to make compiler produce verbose output that lists
13588             # what "hidden" libraries, object files and flags are used when
13589             # linking a shared library.
13590             #
13591             # There doesn't appear to be a way to prevent this compiler from
13592             # explicitly linking system object files so we need to strip them
13593             # from the output so that they don't get included in the library
13594             # dependencies.
13595             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'
13596             ;;
13597           *)
13598             if test "$GXX" = yes; then
13599               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'
13600             else
13601               # FIXME: insert proper C++ library support
13602               ld_shlibs_CXX=no
13603             fi
13604             ;;
13605         esac
13606         ;;
13607
13608       hpux10*|hpux11*)
13609         if test $with_gnu_ld = no; then
13610           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13611           hardcode_libdir_separator_CXX=:
13612
13613           case $host_cpu in
13614             hppa*64*|ia64*)
13615               ;;
13616             *)
13617               export_dynamic_flag_spec_CXX='${wl}-E'
13618               ;;
13619           esac
13620         fi
13621         case $host_cpu in
13622           hppa*64*|ia64*)
13623             hardcode_direct_CXX=no
13624             hardcode_shlibpath_var_CXX=no
13625             ;;
13626           *)
13627             hardcode_direct_CXX=yes
13628             hardcode_direct_absolute_CXX=yes
13629             hardcode_minus_L_CXX=yes # Not in the search PATH,
13630                                                  # but as the default
13631                                                  # location of the library.
13632             ;;
13633         esac
13634
13635         case $cc_basename in
13636           CC*)
13637             # FIXME: insert proper C++ library support
13638             ld_shlibs_CXX=no
13639             ;;
13640           aCC*)
13641             case $host_cpu in
13642               hppa*64*)
13643                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644                 ;;
13645               ia64*)
13646                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647                 ;;
13648               *)
13649                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650                 ;;
13651             esac
13652             # Commands to make compiler produce verbose output that lists
13653             # what "hidden" libraries, object files and flags are used when
13654             # linking a shared library.
13655             #
13656             # There doesn't appear to be a way to prevent this compiler from
13657             # explicitly linking system object files so we need to strip them
13658             # from the output so that they don't get included in the library
13659             # dependencies.
13660             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'
13661             ;;
13662           *)
13663             if test "$GXX" = yes; then
13664               if test $with_gnu_ld = no; then
13665                 case $host_cpu in
13666                   hppa*64*)
13667                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668                     ;;
13669                   ia64*)
13670                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671                     ;;
13672                   *)
13673                     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'
13674                     ;;
13675                 esac
13676               fi
13677             else
13678               # FIXME: insert proper C++ library support
13679               ld_shlibs_CXX=no
13680             fi
13681             ;;
13682         esac
13683         ;;
13684
13685       interix[3-9]*)
13686         hardcode_direct_CXX=no
13687         hardcode_shlibpath_var_CXX=no
13688         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13689         export_dynamic_flag_spec_CXX='${wl}-E'
13690         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13691         # Instead, shared libraries are loaded at an image base (0x10000000 by
13692         # default) and relocated if they conflict, which is a slow very memory
13693         # consuming and fragmenting process.  To avoid this, we pick a random,
13694         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13695         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13696         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'
13697         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'
13698         ;;
13699       irix5* | irix6*)
13700         case $cc_basename in
13701           CC*)
13702             # SGI C++
13703             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'
13704
13705             # Archives containing C++ object files must be created using
13706             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13707             # necessary to make sure instantiated templates are included
13708             # in the archive.
13709             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13710             ;;
13711           *)
13712             if test "$GXX" = yes; then
13713               if test "$with_gnu_ld" = no; then
13714                 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'
13715               else
13716                 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'
13717               fi
13718             fi
13719             link_all_deplibs_CXX=yes
13720             ;;
13721         esac
13722         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13723         hardcode_libdir_separator_CXX=:
13724         inherit_rpath_CXX=yes
13725         ;;
13726
13727       linux* | k*bsd*-gnu)
13728         case $cc_basename in
13729           KCC*)
13730             # Kuck and Associates, Inc. (KAI) C++ Compiler
13731
13732             # KCC will only create a shared library if the output file
13733             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13734             # to its proper name (with version) after linking.
13735             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'
13736             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'
13737             # Commands to make compiler produce verbose output that lists
13738             # what "hidden" libraries, object files and flags are used when
13739             # linking a shared library.
13740             #
13741             # There doesn't appear to be a way to prevent this compiler from
13742             # explicitly linking system object files so we need to strip them
13743             # from the output so that they don't get included in the library
13744             # dependencies.
13745             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'
13746
13747             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13748             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13749
13750             # Archives containing C++ object files must be created using
13751             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13752             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13753             ;;
13754           icpc* | ecpc* )
13755             # Intel C++
13756             with_gnu_ld=yes
13757             # version 8.0 and above of icpc choke on multiply defined symbols
13758             # if we add $predep_objects and $postdep_objects, however 7.1 and
13759             # earlier do not add the objects themselves.
13760             case `$CC -V 2>&1` in
13761               *"Version 7."*)
13762                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13763                 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'
13764                 ;;
13765               *)  # Version 8.0 or newer
13766                 tmp_idyn=
13767                 case $host_cpu in
13768                   ia64*) tmp_idyn=' -i_dynamic';;
13769                 esac
13770                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13771                 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'
13772                 ;;
13773             esac
13774             archive_cmds_need_lc_CXX=no
13775             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13776             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13777             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13778             ;;
13779           pgCC* | pgcpp*)
13780             # Portland Group C++ compiler
13781             case `$CC -V` in
13782             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13783               prelink_cmds_CXX='tpldir=Template.dir~
13784                 rm -rf $tpldir~
13785                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13786                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13787               old_archive_cmds_CXX='tpldir=Template.dir~
13788                 rm -rf $tpldir~
13789                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13790                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13791                 $RANLIB $oldlib'
13792               archive_cmds_CXX='tpldir=Template.dir~
13793                 rm -rf $tpldir~
13794                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13796               archive_expsym_cmds_CXX='tpldir=Template.dir~
13797                 rm -rf $tpldir~
13798                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13799                 $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'
13800               ;;
13801             *) # Version 6 will use weak symbols
13802               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13803               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'
13804               ;;
13805             esac
13806
13807             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13808             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809             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'
13810             ;;
13811           cxx*)
13812             # Compaq C++
13813             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814             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'
13815
13816             runpath_var=LD_RUN_PATH
13817             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13818             hardcode_libdir_separator_CXX=:
13819
13820             # Commands to make compiler produce verbose output that lists
13821             # what "hidden" libraries, object files and flags are used when
13822             # linking a shared library.
13823             #
13824             # There doesn't appear to be a way to prevent this compiler from
13825             # explicitly linking system object files so we need to strip them
13826             # from the output so that they don't get included in the library
13827             # dependencies.
13828             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'
13829             ;;
13830           xl*)
13831             # IBM XL 8.0 on PPC, with GNU ld
13832             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13833             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13835             if test "x$supports_anon_versioning" = xyes; then
13836               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13837                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13838                 echo "local: *; };" >> $output_objdir/$libname.ver~
13839                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13840             fi
13841             ;;
13842           *)
13843             case `$CC -V 2>&1 | sed 5q` in
13844             *Sun\ C*)
13845               # Sun C++ 5.9
13846               no_undefined_flag_CXX=' -zdefs'
13847               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13848               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'
13849               hardcode_libdir_flag_spec_CXX='-R$libdir'
13850               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'
13851               compiler_needs_object_CXX=yes
13852
13853               # Not sure whether something based on
13854               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13855               # would be better.
13856               output_verbose_link_cmd='echo'
13857
13858               # Archives containing C++ object files must be created using
13859               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13860               # necessary to make sure instantiated templates are included
13861               # in the archive.
13862               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13863               ;;
13864             esac
13865             ;;
13866         esac
13867         ;;
13868
13869       lynxos*)
13870         # FIXME: insert proper C++ library support
13871         ld_shlibs_CXX=no
13872         ;;
13873
13874       m88k*)
13875         # FIXME: insert proper C++ library support
13876         ld_shlibs_CXX=no
13877         ;;
13878
13879       mvs*)
13880         case $cc_basename in
13881           cxx*)
13882             # FIXME: insert proper C++ library support
13883             ld_shlibs_CXX=no
13884             ;;
13885           *)
13886             # FIXME: insert proper C++ library support
13887             ld_shlibs_CXX=no
13888             ;;
13889         esac
13890         ;;
13891
13892       netbsd*)
13893         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13895           wlarc=
13896           hardcode_libdir_flag_spec_CXX='-R$libdir'
13897           hardcode_direct_CXX=yes
13898           hardcode_shlibpath_var_CXX=no
13899         fi
13900         # Workaround some broken pre-1.5 toolchains
13901         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13902         ;;
13903
13904       *nto* | *qnx*)
13905         ld_shlibs_CXX=yes
13906         ;;
13907
13908       openbsd2*)
13909         # C++ shared libraries are fairly broken
13910         ld_shlibs_CXX=no
13911         ;;
13912
13913       openbsd*)
13914         if test -f /usr/libexec/ld.so; then
13915           hardcode_direct_CXX=yes
13916           hardcode_shlibpath_var_CXX=no
13917           hardcode_direct_absolute_CXX=yes
13918           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13919           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13920           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13921             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13922             export_dynamic_flag_spec_CXX='${wl}-E'
13923             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13924           fi
13925           output_verbose_link_cmd=echo
13926         else
13927           ld_shlibs_CXX=no
13928         fi
13929         ;;
13930
13931       osf3* | osf4* | osf5*)
13932         case $cc_basename in
13933           KCC*)
13934             # Kuck and Associates, Inc. (KAI) C++ Compiler
13935
13936             # KCC will only create a shared library if the output file
13937             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13938             # to its proper name (with version) after linking.
13939             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'
13940
13941             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13942             hardcode_libdir_separator_CXX=:
13943
13944             # Archives containing C++ object files must be created using
13945             # the KAI C++ compiler.
13946             case $host in
13947               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13948               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13949             esac
13950             ;;
13951           RCC*)
13952             # Rational C++ 2.4.1
13953             # FIXME: insert proper C++ library support
13954             ld_shlibs_CXX=no
13955             ;;
13956           cxx*)
13957             case $host in
13958               osf3*)
13959                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13960                 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'
13961                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13962                 ;;
13963               *)
13964                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13965                 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'
13966                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13967                   echo "-hidden">> $lib.exp~
13968                   $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~
13969                   $RM $lib.exp'
13970                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13971                 ;;
13972             esac
13973
13974             hardcode_libdir_separator_CXX=:
13975
13976             # Commands to make compiler produce verbose output that lists
13977             # what "hidden" libraries, object files and flags are used when
13978             # linking a shared library.
13979             #
13980             # There doesn't appear to be a way to prevent this compiler from
13981             # explicitly linking system object files so we need to strip them
13982             # from the output so that they don't get included in the library
13983             # dependencies.
13984             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'
13985             ;;
13986           *)
13987             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13988               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13989               case $host in
13990                 osf3*)
13991                   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'
13992                   ;;
13993                 *)
13994                   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'
13995                   ;;
13996               esac
13997
13998               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13999               hardcode_libdir_separator_CXX=:
14000
14001               # Commands to make compiler produce verbose output that lists
14002               # what "hidden" libraries, object files and flags are used when
14003               # linking a shared library.
14004               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14005
14006             else
14007               # FIXME: insert proper C++ library support
14008               ld_shlibs_CXX=no
14009             fi
14010             ;;
14011         esac
14012         ;;
14013
14014       psos*)
14015         # FIXME: insert proper C++ library support
14016         ld_shlibs_CXX=no
14017         ;;
14018
14019       sunos4*)
14020         case $cc_basename in
14021           CC*)
14022             # Sun C++ 4.x
14023             # FIXME: insert proper C++ library support
14024             ld_shlibs_CXX=no
14025             ;;
14026           lcc*)
14027             # Lucid
14028             # FIXME: insert proper C++ library support
14029             ld_shlibs_CXX=no
14030             ;;
14031           *)
14032             # FIXME: insert proper C++ library support
14033             ld_shlibs_CXX=no
14034             ;;
14035         esac
14036         ;;
14037
14038       solaris*)
14039         case $cc_basename in
14040           CC*)
14041             # Sun C++ 4.2, 5.x and Centerline C++
14042             archive_cmds_need_lc_CXX=yes
14043             no_undefined_flag_CXX=' -zdefs'
14044             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14046               $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'
14047
14048             hardcode_libdir_flag_spec_CXX='-R$libdir'
14049             hardcode_shlibpath_var_CXX=no
14050             case $host_os in
14051               solaris2.[0-5] | solaris2.[0-5].*) ;;
14052               *)
14053                 # The compiler driver will combine and reorder linker options,
14054                 # but understands `-z linker_flag'.
14055                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14056                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14057                 ;;
14058             esac
14059             link_all_deplibs_CXX=yes
14060
14061             output_verbose_link_cmd='echo'
14062
14063             # Archives containing C++ object files must be created using
14064             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14065             # necessary to make sure instantiated templates are included
14066             # in the archive.
14067             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14068             ;;
14069           gcx*)
14070             # Green Hills C++ Compiler
14071             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14072
14073             # The C++ compiler must be used to create the archive.
14074             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14075             ;;
14076           *)
14077             # GNU C++ compiler with Solaris linker
14078             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14079               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14080               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14081                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14082                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14083                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14084
14085                 # Commands to make compiler produce verbose output that lists
14086                 # what "hidden" libraries, object files and flags are used when
14087                 # linking a shared library.
14088                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14089               else
14090                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14091                 # platform.
14092                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14093                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14095
14096                 # Commands to make compiler produce verbose output that lists
14097                 # what "hidden" libraries, object files and flags are used when
14098                 # linking a shared library.
14099                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14100               fi
14101
14102               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14103               case $host_os in
14104                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14105                 *)
14106                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14107                   ;;
14108               esac
14109             fi
14110             ;;
14111         esac
14112         ;;
14113
14114     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14115       no_undefined_flag_CXX='${wl}-z,text'
14116       archive_cmds_need_lc_CXX=no
14117       hardcode_shlibpath_var_CXX=no
14118       runpath_var='LD_RUN_PATH'
14119
14120       case $cc_basename in
14121         CC*)
14122           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124           ;;
14125         *)
14126           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14127           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128           ;;
14129       esac
14130       ;;
14131
14132       sysv5* | sco3.2v5* | sco5v6*)
14133         # Note: We can NOT use -z defs as we might desire, because we do not
14134         # link with -lc, and that would cause any symbols used from libc to
14135         # always be unresolved, which means just about no library would
14136         # ever link correctly.  If we're not using GNU ld we use -z text
14137         # though, which does catch some bad symbols but isn't as heavy-handed
14138         # as -z defs.
14139         no_undefined_flag_CXX='${wl}-z,text'
14140         allow_undefined_flag_CXX='${wl}-z,nodefs'
14141         archive_cmds_need_lc_CXX=no
14142         hardcode_shlibpath_var_CXX=no
14143         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14144         hardcode_libdir_separator_CXX=':'
14145         link_all_deplibs_CXX=yes
14146         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14147         runpath_var='LD_RUN_PATH'
14148
14149         case $cc_basename in
14150           CC*)
14151             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153             ;;
14154           *)
14155             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14157             ;;
14158         esac
14159       ;;
14160
14161       tandem*)
14162         case $cc_basename in
14163           NCC*)
14164             # NonStop-UX NCC 3.20
14165             # FIXME: insert proper C++ library support
14166             ld_shlibs_CXX=no
14167             ;;
14168           *)
14169             # FIXME: insert proper C++ library support
14170             ld_shlibs_CXX=no
14171             ;;
14172         esac
14173         ;;
14174
14175       vxworks*)
14176         # FIXME: insert proper C++ library support
14177         ld_shlibs_CXX=no
14178         ;;
14179
14180       *)
14181         # FIXME: insert proper C++ library support
14182         ld_shlibs_CXX=no
14183         ;;
14184     esac
14185
14186     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14187 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14188     test "$ld_shlibs_CXX" = no && can_build_shared=no
14189
14190     GCC_CXX="$GXX"
14191     LD_CXX="$LD"
14192
14193     ## CAVEAT EMPTOR:
14194     ## There is no encapsulation within the following macros, do not change
14195     ## the running order or otherwise move them around unless you know exactly
14196     ## what you are doing...
14197     # Dependencies to place before and after the object being linked:
14198 predep_objects_CXX=
14199 postdep_objects_CXX=
14200 predeps_CXX=
14201 postdeps_CXX=
14202 compiler_lib_search_path_CXX=
14203
14204 cat > conftest.$ac_ext <<_LT_EOF
14205 class Foo
14206 {
14207 public:
14208   Foo (void) { a = 0; }
14209 private:
14210   int a;
14211 };
14212 _LT_EOF
14213
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215   (eval $ac_compile) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; then
14219   # Parse the compiler output and extract the necessary
14220   # objects, libraries and library flags.
14221
14222   # Sentinel used to keep track of whether or not we are before
14223   # the conftest object file.
14224   pre_test_object_deps_done=no
14225
14226   for p in `eval "$output_verbose_link_cmd"`; do
14227     case $p in
14228
14229     -L* | -R* | -l*)
14230        # Some compilers place space between "-{L,R}" and the path.
14231        # Remove the space.
14232        if test $p = "-L" ||
14233           test $p = "-R"; then
14234          prev=$p
14235          continue
14236        else
14237          prev=
14238        fi
14239
14240        if test "$pre_test_object_deps_done" = no; then
14241          case $p in
14242          -L* | -R*)
14243            # Internal compiler library paths should come after those
14244            # provided the user.  The postdeps already come after the
14245            # user supplied libs so there is no need to process them.
14246            if test -z "$compiler_lib_search_path_CXX"; then
14247              compiler_lib_search_path_CXX="${prev}${p}"
14248            else
14249              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14250            fi
14251            ;;
14252          # The "-l" case would never come before the object being
14253          # linked, so don't bother handling this case.
14254          esac
14255        else
14256          if test -z "$postdeps_CXX"; then
14257            postdeps_CXX="${prev}${p}"
14258          else
14259            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14260          fi
14261        fi
14262        ;;
14263
14264     *.$objext)
14265        # This assumes that the test object file only shows up
14266        # once in the compiler output.
14267        if test "$p" = "conftest.$objext"; then
14268          pre_test_object_deps_done=yes
14269          continue
14270        fi
14271
14272        if test "$pre_test_object_deps_done" = no; then
14273          if test -z "$predep_objects_CXX"; then
14274            predep_objects_CXX="$p"
14275          else
14276            predep_objects_CXX="$predep_objects_CXX $p"
14277          fi
14278        else
14279          if test -z "$postdep_objects_CXX"; then
14280            postdep_objects_CXX="$p"
14281          else
14282            postdep_objects_CXX="$postdep_objects_CXX $p"
14283          fi
14284        fi
14285        ;;
14286
14287     *) ;; # Ignore the rest.
14288
14289     esac
14290   done
14291
14292   # Clean up.
14293   rm -f a.out a.exe
14294 else
14295   echo "libtool.m4: error: problem compiling CXX test program"
14296 fi
14297
14298 $RM -f confest.$objext
14299
14300 # PORTME: override above test on systems where it is broken
14301 case $host_os in
14302 interix[3-9]*)
14303   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14304   # hack all around it, let's just trust "g++" to DTRT.
14305   predep_objects_CXX=
14306   postdep_objects_CXX=
14307   postdeps_CXX=
14308   ;;
14309
14310 linux*)
14311   case `$CC -V 2>&1 | sed 5q` in
14312   *Sun\ C*)
14313     # Sun C++ 5.9
14314
14315     # The more standards-conforming stlport4 library is
14316     # incompatible with the Cstd library. Avoid specifying
14317     # it if it's in CXXFLAGS. Ignore libCrun as
14318     # -library=stlport4 depends on it.
14319     case " $CXX $CXXFLAGS " in
14320     *" -library=stlport4 "*)
14321       solaris_use_stlport4=yes
14322       ;;
14323     esac
14324
14325     if test "$solaris_use_stlport4" != yes; then
14326       postdeps_CXX='-library=Cstd -library=Crun'
14327     fi
14328     ;;
14329   esac
14330   ;;
14331
14332 solaris*)
14333   case $cc_basename in
14334   CC*)
14335     # The more standards-conforming stlport4 library is
14336     # incompatible with the Cstd library. Avoid specifying
14337     # it if it's in CXXFLAGS. Ignore libCrun as
14338     # -library=stlport4 depends on it.
14339     case " $CXX $CXXFLAGS " in
14340     *" -library=stlport4 "*)
14341       solaris_use_stlport4=yes
14342       ;;
14343     esac
14344
14345     # Adding this requires a known-good setup of shared libraries for
14346     # Sun compiler versions before 5.6, else PIC objects from an old
14347     # archive will be linked into the output, leading to subtle bugs.
14348     if test "$solaris_use_stlport4" != yes; then
14349       postdeps_CXX='-library=Cstd -library=Crun'
14350     fi
14351     ;;
14352   esac
14353   ;;
14354 esac
14355
14356
14357 case " $postdeps_CXX " in
14358 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14359 esac
14360  compiler_lib_search_dirs_CXX=
14361 if test -n "${compiler_lib_search_path_CXX}"; then
14362  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14363 fi
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395     lt_prog_compiler_wl_CXX=
14396 lt_prog_compiler_pic_CXX=
14397 lt_prog_compiler_static_CXX=
14398
14399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14401
14402   # C++ specific cases for pic, static, wl, etc.
14403   if test "$GXX" = yes; then
14404     lt_prog_compiler_wl_CXX='-Wl,'
14405     lt_prog_compiler_static_CXX='-static'
14406
14407     case $host_os in
14408     aix*)
14409       # All AIX code is PIC.
14410       if test "$host_cpu" = ia64; then
14411         # AIX 5 now supports IA64 processor
14412         lt_prog_compiler_static_CXX='-Bstatic'
14413       fi
14414       ;;
14415
14416     amigaos*)
14417       case $host_cpu in
14418       powerpc)
14419             # see comment about AmigaOS4 .so support
14420             lt_prog_compiler_pic_CXX='-fPIC'
14421         ;;
14422       m68k)
14423             # FIXME: we need at least 68020 code to build shared libraries, but
14424             # adding the `-m68020' flag to GCC prevents building anything better,
14425             # like `-m68040'.
14426             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14427         ;;
14428       esac
14429       ;;
14430
14431     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14432       # PIC is the default for these OSes.
14433       ;;
14434     mingw* | cygwin* | os2* | pw32* | cegcc*)
14435       # This hack is so that the source file can tell whether it is being
14436       # built for inclusion in a dll (and should export symbols for example).
14437       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14438       # (--disable-auto-import) libraries
14439       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14440       ;;
14441     darwin* | rhapsody*)
14442       # PIC is the default on this platform
14443       # Common symbols not allowed in MH_DYLIB files
14444       lt_prog_compiler_pic_CXX='-fno-common'
14445       ;;
14446     *djgpp*)
14447       # DJGPP does not support shared libraries at all
14448       lt_prog_compiler_pic_CXX=
14449       ;;
14450     interix[3-9]*)
14451       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14452       # Instead, we relocate shared libraries at runtime.
14453       ;;
14454     sysv4*MP*)
14455       if test -d /usr/nec; then
14456         lt_prog_compiler_pic_CXX=-Kconform_pic
14457       fi
14458       ;;
14459     hpux*)
14460       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14461       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14462       # sets the default TLS model and affects inlining.
14463       case $host_cpu in
14464       hppa*64*)
14465         ;;
14466       *)
14467         lt_prog_compiler_pic_CXX='-fPIC'
14468         ;;
14469       esac
14470       ;;
14471     *qnx* | *nto*)
14472       # QNX uses GNU C++, but need to define -shared option too, otherwise
14473       # it will coredump.
14474       lt_prog_compiler_pic_CXX='-fPIC -shared'
14475       ;;
14476     *)
14477       lt_prog_compiler_pic_CXX='-fPIC'
14478       ;;
14479     esac
14480   else
14481     case $host_os in
14482       aix[4-9]*)
14483         # All AIX code is PIC.
14484         if test "$host_cpu" = ia64; then
14485           # AIX 5 now supports IA64 processor
14486           lt_prog_compiler_static_CXX='-Bstatic'
14487         else
14488           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14489         fi
14490         ;;
14491       chorus*)
14492         case $cc_basename in
14493         cxch68*)
14494           # Green Hills C++ Compiler
14495           # _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"
14496           ;;
14497         esac
14498         ;;
14499       dgux*)
14500         case $cc_basename in
14501           ec++*)
14502             lt_prog_compiler_pic_CXX='-KPIC'
14503             ;;
14504           ghcx*)
14505             # Green Hills C++ Compiler
14506             lt_prog_compiler_pic_CXX='-pic'
14507             ;;
14508           *)
14509             ;;
14510         esac
14511         ;;
14512       freebsd* | dragonfly*)
14513         # FreeBSD uses GNU C++
14514         ;;
14515       hpux9* | hpux10* | hpux11*)
14516         case $cc_basename in
14517           CC*)
14518             lt_prog_compiler_wl_CXX='-Wl,'
14519             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14520             if test "$host_cpu" != ia64; then
14521               lt_prog_compiler_pic_CXX='+Z'
14522             fi
14523             ;;
14524           aCC*)
14525             lt_prog_compiler_wl_CXX='-Wl,'
14526             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14527             case $host_cpu in
14528             hppa*64*|ia64*)
14529               # +Z the default
14530               ;;
14531             *)
14532               lt_prog_compiler_pic_CXX='+Z'
14533               ;;
14534             esac
14535             ;;
14536           *)
14537             ;;
14538         esac
14539         ;;
14540       interix*)
14541         # This is c89, which is MS Visual C++ (no shared libs)
14542         # Anyone wants to do a port?
14543         ;;
14544       irix5* | irix6* | nonstopux*)
14545         case $cc_basename in
14546           CC*)
14547             lt_prog_compiler_wl_CXX='-Wl,'
14548             lt_prog_compiler_static_CXX='-non_shared'
14549             # CC pic flag -KPIC is the default.
14550             ;;
14551           *)
14552             ;;
14553         esac
14554         ;;
14555       linux* | k*bsd*-gnu)
14556         case $cc_basename in
14557           KCC*)
14558             # KAI C++ Compiler
14559             lt_prog_compiler_wl_CXX='--backend -Wl,'
14560             lt_prog_compiler_pic_CXX='-fPIC'
14561             ;;
14562           ecpc* )
14563             # old Intel C++ for x86_64 which still supported -KPIC.
14564             lt_prog_compiler_wl_CXX='-Wl,'
14565             lt_prog_compiler_pic_CXX='-KPIC'
14566             lt_prog_compiler_static_CXX='-static'
14567             ;;
14568           icpc* )
14569             # Intel C++, used to be incompatible with GCC.
14570             # ICC 10 doesn't accept -KPIC any more.
14571             lt_prog_compiler_wl_CXX='-Wl,'
14572             lt_prog_compiler_pic_CXX='-fPIC'
14573             lt_prog_compiler_static_CXX='-static'
14574             ;;
14575           pgCC* | pgcpp*)
14576             # Portland Group C++ compiler
14577             lt_prog_compiler_wl_CXX='-Wl,'
14578             lt_prog_compiler_pic_CXX='-fpic'
14579             lt_prog_compiler_static_CXX='-Bstatic'
14580             ;;
14581           cxx*)
14582             # Compaq C++
14583             # Make sure the PIC flag is empty.  It appears that all Alpha
14584             # Linux and Compaq Tru64 Unix objects are PIC.
14585             lt_prog_compiler_pic_CXX=
14586             lt_prog_compiler_static_CXX='-non_shared'
14587             ;;
14588           xlc* | xlC*)
14589             # IBM XL 8.0 on PPC
14590             lt_prog_compiler_wl_CXX='-Wl,'
14591             lt_prog_compiler_pic_CXX='-qpic'
14592             lt_prog_compiler_static_CXX='-qstaticlink'
14593             ;;
14594           *)
14595             case `$CC -V 2>&1 | sed 5q` in
14596             *Sun\ C*)
14597               # Sun C++ 5.9
14598               lt_prog_compiler_pic_CXX='-KPIC'
14599               lt_prog_compiler_static_CXX='-Bstatic'
14600               lt_prog_compiler_wl_CXX='-Qoption ld '
14601               ;;
14602             esac
14603             ;;
14604         esac
14605         ;;
14606       lynxos*)
14607         ;;
14608       m88k*)
14609         ;;
14610       mvs*)
14611         case $cc_basename in
14612           cxx*)
14613             lt_prog_compiler_pic_CXX='-W c,exportall'
14614             ;;
14615           *)
14616             ;;
14617         esac
14618         ;;
14619       netbsd*)
14620         ;;
14621       *qnx* | *nto*)
14622         # QNX uses GNU C++, but need to define -shared option too, otherwise
14623         # it will coredump.
14624         lt_prog_compiler_pic_CXX='-fPIC -shared'
14625         ;;
14626       osf3* | osf4* | osf5*)
14627         case $cc_basename in
14628           KCC*)
14629             lt_prog_compiler_wl_CXX='--backend -Wl,'
14630             ;;
14631           RCC*)
14632             # Rational C++ 2.4.1
14633             lt_prog_compiler_pic_CXX='-pic'
14634             ;;
14635           cxx*)
14636             # Digital/Compaq C++
14637             lt_prog_compiler_wl_CXX='-Wl,'
14638             # Make sure the PIC flag is empty.  It appears that all Alpha
14639             # Linux and Compaq Tru64 Unix objects are PIC.
14640             lt_prog_compiler_pic_CXX=
14641             lt_prog_compiler_static_CXX='-non_shared'
14642             ;;
14643           *)
14644             ;;
14645         esac
14646         ;;
14647       psos*)
14648         ;;
14649       solaris*)
14650         case $cc_basename in
14651           CC*)
14652             # Sun C++ 4.2, 5.x and Centerline C++
14653             lt_prog_compiler_pic_CXX='-KPIC'
14654             lt_prog_compiler_static_CXX='-Bstatic'
14655             lt_prog_compiler_wl_CXX='-Qoption ld '
14656             ;;
14657           gcx*)
14658             # Green Hills C++ Compiler
14659             lt_prog_compiler_pic_CXX='-PIC'
14660             ;;
14661           *)
14662             ;;
14663         esac
14664         ;;
14665       sunos4*)
14666         case $cc_basename in
14667           CC*)
14668             # Sun C++ 4.x
14669             lt_prog_compiler_pic_CXX='-pic'
14670             lt_prog_compiler_static_CXX='-Bstatic'
14671             ;;
14672           lcc*)
14673             # Lucid
14674             lt_prog_compiler_pic_CXX='-pic'
14675             ;;
14676           *)
14677             ;;
14678         esac
14679         ;;
14680       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14681         case $cc_basename in
14682           CC*)
14683             lt_prog_compiler_wl_CXX='-Wl,'
14684             lt_prog_compiler_pic_CXX='-KPIC'
14685             lt_prog_compiler_static_CXX='-Bstatic'
14686             ;;
14687         esac
14688         ;;
14689       tandem*)
14690         case $cc_basename in
14691           NCC*)
14692             # NonStop-UX NCC 3.20
14693             lt_prog_compiler_pic_CXX='-KPIC'
14694             ;;
14695           *)
14696             ;;
14697         esac
14698         ;;
14699       vxworks*)
14700         ;;
14701       *)
14702         lt_prog_compiler_can_build_shared_CXX=no
14703         ;;
14704     esac
14705   fi
14706
14707 case $host_os in
14708   # For platforms which do not support PIC, -DPIC is meaningless:
14709   *djgpp*)
14710     lt_prog_compiler_pic_CXX=
14711     ;;
14712   *)
14713     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14714     ;;
14715 esac
14716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14717 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14718
14719
14720
14721 #
14722 # Check to make sure the PIC flag actually works.
14723 #
14724 if test -n "$lt_prog_compiler_pic_CXX"; then
14725   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14726 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14727 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14728   echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730   lt_cv_prog_compiler_pic_works_CXX=no
14731    ac_outfile=conftest.$ac_objext
14732    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14733    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14734    # Insert the option either (1) after the last *FLAGS variable, or
14735    # (2) before a word containing "conftest.", or (3) at the end.
14736    # Note that $ac_compile itself does not contain backslashes and begins
14737    # with a dollar sign (not a hyphen), so the echo should work correctly.
14738    # The option is referenced via a variable to avoid confusing sed.
14739    lt_compile=`echo "$ac_compile" | $SED \
14740    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14741    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14742    -e 's:$: $lt_compiler_flag:'`
14743    (eval echo "\"\$as_me:14743: $lt_compile\"" >&5)
14744    (eval "$lt_compile" 2>conftest.err)
14745    ac_status=$?
14746    cat conftest.err >&5
14747    echo "$as_me:14747: \$? = $ac_status" >&5
14748    if (exit $ac_status) && test -s "$ac_outfile"; then
14749      # The compiler can only warn and ignore the option if not recognized
14750      # So say no if there are warnings other than the usual output.
14751      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14752      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14753      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14754        lt_cv_prog_compiler_pic_works_CXX=yes
14755      fi
14756    fi
14757    $RM conftest*
14758
14759 fi
14760 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14761 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14762
14763 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14764     case $lt_prog_compiler_pic_CXX in
14765      "" | " "*) ;;
14766      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14767      esac
14768 else
14769     lt_prog_compiler_pic_CXX=
14770      lt_prog_compiler_can_build_shared_CXX=no
14771 fi
14772
14773 fi
14774
14775
14776
14777 #
14778 # Check to make sure the static flag actually works.
14779 #
14780 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14781 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14782 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14783 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   lt_cv_prog_compiler_static_works_CXX=no
14787    save_LDFLAGS="$LDFLAGS"
14788    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14789    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14790    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14791      # The linker can only warn and ignore the option if not recognized
14792      # So say no if there are warnings
14793      if test -s conftest.err; then
14794        # Append any errors to the config.log.
14795        cat conftest.err 1>&5
14796        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14797        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798        if diff conftest.exp conftest.er2 >/dev/null; then
14799          lt_cv_prog_compiler_static_works_CXX=yes
14800        fi
14801      else
14802        lt_cv_prog_compiler_static_works_CXX=yes
14803      fi
14804    fi
14805    $RM -r conftest*
14806    LDFLAGS="$save_LDFLAGS"
14807
14808 fi
14809 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14810 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14811
14812 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14813     :
14814 else
14815     lt_prog_compiler_static_CXX=
14816 fi
14817
14818
14819
14820
14821     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14823 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   lt_cv_prog_compiler_c_o_CXX=no
14827    $RM -r conftest 2>/dev/null
14828    mkdir conftest
14829    cd conftest
14830    mkdir out
14831    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14832
14833    lt_compiler_flag="-o out/conftest2.$ac_objext"
14834    # Insert the option either (1) after the last *FLAGS variable, or
14835    # (2) before a word containing "conftest.", or (3) at the end.
14836    # Note that $ac_compile itself does not contain backslashes and begins
14837    # with a dollar sign (not a hyphen), so the echo should work correctly.
14838    lt_compile=`echo "$ac_compile" | $SED \
14839    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14841    -e 's:$: $lt_compiler_flag:'`
14842    (eval echo "\"\$as_me:14842: $lt_compile\"" >&5)
14843    (eval "$lt_compile" 2>out/conftest.err)
14844    ac_status=$?
14845    cat out/conftest.err >&5
14846    echo "$as_me:14846: \$? = $ac_status" >&5
14847    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14848    then
14849      # The compiler can only warn and ignore the option if not recognized
14850      # So say no if there are warnings
14851      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14852      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14853      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14854        lt_cv_prog_compiler_c_o_CXX=yes
14855      fi
14856    fi
14857    chmod u+w . 2>&5
14858    $RM conftest*
14859    # SGI C++ compiler will create directory out/ii_files/ for
14860    # template instantiation
14861    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14862    $RM out/* && rmdir out
14863    cd ..
14864    $RM -r conftest
14865    $RM conftest*
14866
14867 fi
14868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14869 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14870
14871
14872
14873     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14874 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14875 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14876   echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878   lt_cv_prog_compiler_c_o_CXX=no
14879    $RM -r conftest 2>/dev/null
14880    mkdir conftest
14881    cd conftest
14882    mkdir out
14883    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14884
14885    lt_compiler_flag="-o out/conftest2.$ac_objext"
14886    # Insert the option either (1) after the last *FLAGS variable, or
14887    # (2) before a word containing "conftest.", or (3) at the end.
14888    # Note that $ac_compile itself does not contain backslashes and begins
14889    # with a dollar sign (not a hyphen), so the echo should work correctly.
14890    lt_compile=`echo "$ac_compile" | $SED \
14891    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14893    -e 's:$: $lt_compiler_flag:'`
14894    (eval echo "\"\$as_me:14894: $lt_compile\"" >&5)
14895    (eval "$lt_compile" 2>out/conftest.err)
14896    ac_status=$?
14897    cat out/conftest.err >&5
14898    echo "$as_me:14898: \$? = $ac_status" >&5
14899    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14900    then
14901      # The compiler can only warn and ignore the option if not recognized
14902      # So say no if there are warnings
14903      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14904      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14905      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14906        lt_cv_prog_compiler_c_o_CXX=yes
14907      fi
14908    fi
14909    chmod u+w . 2>&5
14910    $RM conftest*
14911    # SGI C++ compiler will create directory out/ii_files/ for
14912    # template instantiation
14913    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14914    $RM out/* && rmdir out
14915    cd ..
14916    $RM -r conftest
14917    $RM conftest*
14918
14919 fi
14920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14922
14923
14924
14925
14926 hard_links="nottested"
14927 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14928   # do not overwrite the value of need_locks provided by the user
14929   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14930 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14931   hard_links=yes
14932   $RM conftest*
14933   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14934   touch conftest.a
14935   ln conftest.a conftest.b 2>&5 || hard_links=no
14936   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14937   { echo "$as_me:$LINENO: result: $hard_links" >&5
14938 echo "${ECHO_T}$hard_links" >&6; }
14939   if test "$hard_links" = no; then
14940     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14941 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14942     need_locks=warn
14943   fi
14944 else
14945   need_locks=no
14946 fi
14947
14948
14949
14950     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14951 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14952
14953   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954   case $host_os in
14955   aix[4-9]*)
14956     # If we're using GNU nm, then we don't want the "-C" option.
14957     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14958     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14959       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'
14960     else
14961       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'
14962     fi
14963     ;;
14964   pw32*)
14965     export_symbols_cmds_CXX="$ltdll_cmds"
14966   ;;
14967   cygwin* | mingw* | cegcc*)
14968     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'
14969   ;;
14970   *)
14971     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14972   ;;
14973   esac
14974   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14975
14976 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14977 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14978 test "$ld_shlibs_CXX" = no && can_build_shared=no
14979
14980 with_gnu_ld_CXX=$with_gnu_ld
14981
14982
14983
14984
14985
14986
14987 #
14988 # Do we need to explicitly link libc?
14989 #
14990 case "x$archive_cmds_need_lc_CXX" in
14991 x|xyes)
14992   # Assume -lc should be added
14993   archive_cmds_need_lc_CXX=yes
14994
14995   if test "$enable_shared" = yes && test "$GCC" = yes; then
14996     case $archive_cmds_CXX in
14997     *'~'*)
14998       # FIXME: we may have to deal with multi-command sequences.
14999       ;;
15000     '$CC '*)
15001       # Test whether the compiler implicitly links with -lc since on some
15002       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15003       # to ld, don't add -lc before -lgcc.
15004       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15005 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15006       $RM conftest*
15007       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15008
15009       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010   (eval $ac_compile) 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); } 2>conftest.err; then
15014         soname=conftest
15015         lib=conftest
15016         libobjs=conftest.$ac_objext
15017         deplibs=
15018         wl=$lt_prog_compiler_wl_CXX
15019         pic_flag=$lt_prog_compiler_pic_CXX
15020         compiler_flags=-v
15021         linker_flags=-v
15022         verstring=
15023         output_objdir=.
15024         libname=conftest
15025         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15026         allow_undefined_flag_CXX=
15027         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15028   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); }
15032         then
15033           archive_cmds_need_lc_CXX=no
15034         else
15035           archive_cmds_need_lc_CXX=yes
15036         fi
15037         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15038       else
15039         cat conftest.err 1>&5
15040       fi
15041       $RM conftest*
15042       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15043 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15044       ;;
15045     esac
15046   fi
15047   ;;
15048 esac
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15114 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15115
15116 library_names_spec=
15117 libname_spec='lib$name'
15118 soname_spec=
15119 shrext_cmds=".so"
15120 postinstall_cmds=
15121 postuninstall_cmds=
15122 finish_cmds=
15123 finish_eval=
15124 shlibpath_var=
15125 shlibpath_overrides_runpath=unknown
15126 version_type=none
15127 dynamic_linker="$host_os ld.so"
15128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15129 need_lib_prefix=unknown
15130 hardcode_into_libs=no
15131
15132 # when you set need_version to no, make sure it does not cause -set_version
15133 # flags to be left without arguments
15134 need_version=unknown
15135
15136 case $host_os in
15137 aix3*)
15138   version_type=linux
15139   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15140   shlibpath_var=LIBPATH
15141
15142   # AIX 3 has no versioning support, so we append a major version to the name.
15143   soname_spec='${libname}${release}${shared_ext}$major'
15144   ;;
15145
15146 aix[4-9]*)
15147   version_type=linux
15148   need_lib_prefix=no
15149   need_version=no
15150   hardcode_into_libs=yes
15151   if test "$host_cpu" = ia64; then
15152     # AIX 5 supports IA64
15153     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15154     shlibpath_var=LD_LIBRARY_PATH
15155   else
15156     # With GCC up to 2.95.x, collect2 would create an import file
15157     # for dependence libraries.  The import file would start with
15158     # the line `#! .'.  This would cause the generated library to
15159     # depend on `.', always an invalid library.  This was fixed in
15160     # development snapshots of GCC prior to 3.0.
15161     case $host_os in
15162       aix4 | aix4.[01] | aix4.[01].*)
15163       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15164            echo ' yes '
15165            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15166         :
15167       else
15168         can_build_shared=no
15169       fi
15170       ;;
15171     esac
15172     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15173     # soname into executable. Probably we can add versioning support to
15174     # collect2, so additional links can be useful in future.
15175     if test "$aix_use_runtimelinking" = yes; then
15176       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15177       # instead of lib<name>.a to let people know that these are not
15178       # typical AIX shared libraries.
15179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180     else
15181       # We preserve .a as extension for shared libraries through AIX4.2
15182       # and later when we are not doing run time linking.
15183       library_names_spec='${libname}${release}.a $libname.a'
15184       soname_spec='${libname}${release}${shared_ext}$major'
15185     fi
15186     shlibpath_var=LIBPATH
15187   fi
15188   ;;
15189
15190 amigaos*)
15191   case $host_cpu in
15192   powerpc)
15193     # Since July 2007 AmigaOS4 officially supports .so libraries.
15194     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196     ;;
15197   m68k)
15198     library_names_spec='$libname.ixlibrary $libname.a'
15199     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15200     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'
15201     ;;
15202   esac
15203   ;;
15204
15205 beos*)
15206   library_names_spec='${libname}${shared_ext}'
15207   dynamic_linker="$host_os ld.so"
15208   shlibpath_var=LIBRARY_PATH
15209   ;;
15210
15211 bsdi[45]*)
15212   version_type=linux
15213   need_version=no
15214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215   soname_spec='${libname}${release}${shared_ext}$major'
15216   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15217   shlibpath_var=LD_LIBRARY_PATH
15218   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15219   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15220   # the default ld.so.conf also contains /usr/contrib/lib and
15221   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15222   # libtool to hard-code these into programs
15223   ;;
15224
15225 cygwin* | mingw* | pw32* | cegcc*)
15226   version_type=windows
15227   shrext_cmds=".dll"
15228   need_version=no
15229   need_lib_prefix=no
15230
15231   case $GCC,$host_os in
15232   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15233     library_names_spec='$libname.dll.a'
15234     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15235     postinstall_cmds='base_file=`basename \${file}`~
15236       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15237       dldir=$destdir/`dirname \$dlpath`~
15238       test -d \$dldir || mkdir -p \$dldir~
15239       $install_prog $dir/$dlname \$dldir/$dlname~
15240       chmod a+x \$dldir/$dlname~
15241       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15242         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15243       fi'
15244     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15245       dlpath=$dir/\$dldll~
15246        $RM \$dlpath'
15247     shlibpath_overrides_runpath=yes
15248
15249     case $host_os in
15250     cygwin*)
15251       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15252       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15253       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15254       ;;
15255     mingw* | cegcc*)
15256       # MinGW DLLs use traditional 'lib' prefix
15257       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15258       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15259       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15260         # It is most probably a Windows format PATH printed by
15261         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15262         # path with ; separators, and with drive letters. We can handle the
15263         # drive letters (cygwin fileutils understands them), so leave them,
15264         # especially as we might pass files found there to a mingw objdump,
15265         # which wouldn't understand a cygwinified path. Ahh.
15266         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15267       else
15268         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15269       fi
15270       ;;
15271     pw32*)
15272       # pw32 DLLs use 'pw' prefix rather than 'lib'
15273       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15274       ;;
15275     esac
15276     ;;
15277
15278   *)
15279     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15280     ;;
15281   esac
15282   dynamic_linker='Win32 ld.exe'
15283   # FIXME: first we should search . and the directory the executable is in
15284   shlibpath_var=PATH
15285   ;;
15286
15287 darwin* | rhapsody*)
15288   dynamic_linker="$host_os dyld"
15289   version_type=darwin
15290   need_lib_prefix=no
15291   need_version=no
15292   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15293   soname_spec='${libname}${release}${major}$shared_ext'
15294   shlibpath_overrides_runpath=yes
15295   shlibpath_var=DYLD_LIBRARY_PATH
15296   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15297
15298   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15299   ;;
15300
15301 dgux*)
15302   version_type=linux
15303   need_lib_prefix=no
15304   need_version=no
15305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15306   soname_spec='${libname}${release}${shared_ext}$major'
15307   shlibpath_var=LD_LIBRARY_PATH
15308   ;;
15309
15310 freebsd1*)
15311   dynamic_linker=no
15312   ;;
15313
15314 freebsd* | dragonfly*)
15315   # DragonFly does not have aout.  When/if they implement a new
15316   # versioning mechanism, adjust this.
15317   if test -x /usr/bin/objformat; then
15318     objformat=`/usr/bin/objformat`
15319   else
15320     case $host_os in
15321     freebsd[123]*) objformat=aout ;;
15322     *) objformat=elf ;;
15323     esac
15324   fi
15325   version_type=freebsd-$objformat
15326   case $version_type in
15327     freebsd-elf*)
15328       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15329       need_version=no
15330       need_lib_prefix=no
15331       ;;
15332     freebsd-*)
15333       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15334       need_version=yes
15335       ;;
15336   esac
15337   shlibpath_var=LD_LIBRARY_PATH
15338   case $host_os in
15339   freebsd2*)
15340     shlibpath_overrides_runpath=yes
15341     ;;
15342   freebsd3.[01]* | freebsdelf3.[01]*)
15343     shlibpath_overrides_runpath=yes
15344     hardcode_into_libs=yes
15345     ;;
15346   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15347   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15348     shlibpath_overrides_runpath=no
15349     hardcode_into_libs=yes
15350     ;;
15351   *) # from 4.6 on, and DragonFly
15352     shlibpath_overrides_runpath=yes
15353     hardcode_into_libs=yes
15354     ;;
15355   esac
15356   ;;
15357
15358 gnu*)
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   hardcode_into_libs=yes
15366   ;;
15367
15368 hpux9* | hpux10* | hpux11*)
15369   # Give a soname corresponding to the major version so that dld.sl refuses to
15370   # link against other versions.
15371   version_type=sunos
15372   need_lib_prefix=no
15373   need_version=no
15374   case $host_cpu in
15375   ia64*)
15376     shrext_cmds='.so'
15377     hardcode_into_libs=yes
15378     dynamic_linker="$host_os dld.so"
15379     shlibpath_var=LD_LIBRARY_PATH
15380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382     soname_spec='${libname}${release}${shared_ext}$major'
15383     if test "X$HPUX_IA64_MODE" = X32; then
15384       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15385     else
15386       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15387     fi
15388     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15389     ;;
15390   hppa*64*)
15391     shrext_cmds='.sl'
15392     hardcode_into_libs=yes
15393     dynamic_linker="$host_os dld.sl"
15394     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15395     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397     soname_spec='${libname}${release}${shared_ext}$major'
15398     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15399     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15400     ;;
15401   *)
15402     shrext_cmds='.sl'
15403     dynamic_linker="$host_os dld.sl"
15404     shlibpath_var=SHLIB_PATH
15405     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407     soname_spec='${libname}${release}${shared_ext}$major'
15408     ;;
15409   esac
15410   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15411   postinstall_cmds='chmod 555 $lib'
15412   ;;
15413
15414 interix[3-9]*)
15415   version_type=linux
15416   need_lib_prefix=no
15417   need_version=no
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15419   soname_spec='${libname}${release}${shared_ext}$major'
15420   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15421   shlibpath_var=LD_LIBRARY_PATH
15422   shlibpath_overrides_runpath=no
15423   hardcode_into_libs=yes
15424   ;;
15425
15426 irix5* | irix6* | nonstopux*)
15427   case $host_os in
15428     nonstopux*) version_type=nonstopux ;;
15429     *)
15430         if test "$lt_cv_prog_gnu_ld" = yes; then
15431                 version_type=linux
15432         else
15433                 version_type=irix
15434         fi ;;
15435   esac
15436   need_lib_prefix=no
15437   need_version=no
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15440   case $host_os in
15441   irix5* | nonstopux*)
15442     libsuff= shlibsuff=
15443     ;;
15444   *)
15445     case $LD in # libtool.m4 will add one of these switches to LD
15446     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15447       libsuff= shlibsuff= libmagic=32-bit;;
15448     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15449       libsuff=32 shlibsuff=N32 libmagic=N32;;
15450     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15451       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15452     *) libsuff= shlibsuff= libmagic=never-match;;
15453     esac
15454     ;;
15455   esac
15456   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15457   shlibpath_overrides_runpath=no
15458   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15459   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15460   hardcode_into_libs=yes
15461   ;;
15462
15463 # No shared lib support for Linux oldld, aout, or coff.
15464 linux*oldld* | linux*aout* | linux*coff*)
15465   dynamic_linker=no
15466   ;;
15467
15468 # This must be Linux ELF.
15469 linux* | k*bsd*-gnu)
15470   version_type=linux
15471   need_lib_prefix=no
15472   need_version=no
15473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474   soname_spec='${libname}${release}${shared_ext}$major'
15475   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15476   shlibpath_var=LD_LIBRARY_PATH
15477   shlibpath_overrides_runpath=no
15478   # Some binutils ld are patched to set DT_RUNPATH
15479   save_LDFLAGS=$LDFLAGS
15480   save_libdir=$libdir
15481   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15482        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15483   cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h.  */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h.  */
15489
15490 int
15491 main ()
15492 {
15493
15494   ;
15495   return 0;
15496 }
15497 _ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_link") 2>conftest.er1
15506   ac_status=$?
15507   grep -v '^ *+' conftest.er1 >conftest.err
15508   rm -f conftest.er1
15509   cat conftest.err >&5
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } && {
15512          test -z "$ac_cxx_werror_flag" ||
15513          test ! -s conftest.err
15514        } && test -s conftest$ac_exeext &&
15515        $as_test_x conftest$ac_exeext; then
15516   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15517   shlibpath_overrides_runpath=yes
15518 fi
15519
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524
15525 fi
15526
15527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15528       conftest$ac_exeext conftest.$ac_ext
15529   LDFLAGS=$save_LDFLAGS
15530   libdir=$save_libdir
15531
15532   # This implies no fast_install, which is unacceptable.
15533   # Some rework will be needed to allow for fast_install
15534   # before this can be enabled.
15535   hardcode_into_libs=yes
15536
15537   # Append ld.so.conf contents to the search path
15538   if test -f /etc/ld.so.conf; then
15539     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' ' '`
15540     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15541   fi
15542
15543   # We used to test for /lib/ld.so.1 and disable shared libraries on
15544   # powerpc, because MkLinux only supported shared libraries with the
15545   # GNU dynamic linker.  Since this was broken with cross compilers,
15546   # most powerpc-linux boxes support dynamic linking these days and
15547   # people can always --disable-shared, the test was removed, and we
15548   # assume the GNU/Linux dynamic linker is in use.
15549   dynamic_linker='GNU/Linux ld.so'
15550   ;;
15551
15552 netbsd*)
15553   version_type=sunos
15554   need_lib_prefix=no
15555   need_version=no
15556   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15559     dynamic_linker='NetBSD (a.out) ld.so'
15560   else
15561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15562     soname_spec='${libname}${release}${shared_ext}$major'
15563     dynamic_linker='NetBSD ld.elf_so'
15564   fi
15565   shlibpath_var=LD_LIBRARY_PATH
15566   shlibpath_overrides_runpath=yes
15567   hardcode_into_libs=yes
15568   ;;
15569
15570 newsos6)
15571   version_type=linux
15572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573   shlibpath_var=LD_LIBRARY_PATH
15574   shlibpath_overrides_runpath=yes
15575   ;;
15576
15577 *nto* | *qnx*)
15578   version_type=qnx
15579   need_lib_prefix=no
15580   need_version=no
15581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582   soname_spec='${libname}${release}${shared_ext}$major'
15583   shlibpath_var=LD_LIBRARY_PATH
15584   shlibpath_overrides_runpath=no
15585   hardcode_into_libs=yes
15586   dynamic_linker='ldqnx.so'
15587   ;;
15588
15589 openbsd*)
15590   version_type=sunos
15591   sys_lib_dlsearch_path_spec="/usr/lib"
15592   need_lib_prefix=no
15593   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15594   case $host_os in
15595     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15596     *)                          need_version=no  ;;
15597   esac
15598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15599   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15600   shlibpath_var=LD_LIBRARY_PATH
15601   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15602     case $host_os in
15603       openbsd2.[89] | openbsd2.[89].*)
15604         shlibpath_overrides_runpath=no
15605         ;;
15606       *)
15607         shlibpath_overrides_runpath=yes
15608         ;;
15609       esac
15610   else
15611     shlibpath_overrides_runpath=yes
15612   fi
15613   ;;
15614
15615 os2*)
15616   libname_spec='$name'
15617   shrext_cmds=".dll"
15618   need_lib_prefix=no
15619   library_names_spec='$libname${shared_ext} $libname.a'
15620   dynamic_linker='OS/2 ld.exe'
15621   shlibpath_var=LIBPATH
15622   ;;
15623
15624 osf3* | osf4* | osf5*)
15625   version_type=osf
15626   need_lib_prefix=no
15627   need_version=no
15628   soname_spec='${libname}${release}${shared_ext}$major'
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15632   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15633   ;;
15634
15635 rdos*)
15636   dynamic_linker=no
15637   ;;
15638
15639 solaris*)
15640   version_type=linux
15641   need_lib_prefix=no
15642   need_version=no
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644   soname_spec='${libname}${release}${shared_ext}$major'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   shlibpath_overrides_runpath=yes
15647   hardcode_into_libs=yes
15648   # ldd complains unless libraries are executable
15649   postinstall_cmds='chmod +x $lib'
15650   ;;
15651
15652 sunos4*)
15653   version_type=sunos
15654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15655   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   shlibpath_overrides_runpath=yes
15658   if test "$with_gnu_ld" = yes; then
15659     need_lib_prefix=no
15660   fi
15661   need_version=yes
15662   ;;
15663
15664 sysv4 | sysv4.3*)
15665   version_type=linux
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667   soname_spec='${libname}${release}${shared_ext}$major'
15668   shlibpath_var=LD_LIBRARY_PATH
15669   case $host_vendor in
15670     sni)
15671       shlibpath_overrides_runpath=no
15672       need_lib_prefix=no
15673       runpath_var=LD_RUN_PATH
15674       ;;
15675     siemens)
15676       need_lib_prefix=no
15677       ;;
15678     motorola)
15679       need_lib_prefix=no
15680       need_version=no
15681       shlibpath_overrides_runpath=no
15682       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15683       ;;
15684   esac
15685   ;;
15686
15687 sysv4*MP*)
15688   if test -d /usr/nec ;then
15689     version_type=linux
15690     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15691     soname_spec='$libname${shared_ext}.$major'
15692     shlibpath_var=LD_LIBRARY_PATH
15693   fi
15694   ;;
15695
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15697   version_type=freebsd-elf
15698   need_lib_prefix=no
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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   if test "$with_gnu_ld" = yes; then
15706     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15707   else
15708     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709     case $host_os in
15710       sco3.2v5*)
15711         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15712         ;;
15713     esac
15714   fi
15715   sys_lib_dlsearch_path_spec='/usr/lib'
15716   ;;
15717
15718 tpf*)
15719   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15720   version_type=linux
15721   need_lib_prefix=no
15722   need_version=no
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=no
15726   hardcode_into_libs=yes
15727   ;;
15728
15729 uts4*)
15730   version_type=linux
15731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732   soname_spec='${libname}${release}${shared_ext}$major'
15733   shlibpath_var=LD_LIBRARY_PATH
15734   ;;
15735
15736 *)
15737   dynamic_linker=no
15738   ;;
15739 esac
15740 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15741 echo "${ECHO_T}$dynamic_linker" >&6; }
15742 test "$dynamic_linker" = no && can_build_shared=no
15743
15744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15745 if test "$GCC" = yes; then
15746   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15747 fi
15748
15749 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15750   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15751 fi
15752 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15753   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15754 fi
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15792 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15793 hardcode_action_CXX=
15794 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15795    test -n "$runpath_var_CXX" ||
15796    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15797
15798   # We can hardcode non-existent directories.
15799   if test "$hardcode_direct_CXX" != no &&
15800      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15801      # have to relink, otherwise we might link with an installed library
15802      # when we should be linking with a yet-to-be-installed one
15803      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15804      test "$hardcode_minus_L_CXX" != no; then
15805     # Linking always hardcodes the temporary library directory.
15806     hardcode_action_CXX=relink
15807   else
15808     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15809     hardcode_action_CXX=immediate
15810   fi
15811 else
15812   # We cannot hardcode anything, or else we can only hardcode existing
15813   # directories.
15814   hardcode_action_CXX=unsupported
15815 fi
15816 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15817 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15818
15819 if test "$hardcode_action_CXX" = relink ||
15820    test "$inherit_rpath_CXX" = yes; then
15821   # Fast installation is not supported
15822   enable_fast_install=no
15823 elif test "$shlibpath_overrides_runpath" = yes ||
15824      test "$enable_shared" = no; then
15825   # Fast installation is not necessary
15826   enable_fast_install=needless
15827 fi
15828
15829
15830
15831
15832
15833
15834
15835   fi # test -n "$compiler"
15836
15837   CC=$lt_save_CC
15838   LDCXX=$LD
15839   LD=$lt_save_LD
15840   GCC=$lt_save_GCC
15841   with_gnu_ld=$lt_save_with_gnu_ld
15842   lt_cv_path_LDCXX=$lt_cv_path_LD
15843   lt_cv_path_LD=$lt_save_path_LD
15844   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15845   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15846 fi # test "$_lt_caught_CXX_error" != yes
15847
15848 ac_ext=c
15849 ac_cpp='$CPP $CPPFLAGS'
15850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866         ac_config_commands="$ac_config_commands libtool"
15867
15868
15869
15870
15871 # Only expand once:
15872
15873
15874
15875
15876 if test x$use_libtool != xno; then
15877    DEFAULT_OBJECT_TYPE=".lo"
15878    DEFAULT_ARCHIVE_TYPE=".la"
15879    DEFAULT_SHARED_OBJECT_TYPE=".la"
15880    LIBTOOL="\$(LIBTOOL)"
15881    LIBTOOL_INSTALL_TARGET="libtool-install"
15882    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15883    LIBTOOL_CLEAN_TARGET="libtool-clean"
15884    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15885 else
15886    DEFAULT_OBJECT_TYPE=".o"
15887    DEFAULT_ARCHIVE_TYPE=".a"
15888    DEFAULT_SHARED_OBJECT_TYPE=".so"
15889    LIBTOOL="# \$(LIBTOOL)"
15890    LIBTOOL_INSTALL_TARGET=""
15891    LIBTOOL_UNINSTALL_TARGET=""
15892    LIBTOOL_CLEAN_TARGET=""
15893    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15894 fi
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905 # Check whether --enable-includes was given.
15906 if test "${enable_includes+set}" = set; then
15907   enableval=$enable_includes;
15908        if test x$enableval = xno; then
15909           install_includes=no
15910        fi
15911
15912
15913 fi
15914
15915
15916
15917 if test x$use_libtool != xno -a x$install_includes != no; then
15918    INCLUDE_INSTALL_TARGET="install-includes"
15919    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15920 else
15921    INCLUDE_INSTALL_TARGET=""
15922    INCLUDE_UNINSTALL_TARGET=""
15923 fi
15924
15925
15926
15927
15928 { echo "$as_me:$LINENO: checking host system type" >&5
15929 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15930 if test "${ac_cv_host+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   if test "x$host_alias" = x; then
15934   ac_cv_host=$ac_cv_build
15935 else
15936   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15937     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15938 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15939    { (exit 1); exit 1; }; }
15940 fi
15941
15942 fi
15943 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15944 echo "${ECHO_T}$ac_cv_host" >&6; }
15945 case $ac_cv_host in
15946 *-*-*) ;;
15947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15948 echo "$as_me: error: invalid value of canonical host" >&2;}
15949    { (exit 1); exit 1; }; };;
15950 esac
15951 host=$ac_cv_host
15952 ac_save_IFS=$IFS; IFS='-'
15953 set x $ac_cv_host
15954 shift
15955 host_cpu=$1
15956 host_vendor=$2
15957 shift; shift
15958 # Remember, the first character of IFS is used to create $*,
15959 # except with old shells:
15960 host_os=$*
15961 IFS=$ac_save_IFS
15962 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15963
15964
15965 case $host_os in
15966   *cygwin* ) CYGWIN=yes;;
15967          * ) CYGWIN=no;;
15968 esac
15969
15970 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15971 then
15972
15973
15974 if $TRUEPRG; then
15975   HAVE_SUN_OS_TRUE=
15976   HAVE_SUN_OS_FALSE='#'
15977 else
15978   HAVE_SUN_OS_TRUE='#'
15979   HAVE_SUN_OS_FALSE=
15980 fi
15981         cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_SUN_OS 1
15983 _ACEOF
15984
15985 else
15986
15987
15988 if $FALSEPRG; then
15989   HAVE_SUN_OS_TRUE=
15990   HAVE_SUN_OS_FALSE='#'
15991 else
15992   HAVE_SUN_OS_TRUE='#'
15993   HAVE_SUN_OS_FALSE=
15994 fi
15995 fi
15996
15997 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15998 then
15999
16000
16001 if $TRUEPRG; then
16002   HAVE_OSF1_OS_TRUE=
16003   HAVE_OSF1_OS_FALSE='#'
16004 else
16005   HAVE_OSF1_OS_TRUE='#'
16006   HAVE_OSF1_OS_FALSE=
16007 fi
16008         cat >>confdefs.h <<\_ACEOF
16009 #define HAVE_OSF1_OS 1
16010 _ACEOF
16011
16012 else
16013
16014
16015 if $FALSEPRG; then
16016   HAVE_OSF1_OS_TRUE=
16017   HAVE_OSF1_OS_FALSE='#'
16018 else
16019   HAVE_OSF1_OS_TRUE='#'
16020   HAVE_OSF1_OS_FALSE=
16021 fi
16022 fi
16023
16024 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16025 then
16026
16027
16028 if $TRUEPRG; then
16029   HAVE_AIX_OS_TRUE=
16030   HAVE_AIX_OS_FALSE='#'
16031 else
16032   HAVE_AIX_OS_TRUE='#'
16033   HAVE_AIX_OS_FALSE=
16034 fi
16035         cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_AIX_OS 1
16037 _ACEOF
16038
16039 else
16040
16041
16042 if $FALSEPRG; then
16043   HAVE_AIX_OS_TRUE=
16044   HAVE_AIX_OS_FALSE='#'
16045 else
16046   HAVE_AIX_OS_TRUE='#'
16047   HAVE_AIX_OS_FALSE=
16048 fi
16049 fi
16050
16051 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16052 then
16053
16054
16055 if $TRUEPRG; then
16056   HAVE_HPUX_OS_TRUE=
16057   HAVE_HPUX_OS_FALSE='#'
16058 else
16059   HAVE_HPUX_OS_TRUE='#'
16060   HAVE_HPUX_OS_FALSE=
16061 fi
16062         cat >>confdefs.h <<\_ACEOF
16063 #define HAVE_HPUX_OS 1
16064 _ACEOF
16065
16066 else
16067
16068
16069 if $FALSEPRG; then
16070   HAVE_HPUX_OS_TRUE=
16071   HAVE_HPUX_OS_FALSE='#'
16072 else
16073   HAVE_HPUX_OS_TRUE='#'
16074   HAVE_HPUX_OS_FALSE=
16075 fi
16076 fi
16077
16078 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16079 then
16080
16081
16082 if $TRUEPRG; then
16083   HAVE_LINUX_OS_TRUE=
16084   HAVE_LINUX_OS_FALSE='#'
16085 else
16086   HAVE_LINUX_OS_TRUE='#'
16087   HAVE_LINUX_OS_FALSE=
16088 fi
16089         cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_LINUX_OS 1
16091 _ACEOF
16092
16093 else
16094
16095
16096 if $FALSEPRG; then
16097   HAVE_LINUX_OS_TRUE=
16098   HAVE_LINUX_OS_FALSE='#'
16099 else
16100   HAVE_LINUX_OS_TRUE='#'
16101   HAVE_LINUX_OS_FALSE=
16102 fi
16103 fi
16104
16105 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16106 then
16107
16108
16109 if $TRUEPRG; then
16110   HAVE_FREEBSD_OS_TRUE=
16111   HAVE_FREEBSD_OS_FALSE='#'
16112 else
16113   HAVE_FREEBSD_OS_TRUE='#'
16114   HAVE_FREEBSD_OS_FALSE=
16115 fi
16116         cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_FREEBSD_OS 1
16118 _ACEOF
16119
16120 else
16121
16122
16123 if $FALSEPRG; then
16124   HAVE_FREEBSD_OS_TRUE=
16125   HAVE_FREEBSD_OS_FALSE='#'
16126 else
16127   HAVE_FREEBSD_OS_TRUE='#'
16128   HAVE_FREEBSD_OS_FALSE=
16129 fi
16130 fi
16131
16132 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16133 then
16134
16135
16136 if $TRUEPRG; then
16137   HAVE_NETBSD_OS_TRUE=
16138   HAVE_NETBSD_OS_FALSE='#'
16139 else
16140   HAVE_NETBSD_OS_TRUE='#'
16141   HAVE_NETBSD_OS_FALSE=
16142 fi
16143         cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_NETBSD_OS 1
16145 _ACEOF
16146
16147 else
16148
16149
16150 if $FALSEPRG; then
16151   HAVE_NETBSD_OS_TRUE=
16152   HAVE_NETBSD_OS_FALSE='#'
16153 else
16154   HAVE_NETBSD_OS_TRUE='#'
16155   HAVE_NETBSD_OS_FALSE=
16156 fi
16157 fi
16158
16159 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16160 then
16161
16162
16163 if $TRUEPRG; then
16164   HAVE_OPENBSD_OS_TRUE=
16165   HAVE_OPENBSD_OS_FALSE='#'
16166 else
16167   HAVE_OPENBSD_OS_TRUE='#'
16168   HAVE_OPENBSD_OS_FALSE=
16169 fi
16170         cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_OPENBSD_OS 1
16172 _ACEOF
16173
16174 else
16175
16176
16177 if $FALSEPRG; then
16178   HAVE_OPENBSD_OS_TRUE=
16179   HAVE_OPENBSD_OS_FALSE='#'
16180 else
16181   HAVE_OPENBSD_OS_TRUE='#'
16182   HAVE_OPENBSD_OS_FALSE=
16183 fi
16184 fi
16185
16186 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16187 then
16188
16189
16190 if $TRUEPRG; then
16191   HAVE_BSDI_OS_TRUE=
16192   HAVE_BSDI_OS_FALSE='#'
16193 else
16194   HAVE_BSDI_OS_TRUE='#'
16195   HAVE_BSDI_OS_FALSE=
16196 fi
16197         cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_BSDI_OS 1
16199 _ACEOF
16200
16201 else
16202
16203
16204 if $FALSEPRG; then
16205   HAVE_BSDI_OS_TRUE=
16206   HAVE_BSDI_OS_FALSE='#'
16207 else
16208   HAVE_BSDI_OS_TRUE='#'
16209   HAVE_BSDI_OS_FALSE=
16210 fi
16211 fi
16212
16213 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16214 then
16215
16216
16217 if $TRUEPRG; then
16218   HAVE_SGI_OS_TRUE=
16219   HAVE_SGI_OS_FALSE='#'
16220 else
16221   HAVE_SGI_OS_TRUE='#'
16222   HAVE_SGI_OS_FALSE=
16223 fi
16224         cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_SGI_OS 1
16226 _ACEOF
16227
16228 else
16229
16230
16231 if $FALSEPRG; then
16232   HAVE_SGI_OS_TRUE=
16233   HAVE_SGI_OS_FALSE='#'
16234 else
16235   HAVE_SGI_OS_TRUE='#'
16236   HAVE_SGI_OS_FALSE=
16237 fi
16238 fi
16239
16240 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16241 then
16242
16243
16244 if $TRUEPRG; then
16245   HAVE_IRIX_OS_TRUE=
16246   HAVE_IRIX_OS_FALSE='#'
16247 else
16248   HAVE_IRIX_OS_TRUE='#'
16249   HAVE_IRIX_OS_FALSE=
16250 fi
16251         cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_IRIX_OS 1
16253 _ACEOF
16254
16255 else
16256
16257
16258 if $FALSEPRG; then
16259   HAVE_IRIX_OS_TRUE=
16260   HAVE_IRIX_OS_FALSE='#'
16261 else
16262   HAVE_IRIX_OS_TRUE='#'
16263   HAVE_IRIX_OS_FALSE=
16264 fi
16265 fi
16266
16267 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16268 then
16269
16270
16271 if $TRUEPRG; then
16272   HAVE_DARWIN_OS_TRUE=
16273   HAVE_DARWIN_OS_FALSE='#'
16274 else
16275   HAVE_DARWIN_OS_TRUE='#'
16276   HAVE_DARWIN_OS_FALSE=
16277 fi
16278     cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_DARWIN_OS 1
16280 _ACEOF
16281
16282 else
16283
16284
16285 if $FALSEPRG; then
16286   HAVE_DARWIN_OS_TRUE=
16287   HAVE_DARWIN_OS_FALSE='#'
16288 else
16289   HAVE_DARWIN_OS_TRUE='#'
16290   HAVE_DARWIN_OS_FALSE=
16291 fi
16292 fi
16293
16294
16295 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16296 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16297 if test "x$DISTNAME" != "x"
16298 then
16299         echo "distname set to $DISTNAME"
16300 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16301 then
16302         DISTNAME=alpha
16303 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16304 then
16305         DISTNAME=aix
16306 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16307 then
16308         DISTNAME=hpux
16309 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16310 then
16311         DISTNAME=solaris
16312 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16313 then
16314         DISTNAME=freebsd
16315 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16316 then
16317         DISTNAME=netbsd
16318 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16319 then
16320         DISTNAME=openbsd
16321 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16322 then
16323         DISTNAME=irix
16324 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16325 then
16326         DISTNAME=bsdi
16327 elif test -f /etc/SuSE-release
16328 then
16329         DISTNAME=suse
16330 elif test -d /etc/SuSEconfig
16331 then
16332         DISTNAME=suse5
16333 elif test -f /etc/mandrake-release
16334 then
16335         DISTNAME=mandrake
16336 elif test -f /etc/whitebox-release
16337 then
16338        DISTNAME=redhat
16339 elif test -f /etc/redhat-release
16340 then
16341         DISTNAME=redhat
16342 elif test -f /etc/gentoo-release
16343 then
16344         DISTNAME=gentoo
16345 elif test -f /etc/debian_version
16346 then
16347         DISTNAME=debian
16348 elif test -f /etc/slackware-version
16349 then
16350         DISTNAME=slackware
16351 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16352 then
16353     DISTNAME=darwin
16354 elif test -f /etc/engarde-version
16355 then
16356         DISTNAME=engarde
16357 elif test "$CYGWIN" = yes
16358 then
16359         DISTNAME=cygwin
16360         cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_CYGWIN 1
16362 _ACEOF
16363
16364 else
16365         DISTNAME=unknown
16366 fi
16367 { echo "$as_me:$LINENO: result: done" >&5
16368 echo "${ECHO_T}done" >&6; }
16369
16370
16371 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16372 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16373 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16374 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16375   echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377   cat >conftest.make <<\_ACEOF
16378 SHELL = /bin/sh
16379 all:
16380         @echo '@@@%%%=$(MAKE)=@@@%%%'
16381 _ACEOF
16382 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16383 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16384   *@@@%%%=?*=@@@%%%*)
16385     eval ac_cv_prog_make_${ac_make}_set=yes;;
16386   *)
16387     eval ac_cv_prog_make_${ac_make}_set=no;;
16388 esac
16389 rm -f conftest.make
16390 fi
16391 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16392   { echo "$as_me:$LINENO: result: yes" >&5
16393 echo "${ECHO_T}yes" >&6; }
16394   SET_MAKE=
16395 else
16396   { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16398   SET_MAKE="MAKE=${MAKE-make}"
16399 fi
16400
16401
16402
16403         MKINSTALLDIRS=
16404   if test -n "$ac_aux_dir"; then
16405     case "$ac_aux_dir" in
16406       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16407       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16408     esac
16409   fi
16410   if test -z "$MKINSTALLDIRS"; then
16411     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16412   fi
16413
16414
16415
16416   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16417 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16418     # Check whether --enable-nls was given.
16419 if test "${enable_nls+set}" = set; then
16420   enableval=$enable_nls; USE_NLS=$enableval
16421 else
16422   USE_NLS=yes
16423 fi
16424
16425   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16426 echo "${ECHO_T}$USE_NLS" >&6; }
16427
16428
16429
16430
16431
16432
16433 # Prepare PATH_SEPARATOR.
16434 # The user is always right.
16435 if test "${PATH_SEPARATOR+set}" != set; then
16436   echo "#! /bin/sh" >conf$$.sh
16437   echo  "exit 0"   >>conf$$.sh
16438   chmod +x conf$$.sh
16439   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16440     PATH_SEPARATOR=';'
16441   else
16442     PATH_SEPARATOR=:
16443   fi
16444   rm -f conf$$.sh
16445 fi
16446
16447 # Find out how to test for executable files. Don't use a zero-byte file,
16448 # as systems may use methods other than mode bits to determine executability.
16449 cat >conf$$.file <<_ASEOF
16450 #! /bin/sh
16451 exit 0
16452 _ASEOF
16453 chmod +x conf$$.file
16454 if test -x conf$$.file >/dev/null 2>&1; then
16455   ac_executable_p="test -x"
16456 else
16457   ac_executable_p="test -f"
16458 fi
16459 rm -f conf$$.file
16460
16461 # Extract the first word of "msgfmt", so it can be a program name with args.
16462 set dummy msgfmt; ac_word=$2
16463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16465 if test "${ac_cv_path_MSGFMT+set}" = set; then
16466   echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468   case "$MSGFMT" in
16469   [\\/]* | ?:[\\/]*)
16470     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16471     ;;
16472   *)
16473     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16474     for ac_dir in $PATH; do
16475       IFS="$ac_save_IFS"
16476       test -z "$ac_dir" && ac_dir=.
16477       for ac_exec_ext in '' $ac_executable_extensions; do
16478         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16479           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16480           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16481      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16482             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16483             break 2
16484           fi
16485         fi
16486       done
16487     done
16488     IFS="$ac_save_IFS"
16489   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16490     ;;
16491 esac
16492 fi
16493 MSGFMT="$ac_cv_path_MSGFMT"
16494 if test "$MSGFMT" != ":"; then
16495   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16496 echo "${ECHO_T}$MSGFMT" >&6; }
16497 else
16498   { echo "$as_me:$LINENO: result: no" >&5
16499 echo "${ECHO_T}no" >&6; }
16500 fi
16501
16502   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16503 set dummy gmsgfmt; ac_word=$2
16504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16506 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16507   echo $ECHO_N "(cached) $ECHO_C" >&6
16508 else
16509   case $GMSGFMT in
16510   [\\/]* | ?:[\\/]*)
16511   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16512   ;;
16513   *)
16514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517   IFS=$as_save_IFS
16518   test -z "$as_dir" && as_dir=.
16519   for ac_exec_ext in '' $ac_executable_extensions; do
16520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16521     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16523     break 2
16524   fi
16525 done
16526 done
16527 IFS=$as_save_IFS
16528
16529   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16530   ;;
16531 esac
16532 fi
16533 GMSGFMT=$ac_cv_path_GMSGFMT
16534 if test -n "$GMSGFMT"; then
16535   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16536 echo "${ECHO_T}$GMSGFMT" >&6; }
16537 else
16538   { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16540 fi
16541
16542
16543
16544
16545 # Prepare PATH_SEPARATOR.
16546 # The user is always right.
16547 if test "${PATH_SEPARATOR+set}" != set; then
16548   echo "#! /bin/sh" >conf$$.sh
16549   echo  "exit 0"   >>conf$$.sh
16550   chmod +x conf$$.sh
16551   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16552     PATH_SEPARATOR=';'
16553   else
16554     PATH_SEPARATOR=:
16555   fi
16556   rm -f conf$$.sh
16557 fi
16558
16559 # Find out how to test for executable files. Don't use a zero-byte file,
16560 # as systems may use methods other than mode bits to determine executability.
16561 cat >conf$$.file <<_ASEOF
16562 #! /bin/sh
16563 exit 0
16564 _ASEOF
16565 chmod +x conf$$.file
16566 if test -x conf$$.file >/dev/null 2>&1; then
16567   ac_executable_p="test -x"
16568 else
16569   ac_executable_p="test -f"
16570 fi
16571 rm -f conf$$.file
16572
16573 # Extract the first word of "xgettext", so it can be a program name with args.
16574 set dummy xgettext; ac_word=$2
16575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16577 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16578   echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580   case "$XGETTEXT" in
16581   [\\/]* | ?:[\\/]*)
16582     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16583     ;;
16584   *)
16585     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16586     for ac_dir in $PATH; do
16587       IFS="$ac_save_IFS"
16588       test -z "$ac_dir" && ac_dir=.
16589       for ac_exec_ext in '' $ac_executable_extensions; do
16590         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16591           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16592           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16593      (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
16594             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16595             break 2
16596           fi
16597         fi
16598       done
16599     done
16600     IFS="$ac_save_IFS"
16601   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16602     ;;
16603 esac
16604 fi
16605 XGETTEXT="$ac_cv_path_XGETTEXT"
16606 if test "$XGETTEXT" != ":"; then
16607   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16608 echo "${ECHO_T}$XGETTEXT" >&6; }
16609 else
16610   { echo "$as_me:$LINENO: result: no" >&5
16611 echo "${ECHO_T}no" >&6; }
16612 fi
16613
16614     rm -f messages.po
16615
16616
16617 # Prepare PATH_SEPARATOR.
16618 # The user is always right.
16619 if test "${PATH_SEPARATOR+set}" != set; then
16620   echo "#! /bin/sh" >conf$$.sh
16621   echo  "exit 0"   >>conf$$.sh
16622   chmod +x conf$$.sh
16623   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16624     PATH_SEPARATOR=';'
16625   else
16626     PATH_SEPARATOR=:
16627   fi
16628   rm -f conf$$.sh
16629 fi
16630
16631 # Find out how to test for executable files. Don't use a zero-byte file,
16632 # as systems may use methods other than mode bits to determine executability.
16633 cat >conf$$.file <<_ASEOF
16634 #! /bin/sh
16635 exit 0
16636 _ASEOF
16637 chmod +x conf$$.file
16638 if test -x conf$$.file >/dev/null 2>&1; then
16639   ac_executable_p="test -x"
16640 else
16641   ac_executable_p="test -f"
16642 fi
16643 rm -f conf$$.file
16644
16645 # Extract the first word of "msgmerge", so it can be a program name with args.
16646 set dummy msgmerge; ac_word=$2
16647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16649 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16650   echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652   case "$MSGMERGE" in
16653   [\\/]* | ?:[\\/]*)
16654     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16655     ;;
16656   *)
16657     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16658     for ac_dir in $PATH; do
16659       IFS="$ac_save_IFS"
16660       test -z "$ac_dir" && ac_dir=.
16661       for ac_exec_ext in '' $ac_executable_extensions; do
16662         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16663           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16664           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16665             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16666             break 2
16667           fi
16668         fi
16669       done
16670     done
16671     IFS="$ac_save_IFS"
16672   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16673     ;;
16674 esac
16675 fi
16676 MSGMERGE="$ac_cv_path_MSGMERGE"
16677 if test "$MSGMERGE" != ":"; then
16678   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16679 echo "${ECHO_T}$MSGMERGE" >&6; }
16680 else
16681   { echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6; }
16683 fi
16684
16685
16686       if test "$GMSGFMT" != ":"; then
16687             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16688        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16689       : ;
16690     else
16691       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16692       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16693 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16694       GMSGFMT=":"
16695     fi
16696   fi
16697
16698       if test "$XGETTEXT" != ":"; then
16699             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16700        (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
16701       : ;
16702     else
16703       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16704 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16705       XGETTEXT=":"
16706     fi
16707         rm -f messages.po
16708   fi
16709
16710   ac_config_commands="$ac_config_commands default-1"
16711
16712
16713
16714       if test "X$prefix" = "XNONE"; then
16715     acl_final_prefix="$ac_default_prefix"
16716   else
16717     acl_final_prefix="$prefix"
16718   fi
16719   if test "X$exec_prefix" = "XNONE"; then
16720     acl_final_exec_prefix='${prefix}'
16721   else
16722     acl_final_exec_prefix="$exec_prefix"
16723   fi
16724   acl_save_prefix="$prefix"
16725   prefix="$acl_final_prefix"
16726   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16727   prefix="$acl_save_prefix"
16728
16729
16730 # Check whether --with-gnu-ld was given.
16731 if test "${with_gnu_ld+set}" = set; then
16732   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16733 else
16734   with_gnu_ld=no
16735 fi
16736
16737 # Prepare PATH_SEPARATOR.
16738 # The user is always right.
16739 if test "${PATH_SEPARATOR+set}" != set; then
16740   echo "#! /bin/sh" >conf$$.sh
16741   echo  "exit 0"   >>conf$$.sh
16742   chmod +x conf$$.sh
16743   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16744     PATH_SEPARATOR=';'
16745   else
16746     PATH_SEPARATOR=:
16747   fi
16748   rm -f conf$$.sh
16749 fi
16750 ac_prog=ld
16751 if test "$GCC" = yes; then
16752   # Check if gcc -print-prog-name=ld gives a path.
16753   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16754 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16755   case $host in
16756   *-*-mingw*)
16757     # gcc leaves a trailing carriage return which upsets mingw
16758     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16759   *)
16760     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16761   esac
16762   case $ac_prog in
16763     # Accept absolute paths.
16764     [\\/]* | [A-Za-z]:[\\/]*)
16765       re_direlt='/[^/][^/]*/\.\./'
16766       # Canonicalize the path of ld
16767       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16768       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16769         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16770       done
16771       test -z "$LD" && LD="$ac_prog"
16772       ;;
16773   "")
16774     # If it fails, then pretend we aren't using GCC.
16775     ac_prog=ld
16776     ;;
16777   *)
16778     # If it is relative, then search for the first ld in PATH.
16779     with_gnu_ld=unknown
16780     ;;
16781   esac
16782 elif test "$with_gnu_ld" = yes; then
16783   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16785 else
16786   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16788 fi
16789 if test "${acl_cv_path_LD+set}" = set; then
16790   echo $ECHO_N "(cached) $ECHO_C" >&6
16791 else
16792   if test -z "$LD"; then
16793   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16794   for ac_dir in $PATH; do
16795     test -z "$ac_dir" && ac_dir=.
16796     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16797       acl_cv_path_LD="$ac_dir/$ac_prog"
16798       # Check to see if the program is GNU ld.  I'd rather use --version,
16799       # but apparently some GNU ld's only accept -v.
16800       # Break only if it was the GNU/non-GNU ld that we prefer.
16801       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16802       *GNU* | *'with BFD'*)
16803         test "$with_gnu_ld" != no && break ;;
16804       *)
16805         test "$with_gnu_ld" != yes && break ;;
16806       esac
16807     fi
16808   done
16809   IFS="$ac_save_ifs"
16810 else
16811   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16812 fi
16813 fi
16814
16815 LD="$acl_cv_path_LD"
16816 if test -n "$LD"; then
16817   { echo "$as_me:$LINENO: result: $LD" >&5
16818 echo "${ECHO_T}$LD" >&6; }
16819 else
16820   { echo "$as_me:$LINENO: result: no" >&5
16821 echo "${ECHO_T}no" >&6; }
16822 fi
16823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16825    { (exit 1); exit 1; }; }
16826 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16828 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16832 case `$LD -v 2>&1 </dev/null` in
16833 *GNU* | *'with BFD'*)
16834   acl_cv_prog_gnu_ld=yes ;;
16835 *)
16836   acl_cv_prog_gnu_ld=no ;;
16837 esac
16838 fi
16839 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16840 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16841 with_gnu_ld=$acl_cv_prog_gnu_ld
16842
16843
16844
16845
16846                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16847 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16848 if test "${acl_cv_rpath+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851
16852     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16853     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16854     . ./conftest.sh
16855     rm -f ./conftest.sh
16856     acl_cv_rpath=done
16857
16858 fi
16859 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16860 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16861   wl="$acl_cv_wl"
16862   libext="$acl_cv_libext"
16863   shlibext="$acl_cv_shlibext"
16864   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16865   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16866   hardcode_direct="$acl_cv_hardcode_direct"
16867   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16868     # Check whether --enable-rpath was given.
16869 if test "${enable_rpath+set}" = set; then
16870   enableval=$enable_rpath; :
16871 else
16872   enable_rpath=yes
16873 fi
16874
16875
16876
16877
16878
16879
16880
16881
16882     use_additional=yes
16883
16884   acl_save_prefix="$prefix"
16885   prefix="$acl_final_prefix"
16886   acl_save_exec_prefix="$exec_prefix"
16887   exec_prefix="$acl_final_exec_prefix"
16888
16889     eval additional_includedir=\"$includedir\"
16890     eval additional_libdir=\"$libdir\"
16891
16892   exec_prefix="$acl_save_exec_prefix"
16893   prefix="$acl_save_prefix"
16894
16895
16896 # Check whether --with-libiconv-prefix was given.
16897 if test "${with_libiconv_prefix+set}" = set; then
16898   withval=$with_libiconv_prefix;
16899     if test "X$withval" = "Xno"; then
16900       use_additional=no
16901     else
16902       if test "X$withval" = "X"; then
16903
16904   acl_save_prefix="$prefix"
16905   prefix="$acl_final_prefix"
16906   acl_save_exec_prefix="$exec_prefix"
16907   exec_prefix="$acl_final_exec_prefix"
16908
16909           eval additional_includedir=\"$includedir\"
16910           eval additional_libdir=\"$libdir\"
16911
16912   exec_prefix="$acl_save_exec_prefix"
16913   prefix="$acl_save_prefix"
16914
16915       else
16916         additional_includedir="$withval/include"
16917         additional_libdir="$withval/lib"
16918       fi
16919     fi
16920
16921 fi
16922
16923       LIBICONV=
16924   LTLIBICONV=
16925   INCICONV=
16926   rpathdirs=
16927   ltrpathdirs=
16928   names_already_handled=
16929   names_next_round='iconv '
16930   while test -n "$names_next_round"; do
16931     names_this_round="$names_next_round"
16932     names_next_round=
16933     for name in $names_this_round; do
16934       already_handled=
16935       for n in $names_already_handled; do
16936         if test "$n" = "$name"; then
16937           already_handled=yes
16938           break
16939         fi
16940       done
16941       if test -z "$already_handled"; then
16942         names_already_handled="$names_already_handled $name"
16943                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16944         eval value=\"\$HAVE_LIB$uppername\"
16945         if test -n "$value"; then
16946           if test "$value" = yes; then
16947             eval value=\"\$LIB$uppername\"
16948             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16949             eval value=\"\$LTLIB$uppername\"
16950             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16951           else
16952                                     :
16953           fi
16954         else
16955                               found_dir=
16956           found_la=
16957           found_so=
16958           found_a=
16959           if test $use_additional = yes; then
16960             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16961               found_dir="$additional_libdir"
16962               found_so="$additional_libdir/lib$name.$shlibext"
16963               if test -f "$additional_libdir/lib$name.la"; then
16964                 found_la="$additional_libdir/lib$name.la"
16965               fi
16966             else
16967               if test -f "$additional_libdir/lib$name.$libext"; then
16968                 found_dir="$additional_libdir"
16969                 found_a="$additional_libdir/lib$name.$libext"
16970                 if test -f "$additional_libdir/lib$name.la"; then
16971                   found_la="$additional_libdir/lib$name.la"
16972                 fi
16973               fi
16974             fi
16975           fi
16976           if test "X$found_dir" = "X"; then
16977             for x in $LDFLAGS $LTLIBICONV; do
16978
16979   acl_save_prefix="$prefix"
16980   prefix="$acl_final_prefix"
16981   acl_save_exec_prefix="$exec_prefix"
16982   exec_prefix="$acl_final_exec_prefix"
16983   eval x=\"$x\"
16984   exec_prefix="$acl_save_exec_prefix"
16985   prefix="$acl_save_prefix"
16986
16987               case "$x" in
16988                 -L*)
16989                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16990                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16991                     found_dir="$dir"
16992                     found_so="$dir/lib$name.$shlibext"
16993                     if test -f "$dir/lib$name.la"; then
16994                       found_la="$dir/lib$name.la"
16995                     fi
16996                   else
16997                     if test -f "$dir/lib$name.$libext"; then
16998                       found_dir="$dir"
16999                       found_a="$dir/lib$name.$libext"
17000                       if test -f "$dir/lib$name.la"; then
17001                         found_la="$dir/lib$name.la"
17002                       fi
17003                     fi
17004                   fi
17005                   ;;
17006               esac
17007               if test "X$found_dir" != "X"; then
17008                 break
17009               fi
17010             done
17011           fi
17012           if test "X$found_dir" != "X"; then
17013                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17014             if test "X$found_so" != "X"; then
17015                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17016                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17017               else
17018                                                                                 haveit=
17019                 for x in $ltrpathdirs; do
17020                   if test "X$x" = "X$found_dir"; then
17021                     haveit=yes
17022                     break
17023                   fi
17024                 done
17025                 if test -z "$haveit"; then
17026                   ltrpathdirs="$ltrpathdirs $found_dir"
17027                 fi
17028                                 if test "$hardcode_direct" = yes; then
17029                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17030                 else
17031                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17032                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17033                                                             haveit=
17034                     for x in $rpathdirs; do
17035                       if test "X$x" = "X$found_dir"; then
17036                         haveit=yes
17037                         break
17038                       fi
17039                     done
17040                     if test -z "$haveit"; then
17041                       rpathdirs="$rpathdirs $found_dir"
17042                     fi
17043                   else
17044                                                                                 haveit=
17045                     for x in $LDFLAGS $LIBICONV; do
17046
17047   acl_save_prefix="$prefix"
17048   prefix="$acl_final_prefix"
17049   acl_save_exec_prefix="$exec_prefix"
17050   exec_prefix="$acl_final_exec_prefix"
17051   eval x=\"$x\"
17052   exec_prefix="$acl_save_exec_prefix"
17053   prefix="$acl_save_prefix"
17054
17055                       if test "X$x" = "X-L$found_dir"; then
17056                         haveit=yes
17057                         break
17058                       fi
17059                     done
17060                     if test -z "$haveit"; then
17061                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17062                     fi
17063                     if test "$hardcode_minus_L" != no; then
17064                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17065                     else
17066                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17067                     fi
17068                   fi
17069                 fi
17070               fi
17071             else
17072               if test "X$found_a" != "X"; then
17073                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17074               else
17075                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17076               fi
17077             fi
17078                         additional_includedir=
17079             case "$found_dir" in
17080               */lib | */lib/)
17081                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17082                 additional_includedir="$basedir/include"
17083                 ;;
17084             esac
17085             if test "X$additional_includedir" != "X"; then
17086                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17087                 haveit=
17088                 if test "X$additional_includedir" = "X/usr/local/include"; then
17089                   if test -n "$GCC"; then
17090                     case $host_os in
17091                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17092                     esac
17093                   fi
17094                 fi
17095                 if test -z "$haveit"; then
17096                   for x in $CPPFLAGS $INCICONV; do
17097
17098   acl_save_prefix="$prefix"
17099   prefix="$acl_final_prefix"
17100   acl_save_exec_prefix="$exec_prefix"
17101   exec_prefix="$acl_final_exec_prefix"
17102   eval x=\"$x\"
17103   exec_prefix="$acl_save_exec_prefix"
17104   prefix="$acl_save_prefix"
17105
17106                     if test "X$x" = "X-I$additional_includedir"; then
17107                       haveit=yes
17108                       break
17109                     fi
17110                   done
17111                   if test -z "$haveit"; then
17112                     if test -d "$additional_includedir"; then
17113                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17114                     fi
17115                   fi
17116                 fi
17117               fi
17118             fi
17119                         if test -n "$found_la"; then
17120                                                         save_libdir="$libdir"
17121               case "$found_la" in
17122                 */* | *\\*) . "$found_la" ;;
17123                 *) . "./$found_la" ;;
17124               esac
17125               libdir="$save_libdir"
17126                             for dep in $dependency_libs; do
17127                 case "$dep" in
17128                   -L*)
17129                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17130                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17131                       haveit=
17132                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17133                         if test -n "$GCC"; then
17134                           case $host_os in
17135                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17136                           esac
17137                         fi
17138                       fi
17139                       if test -z "$haveit"; then
17140                         haveit=
17141                         for x in $LDFLAGS $LIBICONV; do
17142
17143   acl_save_prefix="$prefix"
17144   prefix="$acl_final_prefix"
17145   acl_save_exec_prefix="$exec_prefix"
17146   exec_prefix="$acl_final_exec_prefix"
17147   eval x=\"$x\"
17148   exec_prefix="$acl_save_exec_prefix"
17149   prefix="$acl_save_prefix"
17150
17151                           if test "X$x" = "X-L$additional_libdir"; then
17152                             haveit=yes
17153                             break
17154                           fi
17155                         done
17156                         if test -z "$haveit"; then
17157                           if test -d "$additional_libdir"; then
17158                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17159                           fi
17160                         fi
17161                         haveit=
17162                         for x in $LDFLAGS $LTLIBICONV; do
17163
17164   acl_save_prefix="$prefix"
17165   prefix="$acl_final_prefix"
17166   acl_save_exec_prefix="$exec_prefix"
17167   exec_prefix="$acl_final_exec_prefix"
17168   eval x=\"$x\"
17169   exec_prefix="$acl_save_exec_prefix"
17170   prefix="$acl_save_prefix"
17171
17172                           if test "X$x" = "X-L$additional_libdir"; then
17173                             haveit=yes
17174                             break
17175                           fi
17176                         done
17177                         if test -z "$haveit"; then
17178                           if test -d "$additional_libdir"; then
17179                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17180                           fi
17181                         fi
17182                       fi
17183                     fi
17184                     ;;
17185                   -R*)
17186                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17187                     if test "$enable_rpath" != no; then
17188                                                                   haveit=
17189                       for x in $rpathdirs; do
17190                         if test "X$x" = "X$dir"; then
17191                           haveit=yes
17192                           break
17193                         fi
17194                       done
17195                       if test -z "$haveit"; then
17196                         rpathdirs="$rpathdirs $dir"
17197                       fi
17198                                                                   haveit=
17199                       for x in $ltrpathdirs; do
17200                         if test "X$x" = "X$dir"; then
17201                           haveit=yes
17202                           break
17203                         fi
17204                       done
17205                       if test -z "$haveit"; then
17206                         ltrpathdirs="$ltrpathdirs $dir"
17207                       fi
17208                     fi
17209                     ;;
17210                   -l*)
17211                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17212                     ;;
17213                   *.la)
17214                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17215                     ;;
17216                   *)
17217                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17218                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17219                     ;;
17220                 esac
17221               done
17222             fi
17223           else
17224                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17225             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17226           fi
17227         fi
17228       fi
17229     done
17230   done
17231   if test "X$rpathdirs" != "X"; then
17232     if test -n "$hardcode_libdir_separator"; then
17233                         alldirs=
17234       for found_dir in $rpathdirs; do
17235         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17236       done
17237             acl_save_libdir="$libdir"
17238       libdir="$alldirs"
17239       eval flag=\"$hardcode_libdir_flag_spec\"
17240       libdir="$acl_save_libdir"
17241       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17242     else
17243             for found_dir in $rpathdirs; do
17244         acl_save_libdir="$libdir"
17245         libdir="$found_dir"
17246         eval flag=\"$hardcode_libdir_flag_spec\"
17247         libdir="$acl_save_libdir"
17248         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17249       done
17250     fi
17251   fi
17252   if test "X$ltrpathdirs" != "X"; then
17253             for found_dir in $ltrpathdirs; do
17254       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17255     done
17256   fi
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17276 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17277 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280   gt_save_CPPFLAGS="$CPPFLAGS"
17281      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17282      gt_save_LIBS="$LIBS"
17283      LIBS="$LIBS -framework CoreFoundation"
17284      cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h.  */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h.  */
17290 #include <CFPreferences.h>
17291 int
17292 main ()
17293 {
17294 CFPreferencesCopyAppValue(NULL, NULL)
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (ac_try="$ac_link"
17301 case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306   (eval "$ac_link") 2>conftest.er1
17307   ac_status=$?
17308   grep -v '^ *+' conftest.er1 >conftest.err
17309   rm -f conftest.er1
17310   cat conftest.err >&5
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); } && {
17313          test -z "$ac_c_werror_flag" ||
17314          test ! -s conftest.err
17315        } && test -s conftest$ac_exeext &&
17316        $as_test_x conftest$ac_exeext; then
17317   gt_cv_func_CFPreferencesCopyAppValue=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322         gt_cv_func_CFPreferencesCopyAppValue=no
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326       conftest$ac_exeext conftest.$ac_ext
17327      CPPFLAGS="$gt_save_CPPFLAGS"
17328      LIBS="$gt_save_LIBS"
17329 fi
17330 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17331 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17332   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17333
17334 cat >>confdefs.h <<\_ACEOF
17335 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17336 _ACEOF
17337
17338   fi
17339     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17340 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17341 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   gt_save_CPPFLAGS="$CPPFLAGS"
17345      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17346      gt_save_LIBS="$LIBS"
17347      LIBS="$LIBS -framework CoreFoundation"
17348      cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354 #include <CFLocale.h>
17355 int
17356 main ()
17357 {
17358 CFLocaleCopyCurrent();
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_link") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } && {
17377          test -z "$ac_c_werror_flag" ||
17378          test ! -s conftest.err
17379        } && test -s conftest$ac_exeext &&
17380        $as_test_x conftest$ac_exeext; then
17381   gt_cv_func_CFLocaleCopyCurrent=yes
17382 else
17383   echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386         gt_cv_func_CFLocaleCopyCurrent=no
17387 fi
17388
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390       conftest$ac_exeext conftest.$ac_ext
17391      CPPFLAGS="$gt_save_CPPFLAGS"
17392      LIBS="$gt_save_LIBS"
17393 fi
17394 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17395 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17396   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17397
17398 cat >>confdefs.h <<\_ACEOF
17399 #define HAVE_CFLOCALECOPYCURRENT 1
17400 _ACEOF
17401
17402   fi
17403   INTL_MACOSX_LIBS=
17404   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17405     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17406   fi
17407
17408
17409
17410
17411   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17412 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17413     # Check whether --enable-nls was given.
17414 if test "${enable_nls+set}" = set; then
17415   enableval=$enable_nls; USE_NLS=$enableval
17416 else
17417   USE_NLS=yes
17418 fi
17419
17420   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17421 echo "${ECHO_T}$USE_NLS" >&6; }
17422
17423
17424
17425
17426   LIBINTL=
17427   LTLIBINTL=
17428   POSUB=
17429
17430     if test "$USE_NLS" = "yes"; then
17431     gt_use_preinstalled_gnugettext=no
17432
17433
17434
17435
17436
17437
17438         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17439 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17440 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h.  */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h.  */
17449 #include <libintl.h>
17450 extern int _nl_msg_cat_cntr;
17451 extern int *_nl_domain_bindings;
17452 int
17453 main ()
17454 {
17455 bindtextdomain ("", "");
17456 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (ac_try="$ac_link"
17463 case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_link") 2>conftest.er1
17469   ac_status=$?
17470   grep -v '^ *+' conftest.er1 >conftest.err
17471   rm -f conftest.er1
17472   cat conftest.err >&5
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); } && {
17475          test -z "$ac_c_werror_flag" ||
17476          test ! -s conftest.err
17477        } && test -s conftest$ac_exeext &&
17478        $as_test_x conftest$ac_exeext; then
17479   gt_cv_func_gnugettext1_libc=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484         gt_cv_func_gnugettext1_libc=no
17485 fi
17486
17487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17488       conftest$ac_exeext conftest.$ac_ext
17489 fi
17490 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17491 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17492
17493         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17494
17495
17496
17497
17498
17499           am_save_CPPFLAGS="$CPPFLAGS"
17500
17501   for element in $INCICONV; do
17502     haveit=
17503     for x in $CPPFLAGS; do
17504
17505   acl_save_prefix="$prefix"
17506   prefix="$acl_final_prefix"
17507   acl_save_exec_prefix="$exec_prefix"
17508   exec_prefix="$acl_final_exec_prefix"
17509   eval x=\"$x\"
17510   exec_prefix="$acl_save_exec_prefix"
17511   prefix="$acl_save_prefix"
17512
17513       if test "X$x" = "X$element"; then
17514         haveit=yes
17515         break
17516       fi
17517     done
17518     if test -z "$haveit"; then
17519       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17520     fi
17521   done
17522
17523
17524   { echo "$as_me:$LINENO: checking for iconv" >&5
17525 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17526 if test "${am_cv_func_iconv+set}" = set; then
17527   echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529
17530     am_cv_func_iconv="no, consider installing GNU libiconv"
17531     am_cv_lib_iconv=no
17532     cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538 #include <stdlib.h>
17539 #include <iconv.h>
17540 int
17541 main ()
17542 {
17543 iconv_t cd = iconv_open("","");
17544        iconv(cd,NULL,NULL,NULL,NULL);
17545        iconv_close(cd);
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (ac_try="$ac_link"
17552 case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_link") 2>conftest.er1
17558   ac_status=$?
17559   grep -v '^ *+' conftest.er1 >conftest.err
17560   rm -f conftest.er1
17561   cat conftest.err >&5
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } && {
17564          test -z "$ac_c_werror_flag" ||
17565          test ! -s conftest.err
17566        } && test -s conftest$ac_exeext &&
17567        $as_test_x conftest$ac_exeext; then
17568   am_cv_func_iconv=yes
17569 else
17570   echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573
17574 fi
17575
17576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17577       conftest$ac_exeext conftest.$ac_ext
17578     if test "$am_cv_func_iconv" != yes; then
17579       am_save_LIBS="$LIBS"
17580       LIBS="$LIBS $LIBICONV"
17581       cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587 #include <stdlib.h>
17588 #include <iconv.h>
17589 int
17590 main ()
17591 {
17592 iconv_t cd = iconv_open("","");
17593          iconv(cd,NULL,NULL,NULL,NULL);
17594          iconv_close(cd);
17595   ;
17596   return 0;
17597 }
17598 _ACEOF
17599 rm -f conftest.$ac_objext conftest$ac_exeext
17600 if { (ac_try="$ac_link"
17601 case "(($ac_try" in
17602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603   *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606   (eval "$ac_link") 2>conftest.er1
17607   ac_status=$?
17608   grep -v '^ *+' conftest.er1 >conftest.err
17609   rm -f conftest.er1
17610   cat conftest.err >&5
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); } && {
17613          test -z "$ac_c_werror_flag" ||
17614          test ! -s conftest.err
17615        } && test -s conftest$ac_exeext &&
17616        $as_test_x conftest$ac_exeext; then
17617   am_cv_lib_iconv=yes
17618         am_cv_func_iconv=yes
17619 else
17620   echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623
17624 fi
17625
17626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17627       conftest$ac_exeext conftest.$ac_ext
17628       LIBS="$am_save_LIBS"
17629     fi
17630
17631 fi
17632 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17633 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17634   if test "$am_cv_func_iconv" = yes; then
17635
17636 cat >>confdefs.h <<\_ACEOF
17637 #define HAVE_ICONV 1
17638 _ACEOF
17639
17640   fi
17641   if test "$am_cv_lib_iconv" = yes; then
17642     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17643 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17644     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17645 echo "${ECHO_T}$LIBICONV" >&6; }
17646   else
17647             CPPFLAGS="$am_save_CPPFLAGS"
17648     LIBICONV=
17649     LTLIBICONV=
17650   fi
17651
17652
17653
17654
17655
17656
17657     use_additional=yes
17658
17659   acl_save_prefix="$prefix"
17660   prefix="$acl_final_prefix"
17661   acl_save_exec_prefix="$exec_prefix"
17662   exec_prefix="$acl_final_exec_prefix"
17663
17664     eval additional_includedir=\"$includedir\"
17665     eval additional_libdir=\"$libdir\"
17666
17667   exec_prefix="$acl_save_exec_prefix"
17668   prefix="$acl_save_prefix"
17669
17670
17671 # Check whether --with-libintl-prefix was given.
17672 if test "${with_libintl_prefix+set}" = set; then
17673   withval=$with_libintl_prefix;
17674     if test "X$withval" = "Xno"; then
17675       use_additional=no
17676     else
17677       if test "X$withval" = "X"; then
17678
17679   acl_save_prefix="$prefix"
17680   prefix="$acl_final_prefix"
17681   acl_save_exec_prefix="$exec_prefix"
17682   exec_prefix="$acl_final_exec_prefix"
17683
17684           eval additional_includedir=\"$includedir\"
17685           eval additional_libdir=\"$libdir\"
17686
17687   exec_prefix="$acl_save_exec_prefix"
17688   prefix="$acl_save_prefix"
17689
17690       else
17691         additional_includedir="$withval/include"
17692         additional_libdir="$withval/lib"
17693       fi
17694     fi
17695
17696 fi
17697
17698       LIBINTL=
17699   LTLIBINTL=
17700   INCINTL=
17701   rpathdirs=
17702   ltrpathdirs=
17703   names_already_handled=
17704   names_next_round='intl '
17705   while test -n "$names_next_round"; do
17706     names_this_round="$names_next_round"
17707     names_next_round=
17708     for name in $names_this_round; do
17709       already_handled=
17710       for n in $names_already_handled; do
17711         if test "$n" = "$name"; then
17712           already_handled=yes
17713           break
17714         fi
17715       done
17716       if test -z "$already_handled"; then
17717         names_already_handled="$names_already_handled $name"
17718                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17719         eval value=\"\$HAVE_LIB$uppername\"
17720         if test -n "$value"; then
17721           if test "$value" = yes; then
17722             eval value=\"\$LIB$uppername\"
17723             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17724             eval value=\"\$LTLIB$uppername\"
17725             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17726           else
17727                                     :
17728           fi
17729         else
17730                               found_dir=
17731           found_la=
17732           found_so=
17733           found_a=
17734           if test $use_additional = yes; then
17735             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17736               found_dir="$additional_libdir"
17737               found_so="$additional_libdir/lib$name.$shlibext"
17738               if test -f "$additional_libdir/lib$name.la"; then
17739                 found_la="$additional_libdir/lib$name.la"
17740               fi
17741             else
17742               if test -f "$additional_libdir/lib$name.$libext"; then
17743                 found_dir="$additional_libdir"
17744                 found_a="$additional_libdir/lib$name.$libext"
17745                 if test -f "$additional_libdir/lib$name.la"; then
17746                   found_la="$additional_libdir/lib$name.la"
17747                 fi
17748               fi
17749             fi
17750           fi
17751           if test "X$found_dir" = "X"; then
17752             for x in $LDFLAGS $LTLIBINTL; do
17753
17754   acl_save_prefix="$prefix"
17755   prefix="$acl_final_prefix"
17756   acl_save_exec_prefix="$exec_prefix"
17757   exec_prefix="$acl_final_exec_prefix"
17758   eval x=\"$x\"
17759   exec_prefix="$acl_save_exec_prefix"
17760   prefix="$acl_save_prefix"
17761
17762               case "$x" in
17763                 -L*)
17764                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17765                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17766                     found_dir="$dir"
17767                     found_so="$dir/lib$name.$shlibext"
17768                     if test -f "$dir/lib$name.la"; then
17769                       found_la="$dir/lib$name.la"
17770                     fi
17771                   else
17772                     if test -f "$dir/lib$name.$libext"; then
17773                       found_dir="$dir"
17774                       found_a="$dir/lib$name.$libext"
17775                       if test -f "$dir/lib$name.la"; then
17776                         found_la="$dir/lib$name.la"
17777                       fi
17778                     fi
17779                   fi
17780                   ;;
17781               esac
17782               if test "X$found_dir" != "X"; then
17783                 break
17784               fi
17785             done
17786           fi
17787           if test "X$found_dir" != "X"; then
17788                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17789             if test "X$found_so" != "X"; then
17790                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17791                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17792               else
17793                                                                                 haveit=
17794                 for x in $ltrpathdirs; do
17795                   if test "X$x" = "X$found_dir"; then
17796                     haveit=yes
17797                     break
17798                   fi
17799                 done
17800                 if test -z "$haveit"; then
17801                   ltrpathdirs="$ltrpathdirs $found_dir"
17802                 fi
17803                                 if test "$hardcode_direct" = yes; then
17804                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17805                 else
17806                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17807                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17808                                                             haveit=
17809                     for x in $rpathdirs; do
17810                       if test "X$x" = "X$found_dir"; then
17811                         haveit=yes
17812                         break
17813                       fi
17814                     done
17815                     if test -z "$haveit"; then
17816                       rpathdirs="$rpathdirs $found_dir"
17817                     fi
17818                   else
17819                                                                                 haveit=
17820                     for x in $LDFLAGS $LIBINTL; do
17821
17822   acl_save_prefix="$prefix"
17823   prefix="$acl_final_prefix"
17824   acl_save_exec_prefix="$exec_prefix"
17825   exec_prefix="$acl_final_exec_prefix"
17826   eval x=\"$x\"
17827   exec_prefix="$acl_save_exec_prefix"
17828   prefix="$acl_save_prefix"
17829
17830                       if test "X$x" = "X-L$found_dir"; then
17831                         haveit=yes
17832                         break
17833                       fi
17834                     done
17835                     if test -z "$haveit"; then
17836                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17837                     fi
17838                     if test "$hardcode_minus_L" != no; then
17839                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17840                     else
17841                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17842                     fi
17843                   fi
17844                 fi
17845               fi
17846             else
17847               if test "X$found_a" != "X"; then
17848                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17849               else
17850                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17851               fi
17852             fi
17853                         additional_includedir=
17854             case "$found_dir" in
17855               */lib | */lib/)
17856                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17857                 additional_includedir="$basedir/include"
17858                 ;;
17859             esac
17860             if test "X$additional_includedir" != "X"; then
17861                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17862                 haveit=
17863                 if test "X$additional_includedir" = "X/usr/local/include"; then
17864                   if test -n "$GCC"; then
17865                     case $host_os in
17866                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17867                     esac
17868                   fi
17869                 fi
17870                 if test -z "$haveit"; then
17871                   for x in $CPPFLAGS $INCINTL; do
17872
17873   acl_save_prefix="$prefix"
17874   prefix="$acl_final_prefix"
17875   acl_save_exec_prefix="$exec_prefix"
17876   exec_prefix="$acl_final_exec_prefix"
17877   eval x=\"$x\"
17878   exec_prefix="$acl_save_exec_prefix"
17879   prefix="$acl_save_prefix"
17880
17881                     if test "X$x" = "X-I$additional_includedir"; then
17882                       haveit=yes
17883                       break
17884                     fi
17885                   done
17886                   if test -z "$haveit"; then
17887                     if test -d "$additional_includedir"; then
17888                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17889                     fi
17890                   fi
17891                 fi
17892               fi
17893             fi
17894                         if test -n "$found_la"; then
17895                                                         save_libdir="$libdir"
17896               case "$found_la" in
17897                 */* | *\\*) . "$found_la" ;;
17898                 *) . "./$found_la" ;;
17899               esac
17900               libdir="$save_libdir"
17901                             for dep in $dependency_libs; do
17902                 case "$dep" in
17903                   -L*)
17904                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17905                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17906                       haveit=
17907                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17908                         if test -n "$GCC"; then
17909                           case $host_os in
17910                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17911                           esac
17912                         fi
17913                       fi
17914                       if test -z "$haveit"; then
17915                         haveit=
17916                         for x in $LDFLAGS $LIBINTL; do
17917
17918   acl_save_prefix="$prefix"
17919   prefix="$acl_final_prefix"
17920   acl_save_exec_prefix="$exec_prefix"
17921   exec_prefix="$acl_final_exec_prefix"
17922   eval x=\"$x\"
17923   exec_prefix="$acl_save_exec_prefix"
17924   prefix="$acl_save_prefix"
17925
17926                           if test "X$x" = "X-L$additional_libdir"; then
17927                             haveit=yes
17928                             break
17929                           fi
17930                         done
17931                         if test -z "$haveit"; then
17932                           if test -d "$additional_libdir"; then
17933                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17934                           fi
17935                         fi
17936                         haveit=
17937                         for x in $LDFLAGS $LTLIBINTL; do
17938
17939   acl_save_prefix="$prefix"
17940   prefix="$acl_final_prefix"
17941   acl_save_exec_prefix="$exec_prefix"
17942   exec_prefix="$acl_final_exec_prefix"
17943   eval x=\"$x\"
17944   exec_prefix="$acl_save_exec_prefix"
17945   prefix="$acl_save_prefix"
17946
17947                           if test "X$x" = "X-L$additional_libdir"; then
17948                             haveit=yes
17949                             break
17950                           fi
17951                         done
17952                         if test -z "$haveit"; then
17953                           if test -d "$additional_libdir"; then
17954                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17955                           fi
17956                         fi
17957                       fi
17958                     fi
17959                     ;;
17960                   -R*)
17961                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17962                     if test "$enable_rpath" != no; then
17963                                                                   haveit=
17964                       for x in $rpathdirs; do
17965                         if test "X$x" = "X$dir"; then
17966                           haveit=yes
17967                           break
17968                         fi
17969                       done
17970                       if test -z "$haveit"; then
17971                         rpathdirs="$rpathdirs $dir"
17972                       fi
17973                                                                   haveit=
17974                       for x in $ltrpathdirs; do
17975                         if test "X$x" = "X$dir"; then
17976                           haveit=yes
17977                           break
17978                         fi
17979                       done
17980                       if test -z "$haveit"; then
17981                         ltrpathdirs="$ltrpathdirs $dir"
17982                       fi
17983                     fi
17984                     ;;
17985                   -l*)
17986                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17987                     ;;
17988                   *.la)
17989                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17990                     ;;
17991                   *)
17992                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17993                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17994                     ;;
17995                 esac
17996               done
17997             fi
17998           else
17999                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18000             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18001           fi
18002         fi
18003       fi
18004     done
18005   done
18006   if test "X$rpathdirs" != "X"; then
18007     if test -n "$hardcode_libdir_separator"; then
18008                         alldirs=
18009       for found_dir in $rpathdirs; do
18010         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18011       done
18012             acl_save_libdir="$libdir"
18013       libdir="$alldirs"
18014       eval flag=\"$hardcode_libdir_flag_spec\"
18015       libdir="$acl_save_libdir"
18016       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18017     else
18018             for found_dir in $rpathdirs; do
18019         acl_save_libdir="$libdir"
18020         libdir="$found_dir"
18021         eval flag=\"$hardcode_libdir_flag_spec\"
18022         libdir="$acl_save_libdir"
18023         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18024       done
18025     fi
18026   fi
18027   if test "X$ltrpathdirs" != "X"; then
18028             for found_dir in $ltrpathdirs; do
18029       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18030     done
18031   fi
18032
18033           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18034 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18035 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18036   echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038   gt_save_CPPFLAGS="$CPPFLAGS"
18039             CPPFLAGS="$CPPFLAGS $INCINTL"
18040             gt_save_LIBS="$LIBS"
18041             LIBS="$LIBS $LIBINTL"
18042                         cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 #include <libintl.h>
18049 extern int _nl_msg_cat_cntr;
18050 extern
18051 #ifdef __cplusplus
18052 "C"
18053 #endif
18054 const char *_nl_expand_alias (const char *);
18055 int
18056 main ()
18057 {
18058 bindtextdomain ("", "");
18059 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18060   ;
18061   return 0;
18062 }
18063 _ACEOF
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_link") 2>conftest.er1
18072   ac_status=$?
18073   grep -v '^ *+' conftest.er1 >conftest.err
18074   rm -f conftest.er1
18075   cat conftest.err >&5
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); } && {
18078          test -z "$ac_c_werror_flag" ||
18079          test ! -s conftest.err
18080        } && test -s conftest$ac_exeext &&
18081        $as_test_x conftest$ac_exeext; then
18082   gt_cv_func_gnugettext1_libintl=yes
18083 else
18084   echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087         gt_cv_func_gnugettext1_libintl=no
18088 fi
18089
18090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091       conftest$ac_exeext conftest.$ac_ext
18092                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18093               LIBS="$LIBS $LIBICONV"
18094               cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h.  */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h.  */
18100 #include <libintl.h>
18101 extern int _nl_msg_cat_cntr;
18102 extern
18103 #ifdef __cplusplus
18104 "C"
18105 #endif
18106 const char *_nl_expand_alias (const char *);
18107 int
18108 main ()
18109 {
18110 bindtextdomain ("", "");
18111 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18112   ;
18113   return 0;
18114 }
18115 _ACEOF
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (ac_try="$ac_link"
18118 case "(($ac_try" in
18119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120   *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123   (eval "$ac_link") 2>conftest.er1
18124   ac_status=$?
18125   grep -v '^ *+' conftest.er1 >conftest.err
18126   rm -f conftest.er1
18127   cat conftest.err >&5
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); } && {
18130          test -z "$ac_c_werror_flag" ||
18131          test ! -s conftest.err
18132        } && test -s conftest$ac_exeext &&
18133        $as_test_x conftest$ac_exeext; then
18134   LIBINTL="$LIBINTL $LIBICONV"
18135                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18136                 gt_cv_func_gnugettext1_libintl=yes
18137
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142
18143 fi
18144
18145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18146       conftest$ac_exeext conftest.$ac_ext
18147             fi
18148             CPPFLAGS="$gt_save_CPPFLAGS"
18149             LIBS="$gt_save_LIBS"
18150 fi
18151 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18152 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18153         fi
18154
18155                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18156            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18157                 && test "$PACKAGE" != gettext-runtime \
18158                 && test "$PACKAGE" != gettext-tools; }; then
18159           gt_use_preinstalled_gnugettext=yes
18160         else
18161                     LIBINTL=
18162           LTLIBINTL=
18163           INCINTL=
18164         fi
18165
18166
18167
18168     if test -n "$INTL_MACOSX_LIBS"; then
18169       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18170          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18171                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18172         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18173       fi
18174     fi
18175
18176     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18177        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18178
18179 cat >>confdefs.h <<\_ACEOF
18180 #define ENABLE_NLS 1
18181 _ACEOF
18182
18183     else
18184       USE_NLS=no
18185     fi
18186   fi
18187
18188   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18189 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18190   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18191 echo "${ECHO_T}$USE_NLS" >&6; }
18192   if test "$USE_NLS" = "yes"; then
18193     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18194 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18195     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18196       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18197         gt_source="external libintl"
18198       else
18199         gt_source="libc"
18200       fi
18201     else
18202       gt_source="included intl directory"
18203     fi
18204     { echo "$as_me:$LINENO: result: $gt_source" >&5
18205 echo "${ECHO_T}$gt_source" >&6; }
18206   fi
18207
18208   if test "$USE_NLS" = "yes"; then
18209
18210     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18211       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18212         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18213 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18214         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18215 echo "${ECHO_T}$LIBINTL" >&6; }
18216
18217   for element in $INCINTL; do
18218     haveit=
18219     for x in $CPPFLAGS; do
18220
18221   acl_save_prefix="$prefix"
18222   prefix="$acl_final_prefix"
18223   acl_save_exec_prefix="$exec_prefix"
18224   exec_prefix="$acl_final_exec_prefix"
18225   eval x=\"$x\"
18226   exec_prefix="$acl_save_exec_prefix"
18227   prefix="$acl_save_prefix"
18228
18229       if test "X$x" = "X$element"; then
18230         haveit=yes
18231         break
18232       fi
18233     done
18234     if test -z "$haveit"; then
18235       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18236     fi
18237   done
18238
18239       fi
18240
18241
18242 cat >>confdefs.h <<\_ACEOF
18243 #define HAVE_GETTEXT 1
18244 _ACEOF
18245
18246
18247 cat >>confdefs.h <<\_ACEOF
18248 #define HAVE_DCGETTEXT 1
18249 _ACEOF
18250
18251     fi
18252
18253         POSUB=po
18254   fi
18255
18256
18257
18258     INTLLIBS="$LIBINTL"
18259
18260
18261
18262
18263
18264
18265 if test x${prefix} = xNONE ; then
18266    if test `eval echo ${datarootdir}` = NONE/share ; then
18267       datarootdir=/usr/share
18268    fi
18269 fi
18270
18271 if test x${prefix} = xNONE ; then
18272    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18273       sysconfdir=/etc/bacula
18274    fi
18275
18276    if test `eval echo ${libdir}` = NONE/lib ; then
18277       sysconfdir=/usr/lib
18278    fi
18279
18280    if test `eval echo ${includedir}` = NONE/include ; then
18281       sysconfdir=/usr/include
18282    fi
18283
18284    prefix=
18285 fi
18286 sysconfdir=`eval echo ${sysconfdir}`
18287 datarootdir=`eval echo ${datarootdir}`
18288 localedir=`eval echo ${datarootdir}/locale`
18289 cat >>confdefs.h <<_ACEOF
18290 #define SYSCONFDIR "$sysconfdir"
18291 _ACEOF
18292
18293 cat >>confdefs.h <<_ACEOF
18294 #define LOCALEDIR "$localedir"
18295 _ACEOF
18296
18297
18298 if test x${exec_prefix} = xNONE ; then
18299    exec_prefix=${prefix}
18300 fi
18301
18302 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18303    sbindir=${exec_prefix}/sbin
18304 fi
18305 sbindir=`eval echo ${sbindir}`
18306
18307 if test x$mandir = x'${prefix}/man' ; then
18308    mandir=/usr/share/man
18309 fi
18310
18311 for ac_prog in msgfmt
18312 do
18313   # Extract the first word of "$ac_prog", so it can be a program name with args.
18314 set dummy $ac_prog; ac_word=$2
18315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18317 if test "${ac_cv_path_MSGFMT+set}" = set; then
18318   echo $ECHO_N "(cached) $ECHO_C" >&6
18319 else
18320   case $MSGFMT in
18321   [\\/]* | ?:[\\/]*)
18322   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18323   ;;
18324   *)
18325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18326 for as_dir in $PATH
18327 do
18328   IFS=$as_save_IFS
18329   test -z "$as_dir" && as_dir=.
18330   for ac_exec_ext in '' $ac_executable_extensions; do
18331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18332     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18334     break 2
18335   fi
18336 done
18337 done
18338 IFS=$as_save_IFS
18339
18340   ;;
18341 esac
18342 fi
18343 MSGFMT=$ac_cv_path_MSGFMT
18344 if test -n "$MSGFMT"; then
18345   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18346 echo "${ECHO_T}$MSGFMT" >&6; }
18347 else
18348   { echo "$as_me:$LINENO: result: no" >&5
18349 echo "${ECHO_T}no" >&6; }
18350 fi
18351
18352
18353   test -n "$MSGFMT" && break
18354 done
18355 test -n "$MSGFMT" || MSGFMT="no"
18356
18357 if test "$MSGFMT" = "no"
18358 then
18359    echo 'msgfmt program not found, disabling NLS !'
18360    USE_NLS=no
18361    USE_INCLUDED_LIBINTL=no
18362 #else
18363
18364     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18365 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18366 if test "${ac_cv_gnu_library_2+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h.  */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h.  */
18375
18376 #include <features.h>
18377 #ifdef __GNU_LIBRARY__
18378  #if (__GLIBC__ >= 2)
18379   Lucky GNU user
18380  #endif
18381 #endif
18382
18383 _ACEOF
18384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18385   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18386   ac_cv_gnu_library_2=yes
18387 else
18388   ac_cv_gnu_library_2=no
18389 fi
18390 rm -f conftest*
18391
18392
18393
18394 fi
18395 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18396 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18397
18398     GLIBC2="$ac_cv_gnu_library_2"
18399
18400
18401 if test -n "$ac_tool_prefix"; then
18402   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18406 if test "${ac_cv_prog_RANLIB+set}" = set; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409   if test -n "$RANLIB"; then
18410   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18411 else
18412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18413 for as_dir in $PATH
18414 do
18415   IFS=$as_save_IFS
18416   test -z "$as_dir" && as_dir=.
18417   for ac_exec_ext in '' $ac_executable_extensions; do
18418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18419     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18421     break 2
18422   fi
18423 done
18424 done
18425 IFS=$as_save_IFS
18426
18427 fi
18428 fi
18429 RANLIB=$ac_cv_prog_RANLIB
18430 if test -n "$RANLIB"; then
18431   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18432 echo "${ECHO_T}$RANLIB" >&6; }
18433 else
18434   { echo "$as_me:$LINENO: result: no" >&5
18435 echo "${ECHO_T}no" >&6; }
18436 fi
18437
18438
18439 fi
18440 if test -z "$ac_cv_prog_RANLIB"; then
18441   ac_ct_RANLIB=$RANLIB
18442   # Extract the first word of "ranlib", so it can be a program name with args.
18443 set dummy ranlib; ac_word=$2
18444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449   if test -n "$ac_ct_RANLIB"; then
18450   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18451 else
18452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18453 for as_dir in $PATH
18454 do
18455   IFS=$as_save_IFS
18456   test -z "$as_dir" && as_dir=.
18457   for ac_exec_ext in '' $ac_executable_extensions; do
18458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18459     ac_cv_prog_ac_ct_RANLIB="ranlib"
18460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18461     break 2
18462   fi
18463 done
18464 done
18465 IFS=$as_save_IFS
18466
18467 fi
18468 fi
18469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18470 if test -n "$ac_ct_RANLIB"; then
18471   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18472 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18473 else
18474   { echo "$as_me:$LINENO: result: no" >&5
18475 echo "${ECHO_T}no" >&6; }
18476 fi
18477
18478   if test "x$ac_ct_RANLIB" = x; then
18479     RANLIB=":"
18480   else
18481     case $cross_compiling:$ac_tool_warned in
18482 yes:)
18483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18484 whose name does not start with the host triplet.  If you think this
18485 configuration is useful to you, please write to autoconf@gnu.org." >&5
18486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18487 whose name does not start with the host triplet.  If you think this
18488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18489 ac_tool_warned=yes ;;
18490 esac
18491     RANLIB=$ac_ct_RANLIB
18492   fi
18493 else
18494   RANLIB="$ac_cv_prog_RANLIB"
18495 fi
18496
18497
18498         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18499 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18500 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18501   echo $ECHO_N "(cached) $ECHO_C" >&6
18502 else
18503   ac_check_lib_save_LIBS=$LIBS
18504 LIBS="-lcposix  $LIBS"
18505 cat >conftest.$ac_ext <<_ACEOF
18506 /* confdefs.h.  */
18507 _ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h.  */
18511
18512 /* Override any GCC internal prototype to avoid an error.
18513    Use char because int might match the return type of a GCC
18514    builtin and then its argument prototype would still apply.  */
18515 #ifdef __cplusplus
18516 extern "C"
18517 #endif
18518 char strerror ();
18519 int
18520 main ()
18521 {
18522 return strerror ();
18523   ;
18524   return 0;
18525 }
18526 _ACEOF
18527 rm -f conftest.$ac_objext conftest$ac_exeext
18528 if { (ac_try="$ac_link"
18529 case "(($ac_try" in
18530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531   *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534   (eval "$ac_link") 2>conftest.er1
18535   ac_status=$?
18536   grep -v '^ *+' conftest.er1 >conftest.err
18537   rm -f conftest.er1
18538   cat conftest.err >&5
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); } && {
18541          test -z "$ac_c_werror_flag" ||
18542          test ! -s conftest.err
18543        } && test -s conftest$ac_exeext &&
18544        $as_test_x conftest$ac_exeext; then
18545   ac_cv_lib_cposix_strerror=yes
18546 else
18547   echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550         ac_cv_lib_cposix_strerror=no
18551 fi
18552
18553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18554       conftest$ac_exeext conftest.$ac_ext
18555 LIBS=$ac_check_lib_save_LIBS
18556 fi
18557 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18558 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18559 if test $ac_cv_lib_cposix_strerror = yes; then
18560   LIBS="$LIBS -lcposix"
18561 fi
18562
18563
18564
18565 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18566 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18567 if test "${ac_cv_c_const+set}" = set; then
18568   echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570   cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h.  */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h.  */
18576
18577 int
18578 main ()
18579 {
18580 /* FIXME: Include the comments suggested by Paul. */
18581 #ifndef __cplusplus
18582   /* Ultrix mips cc rejects this.  */
18583   typedef int charset[2];
18584   const charset cs;
18585   /* SunOS 4.1.1 cc rejects this.  */
18586   char const *const *pcpcc;
18587   char **ppc;
18588   /* NEC SVR4.0.2 mips cc rejects this.  */
18589   struct point {int x, y;};
18590   static struct point const zero = {0,0};
18591   /* AIX XL C 1.02.0.0 rejects this.
18592      It does not let you subtract one const X* pointer from another in
18593      an arm of an if-expression whose if-part is not a constant
18594      expression */
18595   const char *g = "string";
18596   pcpcc = &g + (g ? g-g : 0);
18597   /* HPUX 7.0 cc rejects these. */
18598   ++pcpcc;
18599   ppc = (char**) pcpcc;
18600   pcpcc = (char const *const *) ppc;
18601   { /* SCO 3.2v4 cc rejects this.  */
18602     char *t;
18603     char const *s = 0 ? (char *) 0 : (char const *) 0;
18604
18605     *t++ = 0;
18606     if (s) return 0;
18607   }
18608   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18609     int x[] = {25, 17};
18610     const int *foo = &x[0];
18611     ++foo;
18612   }
18613   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18614     typedef const int *iptr;
18615     iptr p = 0;
18616     ++p;
18617   }
18618   { /* AIX XL C 1.02.0.0 rejects this saying
18619        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18620     struct s { int j; const int *ap[3]; };
18621     struct s *b; b->j = 5;
18622   }
18623   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18624     const int foo = 10;
18625     if (!foo) return 0;
18626   }
18627   return !cs[0] && !zero.x;
18628 #endif
18629
18630   ;
18631   return 0;
18632 }
18633 _ACEOF
18634 rm -f conftest.$ac_objext
18635 if { (ac_try="$ac_compile"
18636 case "(($ac_try" in
18637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638   *) ac_try_echo=$ac_try;;
18639 esac
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641   (eval "$ac_compile") 2>conftest.er1
18642   ac_status=$?
18643   grep -v '^ *+' conftest.er1 >conftest.err
18644   rm -f conftest.er1
18645   cat conftest.err >&5
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); } && {
18648          test -z "$ac_c_werror_flag" ||
18649          test ! -s conftest.err
18650        } && test -s conftest.$ac_objext; then
18651   ac_cv_c_const=yes
18652 else
18653   echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18655
18656         ac_cv_c_const=no
18657 fi
18658
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18660 fi
18661 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18662 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18663 if test $ac_cv_c_const = no; then
18664
18665 cat >>confdefs.h <<\_ACEOF
18666 #define const
18667 _ACEOF
18668
18669 fi
18670
18671
18672   { echo "$as_me:$LINENO: checking for signed" >&5
18673 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18674 if test "${bh_cv_c_signed+set}" = set; then
18675   echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677   cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h.  */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h.  */
18683
18684 int
18685 main ()
18686 {
18687 signed char x;
18688   ;
18689   return 0;
18690 }
18691 _ACEOF
18692 rm -f conftest.$ac_objext
18693 if { (ac_try="$ac_compile"
18694 case "(($ac_try" in
18695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696   *) ac_try_echo=$ac_try;;
18697 esac
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699   (eval "$ac_compile") 2>conftest.er1
18700   ac_status=$?
18701   grep -v '^ *+' conftest.er1 >conftest.err
18702   rm -f conftest.er1
18703   cat conftest.err >&5
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } && {
18706          test -z "$ac_c_werror_flag" ||
18707          test ! -s conftest.err
18708        } && test -s conftest.$ac_objext; then
18709   bh_cv_c_signed=yes
18710 else
18711   echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18713
18714         bh_cv_c_signed=no
18715 fi
18716
18717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18718 fi
18719 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18720 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18721   if test $bh_cv_c_signed = no; then
18722
18723 cat >>confdefs.h <<\_ACEOF
18724 #define signed
18725 _ACEOF
18726
18727   fi
18728
18729 { echo "$as_me:$LINENO: checking for inline" >&5
18730 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18731 if test "${ac_cv_c_inline+set}" = set; then
18732   echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734   ac_cv_c_inline=no
18735 for ac_kw in inline __inline__ __inline; do
18736   cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h.  */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h.  */
18742 #ifndef __cplusplus
18743 typedef int foo_t;
18744 static $ac_kw foo_t static_foo () {return 0; }
18745 $ac_kw foo_t foo () {return 0; }
18746 #endif
18747
18748 _ACEOF
18749 rm -f conftest.$ac_objext
18750 if { (ac_try="$ac_compile"
18751 case "(($ac_try" in
18752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753   *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756   (eval "$ac_compile") 2>conftest.er1
18757   ac_status=$?
18758   grep -v '^ *+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } && {
18763          test -z "$ac_c_werror_flag" ||
18764          test ! -s conftest.err
18765        } && test -s conftest.$ac_objext; then
18766   ac_cv_c_inline=$ac_kw
18767 else
18768   echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771
18772 fi
18773
18774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775   test "$ac_cv_c_inline" != no && break
18776 done
18777
18778 fi
18779 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18780 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18781
18782
18783 case $ac_cv_c_inline in
18784   inline | yes) ;;
18785   *)
18786     case $ac_cv_c_inline in
18787       no) ac_val=;;
18788       *) ac_val=$ac_cv_c_inline;;
18789     esac
18790     cat >>confdefs.h <<_ACEOF
18791 #ifndef __cplusplus
18792 #define inline $ac_val
18793 #endif
18794 _ACEOF
18795     ;;
18796 esac
18797
18798 { echo "$as_me:$LINENO: checking for off_t" >&5
18799 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18800 if test "${ac_cv_type_off_t+set}" = set; then
18801   echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803   cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h.  */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h.  */
18809 $ac_includes_default
18810 typedef off_t ac__type_new_;
18811 int
18812 main ()
18813 {
18814 if ((ac__type_new_ *) 0)
18815   return 0;
18816 if (sizeof (ac__type_new_))
18817   return 0;
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_compile") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } && {
18836          test -z "$ac_c_werror_flag" ||
18837          test ! -s conftest.err
18838        } && test -s conftest.$ac_objext; then
18839   ac_cv_type_off_t=yes
18840 else
18841   echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18843
18844         ac_cv_type_off_t=no
18845 fi
18846
18847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18848 fi
18849 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18850 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18851 if test $ac_cv_type_off_t = yes; then
18852   :
18853 else
18854
18855 cat >>confdefs.h <<_ACEOF
18856 #define off_t long int
18857 _ACEOF
18858
18859 fi
18860
18861 { echo "$as_me:$LINENO: checking for size_t" >&5
18862 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18863 if test "${ac_cv_type_size_t+set}" = set; then
18864   echo $ECHO_N "(cached) $ECHO_C" >&6
18865 else
18866   cat >conftest.$ac_ext <<_ACEOF
18867 /* confdefs.h.  */
18868 _ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h.  */
18872 $ac_includes_default
18873 typedef size_t ac__type_new_;
18874 int
18875 main ()
18876 {
18877 if ((ac__type_new_ *) 0)
18878   return 0;
18879 if (sizeof (ac__type_new_))
18880   return 0;
18881   ;
18882   return 0;
18883 }
18884 _ACEOF
18885 rm -f conftest.$ac_objext
18886 if { (ac_try="$ac_compile"
18887 case "(($ac_try" in
18888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889   *) ac_try_echo=$ac_try;;
18890 esac
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892   (eval "$ac_compile") 2>conftest.er1
18893   ac_status=$?
18894   grep -v '^ *+' conftest.er1 >conftest.err
18895   rm -f conftest.er1
18896   cat conftest.err >&5
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); } && {
18899          test -z "$ac_c_werror_flag" ||
18900          test ! -s conftest.err
18901        } && test -s conftest.$ac_objext; then
18902   ac_cv_type_size_t=yes
18903 else
18904   echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18906
18907         ac_cv_type_size_t=no
18908 fi
18909
18910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18911 fi
18912 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18913 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18914 if test $ac_cv_type_size_t = yes; then
18915   :
18916 else
18917
18918 cat >>confdefs.h <<_ACEOF
18919 #define size_t unsigned int
18920 _ACEOF
18921
18922 fi
18923
18924
18925   { echo "$as_me:$LINENO: checking for long long" >&5
18926 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18927 if test "${ac_cv_type_long_long+set}" = set; then
18928   echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930   cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936 long long ll = 1LL; int i = 63;
18937 int
18938 main ()
18939 {
18940 long long llmax = (long long) -1;
18941      return ll << i | ll >> i | llmax / ll | llmax % ll;
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (ac_try="$ac_link"
18948 case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_link") 2>conftest.er1
18954   ac_status=$?
18955   grep -v '^ *+' conftest.er1 >conftest.err
18956   rm -f conftest.er1
18957   cat conftest.err >&5
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } && {
18960          test -z "$ac_c_werror_flag" ||
18961          test ! -s conftest.err
18962        } && test -s conftest$ac_exeext &&
18963        $as_test_x conftest$ac_exeext; then
18964   ac_cv_type_long_long=yes
18965 else
18966   echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969         ac_cv_type_long_long=no
18970 fi
18971
18972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18973       conftest$ac_exeext conftest.$ac_ext
18974 fi
18975 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18976 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18977   if test $ac_cv_type_long_long = yes; then
18978
18979 cat >>confdefs.h <<\_ACEOF
18980 #define HAVE_LONG_LONG 1
18981 _ACEOF
18982
18983   fi
18984
18985
18986   { echo "$as_me:$LINENO: checking for long double" >&5
18987 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18988 if test "${gt_cv_c_long_double+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   if test "$GCC" = yes; then
18992        gt_cv_c_long_double=yes
18993      else
18994        cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19002          long double foo = 0.0;
19003          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19004          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19005
19006 int
19007 main ()
19008 {
19009
19010   ;
19011   return 0;
19012 }
19013 _ACEOF
19014 rm -f conftest.$ac_objext
19015 if { (ac_try="$ac_compile"
19016 case "(($ac_try" in
19017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018   *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021   (eval "$ac_compile") 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } && {
19028          test -z "$ac_c_werror_flag" ||
19029          test ! -s conftest.err
19030        } && test -s conftest.$ac_objext; then
19031   gt_cv_c_long_double=yes
19032 else
19033   echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19035
19036         gt_cv_c_long_double=no
19037 fi
19038
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040      fi
19041 fi
19042 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19043 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19044   if test $gt_cv_c_long_double = yes; then
19045
19046 cat >>confdefs.h <<\_ACEOF
19047 #define HAVE_LONG_DOUBLE 1
19048 _ACEOF
19049
19050   fi
19051
19052
19053   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19054 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19055 if test "${gt_cv_c_wchar_t+set}" = set; then
19056   echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058   cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h.  */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h.  */
19064 #include <stddef.h>
19065        wchar_t foo = (wchar_t)'\0';
19066 int
19067 main ()
19068 {
19069
19070   ;
19071   return 0;
19072 }
19073 _ACEOF
19074 rm -f conftest.$ac_objext
19075 if { (ac_try="$ac_compile"
19076 case "(($ac_try" in
19077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078   *) ac_try_echo=$ac_try;;
19079 esac
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081   (eval "$ac_compile") 2>conftest.er1
19082   ac_status=$?
19083   grep -v '^ *+' conftest.er1 >conftest.err
19084   rm -f conftest.er1
19085   cat conftest.err >&5
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); } && {
19088          test -z "$ac_c_werror_flag" ||
19089          test ! -s conftest.err
19090        } && test -s conftest.$ac_objext; then
19091   gt_cv_c_wchar_t=yes
19092 else
19093   echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19095
19096         gt_cv_c_wchar_t=no
19097 fi
19098
19099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19100 fi
19101 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19102 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19103   if test $gt_cv_c_wchar_t = yes; then
19104
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_WCHAR_T 1
19107 _ACEOF
19108
19109   fi
19110
19111
19112   { echo "$as_me:$LINENO: checking for wint_t" >&5
19113 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19114 if test "${gt_cv_c_wint_t+set}" = set; then
19115   echo $ECHO_N "(cached) $ECHO_C" >&6
19116 else
19117   cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123 #include <wchar.h>
19124        wint_t foo = (wchar_t)'\0';
19125 int
19126 main ()
19127 {
19128
19129   ;
19130   return 0;
19131 }
19132 _ACEOF
19133 rm -f conftest.$ac_objext
19134 if { (ac_try="$ac_compile"
19135 case "(($ac_try" in
19136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137   *) ac_try_echo=$ac_try;;
19138 esac
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140   (eval "$ac_compile") 2>conftest.er1
19141   ac_status=$?
19142   grep -v '^ *+' conftest.er1 >conftest.err
19143   rm -f conftest.er1
19144   cat conftest.err >&5
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); } && {
19147          test -z "$ac_c_werror_flag" ||
19148          test ! -s conftest.err
19149        } && test -s conftest.$ac_objext; then
19150   gt_cv_c_wint_t=yes
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155         gt_cv_c_wint_t=no
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 fi
19160 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19161 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19162   if test $gt_cv_c_wint_t = yes; then
19163
19164 cat >>confdefs.h <<\_ACEOF
19165 #define HAVE_WINT_T 1
19166 _ACEOF
19167
19168   fi
19169
19170
19171   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19172 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19173 if test "${gl_cv_header_inttypes_h+set}" = set; then
19174   echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176   cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h.  */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h.  */
19182 #include <sys/types.h>
19183 #include <inttypes.h>
19184 int
19185 main ()
19186 {
19187 uintmax_t i = (uintmax_t) -1;
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 rm -f conftest.$ac_objext
19193 if { (ac_try="$ac_compile"
19194 case "(($ac_try" in
19195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196   *) ac_try_echo=$ac_try;;
19197 esac
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199   (eval "$ac_compile") 2>conftest.er1
19200   ac_status=$?
19201   grep -v '^ *+' conftest.er1 >conftest.err
19202   rm -f conftest.er1
19203   cat conftest.err >&5
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); } && {
19206          test -z "$ac_c_werror_flag" ||
19207          test ! -s conftest.err
19208        } && test -s conftest.$ac_objext; then
19209   gl_cv_header_inttypes_h=yes
19210 else
19211   echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19213
19214         gl_cv_header_inttypes_h=no
19215 fi
19216
19217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 fi
19219 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19220 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19221   if test $gl_cv_header_inttypes_h = yes; then
19222
19223 cat >>confdefs.h <<_ACEOF
19224 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19225 _ACEOF
19226
19227   fi
19228
19229
19230   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19231 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19232 if test "${gl_cv_header_stdint_h+set}" = set; then
19233   echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235   cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h.  */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h.  */
19241 #include <sys/types.h>
19242 #include <stdint.h>
19243 int
19244 main ()
19245 {
19246 uintmax_t i = (uintmax_t) -1;
19247   ;
19248   return 0;
19249 }
19250 _ACEOF
19251 rm -f conftest.$ac_objext
19252 if { (ac_try="$ac_compile"
19253 case "(($ac_try" in
19254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255   *) ac_try_echo=$ac_try;;
19256 esac
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258   (eval "$ac_compile") 2>conftest.er1
19259   ac_status=$?
19260   grep -v '^ *+' conftest.er1 >conftest.err
19261   rm -f conftest.er1
19262   cat conftest.err >&5
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); } && {
19265          test -z "$ac_c_werror_flag" ||
19266          test ! -s conftest.err
19267        } && test -s conftest.$ac_objext; then
19268   gl_cv_header_stdint_h=yes
19269 else
19270   echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273         gl_cv_header_stdint_h=no
19274 fi
19275
19276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 fi
19278 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19279 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19280   if test $gl_cv_header_stdint_h = yes; then
19281
19282 cat >>confdefs.h <<_ACEOF
19283 #define HAVE_STDINT_H_WITH_UINTMAX 1
19284 _ACEOF
19285
19286   fi
19287
19288
19289
19290
19291   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19292 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19293 if test "${gt_cv_c_intmax_t+set}" = set; then
19294   echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296   cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h.  */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h.  */
19302
19303 #include <stddef.h>
19304 #include <stdlib.h>
19305 #if HAVE_STDINT_H_WITH_UINTMAX
19306 #include <stdint.h>
19307 #endif
19308 #if HAVE_INTTYPES_H_WITH_UINTMAX
19309 #include <inttypes.h>
19310 #endif
19311
19312 int
19313 main ()
19314 {
19315 intmax_t x = -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   gt_cv_c_intmax_t=yes
19338 else
19339   echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342         gt_cv_c_intmax_t=no
19343 fi
19344
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 fi
19347 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19348 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19349   if test $gt_cv_c_intmax_t = yes; then
19350
19351 cat >>confdefs.h <<\_ACEOF
19352 #define HAVE_INTMAX_T 1
19353 _ACEOF
19354
19355   fi
19356
19357
19358
19359   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19360 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19361 if test "${gt_cv_func_printf_posix+set}" = set; then
19362   echo $ECHO_N "(cached) $ECHO_C" >&6
19363 else
19364
19365       if test "$cross_compiling" = yes; then
19366
19367         cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373
19374 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19375   notposix
19376 #endif
19377
19378 _ACEOF
19379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19380   $EGREP "notposix" >/dev/null 2>&1; then
19381   gt_cv_func_printf_posix="guessing no"
19382 else
19383   gt_cv_func_printf_posix="guessing yes"
19384 fi
19385 rm -f conftest*
19386
19387
19388 else
19389   cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h.  */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h.  */
19395
19396 #include <stdio.h>
19397 #include <string.h>
19398 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19399    dollar expansion (possibly an autoconf bug).  */
19400 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19401 static char buf[100];
19402 int main ()
19403 {
19404   sprintf (buf, format, 33, 55);
19405   return (strcmp (buf, "55 33") != 0);
19406 }
19407 _ACEOF
19408 rm -f conftest$ac_exeext
19409 if { (ac_try="$ac_link"
19410 case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_link") 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19419   { (case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_try") 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; }; then
19428   gt_cv_func_printf_posix=yes
19429 else
19430   echo "$as_me: program exited with status $ac_status" >&5
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 ( exit $ac_status )
19435 gt_cv_func_printf_posix=no
19436 fi
19437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19438 fi
19439
19440
19441
19442 fi
19443 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19444 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19445   case $gt_cv_func_printf_posix in
19446     *yes)
19447
19448 cat >>confdefs.h <<\_ACEOF
19449 #define HAVE_POSIX_PRINTF 1
19450 _ACEOF
19451
19452       ;;
19453   esac
19454
19455 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19456 # for constant arguments.  Useless!
19457 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19458 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19459 if test "${ac_cv_working_alloca_h+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468 #include <alloca.h>
19469 int
19470 main ()
19471 {
19472 char *p = (char *) alloca (2 * sizeof (int));
19473                           if (p) return 0;
19474   ;
19475   return 0;
19476 }
19477 _ACEOF
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (ac_try="$ac_link"
19480 case "(($ac_try" in
19481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482   *) ac_try_echo=$ac_try;;
19483 esac
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485   (eval "$ac_link") 2>conftest.er1
19486   ac_status=$?
19487   grep -v '^ *+' conftest.er1 >conftest.err
19488   rm -f conftest.er1
19489   cat conftest.err >&5
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); } && {
19492          test -z "$ac_c_werror_flag" ||
19493          test ! -s conftest.err
19494        } && test -s conftest$ac_exeext &&
19495        $as_test_x conftest$ac_exeext; then
19496   ac_cv_working_alloca_h=yes
19497 else
19498   echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19500
19501         ac_cv_working_alloca_h=no
19502 fi
19503
19504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19505       conftest$ac_exeext conftest.$ac_ext
19506 fi
19507 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19508 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19509 if test $ac_cv_working_alloca_h = yes; then
19510
19511 cat >>confdefs.h <<\_ACEOF
19512 #define HAVE_ALLOCA_H 1
19513 _ACEOF
19514
19515 fi
19516
19517 { echo "$as_me:$LINENO: checking for alloca" >&5
19518 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19519 if test "${ac_cv_func_alloca_works+set}" = set; then
19520   echo $ECHO_N "(cached) $ECHO_C" >&6
19521 else
19522   cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h.  */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h.  */
19528 #ifdef __GNUC__
19529 # define alloca __builtin_alloca
19530 #else
19531 # ifdef _MSC_VER
19532 #  include <malloc.h>
19533 #  define alloca _alloca
19534 # else
19535 #  ifdef HAVE_ALLOCA_H
19536 #   include <alloca.h>
19537 #  else
19538 #   ifdef _AIX
19539  #pragma alloca
19540 #   else
19541 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19542 char *alloca ();
19543 #    endif
19544 #   endif
19545 #  endif
19546 # endif
19547 #endif
19548
19549 int
19550 main ()
19551 {
19552 char *p = (char *) alloca (1);
19553                                     if (p) return 0;
19554   ;
19555   return 0;
19556 }
19557 _ACEOF
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (ac_try="$ac_link"
19560 case "(($ac_try" in
19561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562   *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565   (eval "$ac_link") 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } && {
19572          test -z "$ac_c_werror_flag" ||
19573          test ! -s conftest.err
19574        } && test -s conftest$ac_exeext &&
19575        $as_test_x conftest$ac_exeext; then
19576   ac_cv_func_alloca_works=yes
19577 else
19578   echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19580
19581         ac_cv_func_alloca_works=no
19582 fi
19583
19584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19585       conftest$ac_exeext conftest.$ac_ext
19586 fi
19587 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19588 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19589
19590 if test $ac_cv_func_alloca_works = yes; then
19591
19592 cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_ALLOCA 1
19594 _ACEOF
19595
19596 else
19597   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19598 # that cause trouble.  Some versions do not even contain alloca or
19599 # contain a buggy version.  If you still want to use their alloca,
19600 # use ar to extract alloca.o from them instead of compiling alloca.c.
19601
19602 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19603
19604 cat >>confdefs.h <<\_ACEOF
19605 #define C_ALLOCA 1
19606 _ACEOF
19607
19608
19609 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19610 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19611 if test "${ac_cv_os_cray+set}" = set; then
19612   echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614   cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620 #if defined CRAY && ! defined CRAY2
19621 webecray
19622 #else
19623 wenotbecray
19624 #endif
19625
19626 _ACEOF
19627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19628   $EGREP "webecray" >/dev/null 2>&1; then
19629   ac_cv_os_cray=yes
19630 else
19631   ac_cv_os_cray=no
19632 fi
19633 rm -f conftest*
19634
19635 fi
19636 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19637 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19638 if test $ac_cv_os_cray = yes; then
19639   for ac_func in _getb67 GETB67 getb67; do
19640     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19644   echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646   cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h.  */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h.  */
19652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19654 #define $ac_func innocuous_$ac_func
19655
19656 /* System header to define __stub macros and hopefully few prototypes,
19657     which can conflict with char $ac_func (); below.
19658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19659     <limits.h> exists even on freestanding compilers.  */
19660
19661 #ifdef __STDC__
19662 # include <limits.h>
19663 #else
19664 # include <assert.h>
19665 #endif
19666
19667 #undef $ac_func
19668
19669 /* Override any GCC internal prototype to avoid an error.
19670    Use char because int might match the return type of a GCC
19671    builtin and then its argument prototype would still apply.  */
19672 #ifdef __cplusplus
19673 extern "C"
19674 #endif
19675 char $ac_func ();
19676 /* The GNU C library defines this for functions which it implements
19677     to always fail with ENOSYS.  Some functions are actually named
19678     something starting with __ and the normal name is an alias.  */
19679 #if defined __stub_$ac_func || defined __stub___$ac_func
19680 choke me
19681 #endif
19682
19683 int
19684 main ()
19685 {
19686 return $ac_func ();
19687   ;
19688   return 0;
19689 }
19690 _ACEOF
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (ac_try="$ac_link"
19693 case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698   (eval "$ac_link") 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } && {
19705          test -z "$ac_c_werror_flag" ||
19706          test ! -s conftest.err
19707        } && test -s conftest$ac_exeext &&
19708        $as_test_x conftest$ac_exeext; then
19709   eval "$as_ac_var=yes"
19710 else
19711   echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19713
19714         eval "$as_ac_var=no"
19715 fi
19716
19717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19718       conftest$ac_exeext conftest.$ac_ext
19719 fi
19720 ac_res=`eval echo '${'$as_ac_var'}'`
19721                { echo "$as_me:$LINENO: result: $ac_res" >&5
19722 echo "${ECHO_T}$ac_res" >&6; }
19723 if test `eval echo '${'$as_ac_var'}'` = yes; then
19724
19725 cat >>confdefs.h <<_ACEOF
19726 #define CRAY_STACKSEG_END $ac_func
19727 _ACEOF
19728
19729     break
19730 fi
19731
19732   done
19733 fi
19734
19735 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19736 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19737 if test "${ac_cv_c_stack_direction+set}" = set; then
19738   echo $ECHO_N "(cached) $ECHO_C" >&6
19739 else
19740   if test "$cross_compiling" = yes; then
19741   ac_cv_c_stack_direction=0
19742 else
19743   cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749 $ac_includes_default
19750 int
19751 find_stack_direction ()
19752 {
19753   static char *addr = 0;
19754   auto char dummy;
19755   if (addr == 0)
19756     {
19757       addr = &dummy;
19758       return find_stack_direction ();
19759     }
19760   else
19761     return (&dummy > addr) ? 1 : -1;
19762 }
19763
19764 int
19765 main ()
19766 {
19767   return find_stack_direction () < 0;
19768 }
19769 _ACEOF
19770 rm -f conftest$ac_exeext
19771 if { (ac_try="$ac_link"
19772 case "(($ac_try" in
19773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774   *) ac_try_echo=$ac_try;;
19775 esac
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777   (eval "$ac_link") 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19781   { (case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_try") 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; }; then
19790   ac_cv_c_stack_direction=1
19791 else
19792   echo "$as_me: program exited with status $ac_status" >&5
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19795
19796 ( exit $ac_status )
19797 ac_cv_c_stack_direction=-1
19798 fi
19799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19800 fi
19801
19802
19803 fi
19804 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19805 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19806
19807 cat >>confdefs.h <<_ACEOF
19808 #define STACK_DIRECTION $ac_cv_c_stack_direction
19809 _ACEOF
19810
19811
19812 fi
19813
19814
19815
19816 for ac_header in stdlib.h unistd.h
19817 do
19818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19820   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19823   echo $ECHO_N "(cached) $ECHO_C" >&6
19824 fi
19825 ac_res=`eval echo '${'$as_ac_Header'}'`
19826                { echo "$as_me:$LINENO: result: $ac_res" >&5
19827 echo "${ECHO_T}$ac_res" >&6; }
19828 else
19829   # Is the header compilable?
19830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19832 cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838 $ac_includes_default
19839 #include <$ac_header>
19840 _ACEOF
19841 rm -f conftest.$ac_objext
19842 if { (ac_try="$ac_compile"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_compile") 2>conftest.er1
19849   ac_status=$?
19850   grep -v '^ *+' conftest.er1 >conftest.err
19851   rm -f conftest.er1
19852   cat conftest.err >&5
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); } && {
19855          test -z "$ac_c_werror_flag" ||
19856          test ! -s conftest.err
19857        } && test -s conftest.$ac_objext; then
19858   ac_header_compiler=yes
19859 else
19860   echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863         ac_header_compiler=no
19864 fi
19865
19866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19868 echo "${ECHO_T}$ac_header_compiler" >&6; }
19869
19870 # Is the header present?
19871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19873 cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h.  */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h.  */
19879 #include <$ac_header>
19880 _ACEOF
19881 if { (ac_try="$ac_cpp conftest.$ac_ext"
19882 case "(($ac_try" in
19883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884   *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19888   ac_status=$?
19889   grep -v '^ *+' conftest.er1 >conftest.err
19890   rm -f conftest.er1
19891   cat conftest.err >&5
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } >/dev/null && {
19894          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19895          test ! -s conftest.err
19896        }; then
19897   ac_header_preproc=yes
19898 else
19899   echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19901
19902   ac_header_preproc=no
19903 fi
19904
19905 rm -f conftest.err conftest.$ac_ext
19906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19907 echo "${ECHO_T}$ac_header_preproc" >&6; }
19908
19909 # So?  What about this header?
19910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19911   yes:no: )
19912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19916     ac_header_preproc=yes
19917     ;;
19918   no:yes:* )
19919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19931
19932     ;;
19933 esac
19934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19937   echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939   eval "$as_ac_Header=\$ac_header_preproc"
19940 fi
19941 ac_res=`eval echo '${'$as_ac_Header'}'`
19942                { echo "$as_me:$LINENO: result: $ac_res" >&5
19943 echo "${ECHO_T}$ac_res" >&6; }
19944
19945 fi
19946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19947   cat >>confdefs.h <<_ACEOF
19948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19949 _ACEOF
19950
19951 fi
19952
19953 done
19954
19955
19956 for ac_func in getpagesize
19957 do
19958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19962   echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964   cat >conftest.$ac_ext <<_ACEOF
19965 /* confdefs.h.  */
19966 _ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h.  */
19970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19972 #define $ac_func innocuous_$ac_func
19973
19974 /* System header to define __stub macros and hopefully few prototypes,
19975     which can conflict with char $ac_func (); below.
19976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19977     <limits.h> exists even on freestanding compilers.  */
19978
19979 #ifdef __STDC__
19980 # include <limits.h>
19981 #else
19982 # include <assert.h>
19983 #endif
19984
19985 #undef $ac_func
19986
19987 /* Override any GCC internal prototype to avoid an error.
19988    Use char because int might match the return type of a GCC
19989    builtin and then its argument prototype would still apply.  */
19990 #ifdef __cplusplus
19991 extern "C"
19992 #endif
19993 char $ac_func ();
19994 /* The GNU C library defines this for functions which it implements
19995     to always fail with ENOSYS.  Some functions are actually named
19996     something starting with __ and the normal name is an alias.  */
19997 #if defined __stub_$ac_func || defined __stub___$ac_func
19998 choke me
19999 #endif
20000
20001 int
20002 main ()
20003 {
20004 return $ac_func ();
20005   ;
20006   return 0;
20007 }
20008 _ACEOF
20009 rm -f conftest.$ac_objext conftest$ac_exeext
20010 if { (ac_try="$ac_link"
20011 case "(($ac_try" in
20012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013   *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016   (eval "$ac_link") 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } && {
20023          test -z "$ac_c_werror_flag" ||
20024          test ! -s conftest.err
20025        } && test -s conftest$ac_exeext &&
20026        $as_test_x conftest$ac_exeext; then
20027   eval "$as_ac_var=yes"
20028 else
20029   echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032         eval "$as_ac_var=no"
20033 fi
20034
20035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20036       conftest$ac_exeext conftest.$ac_ext
20037 fi
20038 ac_res=`eval echo '${'$as_ac_var'}'`
20039                { echo "$as_me:$LINENO: result: $ac_res" >&5
20040 echo "${ECHO_T}$ac_res" >&6; }
20041 if test `eval echo '${'$as_ac_var'}'` = yes; then
20042   cat >>confdefs.h <<_ACEOF
20043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20044 _ACEOF
20045
20046 fi
20047 done
20048
20049 { echo "$as_me:$LINENO: checking for working mmap" >&5
20050 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20051 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20052   echo $ECHO_N "(cached) $ECHO_C" >&6
20053 else
20054   if test "$cross_compiling" = yes; then
20055   ac_cv_func_mmap_fixed_mapped=no
20056 else
20057   cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h.  */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h.  */
20063 $ac_includes_default
20064 /* malloc might have been renamed as rpl_malloc. */
20065 #undef malloc
20066
20067 /* Thanks to Mike Haertel and Jim Avera for this test.
20068    Here is a matrix of mmap possibilities:
20069         mmap private not fixed
20070         mmap private fixed at somewhere currently unmapped
20071         mmap private fixed at somewhere already mapped
20072         mmap shared not fixed
20073         mmap shared fixed at somewhere currently unmapped
20074         mmap shared fixed at somewhere already mapped
20075    For private mappings, we should verify that changes cannot be read()
20076    back from the file, nor mmap's back from the file at a different
20077    address.  (There have been systems where private was not correctly
20078    implemented like the infamous i386 svr4.0, and systems where the
20079    VM page cache was not coherent with the file system buffer cache
20080    like early versions of FreeBSD and possibly contemporary NetBSD.)
20081    For shared mappings, we should conversely verify that changes get
20082    propagated back to all the places they're supposed to be.
20083
20084    Grep wants private fixed already mapped.
20085    The main things grep needs to know about mmap are:
20086    * does it exist and is it safe to write into the mmap'd area
20087    * how to use it (BSD variants)  */
20088
20089 #include <fcntl.h>
20090 #include <sys/mman.h>
20091
20092 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20093 char *malloc ();
20094 #endif
20095
20096 /* This mess was copied from the GNU getpagesize.h.  */
20097 #ifndef HAVE_GETPAGESIZE
20098 /* Assume that all systems that can run configure have sys/param.h.  */
20099 # ifndef HAVE_SYS_PARAM_H
20100 #  define HAVE_SYS_PARAM_H 1
20101 # endif
20102
20103 # ifdef _SC_PAGESIZE
20104 #  define getpagesize() sysconf(_SC_PAGESIZE)
20105 # else /* no _SC_PAGESIZE */
20106 #  ifdef HAVE_SYS_PARAM_H
20107 #   include <sys/param.h>
20108 #   ifdef EXEC_PAGESIZE
20109 #    define getpagesize() EXEC_PAGESIZE
20110 #   else /* no EXEC_PAGESIZE */
20111 #    ifdef NBPG
20112 #     define getpagesize() NBPG * CLSIZE
20113 #     ifndef CLSIZE
20114 #      define CLSIZE 1
20115 #     endif /* no CLSIZE */
20116 #    else /* no NBPG */
20117 #     ifdef NBPC
20118 #      define getpagesize() NBPC
20119 #     else /* no NBPC */
20120 #      ifdef PAGESIZE
20121 #       define getpagesize() PAGESIZE
20122 #      endif /* PAGESIZE */
20123 #     endif /* no NBPC */
20124 #    endif /* no NBPG */
20125 #   endif /* no EXEC_PAGESIZE */
20126 #  else /* no HAVE_SYS_PARAM_H */
20127 #   define getpagesize() 8192   /* punt totally */
20128 #  endif /* no HAVE_SYS_PARAM_H */
20129 # endif /* no _SC_PAGESIZE */
20130
20131 #endif /* no HAVE_GETPAGESIZE */
20132
20133 int
20134 main ()
20135 {
20136   char *data, *data2, *data3;
20137   int i, pagesize;
20138   int fd;
20139
20140   pagesize = getpagesize ();
20141
20142   /* First, make a file with some known garbage in it. */
20143   data = (char *) malloc (pagesize);
20144   if (!data)
20145     return 1;
20146   for (i = 0; i < pagesize; ++i)
20147     *(data + i) = rand ();
20148   umask (0);
20149   fd = creat ("conftest.mmap", 0600);
20150   if (fd < 0)
20151     return 1;
20152   if (write (fd, data, pagesize) != pagesize)
20153     return 1;
20154   close (fd);
20155
20156   /* Next, try to mmap the file at a fixed address which already has
20157      something else allocated at it.  If we can, also make sure that
20158      we see the same garbage.  */
20159   fd = open ("conftest.mmap", O_RDWR);
20160   if (fd < 0)
20161     return 1;
20162   data2 = (char *) malloc (2 * pagesize);
20163   if (!data2)
20164     return 1;
20165   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20166   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20167                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20168     return 1;
20169   for (i = 0; i < pagesize; ++i)
20170     if (*(data + i) != *(data2 + i))
20171       return 1;
20172
20173   /* Finally, make sure that changes to the mapped area do not
20174      percolate back to the file as seen by read().  (This is a bug on
20175      some variants of i386 svr4.0.)  */
20176   for (i = 0; i < pagesize; ++i)
20177     *(data2 + i) = *(data2 + i) + 1;
20178   data3 = (char *) malloc (pagesize);
20179   if (!data3)
20180     return 1;
20181   if (read (fd, data3, pagesize) != pagesize)
20182     return 1;
20183   for (i = 0; i < pagesize; ++i)
20184     if (*(data + i) != *(data3 + i))
20185       return 1;
20186   close (fd);
20187   return 0;
20188 }
20189 _ACEOF
20190 rm -f conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194   *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197   (eval "$ac_link") 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20201   { (case "(($ac_try" in
20202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203   *) ac_try_echo=$ac_try;;
20204 esac
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206   (eval "$ac_try") 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   ac_cv_func_mmap_fixed_mapped=yes
20211 else
20212   echo "$as_me: program exited with status $ac_status" >&5
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20215
20216 ( exit $ac_status )
20217 ac_cv_func_mmap_fixed_mapped=no
20218 fi
20219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20220 fi
20221
20222
20223 fi
20224 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20225 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20226 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20227
20228 cat >>confdefs.h <<\_ACEOF
20229 #define HAVE_MMAP 1
20230 _ACEOF
20231
20232 fi
20233 rm -f conftest.mmap
20234
20235
20236     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20237 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20238 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20239   echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241   cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h.  */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h.  */
20247
20248 #include <features.h>
20249 #ifdef __GNU_LIBRARY__
20250  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20251   Lucky GNU user
20252  #endif
20253 #endif
20254
20255 _ACEOF
20256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20257   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20258   ac_cv_gnu_library_2_1=yes
20259 else
20260   ac_cv_gnu_library_2_1=no
20261 fi
20262 rm -f conftest*
20263
20264
20265
20266 fi
20267 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20268 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20269
20270     GLIBC21="$ac_cv_gnu_library_2_1"
20271
20272
20273
20274
20275   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20276 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20277 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20278   echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280
20281       if test "$cross_compiling" = yes; then
20282
20283           # Guess based on the CPU.
20284           case "$host_cpu" in
20285             alpha* | i3456786 | m68k | s390*)
20286               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20287             *)
20288               gt_cv_int_divbyzero_sigfpe="guessing no";;
20289           esac
20290
20291 else
20292   cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h.  */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h.  */
20298
20299 #include <stdlib.h>
20300 #include <signal.h>
20301
20302 static void
20303 #ifdef __cplusplus
20304 sigfpe_handler (int sig)
20305 #else
20306 sigfpe_handler (sig) int sig;
20307 #endif
20308 {
20309   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20310   exit (sig != SIGFPE);
20311 }
20312
20313 int x = 1;
20314 int y = 0;
20315 int z;
20316 int nan;
20317
20318 int main ()
20319 {
20320   signal (SIGFPE, sigfpe_handler);
20321 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20322 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20323   signal (SIGTRAP, sigfpe_handler);
20324 #endif
20325 /* Linux/SPARC yields signal SIGILL.  */
20326 #if defined (__sparc__) && defined (__linux__)
20327   signal (SIGILL, sigfpe_handler);
20328 #endif
20329
20330   z = x / y;
20331   nan = y / y;
20332   exit (1);
20333 }
20334
20335 _ACEOF
20336 rm -f conftest$ac_exeext
20337 if { (ac_try="$ac_link"
20338 case "(($ac_try" in
20339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340   *) ac_try_echo=$ac_try;;
20341 esac
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343   (eval "$ac_link") 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20347   { (case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_try") 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); }; }; then
20356   gt_cv_int_divbyzero_sigfpe=yes
20357 else
20358   echo "$as_me: program exited with status $ac_status" >&5
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 ( exit $ac_status )
20363 gt_cv_int_divbyzero_sigfpe=no
20364 fi
20365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20366 fi
20367
20368
20369
20370 fi
20371 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20372 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20373   case "$gt_cv_int_divbyzero_sigfpe" in
20374     *yes) value=1;;
20375     *) value=0;;
20376   esac
20377
20378 cat >>confdefs.h <<_ACEOF
20379 #define INTDIV0_RAISES_SIGFPE $value
20380 _ACEOF
20381
20382
20383
20384   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20385 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20386 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20387   echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389   cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h.  */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h.  */
20395 unsigned long long ull = 1ULL; int i = 63;
20396 int
20397 main ()
20398 {
20399 unsigned long long ullmax = (unsigned long long) -1;
20400      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext 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>conftest.er1
20413   ac_status=$?
20414   grep -v '^ *+' conftest.er1 >conftest.err
20415   rm -f conftest.er1
20416   cat conftest.err >&5
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } && {
20419          test -z "$ac_c_werror_flag" ||
20420          test ! -s conftest.err
20421        } && test -s conftest$ac_exeext &&
20422        $as_test_x conftest$ac_exeext; then
20423   ac_cv_type_unsigned_long_long=yes
20424 else
20425   echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428         ac_cv_type_unsigned_long_long=no
20429 fi
20430
20431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20432       conftest$ac_exeext conftest.$ac_ext
20433 fi
20434 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20435 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20436   if test $ac_cv_type_unsigned_long_long = yes; then
20437
20438 cat >>confdefs.h <<\_ACEOF
20439 #define HAVE_UNSIGNED_LONG_LONG 1
20440 _ACEOF
20441
20442   fi
20443
20444
20445
20446
20447   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20448
20449     test $ac_cv_type_unsigned_long_long = yes \
20450       && ac_type='unsigned long long' \
20451       || ac_type='unsigned long'
20452
20453 cat >>confdefs.h <<_ACEOF
20454 #define uintmax_t $ac_type
20455 _ACEOF
20456
20457   else
20458
20459 cat >>confdefs.h <<\_ACEOF
20460 #define HAVE_UINTMAX_T 1
20461 _ACEOF
20462
20463   fi
20464
20465
20466   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20467 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20468 if test "${gt_cv_header_inttypes_h+set}" = set; then
20469   echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471
20472     cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 #include <sys/types.h>
20479 #include <inttypes.h>
20480 int
20481 main ()
20482 {
20483
20484   ;
20485   return 0;
20486 }
20487 _ACEOF
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492   *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495   (eval "$ac_compile") 2>conftest.er1
20496   ac_status=$?
20497   grep -v '^ *+' conftest.er1 >conftest.err
20498   rm -f conftest.er1
20499   cat conftest.err >&5
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); } && {
20502          test -z "$ac_c_werror_flag" ||
20503          test ! -s conftest.err
20504        } && test -s conftest.$ac_objext; then
20505   gt_cv_header_inttypes_h=yes
20506 else
20507   echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510         gt_cv_header_inttypes_h=no
20511 fi
20512
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514
20515 fi
20516 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20517 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20518   if test $gt_cv_header_inttypes_h = yes; then
20519
20520 cat >>confdefs.h <<_ACEOF
20521 #define HAVE_INTTYPES_H 1
20522 _ACEOF
20523
20524   fi
20525
20526
20527
20528   if test $gt_cv_header_inttypes_h = yes; then
20529     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20530 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20531 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20532   echo $ECHO_N "(cached) $ECHO_C" >&6
20533 else
20534
20535         cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541 #include <inttypes.h>
20542 #ifdef PRId32
20543 char *p = PRId32;
20544 #endif
20545
20546 int
20547 main ()
20548 {
20549
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext
20555 if { (ac_try="$ac_compile"
20556 case "(($ac_try" in
20557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558   *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561   (eval "$ac_compile") 2>conftest.er1
20562   ac_status=$?
20563   grep -v '^ *+' conftest.er1 >conftest.err
20564   rm -f conftest.er1
20565   cat conftest.err >&5
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } && {
20568          test -z "$ac_c_werror_flag" ||
20569          test ! -s conftest.err
20570        } && test -s conftest.$ac_objext; then
20571   gt_cv_inttypes_pri_broken=no
20572 else
20573   echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20575
20576         gt_cv_inttypes_pri_broken=yes
20577 fi
20578
20579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580
20581 fi
20582 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20583 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20584   fi
20585   if test "$gt_cv_inttypes_pri_broken" = yes; then
20586
20587 cat >>confdefs.h <<_ACEOF
20588 #define PRI_MACROS_BROKEN 1
20589 _ACEOF
20590
20591   fi
20592
20593
20594
20595 for ac_header in stdint.h
20596 do
20597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20599   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20602   echo $ECHO_N "(cached) $ECHO_C" >&6
20603 fi
20604 ac_res=`eval echo '${'$as_ac_Header'}'`
20605                { echo "$as_me:$LINENO: result: $ac_res" >&5
20606 echo "${ECHO_T}$ac_res" >&6; }
20607 else
20608   # Is the header compilable?
20609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20611 cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h.  */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h.  */
20617 $ac_includes_default
20618 #include <$ac_header>
20619 _ACEOF
20620 rm -f conftest.$ac_objext
20621 if { (ac_try="$ac_compile"
20622 case "(($ac_try" in
20623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624   *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627   (eval "$ac_compile") 2>conftest.er1
20628   ac_status=$?
20629   grep -v '^ *+' conftest.er1 >conftest.err
20630   rm -f conftest.er1
20631   cat conftest.err >&5
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); } && {
20634          test -z "$ac_c_werror_flag" ||
20635          test ! -s conftest.err
20636        } && test -s conftest.$ac_objext; then
20637   ac_header_compiler=yes
20638 else
20639   echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642         ac_header_compiler=no
20643 fi
20644
20645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20647 echo "${ECHO_T}$ac_header_compiler" >&6; }
20648
20649 # Is the header present?
20650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20652 cat >conftest.$ac_ext <<_ACEOF
20653 /* confdefs.h.  */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h.  */
20658 #include <$ac_header>
20659 _ACEOF
20660 if { (ac_try="$ac_cpp conftest.$ac_ext"
20661 case "(($ac_try" in
20662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663   *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20667   ac_status=$?
20668   grep -v '^ *+' conftest.er1 >conftest.err
20669   rm -f conftest.er1
20670   cat conftest.err >&5
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); } >/dev/null && {
20673          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20674          test ! -s conftest.err
20675        }; then
20676   ac_header_preproc=yes
20677 else
20678   echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20680
20681   ac_header_preproc=no
20682 fi
20683
20684 rm -f conftest.err conftest.$ac_ext
20685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20686 echo "${ECHO_T}$ac_header_preproc" >&6; }
20687
20688 # So?  What about this header?
20689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20690   yes:no: )
20691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20695     ac_header_preproc=yes
20696     ;;
20697   no:yes:* )
20698     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20700     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20701 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20702     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20704     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20705 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20708     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20710
20711     ;;
20712 esac
20713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20716   echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718   eval "$as_ac_Header=\$ac_header_preproc"
20719 fi
20720 ac_res=`eval echo '${'$as_ac_Header'}'`
20721                { echo "$as_me:$LINENO: result: $ac_res" >&5
20722 echo "${ECHO_T}$ac_res" >&6; }
20723
20724 fi
20725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20726   cat >>confdefs.h <<_ACEOF
20727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20728 _ACEOF
20729
20730 fi
20731
20732 done
20733
20734     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20735 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20736   result=
20737   cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743
20744 #include <limits.h>
20745 #if HAVE_STDINT_H
20746 #include <stdint.h>
20747 #endif
20748 #ifdef SIZE_MAX
20749 Found it
20750 #endif
20751
20752 _ACEOF
20753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20754   $EGREP "Found it" >/dev/null 2>&1; then
20755   result=yes
20756 fi
20757 rm -f conftest*
20758
20759   if test -z "$result"; then
20760                     if test "$cross_compiling" = yes; then
20761   # Depending upon the size, compute the lo and hi bounds.
20762 cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h.  */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h.  */
20768 #include <stddef.h>
20769 int
20770 main ()
20771 {
20772 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20773 test_array [0] = 0
20774
20775   ;
20776   return 0;
20777 }
20778 _ACEOF
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783   *) ac_try_echo=$ac_try;;
20784 esac
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786   (eval "$ac_compile") 2>conftest.er1
20787   ac_status=$?
20788   grep -v '^ *+' conftest.er1 >conftest.err
20789   rm -f conftest.er1
20790   cat conftest.err >&5
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); } && {
20793          test -z "$ac_c_werror_flag" ||
20794          test ! -s conftest.err
20795        } && test -s conftest.$ac_objext; then
20796   ac_lo=0 ac_mid=0
20797   while :; do
20798     cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h.  */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h.  */
20804 #include <stddef.h>
20805 int
20806 main ()
20807 {
20808 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20809 test_array [0] = 0
20810
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 rm -f conftest.$ac_objext
20816 if { (ac_try="$ac_compile"
20817 case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_compile") 2>conftest.er1
20823   ac_status=$?
20824   grep -v '^ *+' conftest.er1 >conftest.err
20825   rm -f conftest.er1
20826   cat conftest.err >&5
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); } && {
20829          test -z "$ac_c_werror_flag" ||
20830          test ! -s conftest.err
20831        } && test -s conftest.$ac_objext; then
20832   ac_hi=$ac_mid; break
20833 else
20834   echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837         ac_lo=`expr $ac_mid + 1`
20838                         if test $ac_lo -le $ac_mid; then
20839                           ac_lo= ac_hi=
20840                           break
20841                         fi
20842                         ac_mid=`expr 2 '*' $ac_mid + 1`
20843 fi
20844
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846   done
20847 else
20848   echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20850
20851         cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857 #include <stddef.h>
20858 int
20859 main ()
20860 {
20861 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20862 test_array [0] = 0
20863
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_compile") 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && {
20882          test -z "$ac_c_werror_flag" ||
20883          test ! -s conftest.err
20884        } && test -s conftest.$ac_objext; then
20885   ac_hi=-1 ac_mid=-1
20886   while :; do
20887     cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h.  */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h.  */
20893 #include <stddef.h>
20894 int
20895 main ()
20896 {
20897 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20898 test_array [0] = 0
20899
20900   ;
20901   return 0;
20902 }
20903 _ACEOF
20904 rm -f conftest.$ac_objext
20905 if { (ac_try="$ac_compile"
20906 case "(($ac_try" in
20907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908   *) ac_try_echo=$ac_try;;
20909 esac
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911   (eval "$ac_compile") 2>conftest.er1
20912   ac_status=$?
20913   grep -v '^ *+' conftest.er1 >conftest.err
20914   rm -f conftest.er1
20915   cat conftest.err >&5
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); } && {
20918          test -z "$ac_c_werror_flag" ||
20919          test ! -s conftest.err
20920        } && test -s conftest.$ac_objext; then
20921   ac_lo=$ac_mid; break
20922 else
20923   echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20925
20926         ac_hi=`expr '(' $ac_mid ')' - 1`
20927                         if test $ac_mid -le $ac_hi; then
20928                           ac_lo= ac_hi=
20929                           break
20930                         fi
20931                         ac_mid=`expr 2 '*' $ac_mid`
20932 fi
20933
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935   done
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940         ac_lo= ac_hi=
20941 fi
20942
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944 fi
20945
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 # Binary search between lo and hi bounds.
20948 while test "x$ac_lo" != "x$ac_hi"; do
20949   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20950   cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 #include <stddef.h>
20957 int
20958 main ()
20959 {
20960 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20961 test_array [0] = 0
20962
20963   ;
20964   return 0;
20965 }
20966 _ACEOF
20967 rm -f conftest.$ac_objext
20968 if { (ac_try="$ac_compile"
20969 case "(($ac_try" in
20970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971   *) ac_try_echo=$ac_try;;
20972 esac
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974   (eval "$ac_compile") 2>conftest.er1
20975   ac_status=$?
20976   grep -v '^ *+' conftest.er1 >conftest.err
20977   rm -f conftest.er1
20978   cat conftest.err >&5
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); } && {
20981          test -z "$ac_c_werror_flag" ||
20982          test ! -s conftest.err
20983        } && test -s conftest.$ac_objext; then
20984   ac_hi=$ac_mid
20985 else
20986   echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20988
20989         ac_lo=`expr '(' $ac_mid ')' + 1`
20990 fi
20991
20992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20993 done
20994 case $ac_lo in
20995 ?*) res_hi=$ac_lo;;
20996 '') result=? ;;
20997 esac
20998 else
20999   cat >conftest.$ac_ext <<_ACEOF
21000 /* confdefs.h.  */
21001 _ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h.  */
21005 #include <stddef.h>
21006 static long int longval () { return ~(size_t)0 / 10; }
21007 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21008 #include <stdio.h>
21009 #include <stdlib.h>
21010 int
21011 main ()
21012 {
21013
21014   FILE *f = fopen ("conftest.val", "w");
21015   if (! f)
21016     return 1;
21017   if ((~(size_t)0 / 10) < 0)
21018     {
21019       long int i = longval ();
21020       if (i != (~(size_t)0 / 10))
21021         return 1;
21022       fprintf (f, "%ld\n", i);
21023     }
21024   else
21025     {
21026       unsigned long int i = ulongval ();
21027       if (i != (~(size_t)0 / 10))
21028         return 1;
21029       fprintf (f, "%lu\n", i);
21030     }
21031   return ferror (f) || fclose (f) != 0;
21032
21033   ;
21034   return 0;
21035 }
21036 _ACEOF
21037 rm -f conftest$ac_exeext
21038 if { (ac_try="$ac_link"
21039 case "(($ac_try" in
21040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041   *) ac_try_echo=$ac_try;;
21042 esac
21043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044   (eval "$ac_link") 2>&5
21045   ac_status=$?
21046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21048   { (case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053   (eval "$ac_try") 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; }; then
21057   res_hi=`cat conftest.val`
21058 else
21059   echo "$as_me: program exited with status $ac_status" >&5
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21062
21063 ( exit $ac_status )
21064 result=?
21065 fi
21066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21067 fi
21068 rm -f conftest.val
21069
21070     if test "$cross_compiling" = yes; then
21071   # Depending upon the size, compute the lo and hi bounds.
21072 cat >conftest.$ac_ext <<_ACEOF
21073 /* confdefs.h.  */
21074 _ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h.  */
21078 #include <stddef.h>
21079 int
21080 main ()
21081 {
21082 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21083 test_array [0] = 0
21084
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (ac_try="$ac_compile"
21091 case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096   (eval "$ac_compile") 2>conftest.er1
21097   ac_status=$?
21098   grep -v '^ *+' conftest.er1 >conftest.err
21099   rm -f conftest.er1
21100   cat conftest.err >&5
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } && {
21103          test -z "$ac_c_werror_flag" ||
21104          test ! -s conftest.err
21105        } && test -s conftest.$ac_objext; then
21106   ac_lo=0 ac_mid=0
21107   while :; do
21108     cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h.  */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h.  */
21114 #include <stddef.h>
21115 int
21116 main ()
21117 {
21118 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21119 test_array [0] = 0
21120
21121   ;
21122   return 0;
21123 }
21124 _ACEOF
21125 rm -f conftest.$ac_objext
21126 if { (ac_try="$ac_compile"
21127 case "(($ac_try" in
21128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129   *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132   (eval "$ac_compile") 2>conftest.er1
21133   ac_status=$?
21134   grep -v '^ *+' conftest.er1 >conftest.err
21135   rm -f conftest.er1
21136   cat conftest.err >&5
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); } && {
21139          test -z "$ac_c_werror_flag" ||
21140          test ! -s conftest.err
21141        } && test -s conftest.$ac_objext; then
21142   ac_hi=$ac_mid; break
21143 else
21144   echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147         ac_lo=`expr $ac_mid + 1`
21148                         if test $ac_lo -le $ac_mid; then
21149                           ac_lo= ac_hi=
21150                           break
21151                         fi
21152                         ac_mid=`expr 2 '*' $ac_mid + 1`
21153 fi
21154
21155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21156   done
21157 else
21158   echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161         cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167 #include <stddef.h>
21168 int
21169 main ()
21170 {
21171 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21172 test_array [0] = 0
21173
21174   ;
21175   return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_compile") 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } && {
21192          test -z "$ac_c_werror_flag" ||
21193          test ! -s conftest.err
21194        } && test -s conftest.$ac_objext; then
21195   ac_hi=-1 ac_mid=-1
21196   while :; do
21197     cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 #include <stddef.h>
21204 int
21205 main ()
21206 {
21207 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21208 test_array [0] = 0
21209
21210   ;
21211   return 0;
21212 }
21213 _ACEOF
21214 rm -f conftest.$ac_objext
21215 if { (ac_try="$ac_compile"
21216 case "(($ac_try" in
21217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218   *) ac_try_echo=$ac_try;;
21219 esac
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221   (eval "$ac_compile") 2>conftest.er1
21222   ac_status=$?
21223   grep -v '^ *+' conftest.er1 >conftest.err
21224   rm -f conftest.er1
21225   cat conftest.err >&5
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } && {
21228          test -z "$ac_c_werror_flag" ||
21229          test ! -s conftest.err
21230        } && test -s conftest.$ac_objext; then
21231   ac_lo=$ac_mid; break
21232 else
21233   echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236         ac_hi=`expr '(' $ac_mid ')' - 1`
21237                         if test $ac_mid -le $ac_hi; then
21238                           ac_lo= ac_hi=
21239                           break
21240                         fi
21241                         ac_mid=`expr 2 '*' $ac_mid`
21242 fi
21243
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245   done
21246 else
21247   echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250         ac_lo= ac_hi=
21251 fi
21252
21253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 fi
21255
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 # Binary search between lo and hi bounds.
21258 while test "x$ac_lo" != "x$ac_hi"; do
21259   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21260   cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h.  */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h.  */
21266 #include <stddef.h>
21267 int
21268 main ()
21269 {
21270 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21271 test_array [0] = 0
21272
21273   ;
21274   return 0;
21275 }
21276 _ACEOF
21277 rm -f conftest.$ac_objext
21278 if { (ac_try="$ac_compile"
21279 case "(($ac_try" in
21280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281   *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284   (eval "$ac_compile") 2>conftest.er1
21285   ac_status=$?
21286   grep -v '^ *+' conftest.er1 >conftest.err
21287   rm -f conftest.er1
21288   cat conftest.err >&5
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); } && {
21291          test -z "$ac_c_werror_flag" ||
21292          test ! -s conftest.err
21293        } && test -s conftest.$ac_objext; then
21294   ac_hi=$ac_mid
21295 else
21296   echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299         ac_lo=`expr '(' $ac_mid ')' + 1`
21300 fi
21301
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303 done
21304 case $ac_lo in
21305 ?*) res_lo=$ac_lo;;
21306 '') result=? ;;
21307 esac
21308 else
21309   cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h.  */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h.  */
21315 #include <stddef.h>
21316 static long int longval () { return ~(size_t)0 % 10; }
21317 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21318 #include <stdio.h>
21319 #include <stdlib.h>
21320 int
21321 main ()
21322 {
21323
21324   FILE *f = fopen ("conftest.val", "w");
21325   if (! f)
21326     return 1;
21327   if ((~(size_t)0 % 10) < 0)
21328     {
21329       long int i = longval ();
21330       if (i != (~(size_t)0 % 10))
21331         return 1;
21332       fprintf (f, "%ld\n", i);
21333     }
21334   else
21335     {
21336       unsigned long int i = ulongval ();
21337       if (i != (~(size_t)0 % 10))
21338         return 1;
21339       fprintf (f, "%lu\n", i);
21340     }
21341   return ferror (f) || fclose (f) != 0;
21342
21343   ;
21344   return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest$ac_exeext
21348 if { (ac_try="$ac_link"
21349 case "(($ac_try" in
21350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351   *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354   (eval "$ac_link") 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21358   { (case "(($ac_try" in
21359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360   *) ac_try_echo=$ac_try;;
21361 esac
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363   (eval "$ac_try") 2>&5
21364   ac_status=$?
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); }; }; then
21367   res_lo=`cat conftest.val`
21368 else
21369   echo "$as_me: program exited with status $ac_status" >&5
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21372
21373 ( exit $ac_status )
21374 result=?
21375 fi
21376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21377 fi
21378 rm -f conftest.val
21379
21380     if test "$cross_compiling" = yes; then
21381   # Depending upon the size, compute the lo and hi bounds.
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 #include <stddef.h>
21389 int
21390 main ()
21391 {
21392 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21393 test_array [0] = 0
21394
21395   ;
21396   return 0;
21397 }
21398 _ACEOF
21399 rm -f conftest.$ac_objext
21400 if { (ac_try="$ac_compile"
21401 case "(($ac_try" in
21402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403   *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406   (eval "$ac_compile") 2>conftest.er1
21407   ac_status=$?
21408   grep -v '^ *+' conftest.er1 >conftest.err
21409   rm -f conftest.er1
21410   cat conftest.err >&5
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } && {
21413          test -z "$ac_c_werror_flag" ||
21414          test ! -s conftest.err
21415        } && test -s conftest.$ac_objext; then
21416   ac_lo=0 ac_mid=0
21417   while :; do
21418     cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h.  */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h.  */
21424 #include <stddef.h>
21425 int
21426 main ()
21427 {
21428 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21429 test_array [0] = 0
21430
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439   *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442   (eval "$ac_compile") 2>conftest.er1
21443   ac_status=$?
21444   grep -v '^ *+' conftest.er1 >conftest.err
21445   rm -f conftest.er1
21446   cat conftest.err >&5
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } && {
21449          test -z "$ac_c_werror_flag" ||
21450          test ! -s conftest.err
21451        } && test -s conftest.$ac_objext; then
21452   ac_hi=$ac_mid; break
21453 else
21454   echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457         ac_lo=`expr $ac_mid + 1`
21458                         if test $ac_lo -le $ac_mid; then
21459                           ac_lo= ac_hi=
21460                           break
21461                         fi
21462                         ac_mid=`expr 2 '*' $ac_mid + 1`
21463 fi
21464
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21466   done
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471         cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 #include <stddef.h>
21478 int
21479 main ()
21480 {
21481 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21482 test_array [0] = 0
21483
21484   ;
21485   return 0;
21486 }
21487 _ACEOF
21488 rm -f conftest.$ac_objext
21489 if { (ac_try="$ac_compile"
21490 case "(($ac_try" in
21491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492   *) ac_try_echo=$ac_try;;
21493 esac
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495   (eval "$ac_compile") 2>conftest.er1
21496   ac_status=$?
21497   grep -v '^ *+' conftest.er1 >conftest.err
21498   rm -f conftest.er1
21499   cat conftest.err >&5
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); } && {
21502          test -z "$ac_c_werror_flag" ||
21503          test ! -s conftest.err
21504        } && test -s conftest.$ac_objext; then
21505   ac_hi=-1 ac_mid=-1
21506   while :; do
21507     cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h.  */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h.  */
21513 #include <stddef.h>
21514 int
21515 main ()
21516 {
21517 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21518 test_array [0] = 0
21519
21520   ;
21521   return 0;
21522 }
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (ac_try="$ac_compile"
21526 case "(($ac_try" in
21527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528   *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531   (eval "$ac_compile") 2>conftest.er1
21532   ac_status=$?
21533   grep -v '^ *+' conftest.er1 >conftest.err
21534   rm -f conftest.er1
21535   cat conftest.err >&5
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); } && {
21538          test -z "$ac_c_werror_flag" ||
21539          test ! -s conftest.err
21540        } && test -s conftest.$ac_objext; then
21541   ac_lo=$ac_mid; break
21542 else
21543   echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546         ac_hi=`expr '(' $ac_mid ')' - 1`
21547                         if test $ac_mid -le $ac_hi; then
21548                           ac_lo= ac_hi=
21549                           break
21550                         fi
21551                         ac_mid=`expr 2 '*' $ac_mid`
21552 fi
21553
21554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555   done
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560         ac_lo= ac_hi=
21561 fi
21562
21563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21564 fi
21565
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 # Binary search between lo and hi bounds.
21568 while test "x$ac_lo" != "x$ac_hi"; do
21569   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21570   cat >conftest.$ac_ext <<_ACEOF
21571 /* confdefs.h.  */
21572 _ACEOF
21573 cat confdefs.h >>conftest.$ac_ext
21574 cat >>conftest.$ac_ext <<_ACEOF
21575 /* end confdefs.h.  */
21576 #include <stddef.h>
21577 int
21578 main ()
21579 {
21580 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21581 test_array [0] = 0
21582
21583   ;
21584   return 0;
21585 }
21586 _ACEOF
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591   *) ac_try_echo=$ac_try;;
21592 esac
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594   (eval "$ac_compile") 2>conftest.er1
21595   ac_status=$?
21596   grep -v '^ *+' conftest.er1 >conftest.err
21597   rm -f conftest.er1
21598   cat conftest.err >&5
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } && {
21601          test -z "$ac_c_werror_flag" ||
21602          test ! -s conftest.err
21603        } && test -s conftest.$ac_objext; then
21604   ac_hi=$ac_mid
21605 else
21606   echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609         ac_lo=`expr '(' $ac_mid ')' + 1`
21610 fi
21611
21612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 done
21614 case $ac_lo in
21615 ?*) fits_in_uint=$ac_lo;;
21616 '') result=? ;;
21617 esac
21618 else
21619   cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h.  */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h.  */
21625 #include <stddef.h>
21626 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21627 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21628 #include <stdio.h>
21629 #include <stdlib.h>
21630 int
21631 main ()
21632 {
21633
21634   FILE *f = fopen ("conftest.val", "w");
21635   if (! f)
21636     return 1;
21637   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21638     {
21639       long int i = longval ();
21640       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21641         return 1;
21642       fprintf (f, "%ld\n", i);
21643     }
21644   else
21645     {
21646       unsigned long int i = ulongval ();
21647       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21648         return 1;
21649       fprintf (f, "%lu\n", i);
21650     }
21651   return ferror (f) || fclose (f) != 0;
21652
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 rm -f conftest$ac_exeext
21658 if { (ac_try="$ac_link"
21659 case "(($ac_try" in
21660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661   *) ac_try_echo=$ac_try;;
21662 esac
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664   (eval "$ac_link") 2>&5
21665   ac_status=$?
21666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21668   { (case "(($ac_try" in
21669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670   *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673   (eval "$ac_try") 2>&5
21674   ac_status=$?
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); }; }; then
21677   fits_in_uint=`cat conftest.val`
21678 else
21679   echo "$as_me: program exited with status $ac_status" >&5
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21682
21683 ( exit $ac_status )
21684 result=?
21685 fi
21686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21687 fi
21688 rm -f conftest.val
21689
21690     if test "$fits_in_uint" = 1; then
21691                   cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697 #include <stddef.h>
21698         extern size_t foo;
21699         extern unsigned long foo;
21700
21701 int
21702 main ()
21703 {
21704
21705   ;
21706   return 0;
21707 }
21708 _ACEOF
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713   *) ac_try_echo=$ac_try;;
21714 esac
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716   (eval "$ac_compile") 2>conftest.er1
21717   ac_status=$?
21718   grep -v '^ *+' conftest.er1 >conftest.err
21719   rm -f conftest.er1
21720   cat conftest.err >&5
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } && {
21723          test -z "$ac_c_werror_flag" ||
21724          test ! -s conftest.err
21725        } && test -s conftest.$ac_objext; then
21726   fits_in_uint=0
21727 else
21728   echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731
21732 fi
21733
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21735     fi
21736     if test -z "$result"; then
21737       if test "$fits_in_uint" = 1; then
21738         result="$res_hi$res_lo"U
21739       else
21740         result="$res_hi$res_lo"UL
21741       fi
21742     else
21743             result='~(size_t)0'
21744     fi
21745   fi
21746   { echo "$as_me:$LINENO: result: $result" >&5
21747 echo "${ECHO_T}$result" >&6; }
21748   if test "$result" != yes; then
21749
21750 cat >>confdefs.h <<_ACEOF
21751 #define SIZE_MAX $result
21752 _ACEOF
21753
21754   fi
21755
21756
21757
21758
21759
21760 for ac_header in stdint.h
21761 do
21762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21764   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21767   echo $ECHO_N "(cached) $ECHO_C" >&6
21768 fi
21769 ac_res=`eval echo '${'$as_ac_Header'}'`
21770                { echo "$as_me:$LINENO: result: $ac_res" >&5
21771 echo "${ECHO_T}$ac_res" >&6; }
21772 else
21773   # Is the header compilable?
21774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21776 cat >conftest.$ac_ext <<_ACEOF
21777 /* confdefs.h.  */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h.  */
21782 $ac_includes_default
21783 #include <$ac_header>
21784 _ACEOF
21785 rm -f conftest.$ac_objext
21786 if { (ac_try="$ac_compile"
21787 case "(($ac_try" in
21788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789   *) ac_try_echo=$ac_try;;
21790 esac
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792   (eval "$ac_compile") 2>conftest.er1
21793   ac_status=$?
21794   grep -v '^ *+' conftest.er1 >conftest.err
21795   rm -f conftest.er1
21796   cat conftest.err >&5
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } && {
21799          test -z "$ac_c_werror_flag" ||
21800          test ! -s conftest.err
21801        } && test -s conftest.$ac_objext; then
21802   ac_header_compiler=yes
21803 else
21804   echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21806
21807         ac_header_compiler=no
21808 fi
21809
21810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21812 echo "${ECHO_T}$ac_header_compiler" >&6; }
21813
21814 # Is the header present?
21815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21817 cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h.  */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h.  */
21823 #include <$ac_header>
21824 _ACEOF
21825 if { (ac_try="$ac_cpp conftest.$ac_ext"
21826 case "(($ac_try" in
21827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828   *) ac_try_echo=$ac_try;;
21829 esac
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21832   ac_status=$?
21833   grep -v '^ *+' conftest.er1 >conftest.err
21834   rm -f conftest.er1
21835   cat conftest.err >&5
21836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837   (exit $ac_status); } >/dev/null && {
21838          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21839          test ! -s conftest.err
21840        }; then
21841   ac_header_preproc=yes
21842 else
21843   echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21845
21846   ac_header_preproc=no
21847 fi
21848
21849 rm -f conftest.err conftest.$ac_ext
21850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21851 echo "${ECHO_T}$ac_header_preproc" >&6; }
21852
21853 # So?  What about this header?
21854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21855   yes:no: )
21856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21860     ac_header_preproc=yes
21861     ;;
21862   no:yes:* )
21863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21875
21876     ;;
21877 esac
21878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21881   echo $ECHO_N "(cached) $ECHO_C" >&6
21882 else
21883   eval "$as_ac_Header=\$ac_header_preproc"
21884 fi
21885 ac_res=`eval echo '${'$as_ac_Header'}'`
21886                { echo "$as_me:$LINENO: result: $ac_res" >&5
21887 echo "${ECHO_T}$ac_res" >&6; }
21888
21889 fi
21890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21891   cat >>confdefs.h <<_ACEOF
21892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21893 _ACEOF
21894
21895 fi
21896
21897 done
21898
21899
21900
21901
21902
21903
21904
21905
21906   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21907 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21908 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21909   echo $ECHO_N "(cached) $ECHO_C" >&6
21910 else
21911   cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h.  */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h.  */
21917 $ac_includes_default
21918 typedef ptrdiff_t ac__type_new_;
21919 int
21920 main ()
21921 {
21922 if ((ac__type_new_ *) 0)
21923   return 0;
21924 if (sizeof (ac__type_new_))
21925   return 0;
21926   ;
21927   return 0;
21928 }
21929 _ACEOF
21930 rm -f conftest.$ac_objext
21931 if { (ac_try="$ac_compile"
21932 case "(($ac_try" in
21933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934   *) ac_try_echo=$ac_try;;
21935 esac
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937   (eval "$ac_compile") 2>conftest.er1
21938   ac_status=$?
21939   grep -v '^ *+' conftest.er1 >conftest.err
21940   rm -f conftest.er1
21941   cat conftest.err >&5
21942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943   (exit $ac_status); } && {
21944          test -z "$ac_c_werror_flag" ||
21945          test ! -s conftest.err
21946        } && test -s conftest.$ac_objext; then
21947   ac_cv_type_ptrdiff_t=yes
21948 else
21949   echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952         ac_cv_type_ptrdiff_t=no
21953 fi
21954
21955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21956 fi
21957 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21958 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21959 if test $ac_cv_type_ptrdiff_t = yes; then
21960   :
21961 else
21962
21963 cat >>confdefs.h <<\_ACEOF
21964 #define ptrdiff_t long
21965 _ACEOF
21966
21967
21968 fi
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21981 stdlib.h string.h unistd.h sys/param.h
21982 do
21983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21985   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21988   echo $ECHO_N "(cached) $ECHO_C" >&6
21989 fi
21990 ac_res=`eval echo '${'$as_ac_Header'}'`
21991                { echo "$as_me:$LINENO: result: $ac_res" >&5
21992 echo "${ECHO_T}$ac_res" >&6; }
21993 else
21994   # Is the header compilable?
21995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21997 cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h.  */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h.  */
22003 $ac_includes_default
22004 #include <$ac_header>
22005 _ACEOF
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010   *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013   (eval "$ac_compile") 2>conftest.er1
22014   ac_status=$?
22015   grep -v '^ *+' conftest.er1 >conftest.err
22016   rm -f conftest.er1
22017   cat conftest.err >&5
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); } && {
22020          test -z "$ac_c_werror_flag" ||
22021          test ! -s conftest.err
22022        } && test -s conftest.$ac_objext; then
22023   ac_header_compiler=yes
22024 else
22025   echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22027
22028         ac_header_compiler=no
22029 fi
22030
22031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22033 echo "${ECHO_T}$ac_header_compiler" >&6; }
22034
22035 # Is the header present?
22036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22038 cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h.  */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h.  */
22044 #include <$ac_header>
22045 _ACEOF
22046 if { (ac_try="$ac_cpp conftest.$ac_ext"
22047 case "(($ac_try" in
22048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049   *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22053   ac_status=$?
22054   grep -v '^ *+' conftest.er1 >conftest.err
22055   rm -f conftest.er1
22056   cat conftest.err >&5
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } >/dev/null && {
22059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22060          test ! -s conftest.err
22061        }; then
22062   ac_header_preproc=yes
22063 else
22064   echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22066
22067   ac_header_preproc=no
22068 fi
22069
22070 rm -f conftest.err conftest.$ac_ext
22071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22072 echo "${ECHO_T}$ac_header_preproc" >&6; }
22073
22074 # So?  What about this header?
22075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22076   yes:no: )
22077     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22081     ac_header_preproc=yes
22082     ;;
22083   no:yes:* )
22084     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22086     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22087 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22088     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22090     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22091 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22094     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22096
22097     ;;
22098 esac
22099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22102   echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104   eval "$as_ac_Header=\$ac_header_preproc"
22105 fi
22106 ac_res=`eval echo '${'$as_ac_Header'}'`
22107                { echo "$as_me:$LINENO: result: $ac_res" >&5
22108 echo "${ECHO_T}$ac_res" >&6; }
22109
22110 fi
22111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22112   cat >>confdefs.h <<_ACEOF
22113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22114 _ACEOF
22115
22116 fi
22117
22118 done
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22144 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22145 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22146 __fsetlocking
22147 do
22148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22152   echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154   cat >conftest.$ac_ext <<_ACEOF
22155 /* confdefs.h.  */
22156 _ACEOF
22157 cat confdefs.h >>conftest.$ac_ext
22158 cat >>conftest.$ac_ext <<_ACEOF
22159 /* end confdefs.h.  */
22160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22162 #define $ac_func innocuous_$ac_func
22163
22164 /* System header to define __stub macros and hopefully few prototypes,
22165     which can conflict with char $ac_func (); below.
22166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22167     <limits.h> exists even on freestanding compilers.  */
22168
22169 #ifdef __STDC__
22170 # include <limits.h>
22171 #else
22172 # include <assert.h>
22173 #endif
22174
22175 #undef $ac_func
22176
22177 /* Override any GCC internal prototype to avoid an error.
22178    Use char because int might match the return type of a GCC
22179    builtin and then its argument prototype would still apply.  */
22180 #ifdef __cplusplus
22181 extern "C"
22182 #endif
22183 char $ac_func ();
22184 /* The GNU C library defines this for functions which it implements
22185     to always fail with ENOSYS.  Some functions are actually named
22186     something starting with __ and the normal name is an alias.  */
22187 #if defined __stub_$ac_func || defined __stub___$ac_func
22188 choke me
22189 #endif
22190
22191 int
22192 main ()
22193 {
22194 return $ac_func ();
22195   ;
22196   return 0;
22197 }
22198 _ACEOF
22199 rm -f conftest.$ac_objext conftest$ac_exeext
22200 if { (ac_try="$ac_link"
22201 case "(($ac_try" in
22202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22203   *) ac_try_echo=$ac_try;;
22204 esac
22205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22206   (eval "$ac_link") 2>conftest.er1
22207   ac_status=$?
22208   grep -v '^ *+' conftest.er1 >conftest.err
22209   rm -f conftest.er1
22210   cat conftest.err >&5
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); } && {
22213          test -z "$ac_c_werror_flag" ||
22214          test ! -s conftest.err
22215        } && test -s conftest$ac_exeext &&
22216        $as_test_x conftest$ac_exeext; then
22217   eval "$as_ac_var=yes"
22218 else
22219   echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22221
22222         eval "$as_ac_var=no"
22223 fi
22224
22225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22226       conftest$ac_exeext conftest.$ac_ext
22227 fi
22228 ac_res=`eval echo '${'$as_ac_var'}'`
22229                { echo "$as_me:$LINENO: result: $ac_res" >&5
22230 echo "${ECHO_T}$ac_res" >&6; }
22231 if test `eval echo '${'$as_ac_var'}'` = yes; then
22232   cat >>confdefs.h <<_ACEOF
22233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22234 _ACEOF
22235
22236 fi
22237 done
22238
22239
22240
22241   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22242 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22243 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22244   echo $ECHO_N "(cached) $ECHO_C" >&6
22245 else
22246   cat >conftest.$ac_ext <<_ACEOF
22247 /* confdefs.h.  */
22248 _ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h.  */
22252 #include <stdio.h>
22253 int
22254 main ()
22255 {
22256
22257 #ifndef _snprintf
22258   char *p = (char *) _snprintf;
22259 #endif
22260
22261   ;
22262   return 0;
22263 }
22264 _ACEOF
22265 rm -f conftest.$ac_objext
22266 if { (ac_try="$ac_compile"
22267 case "(($ac_try" in
22268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269   *) ac_try_echo=$ac_try;;
22270 esac
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272   (eval "$ac_compile") 2>conftest.er1
22273   ac_status=$?
22274   grep -v '^ *+' conftest.er1 >conftest.err
22275   rm -f conftest.er1
22276   cat conftest.err >&5
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); } && {
22279          test -z "$ac_c_werror_flag" ||
22280          test ! -s conftest.err
22281        } && test -s conftest.$ac_objext; then
22282   ac_cv_have_decl__snprintf=yes
22283 else
22284   echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22286
22287         ac_cv_have_decl__snprintf=no
22288 fi
22289
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 fi
22292 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22293 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22294   if test $ac_cv_have_decl__snprintf = yes; then
22295     gt_value=1
22296   else
22297     gt_value=0
22298   fi
22299
22300 cat >>confdefs.h <<_ACEOF
22301 #define HAVE_DECL__SNPRINTF $gt_value
22302 _ACEOF
22303
22304
22305
22306   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22307 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22308 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22309   echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311   cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h.  */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h.  */
22317 #include <stdio.h>
22318 int
22319 main ()
22320 {
22321
22322 #ifndef _snwprintf
22323   char *p = (char *) _snwprintf;
22324 #endif
22325
22326   ;
22327   return 0;
22328 }
22329 _ACEOF
22330 rm -f conftest.$ac_objext
22331 if { (ac_try="$ac_compile"
22332 case "(($ac_try" in
22333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334   *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337   (eval "$ac_compile") 2>conftest.er1
22338   ac_status=$?
22339   grep -v '^ *+' conftest.er1 >conftest.err
22340   rm -f conftest.er1
22341   cat conftest.err >&5
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); } && {
22344          test -z "$ac_c_werror_flag" ||
22345          test ! -s conftest.err
22346        } && test -s conftest.$ac_objext; then
22347   ac_cv_have_decl__snwprintf=yes
22348 else
22349   echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22351
22352         ac_cv_have_decl__snwprintf=no
22353 fi
22354
22355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22356 fi
22357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22358 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22359   if test $ac_cv_have_decl__snwprintf = yes; then
22360     gt_value=1
22361   else
22362     gt_value=0
22363   fi
22364
22365 cat >>confdefs.h <<_ACEOF
22366 #define HAVE_DECL__SNWPRINTF $gt_value
22367 _ACEOF
22368
22369
22370
22371
22372   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22373 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22374 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377   cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h.  */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h.  */
22383 #include <stdio.h>
22384 int
22385 main ()
22386 {
22387
22388 #ifndef feof_unlocked
22389   char *p = (char *) feof_unlocked;
22390 #endif
22391
22392   ;
22393   return 0;
22394 }
22395 _ACEOF
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400   *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403   (eval "$ac_compile") 2>conftest.er1
22404   ac_status=$?
22405   grep -v '^ *+' conftest.er1 >conftest.err
22406   rm -f conftest.er1
22407   cat conftest.err >&5
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); } && {
22410          test -z "$ac_c_werror_flag" ||
22411          test ! -s conftest.err
22412        } && test -s conftest.$ac_objext; then
22413   ac_cv_have_decl_feof_unlocked=yes
22414 else
22415   echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22417
22418         ac_cv_have_decl_feof_unlocked=no
22419 fi
22420
22421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22422 fi
22423 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22424 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22425   if test $ac_cv_have_decl_feof_unlocked = yes; then
22426     gt_value=1
22427   else
22428     gt_value=0
22429   fi
22430
22431 cat >>confdefs.h <<_ACEOF
22432 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22433 _ACEOF
22434
22435
22436
22437   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22438 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22439 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22440   echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442   cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h.  */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h.  */
22448 #include <stdio.h>
22449 int
22450 main ()
22451 {
22452
22453 #ifndef fgets_unlocked
22454   char *p = (char *) fgets_unlocked;
22455 #endif
22456
22457   ;
22458   return 0;
22459 }
22460 _ACEOF
22461 rm -f conftest.$ac_objext
22462 if { (ac_try="$ac_compile"
22463 case "(($ac_try" in
22464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465   *) ac_try_echo=$ac_try;;
22466 esac
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468   (eval "$ac_compile") 2>conftest.er1
22469   ac_status=$?
22470   grep -v '^ *+' conftest.er1 >conftest.err
22471   rm -f conftest.er1
22472   cat conftest.err >&5
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } && {
22475          test -z "$ac_c_werror_flag" ||
22476          test ! -s conftest.err
22477        } && test -s conftest.$ac_objext; then
22478   ac_cv_have_decl_fgets_unlocked=yes
22479 else
22480   echo "$as_me: failed program was:" >&5
22481 sed 's/^/| /' conftest.$ac_ext >&5
22482
22483         ac_cv_have_decl_fgets_unlocked=no
22484 fi
22485
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 fi
22488 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22489 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22490   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22491     gt_value=1
22492   else
22493     gt_value=0
22494   fi
22495
22496 cat >>confdefs.h <<_ACEOF
22497 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22498 _ACEOF
22499
22500
22501
22502   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22503 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22504 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22505   echo $ECHO_N "(cached) $ECHO_C" >&6
22506 else
22507   cat >conftest.$ac_ext <<_ACEOF
22508 /* confdefs.h.  */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h.  */
22513 #include <stdio.h>
22514 int
22515 main ()
22516 {
22517
22518 #ifndef getc_unlocked
22519   char *p = (char *) getc_unlocked;
22520 #endif
22521
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530   *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533   (eval "$ac_compile") 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } && {
22540          test -z "$ac_c_werror_flag" ||
22541          test ! -s conftest.err
22542        } && test -s conftest.$ac_objext; then
22543   ac_cv_have_decl_getc_unlocked=yes
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548         ac_cv_have_decl_getc_unlocked=no
22549 fi
22550
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552 fi
22553 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22554 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22555   if test $ac_cv_have_decl_getc_unlocked = yes; then
22556     gt_value=1
22557   else
22558     gt_value=0
22559   fi
22560
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22563 _ACEOF
22564
22565
22566
22567   case $gt_cv_func_printf_posix in
22568     *yes) HAVE_POSIX_PRINTF=1 ;;
22569     *) HAVE_POSIX_PRINTF=0 ;;
22570   esac
22571
22572   if test "$ac_cv_func_asprintf" = yes; then
22573     HAVE_ASPRINTF=1
22574   else
22575     HAVE_ASPRINTF=0
22576   fi
22577
22578   if test "$ac_cv_func_snprintf" = yes; then
22579     HAVE_SNPRINTF=1
22580   else
22581     HAVE_SNPRINTF=0
22582   fi
22583
22584   if test "$ac_cv_func_wprintf" = yes; then
22585     HAVE_WPRINTF=1
22586   else
22587     HAVE_WPRINTF=0
22588   fi
22589
22590
22591
22592
22593
22594
22595
22596           am_save_CPPFLAGS="$CPPFLAGS"
22597
22598   for element in $INCICONV; do
22599     haveit=
22600     for x in $CPPFLAGS; do
22601
22602   acl_save_prefix="$prefix"
22603   prefix="$acl_final_prefix"
22604   acl_save_exec_prefix="$exec_prefix"
22605   exec_prefix="$acl_final_exec_prefix"
22606   eval x=\"$x\"
22607   exec_prefix="$acl_save_exec_prefix"
22608   prefix="$acl_save_prefix"
22609
22610       if test "X$x" = "X$element"; then
22611         haveit=yes
22612         break
22613       fi
22614     done
22615     if test -z "$haveit"; then
22616       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22617     fi
22618   done
22619
22620
22621   { echo "$as_me:$LINENO: checking for iconv" >&5
22622 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22623 if test "${am_cv_func_iconv+set}" = set; then
22624   echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626
22627     am_cv_func_iconv="no, consider installing GNU libiconv"
22628     am_cv_lib_iconv=no
22629     cat >conftest.$ac_ext <<_ACEOF
22630 /* confdefs.h.  */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h.  */
22635 #include <stdlib.h>
22636 #include <iconv.h>
22637 int
22638 main ()
22639 {
22640 iconv_t cd = iconv_open("","");
22641        iconv(cd,NULL,NULL,NULL,NULL);
22642        iconv_close(cd);
22643   ;
22644   return 0;
22645 }
22646 _ACEOF
22647 rm -f conftest.$ac_objext conftest$ac_exeext
22648 if { (ac_try="$ac_link"
22649 case "(($ac_try" in
22650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22651   *) ac_try_echo=$ac_try;;
22652 esac
22653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22654   (eval "$ac_link") 2>conftest.er1
22655   ac_status=$?
22656   grep -v '^ *+' conftest.er1 >conftest.err
22657   rm -f conftest.er1
22658   cat conftest.err >&5
22659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); } && {
22661          test -z "$ac_c_werror_flag" ||
22662          test ! -s conftest.err
22663        } && test -s conftest$ac_exeext &&
22664        $as_test_x conftest$ac_exeext; then
22665   am_cv_func_iconv=yes
22666 else
22667   echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22669
22670
22671 fi
22672
22673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22674       conftest$ac_exeext conftest.$ac_ext
22675     if test "$am_cv_func_iconv" != yes; then
22676       am_save_LIBS="$LIBS"
22677       LIBS="$LIBS $LIBICONV"
22678       cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h.  */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h.  */
22684 #include <stdlib.h>
22685 #include <iconv.h>
22686 int
22687 main ()
22688 {
22689 iconv_t cd = iconv_open("","");
22690          iconv(cd,NULL,NULL,NULL,NULL);
22691          iconv_close(cd);
22692   ;
22693   return 0;
22694 }
22695 _ACEOF
22696 rm -f conftest.$ac_objext conftest$ac_exeext
22697 if { (ac_try="$ac_link"
22698 case "(($ac_try" in
22699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700   *) ac_try_echo=$ac_try;;
22701 esac
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703   (eval "$ac_link") 2>conftest.er1
22704   ac_status=$?
22705   grep -v '^ *+' conftest.er1 >conftest.err
22706   rm -f conftest.er1
22707   cat conftest.err >&5
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); } && {
22710          test -z "$ac_c_werror_flag" ||
22711          test ! -s conftest.err
22712        } && test -s conftest$ac_exeext &&
22713        $as_test_x conftest$ac_exeext; then
22714   am_cv_lib_iconv=yes
22715         am_cv_func_iconv=yes
22716 else
22717   echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22719
22720
22721 fi
22722
22723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22724       conftest$ac_exeext conftest.$ac_ext
22725       LIBS="$am_save_LIBS"
22726     fi
22727
22728 fi
22729 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22730 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22731   if test "$am_cv_func_iconv" = yes; then
22732
22733 cat >>confdefs.h <<\_ACEOF
22734 #define HAVE_ICONV 1
22735 _ACEOF
22736
22737   fi
22738   if test "$am_cv_lib_iconv" = yes; then
22739     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22740 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22741     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22742 echo "${ECHO_T}$LIBICONV" >&6; }
22743   else
22744             CPPFLAGS="$am_save_CPPFLAGS"
22745     LIBICONV=
22746     LTLIBICONV=
22747   fi
22748
22749
22750
22751   if test "$am_cv_func_iconv" = yes; then
22752     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22753 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22754     if test "${am_cv_proto_iconv+set}" = set; then
22755   echo $ECHO_N "(cached) $ECHO_C" >&6
22756 else
22757
22758       cat >conftest.$ac_ext <<_ACEOF
22759 /* confdefs.h.  */
22760 _ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h.  */
22764
22765 #include <stdlib.h>
22766 #include <iconv.h>
22767 extern
22768 #ifdef __cplusplus
22769 "C"
22770 #endif
22771 #if defined(__STDC__) || defined(__cplusplus)
22772 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22773 #else
22774 size_t iconv();
22775 #endif
22776
22777 int
22778 main ()
22779 {
22780
22781   ;
22782   return 0;
22783 }
22784 _ACEOF
22785 rm -f conftest.$ac_objext
22786 if { (ac_try="$ac_compile"
22787 case "(($ac_try" in
22788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789   *) ac_try_echo=$ac_try;;
22790 esac
22791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792   (eval "$ac_compile") 2>conftest.er1
22793   ac_status=$?
22794   grep -v '^ *+' conftest.er1 >conftest.err
22795   rm -f conftest.er1
22796   cat conftest.err >&5
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); } && {
22799          test -z "$ac_c_werror_flag" ||
22800          test ! -s conftest.err
22801        } && test -s conftest.$ac_objext; then
22802   am_cv_proto_iconv_arg1=""
22803 else
22804   echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22806
22807         am_cv_proto_iconv_arg1="const"
22808 fi
22809
22810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811       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);"
22812 fi
22813
22814     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22815     { echo "$as_me:$LINENO: result: ${ac_t:-
22816          }$am_cv_proto_iconv" >&5
22817 echo "${ECHO_T}${ac_t:-
22818          }$am_cv_proto_iconv" >&6; }
22819
22820 cat >>confdefs.h <<_ACEOF
22821 #define ICONV_CONST $am_cv_proto_iconv_arg1
22822 _ACEOF
22823
22824   fi
22825
22826
22827   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22828 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22829 if test "${am_cv_langinfo_codeset+set}" = set; then
22830   echo $ECHO_N "(cached) $ECHO_C" >&6
22831 else
22832   cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h.  */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h.  */
22838 #include <langinfo.h>
22839 int
22840 main ()
22841 {
22842 char* cs = nl_langinfo(CODESET);
22843   ;
22844   return 0;
22845 }
22846 _ACEOF
22847 rm -f conftest.$ac_objext conftest$ac_exeext
22848 if { (ac_try="$ac_link"
22849 case "(($ac_try" in
22850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851   *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854   (eval "$ac_link") 2>conftest.er1
22855   ac_status=$?
22856   grep -v '^ *+' conftest.er1 >conftest.err
22857   rm -f conftest.er1
22858   cat conftest.err >&5
22859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); } && {
22861          test -z "$ac_c_werror_flag" ||
22862          test ! -s conftest.err
22863        } && test -s conftest$ac_exeext &&
22864        $as_test_x conftest$ac_exeext; then
22865   am_cv_langinfo_codeset=yes
22866 else
22867   echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22869
22870         am_cv_langinfo_codeset=no
22871 fi
22872
22873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22874       conftest$ac_exeext conftest.$ac_ext
22875
22876 fi
22877 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22878 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22879   if test $am_cv_langinfo_codeset = yes; then
22880
22881 cat >>confdefs.h <<\_ACEOF
22882 #define HAVE_LANGINFO_CODESET 1
22883 _ACEOF
22884
22885   fi
22886
22887   if test $ac_cv_header_locale_h = yes; then
22888
22889   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22890 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22891 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22892   echo $ECHO_N "(cached) $ECHO_C" >&6
22893 else
22894   cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h.  */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h.  */
22900 #include <locale.h>
22901 int
22902 main ()
22903 {
22904 return LC_MESSAGES
22905   ;
22906   return 0;
22907 }
22908 _ACEOF
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913   *) ac_try_echo=$ac_try;;
22914 esac
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916   (eval "$ac_link") 2>conftest.er1
22917   ac_status=$?
22918   grep -v '^ *+' conftest.er1 >conftest.err
22919   rm -f conftest.er1
22920   cat conftest.err >&5
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); } && {
22923          test -z "$ac_c_werror_flag" ||
22924          test ! -s conftest.err
22925        } && test -s conftest$ac_exeext &&
22926        $as_test_x conftest$ac_exeext; then
22927   gt_cv_val_LC_MESSAGES=yes
22928 else
22929   echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22931
22932         gt_cv_val_LC_MESSAGES=no
22933 fi
22934
22935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22936       conftest$ac_exeext conftest.$ac_ext
22937 fi
22938 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22939 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22940   if test $gt_cv_val_LC_MESSAGES = yes; then
22941
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_LC_MESSAGES 1
22944 _ACEOF
22945
22946   fi
22947
22948   fi
22949
22950   if test -n "$INTL_MACOSX_LIBS"; then
22951     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22952   fi
22953
22954                       for ac_prog in bison
22955 do
22956   # Extract the first word of "$ac_prog", so it can be a program name with args.
22957 set dummy $ac_prog; ac_word=$2
22958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22960 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22961   echo $ECHO_N "(cached) $ECHO_C" >&6
22962 else
22963   if test -n "$INTLBISON"; then
22964   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22965 else
22966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22967 for as_dir in $PATH
22968 do
22969   IFS=$as_save_IFS
22970   test -z "$as_dir" && as_dir=.
22971   for ac_exec_ext in '' $ac_executable_extensions; do
22972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22973     ac_cv_prog_INTLBISON="$ac_prog"
22974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22975     break 2
22976   fi
22977 done
22978 done
22979 IFS=$as_save_IFS
22980
22981 fi
22982 fi
22983 INTLBISON=$ac_cv_prog_INTLBISON
22984 if test -n "$INTLBISON"; then
22985   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22986 echo "${ECHO_T}$INTLBISON" >&6; }
22987 else
22988   { echo "$as_me:$LINENO: result: no" >&5
22989 echo "${ECHO_T}no" >&6; }
22990 fi
22991
22992
22993   test -n "$INTLBISON" && break
22994 done
22995
22996   if test -z "$INTLBISON"; then
22997     ac_verc_fail=yes
22998   else
22999         { echo "$as_me:$LINENO: checking version of bison" >&5
23000 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23001     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23002     case $ac_prog_version in
23003       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23004       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23005          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23006       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23007     esac
23008     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23009 echo "${ECHO_T}$ac_prog_version" >&6; }
23010   fi
23011   if test $ac_verc_fail = yes; then
23012     INTLBISON=:
23013   fi
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23031 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23032 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23033   echo $ECHO_N "(cached) $ECHO_C" >&6
23034 else
23035   gt_save_CPPFLAGS="$CPPFLAGS"
23036      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23037      gt_save_LIBS="$LIBS"
23038      LIBS="$LIBS -framework CoreFoundation"
23039      cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h.  */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h.  */
23045 #include <CFPreferences.h>
23046 int
23047 main ()
23048 {
23049 CFPreferencesCopyAppValue(NULL, NULL)
23050   ;
23051   return 0;
23052 }
23053 _ACEOF
23054 rm -f conftest.$ac_objext conftest$ac_exeext
23055 if { (ac_try="$ac_link"
23056 case "(($ac_try" in
23057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058   *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061   (eval "$ac_link") 2>conftest.er1
23062   ac_status=$?
23063   grep -v '^ *+' conftest.er1 >conftest.err
23064   rm -f conftest.er1
23065   cat conftest.err >&5
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } && {
23068          test -z "$ac_c_werror_flag" ||
23069          test ! -s conftest.err
23070        } && test -s conftest$ac_exeext &&
23071        $as_test_x conftest$ac_exeext; then
23072   gt_cv_func_CFPreferencesCopyAppValue=yes
23073 else
23074   echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077         gt_cv_func_CFPreferencesCopyAppValue=no
23078 fi
23079
23080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23081       conftest$ac_exeext conftest.$ac_ext
23082      CPPFLAGS="$gt_save_CPPFLAGS"
23083      LIBS="$gt_save_LIBS"
23084 fi
23085 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23086 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23087   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23088
23089 cat >>confdefs.h <<\_ACEOF
23090 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23091 _ACEOF
23092
23093   fi
23094     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23095 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23096 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23097   echo $ECHO_N "(cached) $ECHO_C" >&6
23098 else
23099   gt_save_CPPFLAGS="$CPPFLAGS"
23100      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23101      gt_save_LIBS="$LIBS"
23102      LIBS="$LIBS -framework CoreFoundation"
23103      cat >conftest.$ac_ext <<_ACEOF
23104 /* confdefs.h.  */
23105 _ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h.  */
23109 #include <CFLocale.h>
23110 int
23111 main ()
23112 {
23113 CFLocaleCopyCurrent();
23114   ;
23115   return 0;
23116 }
23117 _ACEOF
23118 rm -f conftest.$ac_objext conftest$ac_exeext
23119 if { (ac_try="$ac_link"
23120 case "(($ac_try" in
23121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122   *) ac_try_echo=$ac_try;;
23123 esac
23124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125   (eval "$ac_link") 2>conftest.er1
23126   ac_status=$?
23127   grep -v '^ *+' conftest.er1 >conftest.err
23128   rm -f conftest.er1
23129   cat conftest.err >&5
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); } && {
23132          test -z "$ac_c_werror_flag" ||
23133          test ! -s conftest.err
23134        } && test -s conftest$ac_exeext &&
23135        $as_test_x conftest$ac_exeext; then
23136   gt_cv_func_CFLocaleCopyCurrent=yes
23137 else
23138   echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23140
23141         gt_cv_func_CFLocaleCopyCurrent=no
23142 fi
23143
23144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23145       conftest$ac_exeext conftest.$ac_ext
23146      CPPFLAGS="$gt_save_CPPFLAGS"
23147      LIBS="$gt_save_LIBS"
23148 fi
23149 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23150 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23151   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23152
23153 cat >>confdefs.h <<\_ACEOF
23154 #define HAVE_CFLOCALECOPYCURRENT 1
23155 _ACEOF
23156
23157   fi
23158   INTL_MACOSX_LIBS=
23159   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23160     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23161   fi
23162
23163
23164
23165
23166   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23167 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23168     # Check whether --enable-nls was given.
23169 if test "${enable_nls+set}" = set; then
23170   enableval=$enable_nls; USE_NLS=$enableval
23171 else
23172   USE_NLS=yes
23173 fi
23174
23175   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23176 echo "${ECHO_T}$USE_NLS" >&6; }
23177
23178
23179
23180
23181     BUILD_INCLUDED_LIBINTL=no
23182     USE_INCLUDED_LIBINTL=no
23183
23184   LIBINTL=
23185   LTLIBINTL=
23186   POSUB=
23187
23188     if test "$USE_NLS" = "yes"; then
23189     gt_use_preinstalled_gnugettext=no
23190
23191       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23192 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23193
23194 # Check whether --with-included-gettext was given.
23195 if test "${with_included_gettext+set}" = set; then
23196   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23197 else
23198   nls_cv_force_use_gnu_gettext=no
23199 fi
23200
23201       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23202 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23203
23204       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23205       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23206
23207
23208
23209
23210
23211
23212         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23213 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23214 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23215   echo $ECHO_N "(cached) $ECHO_C" >&6
23216 else
23217   cat >conftest.$ac_ext <<_ACEOF
23218 /* confdefs.h.  */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h.  */
23223 #include <libintl.h>
23224 extern int _nl_msg_cat_cntr;
23225 extern int *_nl_domain_bindings;
23226 int
23227 main ()
23228 {
23229 bindtextdomain ("", "");
23230 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23231   ;
23232   return 0;
23233 }
23234 _ACEOF
23235 rm -f conftest.$ac_objext conftest$ac_exeext
23236 if { (ac_try="$ac_link"
23237 case "(($ac_try" in
23238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23239   *) ac_try_echo=$ac_try;;
23240 esac
23241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23242   (eval "$ac_link") 2>conftest.er1
23243   ac_status=$?
23244   grep -v '^ *+' conftest.er1 >conftest.err
23245   rm -f conftest.er1
23246   cat conftest.err >&5
23247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); } && {
23249          test -z "$ac_c_werror_flag" ||
23250          test ! -s conftest.err
23251        } && test -s conftest$ac_exeext &&
23252        $as_test_x conftest$ac_exeext; then
23253   gt_cv_func_gnugettext1_libc=yes
23254 else
23255   echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23257
23258         gt_cv_func_gnugettext1_libc=no
23259 fi
23260
23261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23262       conftest$ac_exeext conftest.$ac_ext
23263 fi
23264 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23265 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23266
23267         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23268
23269
23270
23271     use_additional=yes
23272
23273   acl_save_prefix="$prefix"
23274   prefix="$acl_final_prefix"
23275   acl_save_exec_prefix="$exec_prefix"
23276   exec_prefix="$acl_final_exec_prefix"
23277
23278     eval additional_includedir=\"$includedir\"
23279     eval additional_libdir=\"$libdir\"
23280
23281   exec_prefix="$acl_save_exec_prefix"
23282   prefix="$acl_save_prefix"
23283
23284
23285 # Check whether --with-libintl-prefix was given.
23286 if test "${with_libintl_prefix+set}" = set; then
23287   withval=$with_libintl_prefix;
23288     if test "X$withval" = "Xno"; then
23289       use_additional=no
23290     else
23291       if test "X$withval" = "X"; then
23292
23293   acl_save_prefix="$prefix"
23294   prefix="$acl_final_prefix"
23295   acl_save_exec_prefix="$exec_prefix"
23296   exec_prefix="$acl_final_exec_prefix"
23297
23298           eval additional_includedir=\"$includedir\"
23299           eval additional_libdir=\"$libdir\"
23300
23301   exec_prefix="$acl_save_exec_prefix"
23302   prefix="$acl_save_prefix"
23303
23304       else
23305         additional_includedir="$withval/include"
23306         additional_libdir="$withval/lib"
23307       fi
23308     fi
23309
23310 fi
23311
23312       LIBINTL=
23313   LTLIBINTL=
23314   INCINTL=
23315   rpathdirs=
23316   ltrpathdirs=
23317   names_already_handled=
23318   names_next_round='intl '
23319   while test -n "$names_next_round"; do
23320     names_this_round="$names_next_round"
23321     names_next_round=
23322     for name in $names_this_round; do
23323       already_handled=
23324       for n in $names_already_handled; do
23325         if test "$n" = "$name"; then
23326           already_handled=yes
23327           break
23328         fi
23329       done
23330       if test -z "$already_handled"; then
23331         names_already_handled="$names_already_handled $name"
23332                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23333         eval value=\"\$HAVE_LIB$uppername\"
23334         if test -n "$value"; then
23335           if test "$value" = yes; then
23336             eval value=\"\$LIB$uppername\"
23337             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23338             eval value=\"\$LTLIB$uppername\"
23339             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23340           else
23341                                     :
23342           fi
23343         else
23344                               found_dir=
23345           found_la=
23346           found_so=
23347           found_a=
23348           if test $use_additional = yes; then
23349             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23350               found_dir="$additional_libdir"
23351               found_so="$additional_libdir/lib$name.$shlibext"
23352               if test -f "$additional_libdir/lib$name.la"; then
23353                 found_la="$additional_libdir/lib$name.la"
23354               fi
23355             else
23356               if test -f "$additional_libdir/lib$name.$libext"; then
23357                 found_dir="$additional_libdir"
23358                 found_a="$additional_libdir/lib$name.$libext"
23359                 if test -f "$additional_libdir/lib$name.la"; then
23360                   found_la="$additional_libdir/lib$name.la"
23361                 fi
23362               fi
23363             fi
23364           fi
23365           if test "X$found_dir" = "X"; then
23366             for x in $LDFLAGS $LTLIBINTL; do
23367
23368   acl_save_prefix="$prefix"
23369   prefix="$acl_final_prefix"
23370   acl_save_exec_prefix="$exec_prefix"
23371   exec_prefix="$acl_final_exec_prefix"
23372   eval x=\"$x\"
23373   exec_prefix="$acl_save_exec_prefix"
23374   prefix="$acl_save_prefix"
23375
23376               case "$x" in
23377                 -L*)
23378                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23379                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23380                     found_dir="$dir"
23381                     found_so="$dir/lib$name.$shlibext"
23382                     if test -f "$dir/lib$name.la"; then
23383                       found_la="$dir/lib$name.la"
23384                     fi
23385                   else
23386                     if test -f "$dir/lib$name.$libext"; then
23387                       found_dir="$dir"
23388                       found_a="$dir/lib$name.$libext"
23389                       if test -f "$dir/lib$name.la"; then
23390                         found_la="$dir/lib$name.la"
23391                       fi
23392                     fi
23393                   fi
23394                   ;;
23395               esac
23396               if test "X$found_dir" != "X"; then
23397                 break
23398               fi
23399             done
23400           fi
23401           if test "X$found_dir" != "X"; then
23402                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23403             if test "X$found_so" != "X"; then
23404                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23405                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23406               else
23407                                                                                 haveit=
23408                 for x in $ltrpathdirs; do
23409                   if test "X$x" = "X$found_dir"; then
23410                     haveit=yes
23411                     break
23412                   fi
23413                 done
23414                 if test -z "$haveit"; then
23415                   ltrpathdirs="$ltrpathdirs $found_dir"
23416                 fi
23417                                 if test "$hardcode_direct" = yes; then
23418                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23419                 else
23420                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23421                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23422                                                             haveit=
23423                     for x in $rpathdirs; do
23424                       if test "X$x" = "X$found_dir"; then
23425                         haveit=yes
23426                         break
23427                       fi
23428                     done
23429                     if test -z "$haveit"; then
23430                       rpathdirs="$rpathdirs $found_dir"
23431                     fi
23432                   else
23433                                                                                 haveit=
23434                     for x in $LDFLAGS $LIBINTL; do
23435
23436   acl_save_prefix="$prefix"
23437   prefix="$acl_final_prefix"
23438   acl_save_exec_prefix="$exec_prefix"
23439   exec_prefix="$acl_final_exec_prefix"
23440   eval x=\"$x\"
23441   exec_prefix="$acl_save_exec_prefix"
23442   prefix="$acl_save_prefix"
23443
23444                       if test "X$x" = "X-L$found_dir"; then
23445                         haveit=yes
23446                         break
23447                       fi
23448                     done
23449                     if test -z "$haveit"; then
23450                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23451                     fi
23452                     if test "$hardcode_minus_L" != no; then
23453                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23454                     else
23455                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23456                     fi
23457                   fi
23458                 fi
23459               fi
23460             else
23461               if test "X$found_a" != "X"; then
23462                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23463               else
23464                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23465               fi
23466             fi
23467                         additional_includedir=
23468             case "$found_dir" in
23469               */lib | */lib/)
23470                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23471                 additional_includedir="$basedir/include"
23472                 ;;
23473             esac
23474             if test "X$additional_includedir" != "X"; then
23475                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23476                 haveit=
23477                 if test "X$additional_includedir" = "X/usr/local/include"; then
23478                   if test -n "$GCC"; then
23479                     case $host_os in
23480                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23481                     esac
23482                   fi
23483                 fi
23484                 if test -z "$haveit"; then
23485                   for x in $CPPFLAGS $INCINTL; do
23486
23487   acl_save_prefix="$prefix"
23488   prefix="$acl_final_prefix"
23489   acl_save_exec_prefix="$exec_prefix"
23490   exec_prefix="$acl_final_exec_prefix"
23491   eval x=\"$x\"
23492   exec_prefix="$acl_save_exec_prefix"
23493   prefix="$acl_save_prefix"
23494
23495                     if test "X$x" = "X-I$additional_includedir"; then
23496                       haveit=yes
23497                       break
23498                     fi
23499                   done
23500                   if test -z "$haveit"; then
23501                     if test -d "$additional_includedir"; then
23502                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23503                     fi
23504                   fi
23505                 fi
23506               fi
23507             fi
23508                         if test -n "$found_la"; then
23509                                                         save_libdir="$libdir"
23510               case "$found_la" in
23511                 */* | *\\*) . "$found_la" ;;
23512                 *) . "./$found_la" ;;
23513               esac
23514               libdir="$save_libdir"
23515                             for dep in $dependency_libs; do
23516                 case "$dep" in
23517                   -L*)
23518                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23519                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23520                       haveit=
23521                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23522                         if test -n "$GCC"; then
23523                           case $host_os in
23524                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23525                           esac
23526                         fi
23527                       fi
23528                       if test -z "$haveit"; then
23529                         haveit=
23530                         for x in $LDFLAGS $LIBINTL; do
23531
23532   acl_save_prefix="$prefix"
23533   prefix="$acl_final_prefix"
23534   acl_save_exec_prefix="$exec_prefix"
23535   exec_prefix="$acl_final_exec_prefix"
23536   eval x=\"$x\"
23537   exec_prefix="$acl_save_exec_prefix"
23538   prefix="$acl_save_prefix"
23539
23540                           if test "X$x" = "X-L$additional_libdir"; then
23541                             haveit=yes
23542                             break
23543                           fi
23544                         done
23545                         if test -z "$haveit"; then
23546                           if test -d "$additional_libdir"; then
23547                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23548                           fi
23549                         fi
23550                         haveit=
23551                         for x in $LDFLAGS $LTLIBINTL; do
23552
23553   acl_save_prefix="$prefix"
23554   prefix="$acl_final_prefix"
23555   acl_save_exec_prefix="$exec_prefix"
23556   exec_prefix="$acl_final_exec_prefix"
23557   eval x=\"$x\"
23558   exec_prefix="$acl_save_exec_prefix"
23559   prefix="$acl_save_prefix"
23560
23561                           if test "X$x" = "X-L$additional_libdir"; then
23562                             haveit=yes
23563                             break
23564                           fi
23565                         done
23566                         if test -z "$haveit"; then
23567                           if test -d "$additional_libdir"; then
23568                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23569                           fi
23570                         fi
23571                       fi
23572                     fi
23573                     ;;
23574                   -R*)
23575                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23576                     if test "$enable_rpath" != no; then
23577                                                                   haveit=
23578                       for x in $rpathdirs; do
23579                         if test "X$x" = "X$dir"; then
23580                           haveit=yes
23581                           break
23582                         fi
23583                       done
23584                       if test -z "$haveit"; then
23585                         rpathdirs="$rpathdirs $dir"
23586                       fi
23587                                                                   haveit=
23588                       for x in $ltrpathdirs; do
23589                         if test "X$x" = "X$dir"; then
23590                           haveit=yes
23591                           break
23592                         fi
23593                       done
23594                       if test -z "$haveit"; then
23595                         ltrpathdirs="$ltrpathdirs $dir"
23596                       fi
23597                     fi
23598                     ;;
23599                   -l*)
23600                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23601                     ;;
23602                   *.la)
23603                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23604                     ;;
23605                   *)
23606                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23607                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23608                     ;;
23609                 esac
23610               done
23611             fi
23612           else
23613                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23614             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23615           fi
23616         fi
23617       fi
23618     done
23619   done
23620   if test "X$rpathdirs" != "X"; then
23621     if test -n "$hardcode_libdir_separator"; then
23622                         alldirs=
23623       for found_dir in $rpathdirs; do
23624         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23625       done
23626             acl_save_libdir="$libdir"
23627       libdir="$alldirs"
23628       eval flag=\"$hardcode_libdir_flag_spec\"
23629       libdir="$acl_save_libdir"
23630       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23631     else
23632             for found_dir in $rpathdirs; do
23633         acl_save_libdir="$libdir"
23634         libdir="$found_dir"
23635         eval flag=\"$hardcode_libdir_flag_spec\"
23636         libdir="$acl_save_libdir"
23637         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23638       done
23639     fi
23640   fi
23641   if test "X$ltrpathdirs" != "X"; then
23642             for found_dir in $ltrpathdirs; do
23643       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23644     done
23645   fi
23646
23647           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23648 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23649 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652   gt_save_CPPFLAGS="$CPPFLAGS"
23653             CPPFLAGS="$CPPFLAGS $INCINTL"
23654             gt_save_LIBS="$LIBS"
23655             LIBS="$LIBS $LIBINTL"
23656                         cat >conftest.$ac_ext <<_ACEOF
23657 /* confdefs.h.  */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h.  */
23662 #include <libintl.h>
23663 extern int _nl_msg_cat_cntr;
23664 extern
23665 #ifdef __cplusplus
23666 "C"
23667 #endif
23668 const char *_nl_expand_alias (const char *);
23669 int
23670 main ()
23671 {
23672 bindtextdomain ("", "");
23673 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23674   ;
23675   return 0;
23676 }
23677 _ACEOF
23678 rm -f conftest.$ac_objext conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682   *) ac_try_echo=$ac_try;;
23683 esac
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685   (eval "$ac_link") 2>conftest.er1
23686   ac_status=$?
23687   grep -v '^ *+' conftest.er1 >conftest.err
23688   rm -f conftest.er1
23689   cat conftest.err >&5
23690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691   (exit $ac_status); } && {
23692          test -z "$ac_c_werror_flag" ||
23693          test ! -s conftest.err
23694        } && test -s conftest$ac_exeext &&
23695        $as_test_x conftest$ac_exeext; then
23696   gt_cv_func_gnugettext1_libintl=yes
23697 else
23698   echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23700
23701         gt_cv_func_gnugettext1_libintl=no
23702 fi
23703
23704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23705       conftest$ac_exeext conftest.$ac_ext
23706                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23707               LIBS="$LIBS $LIBICONV"
23708               cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h.  */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h.  */
23714 #include <libintl.h>
23715 extern int _nl_msg_cat_cntr;
23716 extern
23717 #ifdef __cplusplus
23718 "C"
23719 #endif
23720 const char *_nl_expand_alias (const char *);
23721 int
23722 main ()
23723 {
23724 bindtextdomain ("", "");
23725 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (ac_try="$ac_link"
23732 case "(($ac_try" in
23733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734   *) ac_try_echo=$ac_try;;
23735 esac
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737   (eval "$ac_link") 2>conftest.er1
23738   ac_status=$?
23739   grep -v '^ *+' conftest.er1 >conftest.err
23740   rm -f conftest.er1
23741   cat conftest.err >&5
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); } && {
23744          test -z "$ac_c_werror_flag" ||
23745          test ! -s conftest.err
23746        } && test -s conftest$ac_exeext &&
23747        $as_test_x conftest$ac_exeext; then
23748   LIBINTL="$LIBINTL $LIBICONV"
23749                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23750                 gt_cv_func_gnugettext1_libintl=yes
23751
23752 else
23753   echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.$ac_ext >&5
23755
23756
23757 fi
23758
23759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23760       conftest$ac_exeext conftest.$ac_ext
23761             fi
23762             CPPFLAGS="$gt_save_CPPFLAGS"
23763             LIBS="$gt_save_LIBS"
23764 fi
23765 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23766 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23767         fi
23768
23769                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23770            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23771                 && test "$PACKAGE" != gettext-runtime \
23772                 && test "$PACKAGE" != gettext-tools; }; then
23773           gt_use_preinstalled_gnugettext=yes
23774         else
23775                     LIBINTL=
23776           LTLIBINTL=
23777           INCINTL=
23778         fi
23779
23780
23781         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23782                               nls_cv_use_gnu_gettext=yes
23783         fi
23784       fi
23785
23786       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23787                 BUILD_INCLUDED_LIBINTL=yes
23788         USE_INCLUDED_LIBINTL=yes
23789         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23790         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23791         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23792       fi
23793
23794       CATOBJEXT=
23795       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23796          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23797                 CATOBJEXT=.gmo
23798       fi
23799
23800
23801     if test -n "$INTL_MACOSX_LIBS"; then
23802       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23803          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23804                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23805         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23806       fi
23807     fi
23808
23809     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23810        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23811
23812 cat >>confdefs.h <<\_ACEOF
23813 #define ENABLE_NLS 1
23814 _ACEOF
23815
23816     else
23817       USE_NLS=no
23818     fi
23819   fi
23820
23821   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23822 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23823   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23824 echo "${ECHO_T}$USE_NLS" >&6; }
23825   if test "$USE_NLS" = "yes"; then
23826     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23827 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23828     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23829       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23830         gt_source="external libintl"
23831       else
23832         gt_source="libc"
23833       fi
23834     else
23835       gt_source="included intl directory"
23836     fi
23837     { echo "$as_me:$LINENO: result: $gt_source" >&5
23838 echo "${ECHO_T}$gt_source" >&6; }
23839   fi
23840
23841   if test "$USE_NLS" = "yes"; then
23842
23843     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23844       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23845         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23846 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23847         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23848 echo "${ECHO_T}$LIBINTL" >&6; }
23849
23850   for element in $INCINTL; do
23851     haveit=
23852     for x in $CPPFLAGS; do
23853
23854   acl_save_prefix="$prefix"
23855   prefix="$acl_final_prefix"
23856   acl_save_exec_prefix="$exec_prefix"
23857   exec_prefix="$acl_final_exec_prefix"
23858   eval x=\"$x\"
23859   exec_prefix="$acl_save_exec_prefix"
23860   prefix="$acl_save_prefix"
23861
23862       if test "X$x" = "X$element"; then
23863         haveit=yes
23864         break
23865       fi
23866     done
23867     if test -z "$haveit"; then
23868       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23869     fi
23870   done
23871
23872       fi
23873
23874
23875 cat >>confdefs.h <<\_ACEOF
23876 #define HAVE_GETTEXT 1
23877 _ACEOF
23878
23879
23880 cat >>confdefs.h <<\_ACEOF
23881 #define HAVE_DCGETTEXT 1
23882 _ACEOF
23883
23884     fi
23885
23886         POSUB=po
23887   fi
23888
23889
23890             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23891       BUILD_INCLUDED_LIBINTL=yes
23892     fi
23893
23894
23895
23896
23897
23898         nls_cv_header_intl=
23899     nls_cv_header_libgt=
23900
23901         DATADIRNAME=share
23902
23903
23904         INSTOBJEXT=.mo
23905
23906
23907         GENCAT=gencat
23908
23909
23910         INTLOBJS=
23911     if test "$USE_INCLUDED_LIBINTL" = yes; then
23912       INTLOBJS="\$(GETTOBJS)"
23913     fi
23914
23915
23916         INTL_LIBTOOL_SUFFIX_PREFIX=
23917
23918
23919
23920     INTLLIBS="$LIBINTL"
23921
23922
23923
23924
23925
23926
23927 fi
23928
23929 support_mysql=no
23930 support_sqlite=no
23931 support_sqlite3=no
23932 support_postgresql=no
23933 support_dbi=no
23934 support_smartalloc=yes
23935 support_readline=yes
23936 support_conio=yes
23937 support_gnome=no
23938 support_bat=no
23939 support_wx_console=no
23940 support_tls=no
23941 support_crypto=no
23942 gnome_version=
23943 wx_version=
23944 support_static_tools=no
23945 support_static_fd=no
23946 support_static_sd=no
23947 support_static_dir=no
23948 support_static_cons=no
23949 support_python=no
23950 build_client_only=no
23951 build_dird=yes
23952 build_stored=yes
23953 cats=
23954 db_type=Internal
23955 DB_TYPE=bdb
23956
23957
23958 # Check whether --enable-gnome was given.
23959 if test "${enable_gnome+set}" = set; then
23960   enableval=$enable_gnome;
23961        if test x$enableval = xyes; then
23962           support_gnome=yes
23963        fi
23964
23965
23966 fi
23967
23968
23969 GNOME_DIR=
23970 if test x$support_gnome = xyes; then
23971    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23972    pkg=$?
23973    if test $pkg = 0; then
23974       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23975       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23976       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23977       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23978
23979
23980
23981
23982       GNOME_DIR=src/gnome2-console
23983       gnome_version="Version 2.x"
23984    else
23985       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23986 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23987    { (exit 1); exit 1; }; }
23988    fi
23989 fi
23990
23991
23992 # Check whether --enable-bat was given.
23993 if test "${enable_bat+set}" = set; then
23994   enableval=$enable_bat;
23995        if test x$enableval = xyes; then
23996
23997 cat >>confdefs.h <<\_ACEOF
23998 #define HAVE_BAT 1
23999 _ACEOF
24000
24001           support_bat=yes
24002        fi
24003
24004
24005 fi
24006
24007
24008 BAT_DIR=
24009 if test x$support_bat = xyes; then
24010    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24011    pkg=$?
24012    if test $pkg = 0; then
24013       BAT_DIR=src/qt-console
24014    else
24015       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24016 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24017    { (exit 1); exit 1; }; }
24018    fi
24019 fi
24020
24021 got_qwt=no
24022 QWT_INC=
24023 QWT_LDFLAGS=
24024 QWT_LIB=
24025 QWT=
24026 no_qwt=no
24027 if test x$support_bat = xyes; then
24028    { echo "$as_me:$LINENO: checking for qwt support" >&5
24029 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24030
24031 # Check whether --with-qwt was given.
24032 if test "${with_qwt+set}" = set; then
24033   withval=$with_qwt;
24034           case "$with_qwt" in
24035           no)
24036              no_qwt=yes
24037              ;;
24038           yes|*)
24039              if test -f ${with_qwt}/include/qwt.h; then
24040                 QWT_INC="${with_qwt}/include"
24041                 QWT_LDFLAGS="-L${with_qwt}/lib"
24042                 QWT_LIB="-lqwt"
24043                 QWT="qwt"
24044              fi
24045              ;;
24046           esac
24047
24048
24049 fi
24050
24051
24052             if test $no_qwt = no; then
24053       if test x$QWT_INC = x; then
24054          for root in /usr /usr/local; do
24055             for ver in qwt qwt5 qwt-qt4; do
24056                if test -f ${root}/include/${ver}/qwt.h; then
24057                   QWT_INC="${root}/include/${ver}"
24058                   if test -d ${root}/lib64/; then
24059                      QWT_LDFLAGS="-L${root}/lib64"
24060                   elif test -d ${root}/lib/64/; then
24061                      QWT_LDFLAGS="-L${root}/64"
24062                   else
24063                      QWT_LDFLAGS="-L${root}/lib"
24064                   fi
24065                   QWT_LIB="-lqwt"
24066                   QWT="qwt"
24067                   got_qwt=yes
24068                   break;
24069                fi
24070             done
24071          done
24072       fi
24073    fi
24074    if test x$QWT_INC = x; then
24075       { echo "$as_me:$LINENO: result: no" >&5
24076 echo "${ECHO_T}no" >&6; }
24077    else
24078
24079 cat >>confdefs.h <<\_ACEOF
24080 #define HAVE_QWT 1
24081 _ACEOF
24082
24083       { echo "$as_me:$LINENO: result: yes" >&5
24084 echo "${ECHO_T}yes" >&6; }
24085    fi
24086 fi
24087
24088
24089
24090
24091
24092
24093
24094 # Check whether --enable-bwx-console was given.
24095 if test "${enable_bwx_console+set}" = set; then
24096   enableval=$enable_bwx_console;
24097        if test x$enableval = xyes; then
24098           support_wx_console=yes
24099        fi
24100
24101
24102 fi
24103
24104
24105 WX_DIR=
24106 if test x$support_wx_console = xyes; then
24107    abc=`$WXCONFIG $WXFLAGS --cppflags`
24108    pkg=$?
24109    if test $pkg = 0; then
24110       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24111       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24112       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24113
24114
24115
24116       WX_DIR=src/wx-console
24117    else
24118       echo " "
24119       echo "wx-config program not found. bwx-console disabled."
24120       echo " "
24121       support_wx_console=no
24122    fi
24123 fi
24124
24125
24126 # Check whether --enable-tray-monitor was given.
24127 if test "${enable_tray_monitor+set}" = set; then
24128   enableval=$enable_tray_monitor;
24129        if test x$enableval = xyes; then
24130           support_tray_monitor=yes
24131        fi
24132
24133
24134 fi
24135
24136
24137 TRAY_MONITOR_DIR=
24138 if test x$support_tray_monitor = xyes; then
24139    abc=`$PKGCONFIG --exists gtk+-2.0`
24140    pkg=$?
24141    if test $pkg = 0; then
24142       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24143       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24144
24145
24146       TRAY_MONITOR_DIR=src/tray-monitor
24147       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24148       pkg=$?
24149       if test $pkg = 0; then
24150
24151 cat >>confdefs.h <<\_ACEOF
24152 #define HAVE_GTK_2_4 1
24153 _ACEOF
24154
24155       fi
24156    fi
24157 fi
24158
24159
24160 # Check whether --enable-smartalloc was given.
24161 if test "${enable_smartalloc+set}" = set; then
24162   enableval=$enable_smartalloc;
24163        if test x$enableval = xno; then
24164           support_smartalloc=no
24165        fi
24166
24167
24168 fi
24169
24170
24171 if test x$support_smartalloc = xyes; then
24172
24173 cat >>confdefs.h <<\_ACEOF
24174 #define SMARTALLOC 1
24175 _ACEOF
24176
24177 fi
24178
24179 # Check whether --enable-static-tools was given.
24180 if test "${enable_static_tools+set}" = set; then
24181   enableval=$enable_static_tools;
24182        if test x$enableval = xyes; then
24183           support_static_tools=yes
24184        fi
24185
24186
24187 fi
24188
24189
24190 TTOOL_LDFLAGS=
24191 if test x$support_static_tools = xyes; then
24192    TTOOL_LDFLAGS="-static"
24193 fi
24194
24195
24196 # Check whether --enable-static-fd was given.
24197 if test "${enable_static_fd+set}" = set; then
24198   enableval=$enable_static_fd;
24199        if test x$enableval = xyes; then
24200           support_static_fd=yes
24201        fi
24202
24203
24204 fi
24205
24206
24207 STATIC_FD=
24208 if test x$support_static_fd = xyes; then
24209    STATIC_FD="static-bacula-fd"
24210 fi
24211
24212
24213 # Check whether --enable-static-sd was given.
24214 if test "${enable_static_sd+set}" = set; then
24215   enableval=$enable_static_sd;
24216        if test x$enableval = xyes; then
24217           support_static_sd=yes
24218        fi
24219
24220
24221 fi
24222
24223
24224 STATIC_SD=
24225 if test x$support_static_sd = xyes; then
24226    STATIC_SD="static-bacula-sd"
24227 fi
24228
24229
24230 # Check whether --enable-static-dir was given.
24231 if test "${enable_static_dir+set}" = set; then
24232   enableval=$enable_static_dir;
24233        if test x$enableval = xyes; then
24234           support_static_dir=yes
24235        fi
24236
24237
24238 fi
24239
24240
24241 STATIC_DIR=
24242 if test x$support_static_dir = xyes; then
24243    STATIC_DIR="static-bacula-dir"
24244 fi
24245
24246
24247 # Check whether --enable-static-cons was given.
24248 if test "${enable_static_cons+set}" = set; then
24249   enableval=$enable_static_cons;
24250        if test x$enableval = xyes; then
24251           support_static_cons=yes
24252        fi
24253
24254
24255 fi
24256
24257
24258 STATIC_CONS=
24259 STATIC_GNOME_CONS=
24260 STATIC_WX_CONS=
24261 if test x$support_static_cons = xyes; then
24262    STATIC_CONS="static-bconsole"
24263    STATIC_GNOME_CONS="static-bgnome-console"
24264    STATIC_WX_CONS="static-bwx-console"
24265 fi
24266
24267
24268
24269
24270 # Check whether --enable-client-only was given.
24271 if test "${enable_client_only+set}" = set; then
24272   enableval=$enable_client_only;
24273        if test x$enableval = xyes; then
24274           build_client_only=yes
24275           db_type=None
24276           DB_TYPE=none
24277        fi
24278
24279
24280 fi
24281
24282 if test x$build_client_only = xno; then
24283    ALL_DIRS="subdirs"
24284 else
24285    ALL_DIRS=""
24286 fi
24287
24288
24289 # Check whether --enable-build-dird was given.
24290 if test "${enable_build_dird+set}" = set; then
24291   enableval=$enable_build_dird;
24292        if test x$enableval = xno; then
24293           build_dird=no
24294        fi
24295
24296
24297 fi
24298
24299 if test x$build_dird = xyes; then
24300    DIRD_DIR="src/dird"
24301    DIR_TOOLS="DIRTOOLS"
24302 else
24303    DIRD_DIR=""
24304    DIR_TOOLS="NODIRTOOLS"
24305 fi
24306
24307
24308
24309 # Check whether --enable-build-stored was given.
24310 if test "${enable_build_stored+set}" = set; then
24311   enableval=$enable_build_stored;
24312       if test x$enableval = xno; then
24313          build_stored=no
24314       fi
24315
24316
24317 fi
24318
24319 if test x$build_stored = xyes; then
24320    STORED_DIR="src/stored"
24321 else
24322    STORED_DIR=""
24323 fi
24324
24325
24326 # Check whether --enable-conio was given.
24327 if test "${enable_conio+set}" = set; then
24328   enableval=$enable_conio;
24329        if test x$enableval = xno; then
24330           support_conio=no
24331        fi
24332
24333
24334 fi
24335
24336
24337
24338 support_ipv6=yes
24339 # Check whether --enable-ipv6 was given.
24340 if test "${enable_ipv6+set}" = set; then
24341   enableval=$enable_ipv6;
24342        if test x$enableval = xno; then
24343           support_ipv6=no
24344        fi
24345
24346
24347 fi
24348
24349
24350 if test x$support_ipv6 = xyes; then
24351     cat >conftest.$ac_ext <<_ACEOF
24352 /* confdefs.h.  */
24353 _ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h.  */
24357  #include <sys/types.h>
24358 #include <sys/socket.h>
24359 #include <netinet/in.h>
24360 int
24361 main ()
24362 {
24363 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24364   ;
24365   return 0;
24366 }
24367 _ACEOF
24368 rm -f conftest.$ac_objext conftest$ac_exeext
24369 if { (ac_try="$ac_link"
24370 case "(($ac_try" in
24371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24372   *) ac_try_echo=$ac_try;;
24373 esac
24374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24375   (eval "$ac_link") 2>conftest.er1
24376   ac_status=$?
24377   grep -v '^ *+' conftest.er1 >conftest.err
24378   rm -f conftest.er1
24379   cat conftest.err >&5
24380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381   (exit $ac_status); } && {
24382          test -z "$ac_c_werror_flag" ||
24383          test ! -s conftest.err
24384        } && test -s conftest$ac_exeext &&
24385        $as_test_x conftest$ac_exeext; then
24386   support_ipv6=yes
24387 else
24388   echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24390
24391         support_ipv6=no
24392 fi
24393
24394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24395       conftest$ac_exeext conftest.$ac_ext
24396 fi
24397
24398 if test x$support_ipv6 = xyes; then
24399
24400 cat >>confdefs.h <<\_ACEOF
24401 #define HAVE_IPV6 1
24402 _ACEOF
24403
24404 fi
24405
24406 got_conio="no"
24407 if test x$support_conio = xyes; then
24408    if test "${ac_cv_header_termcap_h+set}" = set; then
24409   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24410 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24411 if test "${ac_cv_header_termcap_h+set}" = set; then
24412   echo $ECHO_N "(cached) $ECHO_C" >&6
24413 fi
24414 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24415 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24416 else
24417   # Is the header compilable?
24418 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24419 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24420 cat >conftest.$ac_ext <<_ACEOF
24421 /* confdefs.h.  */
24422 _ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h.  */
24426 $ac_includes_default
24427 #include <termcap.h>
24428 _ACEOF
24429 rm -f conftest.$ac_objext
24430 if { (ac_try="$ac_compile"
24431 case "(($ac_try" in
24432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433   *) ac_try_echo=$ac_try;;
24434 esac
24435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24436   (eval "$ac_compile") 2>conftest.er1
24437   ac_status=$?
24438   grep -v '^ *+' conftest.er1 >conftest.err
24439   rm -f conftest.er1
24440   cat conftest.err >&5
24441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442   (exit $ac_status); } && {
24443          test -z "$ac_c_werror_flag" ||
24444          test ! -s conftest.err
24445        } && test -s conftest.$ac_objext; then
24446   ac_header_compiler=yes
24447 else
24448   echo "$as_me: failed program was:" >&5
24449 sed 's/^/| /' conftest.$ac_ext >&5
24450
24451         ac_header_compiler=no
24452 fi
24453
24454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24456 echo "${ECHO_T}$ac_header_compiler" >&6; }
24457
24458 # Is the header present?
24459 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24460 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24461 cat >conftest.$ac_ext <<_ACEOF
24462 /* confdefs.h.  */
24463 _ACEOF
24464 cat confdefs.h >>conftest.$ac_ext
24465 cat >>conftest.$ac_ext <<_ACEOF
24466 /* end confdefs.h.  */
24467 #include <termcap.h>
24468 _ACEOF
24469 if { (ac_try="$ac_cpp conftest.$ac_ext"
24470 case "(($ac_try" in
24471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24472   *) ac_try_echo=$ac_try;;
24473 esac
24474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24476   ac_status=$?
24477   grep -v '^ *+' conftest.er1 >conftest.err
24478   rm -f conftest.er1
24479   cat conftest.err >&5
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); } >/dev/null && {
24482          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24483          test ! -s conftest.err
24484        }; then
24485   ac_header_preproc=yes
24486 else
24487   echo "$as_me: failed program was:" >&5
24488 sed 's/^/| /' conftest.$ac_ext >&5
24489
24490   ac_header_preproc=no
24491 fi
24492
24493 rm -f conftest.err conftest.$ac_ext
24494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24495 echo "${ECHO_T}$ac_header_preproc" >&6; }
24496
24497 # So?  What about this header?
24498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24499   yes:no: )
24500     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24501 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24502     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24503 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24504     ac_header_preproc=yes
24505     ;;
24506   no:yes:* )
24507     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24508 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24509     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24510 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24511     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24512 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24513     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24514 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24515     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24516 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24517     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24518 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24519
24520     ;;
24521 esac
24522 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24523 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24524 if test "${ac_cv_header_termcap_h+set}" = set; then
24525   echo $ECHO_N "(cached) $ECHO_C" >&6
24526 else
24527   ac_cv_header_termcap_h=$ac_header_preproc
24528 fi
24529 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24530 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24531
24532 fi
24533 if test $ac_cv_header_termcap_h = yes; then
24534    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24535 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24536 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24537   echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539   ac_check_lib_save_LIBS=$LIBS
24540 LIBS="-ltermcap  $LIBS"
24541 cat >conftest.$ac_ext <<_ACEOF
24542 /* confdefs.h.  */
24543 _ACEOF
24544 cat confdefs.h >>conftest.$ac_ext
24545 cat >>conftest.$ac_ext <<_ACEOF
24546 /* end confdefs.h.  */
24547
24548 /* Override any GCC internal prototype to avoid an error.
24549    Use char because int might match the return type of a GCC
24550    builtin and then its argument prototype would still apply.  */
24551 #ifdef __cplusplus
24552 extern "C"
24553 #endif
24554 char tgetent ();
24555 int
24556 main ()
24557 {
24558 return tgetent ();
24559   ;
24560   return 0;
24561 }
24562 _ACEOF
24563 rm -f conftest.$ac_objext conftest$ac_exeext
24564 if { (ac_try="$ac_link"
24565 case "(($ac_try" in
24566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567   *) ac_try_echo=$ac_try;;
24568 esac
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570   (eval "$ac_link") 2>conftest.er1
24571   ac_status=$?
24572   grep -v '^ *+' conftest.er1 >conftest.err
24573   rm -f conftest.er1
24574   cat conftest.err >&5
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); } && {
24577          test -z "$ac_c_werror_flag" ||
24578          test ! -s conftest.err
24579        } && test -s conftest$ac_exeext &&
24580        $as_test_x conftest$ac_exeext; then
24581   ac_cv_lib_termcap_tgetent=yes
24582 else
24583   echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24585
24586         ac_cv_lib_termcap_tgetent=no
24587 fi
24588
24589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24590       conftest$ac_exeext conftest.$ac_ext
24591 LIBS=$ac_check_lib_save_LIBS
24592 fi
24593 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24594 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24595 if test $ac_cv_lib_termcap_tgetent = yes; then
24596    CONS_LIBS="-ltermcap"
24597     CONS_OBJ="conio.o"
24598     CONS_SRC="conio.c"
24599     got_conio="yes"
24600     support_readline=no
24601
24602 cat >>confdefs.h <<\_ACEOF
24603 #define HAVE_CONIO 1
24604 _ACEOF
24605
24606
24607 else
24608    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24609 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24610 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24611   echo $ECHO_N "(cached) $ECHO_C" >&6
24612 else
24613   ac_check_lib_save_LIBS=$LIBS
24614 LIBS="-lncurses  $LIBS"
24615 cat >conftest.$ac_ext <<_ACEOF
24616 /* confdefs.h.  */
24617 _ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h.  */
24621
24622 /* Override any GCC internal prototype to avoid an error.
24623    Use char because int might match the return type of a GCC
24624    builtin and then its argument prototype would still apply.  */
24625 #ifdef __cplusplus
24626 extern "C"
24627 #endif
24628 char tgetent ();
24629 int
24630 main ()
24631 {
24632 return tgetent ();
24633   ;
24634   return 0;
24635 }
24636 _ACEOF
24637 rm -f conftest.$ac_objext conftest$ac_exeext
24638 if { (ac_try="$ac_link"
24639 case "(($ac_try" in
24640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641   *) ac_try_echo=$ac_try;;
24642 esac
24643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24644   (eval "$ac_link") 2>conftest.er1
24645   ac_status=$?
24646   grep -v '^ *+' conftest.er1 >conftest.err
24647   rm -f conftest.er1
24648   cat conftest.err >&5
24649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); } && {
24651          test -z "$ac_c_werror_flag" ||
24652          test ! -s conftest.err
24653        } && test -s conftest$ac_exeext &&
24654        $as_test_x conftest$ac_exeext; then
24655   ac_cv_lib_ncurses_tgetent=yes
24656 else
24657   echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660         ac_cv_lib_ncurses_tgetent=no
24661 fi
24662
24663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24664       conftest$ac_exeext conftest.$ac_ext
24665 LIBS=$ac_check_lib_save_LIBS
24666 fi
24667 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24668 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24669 if test $ac_cv_lib_ncurses_tgetent = yes; then
24670    CONS_LIBS="-lncurses"
24671       CONS_OBJ="conio.o"
24672       CONS_SRC="conio.c"
24673       got_conio="yes"
24674       support_readline=no
24675
24676 cat >>confdefs.h <<\_ACEOF
24677 #define HAVE_CONIO 1
24678 _ACEOF
24679
24680
24681 fi
24682
24683
24684 fi
24685
24686
24687 else
24688
24689
24690 for ac_header in curses.h
24691 do
24692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24694   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24697   echo $ECHO_N "(cached) $ECHO_C" >&6
24698 fi
24699 ac_res=`eval echo '${'$as_ac_Header'}'`
24700                { echo "$as_me:$LINENO: result: $ac_res" >&5
24701 echo "${ECHO_T}$ac_res" >&6; }
24702 else
24703   # Is the header compilable?
24704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24706 cat >conftest.$ac_ext <<_ACEOF
24707 /* confdefs.h.  */
24708 _ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h.  */
24712 $ac_includes_default
24713 #include <$ac_header>
24714 _ACEOF
24715 rm -f conftest.$ac_objext
24716 if { (ac_try="$ac_compile"
24717 case "(($ac_try" in
24718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719   *) ac_try_echo=$ac_try;;
24720 esac
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722   (eval "$ac_compile") 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } && {
24729          test -z "$ac_c_werror_flag" ||
24730          test ! -s conftest.err
24731        } && test -s conftest.$ac_objext; then
24732   ac_header_compiler=yes
24733 else
24734   echo "$as_me: failed program was:" >&5
24735 sed 's/^/| /' conftest.$ac_ext >&5
24736
24737         ac_header_compiler=no
24738 fi
24739
24740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24742 echo "${ECHO_T}$ac_header_compiler" >&6; }
24743
24744 # Is the header present?
24745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24747 cat >conftest.$ac_ext <<_ACEOF
24748 /* confdefs.h.  */
24749 _ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h.  */
24753 #include <$ac_header>
24754 _ACEOF
24755 if { (ac_try="$ac_cpp conftest.$ac_ext"
24756 case "(($ac_try" in
24757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24758   *) ac_try_echo=$ac_try;;
24759 esac
24760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24762   ac_status=$?
24763   grep -v '^ *+' conftest.er1 >conftest.err
24764   rm -f conftest.er1
24765   cat conftest.err >&5
24766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767   (exit $ac_status); } >/dev/null && {
24768          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24769          test ! -s conftest.err
24770        }; then
24771   ac_header_preproc=yes
24772 else
24773   echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24775
24776   ac_header_preproc=no
24777 fi
24778
24779 rm -f conftest.err conftest.$ac_ext
24780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24781 echo "${ECHO_T}$ac_header_preproc" >&6; }
24782
24783 # So?  What about this header?
24784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24785   yes:no: )
24786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24790     ac_header_preproc=yes
24791     ;;
24792   no:yes:* )
24793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24805
24806     ;;
24807 esac
24808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24811   echo $ECHO_N "(cached) $ECHO_C" >&6
24812 else
24813   eval "$as_ac_Header=\$ac_header_preproc"
24814 fi
24815 ac_res=`eval echo '${'$as_ac_Header'}'`
24816                { echo "$as_me:$LINENO: result: $ac_res" >&5
24817 echo "${ECHO_T}$ac_res" >&6; }
24818
24819 fi
24820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24821   cat >>confdefs.h <<_ACEOF
24822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24823 _ACEOF
24824
24825 fi
24826
24827 done
24828
24829     { echo "$as_me:$LINENO: checking for term.h" >&5
24830 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24831 if test "${ac_cv_header_term_h+set}" = set; then
24832   echo $ECHO_N "(cached) $ECHO_C" >&6
24833 else
24834   cat >conftest.$ac_ext <<_ACEOF
24835 /* confdefs.h.  */
24836 _ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h.  */
24840 #if HAVE_CURSES_H
24841 #include <curses.h>
24842 #endif
24843
24844
24845 #include <term.h>
24846 _ACEOF
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851   *) ac_try_echo=$ac_try;;
24852 esac
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854   (eval "$ac_compile") 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } && {
24861          test -z "$ac_c_werror_flag" ||
24862          test ! -s conftest.err
24863        } && test -s conftest.$ac_objext; then
24864   ac_cv_header_term_h=yes
24865 else
24866   echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24868
24869         ac_cv_header_term_h=no
24870 fi
24871
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 fi
24874 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24875 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24876 if test $ac_cv_header_term_h = yes; then
24877    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24878 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24879 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24880   echo $ECHO_N "(cached) $ECHO_C" >&6
24881 else
24882   ac_check_lib_save_LIBS=$LIBS
24883 LIBS="-lcurses  $LIBS"
24884 cat >conftest.$ac_ext <<_ACEOF
24885 /* confdefs.h.  */
24886 _ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h.  */
24890
24891 /* Override any GCC internal prototype to avoid an error.
24892    Use char because int might match the return type of a GCC
24893    builtin and then its argument prototype would still apply.  */
24894 #ifdef __cplusplus
24895 extern "C"
24896 #endif
24897 char tgetent ();
24898 int
24899 main ()
24900 {
24901 return tgetent ();
24902   ;
24903   return 0;
24904 }
24905 _ACEOF
24906 rm -f conftest.$ac_objext conftest$ac_exeext
24907 if { (ac_try="$ac_link"
24908 case "(($ac_try" in
24909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910   *) ac_try_echo=$ac_try;;
24911 esac
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913   (eval "$ac_link") 2>conftest.er1
24914   ac_status=$?
24915   grep -v '^ *+' conftest.er1 >conftest.err
24916   rm -f conftest.er1
24917   cat conftest.err >&5
24918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); } && {
24920          test -z "$ac_c_werror_flag" ||
24921          test ! -s conftest.err
24922        } && test -s conftest$ac_exeext &&
24923        $as_test_x conftest$ac_exeext; then
24924   ac_cv_lib_curses_tgetent=yes
24925 else
24926   echo "$as_me: failed program was:" >&5
24927 sed 's/^/| /' conftest.$ac_ext >&5
24928
24929         ac_cv_lib_curses_tgetent=no
24930 fi
24931
24932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24933       conftest$ac_exeext conftest.$ac_ext
24934 LIBS=$ac_check_lib_save_LIBS
24935 fi
24936 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24937 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24938 if test $ac_cv_lib_curses_tgetent = yes; then
24939    CONS_LIBS="-lcurses"
24940          CONS_OBJ="conio.o"
24941          CONS_SRC="conio.c"
24942          got_conio="yes"
24943          support_readline=no
24944
24945 cat >>confdefs.h <<\_ACEOF
24946 #define HAVE_CONIO 1
24947 _ACEOF
24948
24949
24950 fi
24951
24952
24953 else
24954    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24955 fi
24956
24957
24958
24959 fi
24960
24961
24962 fi
24963
24964
24965 # Check whether --enable-readline was given.
24966 if test "${enable_readline+set}" = set; then
24967   enableval=$enable_readline;
24968        if test x$enableval = xno; then
24969           support_readline=no
24970        fi
24971
24972
24973 fi
24974
24975
24976 got_readline="no"
24977 READLINE_SRC=
24978 if test x$support_readline = xyes; then
24979
24980 # Check whether --with-readline was given.
24981 if test "${with_readline+set}" = set; then
24982   withval=$with_readline;
24983           case "$with_readline" in
24984           no)
24985              :
24986              ;;
24987           yes|*)
24988              if test -f ${with_readline}/readline.h; then
24989                 CONS_INC="-I${with_readline}"
24990                 CONS_LDFLAGS="-L$with_readline"
24991              elif test -f ${with_readline}/include/readline/readline.h; then
24992                 CONS_INC="-I${with_readline}/include/readline"
24993                 CONS_LDFLAGS="-L${with_readline}/lib"
24994                 with_readline="${with_readline}/include/readline"
24995              else
24996                 with_readline="/usr/include/readline"
24997              fi
24998
24999              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25001   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25002 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25004   echo $ECHO_N "(cached) $ECHO_C" >&6
25005 fi
25006 ac_res=`eval echo '${'$as_ac_Header'}'`
25007                { echo "$as_me:$LINENO: result: $ac_res" >&5
25008 echo "${ECHO_T}$ac_res" >&6; }
25009 else
25010   # Is the header compilable?
25011 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25012 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25013 cat >conftest.$ac_ext <<_ACEOF
25014 /* confdefs.h.  */
25015 _ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h.  */
25019 $ac_includes_default
25020 #include <${with_readline}/readline.h>
25021 _ACEOF
25022 rm -f conftest.$ac_objext
25023 if { (ac_try="$ac_compile"
25024 case "(($ac_try" in
25025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026   *) ac_try_echo=$ac_try;;
25027 esac
25028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25029   (eval "$ac_compile") 2>conftest.er1
25030   ac_status=$?
25031   grep -v '^ *+' conftest.er1 >conftest.err
25032   rm -f conftest.er1
25033   cat conftest.err >&5
25034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035   (exit $ac_status); } && {
25036          test -z "$ac_c_werror_flag" ||
25037          test ! -s conftest.err
25038        } && test -s conftest.$ac_objext; then
25039   ac_header_compiler=yes
25040 else
25041   echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.$ac_ext >&5
25043
25044         ac_header_compiler=no
25045 fi
25046
25047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25049 echo "${ECHO_T}$ac_header_compiler" >&6; }
25050
25051 # Is the header present?
25052 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25053 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25054 cat >conftest.$ac_ext <<_ACEOF
25055 /* confdefs.h.  */
25056 _ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h.  */
25060 #include <${with_readline}/readline.h>
25061 _ACEOF
25062 if { (ac_try="$ac_cpp conftest.$ac_ext"
25063 case "(($ac_try" in
25064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065   *) ac_try_echo=$ac_try;;
25066 esac
25067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25069   ac_status=$?
25070   grep -v '^ *+' conftest.er1 >conftest.err
25071   rm -f conftest.er1
25072   cat conftest.err >&5
25073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074   (exit $ac_status); } >/dev/null && {
25075          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25076          test ! -s conftest.err
25077        }; then
25078   ac_header_preproc=yes
25079 else
25080   echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25082
25083   ac_header_preproc=no
25084 fi
25085
25086 rm -f conftest.err conftest.$ac_ext
25087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25088 echo "${ECHO_T}$ac_header_preproc" >&6; }
25089
25090 # So?  What about this header?
25091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25092   yes:no: )
25093     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25094 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25095     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25096 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25097     ac_header_preproc=yes
25098     ;;
25099   no:yes:* )
25100     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25101 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25102     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25103 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25104     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25105 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25106     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25107 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25108     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25109 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25110     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25111 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25112
25113     ;;
25114 esac
25115 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25116 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25118   echo $ECHO_N "(cached) $ECHO_C" >&6
25119 else
25120   eval "$as_ac_Header=\$ac_header_preproc"
25121 fi
25122 ac_res=`eval echo '${'$as_ac_Header'}'`
25123                { echo "$as_me:$LINENO: result: $ac_res" >&5
25124 echo "${ECHO_T}$ac_res" >&6; }
25125
25126 fi
25127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25128
25129
25130 cat >>confdefs.h <<\_ACEOF
25131 #define HAVE_READLINE 1
25132 _ACEOF
25133
25134                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25135                     got_readline="yes"
25136
25137 else
25138
25139                     echo " "
25140                     echo "readline.h not found. readline turned off ..."
25141                     echo " "
25142
25143
25144 fi
25145
25146
25147              ;;
25148           esac
25149
25150 else
25151
25152                   if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25153   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25154 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25155 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25156   echo $ECHO_N "(cached) $ECHO_C" >&6
25157 fi
25158 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25159 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25160 else
25161   # Is the header compilable?
25162 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25163 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25164 cat >conftest.$ac_ext <<_ACEOF
25165 /* confdefs.h.  */
25166 _ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h.  */
25170 $ac_includes_default
25171 #include </usr/include/readline/readline.h>
25172 _ACEOF
25173 rm -f conftest.$ac_objext
25174 if { (ac_try="$ac_compile"
25175 case "(($ac_try" in
25176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177   *) ac_try_echo=$ac_try;;
25178 esac
25179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25180   (eval "$ac_compile") 2>conftest.er1
25181   ac_status=$?
25182   grep -v '^ *+' conftest.er1 >conftest.err
25183   rm -f conftest.er1
25184   cat conftest.err >&5
25185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186   (exit $ac_status); } && {
25187          test -z "$ac_c_werror_flag" ||
25188          test ! -s conftest.err
25189        } && test -s conftest.$ac_objext; then
25190   ac_header_compiler=yes
25191 else
25192   echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25194
25195         ac_header_compiler=no
25196 fi
25197
25198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25200 echo "${ECHO_T}$ac_header_compiler" >&6; }
25201
25202 # Is the header present?
25203 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25204 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25205 cat >conftest.$ac_ext <<_ACEOF
25206 /* confdefs.h.  */
25207 _ACEOF
25208 cat confdefs.h >>conftest.$ac_ext
25209 cat >>conftest.$ac_ext <<_ACEOF
25210 /* end confdefs.h.  */
25211 #include </usr/include/readline/readline.h>
25212 _ACEOF
25213 if { (ac_try="$ac_cpp conftest.$ac_ext"
25214 case "(($ac_try" in
25215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216   *) ac_try_echo=$ac_try;;
25217 esac
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25220   ac_status=$?
25221   grep -v '^ *+' conftest.er1 >conftest.err
25222   rm -f conftest.er1
25223   cat conftest.err >&5
25224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); } >/dev/null && {
25226          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25227          test ! -s conftest.err
25228        }; then
25229   ac_header_preproc=yes
25230 else
25231   echo "$as_me: failed program was:" >&5
25232 sed 's/^/| /' conftest.$ac_ext >&5
25233
25234   ac_header_preproc=no
25235 fi
25236
25237 rm -f conftest.err conftest.$ac_ext
25238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25239 echo "${ECHO_T}$ac_header_preproc" >&6; }
25240
25241 # So?  What about this header?
25242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25243   yes:no: )
25244     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25245 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25246     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25247 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25248     ac_header_preproc=yes
25249     ;;
25250   no:yes:* )
25251     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25252 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25253     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25254 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25255     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25256 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25257     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25258 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25259     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25260 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25261     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25262 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25263
25264     ;;
25265 esac
25266 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25267 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25268 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25269   echo $ECHO_N "(cached) $ECHO_C" >&6
25270 else
25271   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25272 fi
25273 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25274 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25275
25276 fi
25277 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25278
25279
25280 cat >>confdefs.h <<\_ACEOF
25281 #define HAVE_READLINE 1
25282 _ACEOF
25283
25284                 got_readline="yes"
25285                 CONS_INC="-I/usr/include/readline"
25286                 CONS_LIBS="-lreadline -ltermcap"
25287
25288 else
25289
25290                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25292   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25293 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25295   echo $ECHO_N "(cached) $ECHO_C" >&6
25296 fi
25297 ac_res=`eval echo '${'$as_ac_Header'}'`
25298                { echo "$as_me:$LINENO: result: $ac_res" >&5
25299 echo "${ECHO_T}$ac_res" >&6; }
25300 else
25301   # Is the header compilable?
25302 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25303 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25304 cat >conftest.$ac_ext <<_ACEOF
25305 /* confdefs.h.  */
25306 _ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h.  */
25310 $ac_includes_default
25311 #include <${TOP_DIR}/depkgs/readline/readline.h>
25312 _ACEOF
25313 rm -f conftest.$ac_objext
25314 if { (ac_try="$ac_compile"
25315 case "(($ac_try" in
25316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317   *) ac_try_echo=$ac_try;;
25318 esac
25319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25320   (eval "$ac_compile") 2>conftest.er1
25321   ac_status=$?
25322   grep -v '^ *+' conftest.er1 >conftest.err
25323   rm -f conftest.er1
25324   cat conftest.err >&5
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); } && {
25327          test -z "$ac_c_werror_flag" ||
25328          test ! -s conftest.err
25329        } && test -s conftest.$ac_objext; then
25330   ac_header_compiler=yes
25331 else
25332   echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335         ac_header_compiler=no
25336 fi
25337
25338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25340 echo "${ECHO_T}$ac_header_compiler" >&6; }
25341
25342 # Is the header present?
25343 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25344 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25345 cat >conftest.$ac_ext <<_ACEOF
25346 /* confdefs.h.  */
25347 _ACEOF
25348 cat confdefs.h >>conftest.$ac_ext
25349 cat >>conftest.$ac_ext <<_ACEOF
25350 /* end confdefs.h.  */
25351 #include <${TOP_DIR}/depkgs/readline/readline.h>
25352 _ACEOF
25353 if { (ac_try="$ac_cpp conftest.$ac_ext"
25354 case "(($ac_try" in
25355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356   *) ac_try_echo=$ac_try;;
25357 esac
25358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25360   ac_status=$?
25361   grep -v '^ *+' conftest.er1 >conftest.err
25362   rm -f conftest.er1
25363   cat conftest.err >&5
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); } >/dev/null && {
25366          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25367          test ! -s conftest.err
25368        }; then
25369   ac_header_preproc=yes
25370 else
25371   echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25373
25374   ac_header_preproc=no
25375 fi
25376
25377 rm -f conftest.err conftest.$ac_ext
25378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25379 echo "${ECHO_T}$ac_header_preproc" >&6; }
25380
25381 # So?  What about this header?
25382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25383   yes:no: )
25384     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25385 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25386     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25387 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25388     ac_header_preproc=yes
25389     ;;
25390   no:yes:* )
25391     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25392 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25394 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25395     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25397     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25398 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25399     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25400 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25401     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25402 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25403
25404     ;;
25405 esac
25406 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25407 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25409   echo $ECHO_N "(cached) $ECHO_C" >&6
25410 else
25411   eval "$as_ac_Header=\$ac_header_preproc"
25412 fi
25413 ac_res=`eval echo '${'$as_ac_Header'}'`
25414                { echo "$as_me:$LINENO: result: $ac_res" >&5
25415 echo "${ECHO_T}$ac_res" >&6; }
25416
25417 fi
25418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25419
25420
25421 cat >>confdefs.h <<\_ACEOF
25422 #define HAVE_READLINE 1
25423 _ACEOF
25424
25425                         got_readline="yes"
25426                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25427                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25428                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25429                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25430
25431 else
25432
25433                         echo " "
25434                         echo "readline.h not found. readline turned off ..."
25435                         echo " "
25436
25437
25438 fi
25439
25440
25441
25442
25443 fi
25444
25445
25446
25447
25448 fi
25449
25450 fi
25451
25452
25453
25454
25455
25456
25457
25458
25459 MAKE_SHELL=/bin/sh
25460
25461 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25462 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25463 if test "${ac_cv_header_stat_broken+set}" = set; then
25464   echo $ECHO_N "(cached) $ECHO_C" >&6
25465 else
25466   cat >conftest.$ac_ext <<_ACEOF
25467 /* confdefs.h.  */
25468 _ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h.  */
25472 #include <sys/types.h>
25473 #include <sys/stat.h>
25474
25475 #if defined S_ISBLK && defined S_IFDIR
25476 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25477 #endif
25478
25479 #if defined S_ISBLK && defined S_IFCHR
25480 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25481 #endif
25482
25483 #if defined S_ISLNK && defined S_IFREG
25484 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25485 #endif
25486
25487 #if defined S_ISSOCK && defined S_IFREG
25488 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25489 #endif
25490
25491 _ACEOF
25492 rm -f conftest.$ac_objext
25493 if { (ac_try="$ac_compile"
25494 case "(($ac_try" in
25495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496   *) ac_try_echo=$ac_try;;
25497 esac
25498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25499   (eval "$ac_compile") 2>conftest.er1
25500   ac_status=$?
25501   grep -v '^ *+' conftest.er1 >conftest.err
25502   rm -f conftest.er1
25503   cat conftest.err >&5
25504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505   (exit $ac_status); } && {
25506          test -z "$ac_c_werror_flag" ||
25507          test ! -s conftest.err
25508        } && test -s conftest.$ac_objext; then
25509   ac_cv_header_stat_broken=no
25510 else
25511   echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25513
25514         ac_cv_header_stat_broken=yes
25515 fi
25516
25517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25518 fi
25519 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25520 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25521 if test $ac_cv_header_stat_broken = yes; then
25522
25523 cat >>confdefs.h <<\_ACEOF
25524 #define STAT_MACROS_BROKEN 1
25525 _ACEOF
25526
25527 fi
25528
25529
25530
25531
25532
25533
25534 ac_header_dirent=no
25535 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25536   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25537 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25538 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25540   echo $ECHO_N "(cached) $ECHO_C" >&6
25541 else
25542   cat >conftest.$ac_ext <<_ACEOF
25543 /* confdefs.h.  */
25544 _ACEOF
25545 cat confdefs.h >>conftest.$ac_ext
25546 cat >>conftest.$ac_ext <<_ACEOF
25547 /* end confdefs.h.  */
25548 #include <sys/types.h>
25549 #include <$ac_hdr>
25550
25551 int
25552 main ()
25553 {
25554 if ((DIR *) 0)
25555 return 0;
25556   ;
25557   return 0;
25558 }
25559 _ACEOF
25560 rm -f conftest.$ac_objext
25561 if { (ac_try="$ac_compile"
25562 case "(($ac_try" in
25563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564   *) ac_try_echo=$ac_try;;
25565 esac
25566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567   (eval "$ac_compile") 2>conftest.er1
25568   ac_status=$?
25569   grep -v '^ *+' conftest.er1 >conftest.err
25570   rm -f conftest.er1
25571   cat conftest.err >&5
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); } && {
25574          test -z "$ac_c_werror_flag" ||
25575          test ! -s conftest.err
25576        } && test -s conftest.$ac_objext; then
25577   eval "$as_ac_Header=yes"
25578 else
25579   echo "$as_me: failed program was:" >&5
25580 sed 's/^/| /' conftest.$ac_ext >&5
25581
25582         eval "$as_ac_Header=no"
25583 fi
25584
25585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25586 fi
25587 ac_res=`eval echo '${'$as_ac_Header'}'`
25588                { echo "$as_me:$LINENO: result: $ac_res" >&5
25589 echo "${ECHO_T}$ac_res" >&6; }
25590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25591   cat >>confdefs.h <<_ACEOF
25592 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25593 _ACEOF
25594
25595 ac_header_dirent=$ac_hdr; break
25596 fi
25597
25598 done
25599 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25600 if test $ac_header_dirent = dirent.h; then
25601   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25602 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25603 if test "${ac_cv_search_opendir+set}" = set; then
25604   echo $ECHO_N "(cached) $ECHO_C" >&6
25605 else
25606   ac_func_search_save_LIBS=$LIBS
25607 cat >conftest.$ac_ext <<_ACEOF
25608 /* confdefs.h.  */
25609 _ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h.  */
25613
25614 /* Override any GCC internal prototype to avoid an error.
25615    Use char because int might match the return type of a GCC
25616    builtin and then its argument prototype would still apply.  */
25617 #ifdef __cplusplus
25618 extern "C"
25619 #endif
25620 char opendir ();
25621 int
25622 main ()
25623 {
25624 return opendir ();
25625   ;
25626   return 0;
25627 }
25628 _ACEOF
25629 for ac_lib in '' dir; do
25630   if test -z "$ac_lib"; then
25631     ac_res="none required"
25632   else
25633     ac_res=-l$ac_lib
25634     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25635   fi
25636   rm -f conftest.$ac_objext conftest$ac_exeext
25637 if { (ac_try="$ac_link"
25638 case "(($ac_try" in
25639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640   *) ac_try_echo=$ac_try;;
25641 esac
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643   (eval "$ac_link") 2>conftest.er1
25644   ac_status=$?
25645   grep -v '^ *+' conftest.er1 >conftest.err
25646   rm -f conftest.er1
25647   cat conftest.err >&5
25648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649   (exit $ac_status); } && {
25650          test -z "$ac_c_werror_flag" ||
25651          test ! -s conftest.err
25652        } && test -s conftest$ac_exeext &&
25653        $as_test_x conftest$ac_exeext; then
25654   ac_cv_search_opendir=$ac_res
25655 else
25656   echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25658
25659
25660 fi
25661
25662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25663       conftest$ac_exeext
25664   if test "${ac_cv_search_opendir+set}" = set; then
25665   break
25666 fi
25667 done
25668 if test "${ac_cv_search_opendir+set}" = set; then
25669   :
25670 else
25671   ac_cv_search_opendir=no
25672 fi
25673 rm conftest.$ac_ext
25674 LIBS=$ac_func_search_save_LIBS
25675 fi
25676 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25677 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25678 ac_res=$ac_cv_search_opendir
25679 if test "$ac_res" != no; then
25680   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25681
25682 fi
25683
25684 else
25685   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25686 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25687 if test "${ac_cv_search_opendir+set}" = set; then
25688   echo $ECHO_N "(cached) $ECHO_C" >&6
25689 else
25690   ac_func_search_save_LIBS=$LIBS
25691 cat >conftest.$ac_ext <<_ACEOF
25692 /* confdefs.h.  */
25693 _ACEOF
25694 cat confdefs.h >>conftest.$ac_ext
25695 cat >>conftest.$ac_ext <<_ACEOF
25696 /* end confdefs.h.  */
25697
25698 /* Override any GCC internal prototype to avoid an error.
25699    Use char because int might match the return type of a GCC
25700    builtin and then its argument prototype would still apply.  */
25701 #ifdef __cplusplus
25702 extern "C"
25703 #endif
25704 char opendir ();
25705 int
25706 main ()
25707 {
25708 return opendir ();
25709   ;
25710   return 0;
25711 }
25712 _ACEOF
25713 for ac_lib in '' x; do
25714   if test -z "$ac_lib"; then
25715     ac_res="none required"
25716   else
25717     ac_res=-l$ac_lib
25718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25719   fi
25720   rm -f conftest.$ac_objext conftest$ac_exeext
25721 if { (ac_try="$ac_link"
25722 case "(($ac_try" in
25723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25724   *) ac_try_echo=$ac_try;;
25725 esac
25726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25727   (eval "$ac_link") 2>conftest.er1
25728   ac_status=$?
25729   grep -v '^ *+' conftest.er1 >conftest.err
25730   rm -f conftest.er1
25731   cat conftest.err >&5
25732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733   (exit $ac_status); } && {
25734          test -z "$ac_c_werror_flag" ||
25735          test ! -s conftest.err
25736        } && test -s conftest$ac_exeext &&
25737        $as_test_x conftest$ac_exeext; then
25738   ac_cv_search_opendir=$ac_res
25739 else
25740   echo "$as_me: failed program was:" >&5
25741 sed 's/^/| /' conftest.$ac_ext >&5
25742
25743
25744 fi
25745
25746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25747       conftest$ac_exeext
25748   if test "${ac_cv_search_opendir+set}" = set; then
25749   break
25750 fi
25751 done
25752 if test "${ac_cv_search_opendir+set}" = set; then
25753   :
25754 else
25755   ac_cv_search_opendir=no
25756 fi
25757 rm conftest.$ac_ext
25758 LIBS=$ac_func_search_save_LIBS
25759 fi
25760 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25761 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25762 ac_res=$ac_cv_search_opendir
25763 if test "$ac_res" != no; then
25764   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25765
25766 fi
25767
25768 fi
25769
25770
25771
25772
25773
25774
25775
25776
25777 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25778 do
25779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25783   echo $ECHO_N "(cached) $ECHO_C" >&6
25784 else
25785   cat >conftest.$ac_ext <<_ACEOF
25786 /* confdefs.h.  */
25787 _ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h.  */
25791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25793 #define $ac_func innocuous_$ac_func
25794
25795 /* System header to define __stub macros and hopefully few prototypes,
25796     which can conflict with char $ac_func (); below.
25797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25798     <limits.h> exists even on freestanding compilers.  */
25799
25800 #ifdef __STDC__
25801 # include <limits.h>
25802 #else
25803 # include <assert.h>
25804 #endif
25805
25806 #undef $ac_func
25807
25808 /* Override any GCC internal prototype to avoid an error.
25809    Use char because int might match the return type of a GCC
25810    builtin and then its argument prototype would still apply.  */
25811 #ifdef __cplusplus
25812 extern "C"
25813 #endif
25814 char $ac_func ();
25815 /* The GNU C library defines this for functions which it implements
25816     to always fail with ENOSYS.  Some functions are actually named
25817     something starting with __ and the normal name is an alias.  */
25818 #if defined __stub_$ac_func || defined __stub___$ac_func
25819 choke me
25820 #endif
25821
25822 int
25823 main ()
25824 {
25825 return $ac_func ();
25826   ;
25827   return 0;
25828 }
25829 _ACEOF
25830 rm -f conftest.$ac_objext conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834   *) ac_try_echo=$ac_try;;
25835 esac
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837   (eval "$ac_link") 2>conftest.er1
25838   ac_status=$?
25839   grep -v '^ *+' conftest.er1 >conftest.err
25840   rm -f conftest.er1
25841   cat conftest.err >&5
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); } && {
25844          test -z "$ac_c_werror_flag" ||
25845          test ! -s conftest.err
25846        } && test -s conftest$ac_exeext &&
25847        $as_test_x conftest$ac_exeext; then
25848   eval "$as_ac_var=yes"
25849 else
25850   echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25852
25853         eval "$as_ac_var=no"
25854 fi
25855
25856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25857       conftest$ac_exeext conftest.$ac_ext
25858 fi
25859 ac_res=`eval echo '${'$as_ac_var'}'`
25860                { echo "$as_me:$LINENO: result: $ac_res" >&5
25861 echo "${ECHO_T}$ac_res" >&6; }
25862 if test `eval echo '${'$as_ac_var'}'` = yes; then
25863   cat >>confdefs.h <<_ACEOF
25864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25865 _ACEOF
25866
25867 fi
25868 done
25869
25870
25871
25872 for ac_func in nanosleep nl_langinfo
25873 do
25874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25878   echo $ECHO_N "(cached) $ECHO_C" >&6
25879 else
25880   cat >conftest.$ac_ext <<_ACEOF
25881 /* confdefs.h.  */
25882 _ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h.  */
25886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25888 #define $ac_func innocuous_$ac_func
25889
25890 /* System header to define __stub macros and hopefully few prototypes,
25891     which can conflict with char $ac_func (); below.
25892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25893     <limits.h> exists even on freestanding compilers.  */
25894
25895 #ifdef __STDC__
25896 # include <limits.h>
25897 #else
25898 # include <assert.h>
25899 #endif
25900
25901 #undef $ac_func
25902
25903 /* Override any GCC internal prototype to avoid an error.
25904    Use char because int might match the return type of a GCC
25905    builtin and then its argument prototype would still apply.  */
25906 #ifdef __cplusplus
25907 extern "C"
25908 #endif
25909 char $ac_func ();
25910 /* The GNU C library defines this for functions which it implements
25911     to always fail with ENOSYS.  Some functions are actually named
25912     something starting with __ and the normal name is an alias.  */
25913 #if defined __stub_$ac_func || defined __stub___$ac_func
25914 choke me
25915 #endif
25916
25917 int
25918 main ()
25919 {
25920 return $ac_func ();
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 rm -f conftest.$ac_objext conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929   *) ac_try_echo=$ac_try;;
25930 esac
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932   (eval "$ac_link") 2>conftest.er1
25933   ac_status=$?
25934   grep -v '^ *+' conftest.er1 >conftest.err
25935   rm -f conftest.er1
25936   cat conftest.err >&5
25937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938   (exit $ac_status); } && {
25939          test -z "$ac_c_werror_flag" ||
25940          test ! -s conftest.err
25941        } && test -s conftest$ac_exeext &&
25942        $as_test_x conftest$ac_exeext; then
25943   eval "$as_ac_var=yes"
25944 else
25945   echo "$as_me: failed program was:" >&5
25946 sed 's/^/| /' conftest.$ac_ext >&5
25947
25948         eval "$as_ac_var=no"
25949 fi
25950
25951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25952       conftest$ac_exeext conftest.$ac_ext
25953 fi
25954 ac_res=`eval echo '${'$as_ac_var'}'`
25955                { echo "$as_me:$LINENO: result: $ac_res" >&5
25956 echo "${ECHO_T}$ac_res" >&6; }
25957 if test `eval echo '${'$as_ac_var'}'` = yes; then
25958   cat >>confdefs.h <<_ACEOF
25959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25960 _ACEOF
25961
25962 fi
25963 done
25964
25965
25966 for ac_header in varargs.h
25967 do
25968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25970   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25973   echo $ECHO_N "(cached) $ECHO_C" >&6
25974 fi
25975 ac_res=`eval echo '${'$as_ac_Header'}'`
25976                { echo "$as_me:$LINENO: result: $ac_res" >&5
25977 echo "${ECHO_T}$ac_res" >&6; }
25978 else
25979   # Is the header compilable?
25980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25982 cat >conftest.$ac_ext <<_ACEOF
25983 /* confdefs.h.  */
25984 _ACEOF
25985 cat confdefs.h >>conftest.$ac_ext
25986 cat >>conftest.$ac_ext <<_ACEOF
25987 /* end confdefs.h.  */
25988 $ac_includes_default
25989 #include <$ac_header>
25990 _ACEOF
25991 rm -f conftest.$ac_objext
25992 if { (ac_try="$ac_compile"
25993 case "(($ac_try" in
25994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995   *) ac_try_echo=$ac_try;;
25996 esac
25997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25998   (eval "$ac_compile") 2>conftest.er1
25999   ac_status=$?
26000   grep -v '^ *+' conftest.er1 >conftest.err
26001   rm -f conftest.er1
26002   cat conftest.err >&5
26003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004   (exit $ac_status); } && {
26005          test -z "$ac_c_werror_flag" ||
26006          test ! -s conftest.err
26007        } && test -s conftest.$ac_objext; then
26008   ac_header_compiler=yes
26009 else
26010   echo "$as_me: failed program was:" >&5
26011 sed 's/^/| /' conftest.$ac_ext >&5
26012
26013         ac_header_compiler=no
26014 fi
26015
26016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26018 echo "${ECHO_T}$ac_header_compiler" >&6; }
26019
26020 # Is the header present?
26021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26023 cat >conftest.$ac_ext <<_ACEOF
26024 /* confdefs.h.  */
26025 _ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h.  */
26029 #include <$ac_header>
26030 _ACEOF
26031 if { (ac_try="$ac_cpp conftest.$ac_ext"
26032 case "(($ac_try" in
26033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034   *) ac_try_echo=$ac_try;;
26035 esac
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26038   ac_status=$?
26039   grep -v '^ *+' conftest.er1 >conftest.err
26040   rm -f conftest.er1
26041   cat conftest.err >&5
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); } >/dev/null && {
26044          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26045          test ! -s conftest.err
26046        }; then
26047   ac_header_preproc=yes
26048 else
26049   echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26051
26052   ac_header_preproc=no
26053 fi
26054
26055 rm -f conftest.err conftest.$ac_ext
26056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26057 echo "${ECHO_T}$ac_header_preproc" >&6; }
26058
26059 # So?  What about this header?
26060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26061   yes:no: )
26062     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26066     ac_header_preproc=yes
26067     ;;
26068   no:yes:* )
26069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26071     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26072 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26073     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26075     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26076 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26079     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26081
26082     ;;
26083 esac
26084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26087   echo $ECHO_N "(cached) $ECHO_C" >&6
26088 else
26089   eval "$as_ac_Header=\$ac_header_preproc"
26090 fi
26091 ac_res=`eval echo '${'$as_ac_Header'}'`
26092                { echo "$as_me:$LINENO: result: $ac_res" >&5
26093 echo "${ECHO_T}$ac_res" >&6; }
26094
26095 fi
26096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26097   cat >>confdefs.h <<_ACEOF
26098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26099 _ACEOF
26100
26101 fi
26102
26103 done
26104
26105
26106
26107 { echo "$as_me:$LINENO: checking for Python support" >&5
26108 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26109
26110 # Check whether --with-python was given.
26111 if test "${with_python+set}" = set; then
26112   withval=$with_python;
26113        PYTHON_INCDIR=
26114        PYTHON_LIBS=
26115        if test "$withval" != "no"; then
26116           if test "$withval" = "yes"; then
26117              for python_root in /usr /usr/local /usr/sfw; do
26118                 for ver in python2.2 python2.3 python2.4 python2.5; do
26119                    if test -f $python_root/include/${ver}/Python.h; then
26120                       PYTHON_INCDIR=-I$python_root/include/${ver}
26121                       if test -d $python_root/lib64/${ver}/config; then
26122                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26123                       else
26124                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26125                       fi
26126                       break
26127                    fi
26128                 done
26129              done
26130
26131              if test x$PYTHON_INCDIR = x; then
26132                 if test -f $prefix/include/Python.h; then
26133                    PYTHON_INCDIR=-I$prefix/include
26134                    if test -d $prefix/lib64/config; then
26135                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26136                    else
26137                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26138                    fi
26139                 else
26140                    { echo "$as_me:$LINENO: result: no" >&5
26141 echo "${ECHO_T}no" >&6; }
26142                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26143 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26144    { (exit 1); exit 1; }; }
26145                 fi
26146              fi
26147           else
26148              if test -f $withval/Python.h; then
26149                 PYTHON_INCDIR=-I$withval
26150                 PYTHON_LIBS="-L$withval/config -lpython"
26151              elif test -f $withval/include/Python.h; then
26152                 PYTHON_INCDIR=-I$withval/include
26153                 if test -d $withval/lib64/config; then
26154                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26155                 else
26156                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26157                 fi
26158              elif test -f $withval/include/python/Python.h; then
26159                 PYTHON_INCDIR=-I$withval/include/python
26160                 if test -d $withval/lib64/python/config; then
26161                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26162                 else
26163                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26164                 fi
26165              else
26166                 { echo "$as_me:$LINENO: result: no" >&5
26167 echo "${ECHO_T}no" >&6; }
26168                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26169 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26170    { (exit 1); exit 1; }; }
26171              fi
26172           fi
26173
26174           cat >>confdefs.h <<\_ACEOF
26175 #define HAVE_PYTHON 1
26176 _ACEOF
26177
26178           { echo "$as_me:$LINENO: result: yes" >&5
26179 echo "${ECHO_T}yes" >&6; }
26180           support_python=yes
26181           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26182 echo "$as_me: checking for more Python libs" >&6;}
26183           saved_LIBS="$LIBS"; LIBS=
26184           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26185 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26186 if test "${ac_cv_search_shm_open+set}" = set; then
26187   echo $ECHO_N "(cached) $ECHO_C" >&6
26188 else
26189   ac_func_search_save_LIBS=$LIBS
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h.  */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h.  */
26196
26197 /* Override any GCC internal prototype to avoid an error.
26198    Use char because int might match the return type of a GCC
26199    builtin and then its argument prototype would still apply.  */
26200 #ifdef __cplusplus
26201 extern "C"
26202 #endif
26203 char shm_open ();
26204 int
26205 main ()
26206 {
26207 return shm_open ();
26208   ;
26209   return 0;
26210 }
26211 _ACEOF
26212 for ac_lib in '' rt; do
26213   if test -z "$ac_lib"; then
26214     ac_res="none required"
26215   else
26216     ac_res=-l$ac_lib
26217     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26218   fi
26219   rm -f conftest.$ac_objext conftest$ac_exeext
26220 if { (ac_try="$ac_link"
26221 case "(($ac_try" in
26222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223   *) ac_try_echo=$ac_try;;
26224 esac
26225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26226   (eval "$ac_link") 2>conftest.er1
26227   ac_status=$?
26228   grep -v '^ *+' conftest.er1 >conftest.err
26229   rm -f conftest.er1
26230   cat conftest.err >&5
26231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232   (exit $ac_status); } && {
26233          test -z "$ac_c_werror_flag" ||
26234          test ! -s conftest.err
26235        } && test -s conftest$ac_exeext &&
26236        $as_test_x conftest$ac_exeext; then
26237   ac_cv_search_shm_open=$ac_res
26238 else
26239   echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26241
26242
26243 fi
26244
26245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26246       conftest$ac_exeext
26247   if test "${ac_cv_search_shm_open+set}" = set; then
26248   break
26249 fi
26250 done
26251 if test "${ac_cv_search_shm_open+set}" = set; then
26252   :
26253 else
26254   ac_cv_search_shm_open=no
26255 fi
26256 rm conftest.$ac_ext
26257 LIBS=$ac_func_search_save_LIBS
26258 fi
26259 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26260 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26261 ac_res=$ac_cv_search_shm_open
26262 if test "$ac_res" != no; then
26263   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26264
26265 fi
26266
26267
26268 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26269 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26270 if test "${ac_cv_lib_util_openpty+set}" = set; then
26271   echo $ECHO_N "(cached) $ECHO_C" >&6
26272 else
26273   ac_check_lib_save_LIBS=$LIBS
26274 LIBS="-lutil  $LIBS"
26275 cat >conftest.$ac_ext <<_ACEOF
26276 /* confdefs.h.  */
26277 _ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h.  */
26281
26282 /* Override any GCC internal prototype to avoid an error.
26283    Use char because int might match the return type of a GCC
26284    builtin and then its argument prototype would still apply.  */
26285 #ifdef __cplusplus
26286 extern "C"
26287 #endif
26288 char openpty ();
26289 int
26290 main ()
26291 {
26292 return openpty ();
26293   ;
26294   return 0;
26295 }
26296 _ACEOF
26297 rm -f conftest.$ac_objext conftest$ac_exeext
26298 if { (ac_try="$ac_link"
26299 case "(($ac_try" in
26300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26301   *) ac_try_echo=$ac_try;;
26302 esac
26303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26304   (eval "$ac_link") 2>conftest.er1
26305   ac_status=$?
26306   grep -v '^ *+' conftest.er1 >conftest.err
26307   rm -f conftest.er1
26308   cat conftest.err >&5
26309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310   (exit $ac_status); } && {
26311          test -z "$ac_c_werror_flag" ||
26312          test ! -s conftest.err
26313        } && test -s conftest$ac_exeext &&
26314        $as_test_x conftest$ac_exeext; then
26315   ac_cv_lib_util_openpty=yes
26316 else
26317   echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26319
26320         ac_cv_lib_util_openpty=no
26321 fi
26322
26323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26324       conftest$ac_exeext conftest.$ac_ext
26325 LIBS=$ac_check_lib_save_LIBS
26326 fi
26327 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26328 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26329 if test $ac_cv_lib_util_openpty = yes; then
26330   cat >>confdefs.h <<_ACEOF
26331 #define HAVE_LIBUTIL 1
26332 _ACEOF
26333
26334   LIBS="-lutil $LIBS"
26335
26336 fi
26337
26338           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26339           LIBS="$saved_LIBS"
26340        else
26341           { echo "$as_me:$LINENO: result: no" >&5
26342 echo "${ECHO_T}no" >&6; }
26343        fi
26344
26345 else
26346
26347        { echo "$as_me:$LINENO: result: no" >&5
26348 echo "${ECHO_T}no" >&6; }
26349
26350
26351 fi
26352
26353
26354
26355
26356 { echo "$as_me:$LINENO: checking for socket" >&5
26357 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26358 if test "${ac_cv_func_socket+set}" = set; then
26359   echo $ECHO_N "(cached) $ECHO_C" >&6
26360 else
26361   cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h.  */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h.  */
26367 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26369 #define socket innocuous_socket
26370
26371 /* System header to define __stub macros and hopefully few prototypes,
26372     which can conflict with char socket (); below.
26373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26374     <limits.h> exists even on freestanding compilers.  */
26375
26376 #ifdef __STDC__
26377 # include <limits.h>
26378 #else
26379 # include <assert.h>
26380 #endif
26381
26382 #undef socket
26383
26384 /* Override any GCC internal prototype to avoid an error.
26385    Use char because int might match the return type of a GCC
26386    builtin and then its argument prototype would still apply.  */
26387 #ifdef __cplusplus
26388 extern "C"
26389 #endif
26390 char socket ();
26391 /* The GNU C library defines this for functions which it implements
26392     to always fail with ENOSYS.  Some functions are actually named
26393     something starting with __ and the normal name is an alias.  */
26394 #if defined __stub_socket || defined __stub___socket
26395 choke me
26396 #endif
26397
26398 int
26399 main ()
26400 {
26401 return socket ();
26402   ;
26403   return 0;
26404 }
26405 _ACEOF
26406 rm -f conftest.$ac_objext conftest$ac_exeext
26407 if { (ac_try="$ac_link"
26408 case "(($ac_try" in
26409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26410   *) ac_try_echo=$ac_try;;
26411 esac
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413   (eval "$ac_link") 2>conftest.er1
26414   ac_status=$?
26415   grep -v '^ *+' conftest.er1 >conftest.err
26416   rm -f conftest.er1
26417   cat conftest.err >&5
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); } && {
26420          test -z "$ac_c_werror_flag" ||
26421          test ! -s conftest.err
26422        } && test -s conftest$ac_exeext &&
26423        $as_test_x conftest$ac_exeext; then
26424   ac_cv_func_socket=yes
26425 else
26426   echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26428
26429         ac_cv_func_socket=no
26430 fi
26431
26432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26433       conftest$ac_exeext conftest.$ac_ext
26434 fi
26435 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26436 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26437 if test $ac_cv_func_socket = yes; then
26438   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26439 echo "${ECHO_T}using libc's socket" >&6; }
26440 else
26441
26442 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26443 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26444 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26445   echo $ECHO_N "(cached) $ECHO_C" >&6
26446 else
26447   ac_check_lib_save_LIBS=$LIBS
26448 LIBS="-lxnet  $LIBS"
26449 cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h.  */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h.  */
26455
26456 /* Override any GCC internal prototype to avoid an error.
26457    Use char because int might match the return type of a GCC
26458    builtin and then its argument prototype would still apply.  */
26459 #ifdef __cplusplus
26460 extern "C"
26461 #endif
26462 char socket ();
26463 int
26464 main ()
26465 {
26466 return socket ();
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext conftest$ac_exeext
26472 if { (ac_try="$ac_link"
26473 case "(($ac_try" in
26474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475   *) ac_try_echo=$ac_try;;
26476 esac
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478   (eval "$ac_link") 2>conftest.er1
26479   ac_status=$?
26480   grep -v '^ *+' conftest.er1 >conftest.err
26481   rm -f conftest.er1
26482   cat conftest.err >&5
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); } && {
26485          test -z "$ac_c_werror_flag" ||
26486          test ! -s conftest.err
26487        } && test -s conftest$ac_exeext &&
26488        $as_test_x conftest$ac_exeext; then
26489   ac_cv_lib_xnet_socket=yes
26490 else
26491   echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26493
26494         ac_cv_lib_xnet_socket=no
26495 fi
26496
26497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26498       conftest$ac_exeext conftest.$ac_ext
26499 LIBS=$ac_check_lib_save_LIBS
26500 fi
26501 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26502 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26503 if test $ac_cv_lib_xnet_socket = yes; then
26504   cat >>confdefs.h <<_ACEOF
26505 #define HAVE_LIBXNET 1
26506 _ACEOF
26507
26508   LIBS="-lxnet $LIBS"
26509
26510 fi
26511
26512
26513 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26514 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26515 if test "${ac_cv_lib_socket_socket+set}" = set; then
26516   echo $ECHO_N "(cached) $ECHO_C" >&6
26517 else
26518   ac_check_lib_save_LIBS=$LIBS
26519 LIBS="-lsocket  $LIBS"
26520 cat >conftest.$ac_ext <<_ACEOF
26521 /* confdefs.h.  */
26522 _ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h.  */
26526
26527 /* Override any GCC internal prototype to avoid an error.
26528    Use char because int might match the return type of a GCC
26529    builtin and then its argument prototype would still apply.  */
26530 #ifdef __cplusplus
26531 extern "C"
26532 #endif
26533 char socket ();
26534 int
26535 main ()
26536 {
26537 return socket ();
26538   ;
26539   return 0;
26540 }
26541 _ACEOF
26542 rm -f conftest.$ac_objext conftest$ac_exeext
26543 if { (ac_try="$ac_link"
26544 case "(($ac_try" in
26545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546   *) ac_try_echo=$ac_try;;
26547 esac
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549   (eval "$ac_link") 2>conftest.er1
26550   ac_status=$?
26551   grep -v '^ *+' conftest.er1 >conftest.err
26552   rm -f conftest.er1
26553   cat conftest.err >&5
26554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555   (exit $ac_status); } && {
26556          test -z "$ac_c_werror_flag" ||
26557          test ! -s conftest.err
26558        } && test -s conftest$ac_exeext &&
26559        $as_test_x conftest$ac_exeext; then
26560   ac_cv_lib_socket_socket=yes
26561 else
26562   echo "$as_me: failed program was:" >&5
26563 sed 's/^/| /' conftest.$ac_ext >&5
26564
26565         ac_cv_lib_socket_socket=no
26566 fi
26567
26568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26569       conftest$ac_exeext conftest.$ac_ext
26570 LIBS=$ac_check_lib_save_LIBS
26571 fi
26572 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26573 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26574 if test $ac_cv_lib_socket_socket = yes; then
26575   cat >>confdefs.h <<_ACEOF
26576 #define HAVE_LIBSOCKET 1
26577 _ACEOF
26578
26579   LIBS="-lsocket $LIBS"
26580
26581 fi
26582
26583
26584 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26585 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26586 if test "${ac_cv_lib_inet_socket+set}" = set; then
26587   echo $ECHO_N "(cached) $ECHO_C" >&6
26588 else
26589   ac_check_lib_save_LIBS=$LIBS
26590 LIBS="-linet  $LIBS"
26591 cat >conftest.$ac_ext <<_ACEOF
26592 /* confdefs.h.  */
26593 _ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h.  */
26597
26598 /* Override any GCC internal prototype to avoid an error.
26599    Use char because int might match the return type of a GCC
26600    builtin and then its argument prototype would still apply.  */
26601 #ifdef __cplusplus
26602 extern "C"
26603 #endif
26604 char socket ();
26605 int
26606 main ()
26607 {
26608 return socket ();
26609   ;
26610   return 0;
26611 }
26612 _ACEOF
26613 rm -f conftest.$ac_objext conftest$ac_exeext
26614 if { (ac_try="$ac_link"
26615 case "(($ac_try" in
26616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26617   *) ac_try_echo=$ac_try;;
26618 esac
26619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26620   (eval "$ac_link") 2>conftest.er1
26621   ac_status=$?
26622   grep -v '^ *+' conftest.er1 >conftest.err
26623   rm -f conftest.er1
26624   cat conftest.err >&5
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); } && {
26627          test -z "$ac_c_werror_flag" ||
26628          test ! -s conftest.err
26629        } && test -s conftest$ac_exeext &&
26630        $as_test_x conftest$ac_exeext; then
26631   ac_cv_lib_inet_socket=yes
26632 else
26633   echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26635
26636         ac_cv_lib_inet_socket=no
26637 fi
26638
26639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26640       conftest$ac_exeext conftest.$ac_ext
26641 LIBS=$ac_check_lib_save_LIBS
26642 fi
26643 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26644 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26645 if test $ac_cv_lib_inet_socket = yes; then
26646   cat >>confdefs.h <<_ACEOF
26647 #define HAVE_LIBINET 1
26648 _ACEOF
26649
26650   LIBS="-linet $LIBS"
26651
26652 fi
26653
26654 fi
26655
26656
26657 TCPW_MSG="no"
26658 WRAPLIBS=""
26659
26660 # Check whether --with-tcp-wrappers was given.
26661 if test "${with_tcp_wrappers+set}" = set; then
26662   withval=$with_tcp_wrappers;
26663        if test "x$withval" != "xno" ; then
26664           saved_LIBS="$LIBS"
26665           LIBS="$saved_LIBS -lwrap"
26666           { echo "$as_me:$LINENO: checking for libwrap" >&5
26667 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26668           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26669 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26670 if test "${ac_cv_search_nanosleep+set}" = set; then
26671   echo $ECHO_N "(cached) $ECHO_C" >&6
26672 else
26673   ac_func_search_save_LIBS=$LIBS
26674 cat >conftest.$ac_ext <<_ACEOF
26675 /* confdefs.h.  */
26676 _ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h.  */
26680
26681 /* Override any GCC internal prototype to avoid an error.
26682    Use char because int might match the return type of a GCC
26683    builtin and then its argument prototype would still apply.  */
26684 #ifdef __cplusplus
26685 extern "C"
26686 #endif
26687 char nanosleep ();
26688 int
26689 main ()
26690 {
26691 return nanosleep ();
26692   ;
26693   return 0;
26694 }
26695 _ACEOF
26696 for ac_lib in '' rt; do
26697   if test -z "$ac_lib"; then
26698     ac_res="none required"
26699   else
26700     ac_res=-l$ac_lib
26701     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26702   fi
26703   rm -f conftest.$ac_objext conftest$ac_exeext
26704 if { (ac_try="$ac_link"
26705 case "(($ac_try" in
26706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26707   *) ac_try_echo=$ac_try;;
26708 esac
26709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26710   (eval "$ac_link") 2>conftest.er1
26711   ac_status=$?
26712   grep -v '^ *+' conftest.er1 >conftest.err
26713   rm -f conftest.er1
26714   cat conftest.err >&5
26715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716   (exit $ac_status); } && {
26717          test -z "$ac_c_werror_flag" ||
26718          test ! -s conftest.err
26719        } && test -s conftest$ac_exeext &&
26720        $as_test_x conftest$ac_exeext; then
26721   ac_cv_search_nanosleep=$ac_res
26722 else
26723   echo "$as_me: failed program was:" >&5
26724 sed 's/^/| /' conftest.$ac_ext >&5
26725
26726
26727 fi
26728
26729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26730       conftest$ac_exeext
26731   if test "${ac_cv_search_nanosleep+set}" = set; then
26732   break
26733 fi
26734 done
26735 if test "${ac_cv_search_nanosleep+set}" = set; then
26736   :
26737 else
26738   ac_cv_search_nanosleep=no
26739 fi
26740 rm conftest.$ac_ext
26741 LIBS=$ac_func_search_save_LIBS
26742 fi
26743 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26744 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26745 ac_res=$ac_cv_search_nanosleep
26746 if test "$ac_res" != no; then
26747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26748
26749 fi
26750
26751           cat >conftest.$ac_ext <<_ACEOF
26752 /* confdefs.h.  */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h.  */
26757
26758                #include <sys/types.h>
26759                #include <tcpd.h>
26760                int deny_severity = 0;
26761                int allow_severity = 0;
26762                struct request_info *req;
26763
26764 int
26765 main ()
26766 {
26767
26768                 hosts_access(req);
26769
26770   ;
26771   return 0;
26772 }
26773 _ACEOF
26774 rm -f conftest.$ac_objext conftest$ac_exeext
26775 if { (ac_try="$ac_link"
26776 case "(($ac_try" in
26777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26778   *) ac_try_echo=$ac_try;;
26779 esac
26780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26781   (eval "$ac_link") 2>conftest.er1
26782   ac_status=$?
26783   grep -v '^ *+' conftest.er1 >conftest.err
26784   rm -f conftest.er1
26785   cat conftest.err >&5
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); } && {
26788          test -z "$ac_c_werror_flag" ||
26789          test ! -s conftest.err
26790        } && test -s conftest$ac_exeext &&
26791        $as_test_x conftest$ac_exeext; then
26792
26793                  { echo "$as_me:$LINENO: result: yes" >&5
26794 echo "${ECHO_T}yes" >&6; }
26795
26796 cat >>confdefs.h <<\_ACEOF
26797 #define HAVE_LIBWRAP 1
26798 _ACEOF
26799
26800                  TCPW_MSG="yes"
26801                  LIBS="$saved_LIBS"
26802                  WRAPLIBS="-lwrap"
26803
26804 else
26805   echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26807
26808
26809                  LIBS="$saved_LIBS -lwrap -lnsl"
26810                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26811                  cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817
26818                        #include <sys/types.h>
26819                        #include <tcpd.h>
26820                        int deny_severity = 0;
26821                        int allow_severity = 0;
26822                        struct request_info *req;
26823
26824 int
26825 main ()
26826 {
26827
26828                        hosts_access(req);
26829
26830   ;
26831   return 0;
26832 }
26833 _ACEOF
26834 rm -f conftest.$ac_objext conftest$ac_exeext
26835 if { (ac_try="$ac_link"
26836 case "(($ac_try" in
26837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26838   *) ac_try_echo=$ac_try;;
26839 esac
26840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26841   (eval "$ac_link") 2>conftest.er1
26842   ac_status=$?
26843   grep -v '^ *+' conftest.er1 >conftest.err
26844   rm -f conftest.er1
26845   cat conftest.err >&5
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); } && {
26848          test -z "$ac_c_werror_flag" ||
26849          test ! -s conftest.err
26850        } && test -s conftest$ac_exeext &&
26851        $as_test_x conftest$ac_exeext; then
26852
26853                       { echo "$as_me:$LINENO: result: yes" >&5
26854 echo "${ECHO_T}yes" >&6; }
26855
26856 cat >>confdefs.h <<\_ACEOF
26857 #define HAVE_LIBWRAP 1
26858 _ACEOF
26859
26860                       TCPW_MSG="yes"
26861                       LIBS="$saved_LIBS"
26862                       WRAPLIBS="-lwrap"
26863
26864 else
26865   echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26867
26868
26869                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26870 echo "$as_me: error: *** libwrap missing" >&2;}
26871    { (exit 1); exit 1; }; }
26872
26873
26874 fi
26875
26876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26877       conftest$ac_exeext conftest.$ac_ext
26878
26879
26880 fi
26881
26882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26883       conftest$ac_exeext conftest.$ac_ext
26884        fi
26885
26886
26887 fi
26888
26889
26890 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26891 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26892
26893 # Check whether --with-openssl was given.
26894 if test "${with_openssl+set}" = set; then
26895   withval=$with_openssl;
26896         with_openssl_directory=${withval}
26897
26898
26899 fi
26900
26901
26902 if test "x$with_openssl_directory" != "xno"; then
26903    OPENSSL_LIBS="-lssl -lcrypto"
26904    OPENSSL_INC=""
26905
26906    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26907       #
26908       # Make sure the $with_openssl_directory also makes sense
26909       #
26910       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26911          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26912          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26913       fi
26914    fi
26915
26916    saved_LIBS="${LIBS}"
26917    saved_CFLAGS="${CFLAGS}"
26918    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26919    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26920
26921    cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h.  */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h.  */
26927
26928           #include <openssl/ssl.h>
26929
26930 int
26931 main ()
26932 {
26933
26934            CRYPTO_set_id_callback(NULL);
26935
26936   ;
26937   return 0;
26938 }
26939 _ACEOF
26940 rm -f conftest.$ac_objext conftest$ac_exeext
26941 if { (ac_try="$ac_link"
26942 case "(($ac_try" in
26943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944   *) ac_try_echo=$ac_try;;
26945 esac
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947   (eval "$ac_link") 2>conftest.er1
26948   ac_status=$?
26949   grep -v '^ *+' conftest.er1 >conftest.err
26950   rm -f conftest.er1
26951   cat conftest.err >&5
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); } && {
26954          test -z "$ac_c_werror_flag" ||
26955          test ! -s conftest.err
26956        } && test -s conftest$ac_exeext &&
26957        $as_test_x conftest$ac_exeext; then
26958
26959           support_tls="yes"
26960           support_crypto="yes"
26961
26962 else
26963   echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26965
26966
26967           support_tls="no"
26968
26969
26970 fi
26971
26972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26973       conftest$ac_exeext conftest.$ac_ext
26974
26975    cat >conftest.$ac_ext <<_ACEOF
26976 /* confdefs.h.  */
26977 _ACEOF
26978 cat confdefs.h >>conftest.$ac_ext
26979 cat >>conftest.$ac_ext <<_ACEOF
26980 /* end confdefs.h.  */
26981
26982           #include <openssl/evp.h>
26983
26984 int
26985 main ()
26986 {
26987
26988           EVP_sha512();
26989
26990   ;
26991   return 0;
26992 }
26993 _ACEOF
26994 rm -f conftest.$ac_objext conftest$ac_exeext
26995 if { (ac_try="$ac_link"
26996 case "(($ac_try" in
26997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998   *) ac_try_echo=$ac_try;;
26999 esac
27000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001   (eval "$ac_link") 2>conftest.er1
27002   ac_status=$?
27003   grep -v '^ *+' conftest.er1 >conftest.err
27004   rm -f conftest.er1
27005   cat conftest.err >&5
27006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007   (exit $ac_status); } && {
27008          test -z "$ac_c_werror_flag" ||
27009          test ! -s conftest.err
27010        } && test -s conftest$ac_exeext &&
27011        $as_test_x conftest$ac_exeext; then
27012
27013           ac_cv_openssl_sha2="yes"
27014
27015 else
27016   echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.$ac_ext >&5
27018
27019
27020           ac_cv_openssl_sha2="no"
27021
27022
27023 fi
27024
27025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27026       conftest$ac_exeext conftest.$ac_ext
27027
27028                cat >conftest.$ac_ext <<_ACEOF
27029 /* confdefs.h.  */
27030 _ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h.  */
27034
27035           #include <openssl/evp.h>
27036
27037 int
27038 main ()
27039 {
27040
27041           EVP_aes_192_cbc();
27042
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (ac_try="$ac_link"
27049 case "(($ac_try" in
27050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051   *) ac_try_echo=$ac_try;;
27052 esac
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054   (eval "$ac_link") 2>conftest.er1
27055   ac_status=$?
27056   grep -v '^ *+' conftest.er1 >conftest.err
27057   rm -f conftest.er1
27058   cat conftest.err >&5
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } && {
27061          test -z "$ac_c_werror_flag" ||
27062          test ! -s conftest.err
27063        } && test -s conftest$ac_exeext &&
27064        $as_test_x conftest$ac_exeext; then
27065
27066           ac_cv_openssl_export="no"
27067
27068 else
27069   echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27071
27072
27073           ac_cv_openssl_export="yes"
27074
27075
27076 fi
27077
27078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27079       conftest$ac_exeext conftest.$ac_ext
27080
27081    LIBS="${saved_LIBS}"
27082    CFLAGS="${saved_CFLAGS}"
27083
27084    if test "$support_tls" = "yes"; then
27085
27086 cat >>confdefs.h <<\_ACEOF
27087 #define HAVE_OPENSSL 1
27088 _ACEOF
27089
27090
27091 cat >>confdefs.h <<\_ACEOF
27092 #define HAVE_TLS 1
27093 _ACEOF
27094
27095
27096 cat >>confdefs.h <<\_ACEOF
27097 #define HAVE_CRYPTO 1
27098 _ACEOF
27099
27100    fi
27101
27102    if test "$ac_cv_openssl_sha2" = "yes"; then
27103
27104 cat >>confdefs.h <<\_ACEOF
27105 #define HAVE_SHA2 1
27106 _ACEOF
27107
27108    fi
27109
27110    if test "$ac_cv_openssl_export" = "yes"; then
27111
27112 cat >>confdefs.h <<\_ACEOF
27113 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27114 _ACEOF
27115
27116    fi
27117 else
27118    support_tls="no"
27119    support_crypto="no"
27120    OPENSSL_LIBS=""
27121    OPENSSL_INC=""
27122 fi
27123
27124 { echo "$as_me:$LINENO: result: $support_tls" >&5
27125 echo "${ECHO_T}$support_tls" >&6; }
27126
27127
27128
27129 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27130 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27131 if test "${ac_cv_search_dlopen+set}" = set; then
27132   echo $ECHO_N "(cached) $ECHO_C" >&6
27133 else
27134   ac_func_search_save_LIBS=$LIBS
27135 cat >conftest.$ac_ext <<_ACEOF
27136 /* confdefs.h.  */
27137 _ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h.  */
27141
27142 /* Override any GCC internal prototype to avoid an error.
27143    Use char because int might match the return type of a GCC
27144    builtin and then its argument prototype would still apply.  */
27145 #ifdef __cplusplus
27146 extern "C"
27147 #endif
27148 char dlopen ();
27149 int
27150 main ()
27151 {
27152 return dlopen ();
27153   ;
27154   return 0;
27155 }
27156 _ACEOF
27157 for ac_lib in '' dl; do
27158   if test -z "$ac_lib"; then
27159     ac_res="none required"
27160   else
27161     ac_res=-l$ac_lib
27162     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27163   fi
27164   rm -f conftest.$ac_objext conftest$ac_exeext
27165 if { (ac_try="$ac_link"
27166 case "(($ac_try" in
27167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168   *) ac_try_echo=$ac_try;;
27169 esac
27170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171   (eval "$ac_link") 2>conftest.er1
27172   ac_status=$?
27173   grep -v '^ *+' conftest.er1 >conftest.err
27174   rm -f conftest.er1
27175   cat conftest.err >&5
27176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177   (exit $ac_status); } && {
27178          test -z "$ac_c_werror_flag" ||
27179          test ! -s conftest.err
27180        } && test -s conftest$ac_exeext &&
27181        $as_test_x conftest$ac_exeext; then
27182   ac_cv_search_dlopen=$ac_res
27183 else
27184   echo "$as_me: failed program was:" >&5
27185 sed 's/^/| /' conftest.$ac_ext >&5
27186
27187
27188 fi
27189
27190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27191       conftest$ac_exeext
27192   if test "${ac_cv_search_dlopen+set}" = set; then
27193   break
27194 fi
27195 done
27196 if test "${ac_cv_search_dlopen+set}" = set; then
27197   :
27198 else
27199   ac_cv_search_dlopen=no
27200 fi
27201 rm conftest.$ac_ext
27202 LIBS=$ac_func_search_save_LIBS
27203 fi
27204 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27205 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27206 ac_res=$ac_cv_search_dlopen
27207 if test "$ac_res" != no; then
27208   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27209
27210 fi
27211
27212
27213 working_dir=`eval echo ${prefix}/var/bacula/working`
27214
27215 # Check whether --with-working-dir was given.
27216 if test "${with_working_dir+set}" = set; then
27217   withval=$with_working_dir;
27218        if test "x$withval" != "xno" ; then
27219          working_dir=$withval
27220        fi
27221
27222
27223 fi
27224
27225
27226
27227
27228 archive_dir=/tmp
27229
27230 # Check whether --with-archivedir was given.
27231 if test "${with_archivedir+set}" = set; then
27232   withval=$with_archivedir;
27233        if test "x$withval" != "xno" ; then
27234           archivedir=$withval
27235        fi
27236
27237
27238 fi
27239
27240
27241
27242
27243 scriptdir=`eval echo ${sysconfdir}`
27244
27245 # Check whether --with-scriptdir was given.
27246 if test "${with_scriptdir+set}" = set; then
27247   withval=$with_scriptdir;
27248        if test "x$withval" != "xno" ; then
27249           scriptdir=$withval
27250        fi
27251
27252
27253 fi
27254
27255
27256
27257
27258 # ------------------------------------------
27259 # Where to place plugindir (script files)
27260 # ------------------------------------------
27261 plugindir=`eval echo ${sysconfdir}`
27262
27263 # Check whether --with-plugindir was given.
27264 if test "${with_plugindir+set}" = set; then
27265   withval=$with_plugindir;
27266        if test "x$withval" != "xno" ; then
27267           plugindir=$withval
27268        fi
27269
27270
27271 fi
27272
27273
27274
27275
27276 dump_email=root@localhost
27277
27278 # Check whether --with-dump-email was given.
27279 if test "${with_dump_email+set}" = set; then
27280   withval=$with_dump_email;
27281        if test "x$withval" != "xno" ; then
27282           dump_email=$withval
27283        fi
27284
27285
27286 fi
27287
27288
27289
27290
27291 job_email=root@localhost
27292
27293 # Check whether --with-job-email was given.
27294 if test "${with_job_email+set}" = set; then
27295   withval=$with_job_email;
27296        if test "x$withval" != "xno" ; then
27297           job_email=$withval
27298        fi
27299
27300
27301 fi
27302
27303
27304
27305
27306 smtp_host=localhost
27307
27308 # Check whether --with-smtp_host was given.
27309 if test "${with_smtp_host+set}" = set; then
27310   withval=$with_smtp_host;
27311        if test "x$withval" != "xno" ; then
27312           smtp_host=$withval
27313        fi
27314
27315
27316 fi
27317
27318
27319
27320
27321 piddir=/var/run
27322
27323 # Check whether --with-pid-dir was given.
27324 if test "${with_pid_dir+set}" = set; then
27325   withval=$with_pid_dir;
27326        if test "x$withval" != "xno" ; then
27327           piddir=$withval
27328        fi
27329
27330
27331 fi
27332
27333
27334 cat >>confdefs.h <<_ACEOF
27335 #define _PATH_BACULA_PIDDIR "$piddir"
27336 _ACEOF
27337
27338
27339
27340 subsysdir=/var/run/subsys
27341 if test -d /var/run/subsys; then
27342    subsysdir=/var/run/subsys
27343 elif test -d /var/lock/subsys; then
27344    subsysdir=/var/lock/subsys
27345 else
27346    subsysdir=/var/run/subsys
27347 fi
27348
27349 # Check whether --with-subsys-dir was given.
27350 if test "${with_subsys_dir+set}" = set; then
27351   withval=$with_subsys_dir;
27352        if test "x$withval" != "xno" ; then
27353           subsysdir=$withval
27354        fi
27355
27356
27357 fi
27358
27359
27360
27361
27362 baseport=9101
27363
27364 # Check whether --with-baseport was given.
27365 if test "${with_baseport+set}" = set; then
27366   withval=$with_baseport;
27367        if test "x$withval" != "xno" ; then
27368           baseport=$withval
27369        fi
27370
27371
27372 fi
27373
27374
27375
27376 dir_port=`expr $baseport`
27377 fd_port=`expr $baseport + 1`
27378 sd_port=`expr $fd_port + 1`
27379
27380
27381
27382
27383
27384 dir_password=
27385
27386 # Check whether --with-dir-password was given.
27387 if test "${with_dir_password+set}" = set; then
27388   withval=$with_dir_password;
27389        if test "x$withval" != "xno" ; then
27390           dir_password=$withval
27391        fi
27392
27393
27394 fi
27395
27396
27397 if test "x$dir_password" = "x" ; then
27398    if test "x$OPENSSL" = "xnone" ; then
27399       key=`autoconf/randpass 33`
27400    else
27401       key=`openssl rand -base64 33`
27402    fi
27403    dir_password=$key
27404 fi
27405
27406 fd_password=
27407
27408 # Check whether --with-fd-password was given.
27409 if test "${with_fd_password+set}" = set; then
27410   withval=$with_fd_password;
27411        if test "x$withval" != "xno" ; then
27412           fd_password=$withval
27413        fi
27414
27415
27416 fi
27417
27418
27419 if test "x$fd_password" = "x" ; then
27420    if test "x$OPENSSL" = "xnone" ; then
27421       key=`autoconf/randpass 37`
27422    else
27423       key=`openssl rand -base64 33`
27424    fi
27425    fd_password=$key
27426 fi
27427
27428 sd_password=
27429
27430 # Check whether --with-sd-password was given.
27431 if test "${with_sd_password+set}" = set; then
27432   withval=$with_sd_password;
27433        if test "x$withval" != "xno" ; then
27434           sd_password=$withval
27435        fi
27436
27437
27438 fi
27439
27440
27441 if test "x$sd_password" = "x" ; then
27442    if test "x$OPENSSL" = "xnone" ; then
27443       key=`autoconf/randpass 41`
27444    else
27445       key=`openssl rand -base64 33`
27446    fi
27447    sd_password=$key
27448 fi
27449
27450 mon_dir_password=
27451
27452 # Check whether --with-mon-dir-password was given.
27453 if test "${with_mon_dir_password+set}" = set; then
27454   withval=$with_mon_dir_password;
27455        if test "x$withval" != "xno" ; then
27456           mon_dir_password=$withval
27457        fi
27458
27459
27460 fi
27461
27462
27463 if test "x$mon_dir_password" = "x" ; then
27464    if test "x$OPENSSL" = "xnone" ; then
27465       key=`autoconf/randpass 33`
27466    else
27467       key=`openssl rand -base64 33`
27468    fi
27469    mon_dir_password=$key
27470 fi
27471
27472 mon_fd_password=
27473
27474 # Check whether --with-mon-fd-password was given.
27475 if test "${with_mon_fd_password+set}" = set; then
27476   withval=$with_mon_fd_password;
27477        if test "x$withval" != "xno" ; then
27478           mon_fd_password=$withval
27479        fi
27480
27481
27482 fi
27483
27484
27485 if test "x$mon_fd_password" = "x" ; then
27486    if test "x$OPENSSL" = "xnone" ; then
27487       key=`autoconf/randpass 37`
27488    else
27489       key=`openssl rand -base64 33`
27490    fi
27491    mon_fd_password=$key
27492 fi
27493
27494 mon_sd_password=
27495
27496 # Check whether --with-mon-sd-password was given.
27497 if test "${with_mon_sd_password+set}" = set; then
27498   withval=$with_mon_sd_password;
27499        if test "x$withval" != "xno" ; then
27500           mon_sd_password=$withval
27501        fi
27502
27503
27504 fi
27505
27506
27507 if test "x$mon_sd_password" = "x" ; then
27508    if test "x$OPENSSL" = "xnone" ; then
27509       key=`autoconf/randpass 41`
27510    else
27511       key=`openssl rand -base64 33`
27512    fi
27513    mon_sd_password=$key
27514 fi
27515
27516
27517
27518
27519
27520
27521
27522
27523 db_name=bacula
27524
27525 # Check whether --with-db_name was given.
27526 if test "${with_db_name+set}" = set; then
27527   withval=$with_db_name;
27528        if test "x$withval" != "x" ; then
27529           db_name=$withval
27530        fi
27531
27532
27533 fi
27534
27535
27536
27537 db_user=bacula
27538
27539 # Check whether --with-db_user was given.
27540 if test "${with_db_user+set}" = set; then
27541   withval=$with_db_user;
27542        if test "x$withval" != "x" ; then
27543           db_user=$withval
27544        fi
27545
27546
27547 fi
27548
27549
27550
27551 db_password=
27552
27553 # Check whether --with-db_password was given.
27554 if test "${with_db_password+set}" = set; then
27555   withval=$with_db_password;
27556        if test "x$withval" != "x" ; then
27557           db_password=$withval
27558        fi
27559
27560
27561 fi
27562
27563
27564
27565 db_port=" "
27566
27567 # Check whether --with-db_port was given.
27568 if test "${with_db_port+set}" = set; then
27569   withval=$with_db_port;
27570        if test "x$withval" != "x" ; then
27571           db_port=$withval
27572        fi
27573
27574
27575 fi
27576
27577
27578
27579 #
27580 # Handle users and groups for each daemon
27581 #
27582 dir_user=
27583
27584 # Check whether --with-dir_user was given.
27585 if test "${with_dir_user+set}" = set; then
27586   withval=$with_dir_user;
27587        if test "x$withval" != "x" ; then
27588            dir_user=$withval
27589        fi
27590
27591
27592 fi
27593
27594
27595 dir_group=
27596
27597 # Check whether --with-dir_group was given.
27598 if test "${with_dir_group+set}" = set; then
27599   withval=$with_dir_group;
27600        if test "x$withval" != "x" ; then
27601           dir_group=$withval
27602        fi
27603
27604
27605 fi
27606
27607
27608 sd_user=
27609
27610 # Check whether --with-sd_user was given.
27611 if test "${with_sd_user+set}" = set; then
27612   withval=$with_sd_user;
27613        if test "x$withval" != "x" ; then
27614           sd_user=$withval
27615        fi
27616
27617
27618 fi
27619
27620
27621 sd_group=
27622
27623 # Check whether --with-sd_group was given.
27624 if test "${with_sd_group+set}" = set; then
27625   withval=$with_sd_group;
27626        if test "x$withval" != "x" ; then
27627           sd_group=$withval
27628        fi
27629
27630
27631 fi
27632
27633
27634 fd_user=
27635
27636 # Check whether --with-fd_user was given.
27637 if test "${with_fd_user+set}" = set; then
27638   withval=$with_fd_user;
27639        if test "x$withval" != "x" ; then
27640           fd_user=$withval
27641        fi
27642
27643
27644 fi
27645
27646
27647 fd_group=
27648
27649 # Check whether --with-fd_group was given.
27650 if test "${with_fd_group+set}" = set; then
27651   withval=$with_fd_group;
27652        if test "x$withval" != "x" ; then
27653           fd_group=$withval
27654        fi
27655
27656
27657 fi
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667 SBINPERM=0754
27668
27669 # Check whether --with-sbin-perm was given.
27670 if test "${with_sbin_perm+set}" = set; then
27671   withval=$with_sbin_perm;
27672        if test "x$withval" != "x" ; then
27673           SBINPERM=$withval
27674        fi
27675
27676
27677 fi
27678
27679
27680
27681
27682 SQL_LIB=
27683
27684 db_found=no
27685 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27686 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27687
27688 # Check whether --with-postgresql was given.
27689 if test "${with_postgresql+set}" = set; then
27690   withval=$with_postgresql;
27691   if test "$withval" != "no"; then
27692       if test "$db_found" = "yes"; then
27693           { echo "$as_me:$LINENO: result: error" >&5
27694 echo "${ECHO_T}error" >&6; }
27695           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27696 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27697    { (exit 1); exit 1; }; };
27698       fi
27699       if test "$withval" = "yes"; then
27700           PG_CONFIG=`which pg_config`
27701           if test -n "$PG_CONFIG";then
27702               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27703               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27704               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27705           elif test -f /usr/local/include/libpq-fe.h; then
27706               POSTGRESQL_INCDIR=/usr/local/include
27707               if test -d /usr/local/lib64; then
27708                  POSTGRESQL_LIBDIR=/usr/local/lib64
27709               else
27710                  POSTGRESQL_LIBDIR=/usr/local/lib
27711               fi
27712               POSTGRESQL_BINDIR=/usr/local/bin
27713           elif test -f /usr/include/libpq-fe.h; then
27714               POSTGRESQL_INCDIR=/usr/include
27715               if test -d /usr/lib64; then
27716                  POSTGRESQL_LIBDIR=/usr/lib64
27717               else
27718                  POSTGRESQL_LIBDIR=/usr/lib
27719               fi
27720               POSTGRESQL_BINDIR=/usr/bin
27721           elif test -f /usr/include/pgsql/libpq-fe.h; then
27722               POSTGRESQL_INCDIR=/usr/include/pgsql
27723               if test -d /usr/lib64/pgsql; then
27724                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27725               else
27726                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27727               fi
27728               POSTGRESQL_BINDIR=/usr/bin
27729           elif test -f /usr/include/postgresql/libpq-fe.h; then
27730               POSTGRESQL_INCDIR=/usr/include/postgresql
27731               if test -d /usr/lib64/postgresql; then
27732                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27733               else
27734                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27735               fi
27736               POSTGRESQL_BINDIR=/usr/bin
27737           else
27738               { echo "$as_me:$LINENO: result: no" >&5
27739 echo "${ECHO_T}no" >&6; }
27740               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27741 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27742    { (exit 1); exit 1; }; }
27743           fi
27744       elif test -f $withval/include/libpq-fe.h; then
27745           POSTGRESQL_INCDIR=$withval/include
27746           POSTGRESQL_LIBDIR=$withval/lib
27747           POSTGRESQL_BINDIR=$withval/bin
27748       elif test -f $withval/include/postgresql/libpq-fe.h; then
27749           POSTGRESQL_INCDIR=$withval/include/postgresql
27750      if test -d $withval/lib64; then
27751          POSTGRESQL_LIBDIR=$withval/lib64
27752      else
27753          POSTGRESQL_LIBDIR=$withval/lib
27754      fi
27755           POSTGRESQL_BINDIR=$withval/bin
27756       else
27757           { echo "$as_me:$LINENO: result: no" >&5
27758 echo "${ECHO_T}no" >&6; }
27759           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27760 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27761    { (exit 1); exit 1; }; }
27762       fi
27763       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27764       { echo "$as_me:$LINENO: checking for crypt" >&5
27765 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27766 if test "${ac_cv_func_crypt+set}" = set; then
27767   echo $ECHO_N "(cached) $ECHO_C" >&6
27768 else
27769   cat >conftest.$ac_ext <<_ACEOF
27770 /* confdefs.h.  */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h.  */
27775 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27777 #define crypt innocuous_crypt
27778
27779 /* System header to define __stub macros and hopefully few prototypes,
27780     which can conflict with char crypt (); below.
27781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27782     <limits.h> exists even on freestanding compilers.  */
27783
27784 #ifdef __STDC__
27785 # include <limits.h>
27786 #else
27787 # include <assert.h>
27788 #endif
27789
27790 #undef crypt
27791
27792 /* Override any GCC internal prototype to avoid an error.
27793    Use char because int might match the return type of a GCC
27794    builtin and then its argument prototype would still apply.  */
27795 #ifdef __cplusplus
27796 extern "C"
27797 #endif
27798 char crypt ();
27799 /* The GNU C library defines this for functions which it implements
27800     to always fail with ENOSYS.  Some functions are actually named
27801     something starting with __ and the normal name is an alias.  */
27802 #if defined __stub_crypt || defined __stub___crypt
27803 choke me
27804 #endif
27805
27806 int
27807 main ()
27808 {
27809 return crypt ();
27810   ;
27811   return 0;
27812 }
27813 _ACEOF
27814 rm -f conftest.$ac_objext conftest$ac_exeext
27815 if { (ac_try="$ac_link"
27816 case "(($ac_try" in
27817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27818   *) ac_try_echo=$ac_try;;
27819 esac
27820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27821   (eval "$ac_link") 2>conftest.er1
27822   ac_status=$?
27823   grep -v '^ *+' conftest.er1 >conftest.err
27824   rm -f conftest.er1
27825   cat conftest.err >&5
27826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); } && {
27828          test -z "$ac_c_werror_flag" ||
27829          test ! -s conftest.err
27830        } && test -s conftest$ac_exeext &&
27831        $as_test_x conftest$ac_exeext; then
27832   ac_cv_func_crypt=yes
27833 else
27834   echo "$as_me: failed program was:" >&5
27835 sed 's/^/| /' conftest.$ac_ext >&5
27836
27837         ac_cv_func_crypt=no
27838 fi
27839
27840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27841       conftest$ac_exeext conftest.$ac_ext
27842 fi
27843 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27844 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27845 if test $ac_cv_func_crypt = yes; then
27846   :
27847 else
27848   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27849 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27850 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27851   echo $ECHO_N "(cached) $ECHO_C" >&6
27852 else
27853   ac_check_lib_save_LIBS=$LIBS
27854 LIBS="-lcrypt  $LIBS"
27855 cat >conftest.$ac_ext <<_ACEOF
27856 /* confdefs.h.  */
27857 _ACEOF
27858 cat confdefs.h >>conftest.$ac_ext
27859 cat >>conftest.$ac_ext <<_ACEOF
27860 /* end confdefs.h.  */
27861
27862 /* Override any GCC internal prototype to avoid an error.
27863    Use char because int might match the return type of a GCC
27864    builtin and then its argument prototype would still apply.  */
27865 #ifdef __cplusplus
27866 extern "C"
27867 #endif
27868 char crypt ();
27869 int
27870 main ()
27871 {
27872 return crypt ();
27873   ;
27874   return 0;
27875 }
27876 _ACEOF
27877 rm -f conftest.$ac_objext conftest$ac_exeext
27878 if { (ac_try="$ac_link"
27879 case "(($ac_try" in
27880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881   *) ac_try_echo=$ac_try;;
27882 esac
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884   (eval "$ac_link") 2>conftest.er1
27885   ac_status=$?
27886   grep -v '^ *+' conftest.er1 >conftest.err
27887   rm -f conftest.er1
27888   cat conftest.err >&5
27889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890   (exit $ac_status); } && {
27891          test -z "$ac_c_werror_flag" ||
27892          test ! -s conftest.err
27893        } && test -s conftest$ac_exeext &&
27894        $as_test_x conftest$ac_exeext; then
27895   ac_cv_lib_crypt_crypt=yes
27896 else
27897   echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27899
27900         ac_cv_lib_crypt_crypt=no
27901 fi
27902
27903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27904       conftest$ac_exeext conftest.$ac_ext
27905 LIBS=$ac_check_lib_save_LIBS
27906 fi
27907 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27908 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27909 if test $ac_cv_lib_crypt_crypt = yes; then
27910   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27911 fi
27912
27913 fi
27914
27915       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27916       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27917       SQL_BINDIR=$POSTGRESQL_BINDIR
27918       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27919
27920       cat >>confdefs.h <<\_ACEOF
27921 #define HAVE_POSTGRESQL 1
27922 _ACEOF
27923
27924       { echo "$as_me:$LINENO: result: yes" >&5
27925 echo "${ECHO_T}yes" >&6; }
27926       db_found=yes
27927       support_postgresql=yes
27928       db_type=PostgreSQL
27929       DB_TYPE=postgresql
27930   else
27931       { echo "$as_me:$LINENO: result: no" >&5
27932 echo "${ECHO_T}no" >&6; }
27933   fi
27934
27935 else
27936
27937   { echo "$as_me:$LINENO: result: no" >&5
27938 echo "${ECHO_T}no" >&6; }
27939
27940 fi
27941
27942
27943
27944
27945
27946
27947
27948
27949 db_found=no
27950 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27951 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27952
27953 # Check whether --with-mysql was given.
27954 if test "${with_mysql+set}" = set; then
27955   withval=$with_mysql;
27956   if test "$withval" != "no"; then
27957         if test "$withval" = "yes"; then
27958            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27959                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27960                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27961                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27962                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27963                    else
27964                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27965                    fi
27966                    MYSQL_BINDIR=/usr/local/mysql/bin
27967            elif test -f /usr/include/mysql/mysql.h; then
27968                    MYSQL_INCDIR=/usr/include/mysql
27969                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27970                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27971                            MYSQL_LIBDIR=/usr/lib64/mysql
27972                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27973                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27974                            MYSQL_LIBDIR=/usr/lib/mysql
27975                    else
27976                            MYSQL_LIBDIR=/usr/lib
27977                    fi
27978                    MYSQL_BINDIR=/usr/bin
27979            elif test -f /usr/include/mysql.h; then
27980                    MYSQL_INCDIR=/usr/include
27981                    if test -f /usr/lib64/libmysqlclient_r.a \
27982                         -o -f /usr/lib64/libmysqlclient_r.so; then
27983                            MYSQL_LIBDIR=/usr/lib64
27984                    else
27985                            MYSQL_LIBDIR=/usr/lib
27986                    fi
27987                    MYSQL_BINDIR=/usr/bin
27988            elif test -f /usr/local/include/mysql/mysql.h; then
27989                    MYSQL_INCDIR=/usr/local/include/mysql
27990                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27991                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27992                            MYSQL_LIBDIR=/usr/local/lib64/mysql
27993                    else
27994                            MYSQL_LIBDIR=/usr/local/lib/mysql
27995                    fi
27996                    MYSQL_BINDIR=/usr/local/bin
27997            elif test -f /usr/local/include/mysql.h; then
27998                    MYSQL_INCDIR=/usr/local/include
27999                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28000                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28001                            MYSQL_LIBDIR=/usr/local/lib64
28002                    else
28003                            MYSQL_LIBDIR=/usr/local/lib
28004                    fi
28005                    MYSQL_BINDIR=/usr/local/bin
28006            else
28007               { echo "$as_me:$LINENO: result: no" >&5
28008 echo "${ECHO_T}no" >&6; }
28009               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28010 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28011    { (exit 1); exit 1; }; }
28012            fi
28013         else
28014            if test -f $withval/include/mysql/mysql.h; then
28015               MYSQL_INCDIR=$withval/include/mysql
28016               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28017                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28018                  MYSQL_LIBDIR=$withval/lib64/mysql
28019               else
28020                  MYSQL_LIBDIR=$withval/lib/mysql
28021                  # Solaris ...
28022                  if test -f $withval/lib/libmysqlclient_r.so; then
28023                     MYSQL_LIBDIR=$withval/lib
28024                  fi
28025               fi
28026               MYSQL_BINDIR=$withval/bin
28027            elif test -f $withval/include/mysql.h; then
28028               MYSQL_INCDIR=$withval/include
28029               if test -f $withval/lib64/libmysqlclient_r.a \
28030                    -o -f $withval/lib64/libmysqlclient_r.so; then
28031                  MYSQL_LIBDIR=$withval/lib64
28032               else
28033                  MYSQL_LIBDIR=$withval/lib
28034               fi
28035               MYSQL_BINDIR=$withval/bin
28036            else
28037               { echo "$as_me:$LINENO: result: no" >&5
28038 echo "${ECHO_T}no" >&6; }
28039               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28040 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28041    { (exit 1); exit 1; }; }
28042            fi
28043         fi
28044     SQL_INCLUDE=-I$MYSQL_INCDIR
28045     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28046          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28047        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28048        cat >>confdefs.h <<\_ACEOF
28049 #define HAVE_THREAD_SAFE_MYSQL 1
28050 _ACEOF
28051
28052     fi
28053     SQL_BINDIR=$MYSQL_BINDIR
28054     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28055
28056     cat >>confdefs.h <<\_ACEOF
28057 #define HAVE_MYSQL 1
28058 _ACEOF
28059
28060     { echo "$as_me:$LINENO: result: yes" >&5
28061 echo "${ECHO_T}yes" >&6; }
28062     db_found=yes
28063     support_mysql=yes
28064     db_type=MySQL
28065     DB_TYPE=mysql
28066
28067   else
28068         { echo "$as_me:$LINENO: result: no" >&5
28069 echo "${ECHO_T}no" >&6; }
28070   fi
28071
28072
28073 fi
28074
28075
28076
28077 # Check whether --with-embedded-mysql was given.
28078 if test "${with_embedded_mysql+set}" = set; then
28079   withval=$with_embedded_mysql;
28080   if test "$withval" != "no"; then
28081         if test "$withval" = "yes"; then
28082                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28083                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28084                         if test -d /usr/local/mysql/lib64/mysql; then
28085                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28086                         else
28087                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28088                         fi
28089                         MYSQL_BINDIR=/usr/local/mysql/bin
28090                 elif test -f /usr/include/mysql/mysql.h; then
28091                         MYSQL_INCDIR=/usr/include/mysql
28092                         if test -d /usr/lib64/mysql; then
28093                                 MYSQL_LIBDIR=/usr/lib64/mysql
28094                         else
28095                                 MYSQL_LIBDIR=/usr/lib/mysql
28096                         fi
28097                         MYSQL_BINDIR=/usr/bin
28098                 elif test -f /usr/include/mysql.h; then
28099                         MYSQL_INCDIR=/usr/include
28100                         if test -d /usr/lib64; then
28101                                 MYSQL_LIBDIR=/usr/lib64
28102                         else
28103                                 MYSQL_LIBDIR=/usr/lib
28104                         fi
28105                         MYSQL_BINDIR=/usr/bin
28106                 elif test -f /usr/local/include/mysql/mysql.h; then
28107                         MYSQL_INCDIR=/usr/local/include/mysql
28108                         if test -d /usr/local/lib64/mysql; then
28109                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28110                         else
28111                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28112                         fi
28113                         MYSQL_BINDIR=/usr/local/bin
28114                 elif test -f /usr/local/include/mysql.h; then
28115                         MYSQL_INCDIR=/usr/local/include
28116                         if test -d /usr/local/lib64; then
28117                                 MYSQL_LIBDIR=/usr/local/lib64
28118                         else
28119                                 MYSQL_LIBDIR=/usr/local/lib
28120                         fi
28121                         MYSQL_BINDIR=/usr/local/bin
28122                 else
28123                    { echo "$as_me:$LINENO: result: no" >&5
28124 echo "${ECHO_T}no" >&6; }
28125                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28126 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28127    { (exit 1); exit 1; }; }
28128                 fi
28129         else
28130                 if test -f $withval/include/mysql/mysql.h; then
28131                         MYSQL_INCDIR=$withval/include/mysql
28132                         if test -d $withval/lib64/mysql; then
28133                                 MYSQL_LIBDIR=$withval/lib64/mysql
28134                         else
28135                                 MYSQL_LIBDIR=$withval/lib/mysql
28136                         fi
28137                         MYSQL_BINDIR=$withval/bin
28138                 elif test -f $withval/include/mysql.h; then
28139                         MYSQL_INCDIR=$withval/include
28140                         if test -d $withval/lib64; then
28141                                 MYSQL_LIBDIR=$withval/lib64
28142                         else
28143                                 MYSQL_LIBDIR=$withval/lib
28144                         fi
28145                         MYSQL_BINDIR=$withval/bin
28146                 else
28147                    { echo "$as_me:$LINENO: result: no" >&5
28148 echo "${ECHO_T}no" >&6; }
28149                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28150 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28151    { (exit 1); exit 1; }; }
28152                 fi
28153         fi
28154     SQL_INCLUDE=-I$MYSQL_INCDIR
28155     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28156     SQL_BINDIR=$MYSQL_BINDIR
28157     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28158
28159     cat >>confdefs.h <<\_ACEOF
28160 #define HAVE_MYSQL 1
28161 _ACEOF
28162
28163     cat >>confdefs.h <<\_ACEOF
28164 #define HAVE_EMBEDDED_MYSQL 1
28165 _ACEOF
28166
28167     { echo "$as_me:$LINENO: result: yes" >&5
28168 echo "${ECHO_T}yes" >&6; }
28169     db_found=yes
28170     support_mysql=yes
28171     db_type=MySQL
28172     DB_TYPE=mysql
28173
28174   else
28175         { echo "$as_me:$LINENO: result: no" >&5
28176 echo "${ECHO_T}no" >&6; }
28177   fi
28178
28179
28180 fi
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191 db_found=no
28192 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28193 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28194
28195 # Check whether --with-sqlite3 was given.
28196 if test "${with_sqlite3+set}" = set; then
28197   withval=$with_sqlite3;
28198   if test "$withval" != "no"; then
28199      if test "$withval" = "yes"; then
28200         if test -f /usr/local/include/sqlite3.h; then
28201            SQLITE_INCDIR=/usr/local/include
28202            if test -d /usr/local/lib64; then
28203               SQLITE_LIBDIR=/usr/local/lib64
28204            else
28205               SQLITE_LIBDIR=/usr/local/lib
28206            fi
28207            SQLITE_BINDIR=/usr/local/bin
28208         elif test -f /usr/include/sqlite3.h; then
28209            SQLITE_INCDIR=/usr/include
28210            if test -d /usr/lib64; then
28211               SQLITE_LIBDIR=/usr/lib64
28212            else
28213               SQLITE_LIBDIR=/usr/lib
28214            fi
28215            SQLITE_BINDIR=/usr/bin
28216         elif test -f $prefix/include/sqlite3.h; then
28217            SQLITE_INCDIR=$prefix/include
28218            if test -d $prefix/lib64; then
28219               SQLITE_LIBDIR=$prefix/lib64
28220            else
28221               SQLITE_LIBDIR=$prefix/lib
28222            fi
28223            SQLITE_BINDIR=$prefix/bin
28224         else
28225            { echo "$as_me:$LINENO: result: no" >&5
28226 echo "${ECHO_T}no" >&6; }
28227            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28228 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28229    { (exit 1); exit 1; }; }
28230         fi
28231      else
28232         if test -f $withval/sqlite3.h; then
28233            SQLITE_INCDIR=$withval
28234            SQLITE_LIBDIR=$withval
28235            SQLITE_BINDIR=$withval
28236         elif test -f $withval/include/sqlite3.h; then
28237            SQLITE_INCDIR=$withval/include
28238            if test -d $withval/lib64; then
28239               SQLITE_LIBDIR=$withval/lib64
28240            else
28241               SQLITE_LIBDIR=$withval/lib
28242            fi
28243            SQLITE_BINDIR=$withval/bin
28244         else
28245            { echo "$as_me:$LINENO: result: no" >&5
28246 echo "${ECHO_T}no" >&6; }
28247            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28248 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28249    { (exit 1); exit 1; }; }
28250         fi
28251      fi
28252      SQL_INCLUDE=-I$SQLITE_INCDIR
28253      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28254      SQL_BINDIR=$SQLITE_BINDIR
28255      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28256
28257      cat >>confdefs.h <<\_ACEOF
28258 #define HAVE_SQLITE3 1
28259 _ACEOF
28260
28261      { echo "$as_me:$LINENO: result: yes" >&5
28262 echo "${ECHO_T}yes" >&6; }
28263      db_found=yes
28264      support_sqlite3=yes
28265      db_type=SQLite3
28266      DB_TYPE=sqlite3
28267
28268   else
28269      { echo "$as_me:$LINENO: result: no" >&5
28270 echo "${ECHO_T}no" >&6; }
28271   fi
28272
28273 else
28274
28275   { echo "$as_me:$LINENO: result: no" >&5
28276 echo "${ECHO_T}no" >&6; }
28277
28278 fi
28279
28280
28281
28282
28283
28284
28285
28286
28287 db_found=no
28288 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28289 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28290
28291 # Check whether --with-sqlite was given.
28292 if test "${with_sqlite+set}" = set; then
28293   withval=$with_sqlite;
28294   if test "$withval" != "no"; then
28295      if test "$withval" = "yes"; then
28296         if test -f /usr/local/include/sqlite.h; then
28297            SQLITE_INCDIR=/usr/local/include
28298            if test -d /usr/local/lib64; then
28299               SQLITE_LIBDIR=/usr/local/lib64
28300            else
28301               SQLITE_LIBDIR=/usr/local/lib
28302            fi
28303            SQLITE_BINDIR=/usr/local/bin
28304         elif test -f /usr/include/sqlite.h; then
28305            SQLITE_INCDIR=/usr/include
28306            if test -d /usr/lib64; then
28307               SQLITE_LIBDIR=/usr/lib64
28308            else
28309               SQLITE_LIBDIR=/usr/lib
28310            fi
28311            SQLITE_BINDIR=/usr/bin
28312         elif test -f $prefix/include/sqlite.h; then
28313            SQLITE_INCDIR=$prefix/include
28314            if test -d $prefix/lib64; then
28315               SQLITE_LIBDIR=$prefix/lib64
28316            else
28317               SQLITE_LIBDIR=$prefix/lib
28318            fi
28319            SQLITE_BINDIR=$prefix/bin
28320         else
28321            { echo "$as_me:$LINENO: result: no" >&5
28322 echo "${ECHO_T}no" >&6; }
28323            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28324 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28325    { (exit 1); exit 1; }; }
28326         fi
28327      else
28328         if test -f $withval/sqlite.h; then
28329            SQLITE_INCDIR=$withval
28330            SQLITE_LIBDIR=$withval
28331            SQLITE_BINDIR=$withval
28332         elif test -f $withval/include/sqlite.h; then
28333            SQLITE_INCDIR=$withval/include
28334            if test -d $withval/lib64; then
28335               SQLITE_LIBDIR=$withval/lib64
28336            else
28337               SQLITE_LIBDIR=$withval/lib
28338            fi
28339            SQLITE_BINDIR=$withval/bin
28340         else
28341            { echo "$as_me:$LINENO: result: no" >&5
28342 echo "${ECHO_T}no" >&6; }
28343            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28344 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28345    { (exit 1); exit 1; }; }
28346         fi
28347      fi
28348      SQL_INCLUDE=-I$SQLITE_INCDIR
28349      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28350      SQL_BINDIR=$SQLITE_BINDIR
28351      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28352
28353      cat >>confdefs.h <<\_ACEOF
28354 #define HAVE_SQLITE 1
28355 _ACEOF
28356
28357      { echo "$as_me:$LINENO: result: yes" >&5
28358 echo "${ECHO_T}yes" >&6; }
28359      db_found=yes
28360      support_sqlite=yes
28361      db_type=SQLite
28362      DB_TYPE=sqlite
28363
28364   else
28365      { echo "$as_me:$LINENO: result: no" >&5
28366 echo "${ECHO_T}no" >&6; }
28367   fi
28368
28369 else
28370
28371   { echo "$as_me:$LINENO: result: no" >&5
28372 echo "${ECHO_T}no" >&6; }
28373
28374 fi
28375
28376
28377
28378
28379
28380
28381
28382
28383 db_found=no
28384 { echo "$as_me:$LINENO: checking for DBI support" >&5
28385 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28386
28387 # Check whether --with-dbi was given.
28388 if test "${with_dbi+set}" = set; then
28389   withval=$with_dbi;
28390   if test "$withval" != "no"; then
28391      if test "$withval" = "yes"; then
28392         if test -f /usr/local/include/dbi/dbi.h; then
28393            DBI_INCDIR=/usr/local/dbi/include
28394            if test -d /usr/local/lib64; then
28395               DBI_LIBDIR=/usr/local/lib64
28396            else
28397               DBI_LIBDIR=/usr/local/lib
28398            fi
28399            DBI_BINDIR=/usr/local/bin
28400         elif test -f /usr/include/dbi/dbi.h; then
28401            DBI_INCDIR=/usr/include
28402            if test -d /usr/lib64; then
28403               DBI_LIBDIR=/usr/lib64
28404            else
28405               DBI_LIBDIR=/usr/lib
28406            fi
28407            DBI_BINDIR=/usr/bin
28408         elif test -f $prefix/include/dbi/dbi.h; then
28409            DBI_INCDIR=$prefix/include
28410            if test -d $prefix/lib64; then
28411               DBI_LIBDIR=$prefix/lib64
28412            else
28413               DBI_LIBDIR=$prefix/lib
28414            fi
28415            DBI_BINDIR=$prefix/bin
28416         else
28417            { echo "$as_me:$LINENO: result: no" >&5
28418 echo "${ECHO_T}no" >&6; }
28419            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28420 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28421    { (exit 1); exit 1; }; }
28422         fi
28423         if test -d /usr/local/lib/dbd; then
28424            DRIVERDIR=/usr/local/lib/dbd
28425            if test -d /usr/local/lib64/dbd; then
28426               DRIVERDIR=/usr/local/lib64/dbd
28427            else
28428               DRIVERDIR=/usr/local/lib/dbd
28429            fi
28430         elif test -d /usr/lib/dbd; then
28431            DRIVERDIR=/usr/lib/dbd
28432            if test -d /usr/lib64/dbd; then
28433               DRIVERDIR=/usr/lib64/dbd
28434            else
28435               DRIVERDIR=/usr/lib/dbd
28436            fi
28437         elif test -d $prefix/lib/dbd; then
28438            if test -d $prefix/lib64/dbd; then
28439               DRIVERDIR=$prefix/lib64/dbd
28440            else
28441               DRIVERDIR=$prefix/lib/dbd
28442            fi
28443         else
28444            { echo "$as_me:$LINENO: result: no" >&5
28445 echo "${ECHO_T}no" >&6; }
28446            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28447 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28448    { (exit 1); exit 1; }; }
28449         fi
28450      else
28451         if test -f $withval/dbi.h; then
28452            DBI_INCDIR=$withval
28453            DBI_LIBDIR=$withval
28454            DBI_BINDIR=$withval
28455         elif test -f $withval/include/dbi/dbi.h; then
28456            DBI_INCDIR=$withval/include
28457            if test -d $withval/lib64; then
28458               DBI_LIBDIR=$withval/lib64
28459            else
28460               DBI_LIBDIR=$withval/lib
28461            fi
28462            DBI_BINDIR=$withval/bin
28463         else
28464            { echo "$as_me:$LINENO: result: no" >&5
28465 echo "${ECHO_T}no" >&6; }
28466            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28467 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28468    { (exit 1); exit 1; }; }
28469         fi
28470         if test -d $withval/dbd; then
28471            DRIVERDIR=$withval/dbd
28472         elif test -d $withval/lib/; then
28473            if test -d $withval/lib64/dbd; then
28474               DRIVERDIR=$withval/lib64/dbd
28475            else
28476               DRIVERDIR=$withval/lib/dbd
28477            fi
28478         else
28479            { echo "$as_me:$LINENO: result: no" >&5
28480 echo "${ECHO_T}no" >&6; }
28481            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28482 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28483    { (exit 1); exit 1; }; }
28484         fi
28485      fi
28486      SQL_INCLUDE=-I$DBI_INCDIR
28487      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28488      SQL_BINDIR=$DBI_BINDIR
28489      SQL_LIB=$DBI_LIBDIR/libdbi.a
28490      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28491
28492
28493 cat >>confdefs.h <<\_ACEOF
28494 #define HAVE_DBI 1
28495 _ACEOF
28496
28497      { echo "$as_me:$LINENO: result: yes" >&5
28498 echo "${ECHO_T}yes" >&6; }
28499      db_found=yes
28500      support_dbi=yes
28501      db_type=DBI
28502      DB_TYPE=dbi
28503      uncomment_dbi=" "
28504
28505   else
28506      { echo "$as_me:$LINENO: result: no" >&5
28507 echo "${ECHO_T}no" >&6; }
28508   fi
28509
28510 else
28511
28512   { echo "$as_me:$LINENO: result: no" >&5
28513 echo "${ECHO_T}no" >&6; }
28514
28515 fi
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526 db_found=no
28527 db_prog=no
28528 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28529 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28530
28531 # Check whether --with-dbi-driver was given.
28532 if test "${with_dbi_driver+set}" = set; then
28533   withval=$with_dbi_driver;
28534   if test "$withval" != "no"; then
28535      case $withval in
28536         "mysql")
28537            db_prog="mysql"
28538            if test -f /usr/local/mysql/bin/mysql; then
28539               SQL_BINDIR=/usr/local/mysql/bin
28540               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28541                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28542                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28543               else
28544                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28545               fi
28546            elif test -f /usr/bin/mysql; then
28547               SQL_BINDIR=/usr/bin
28548               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28549                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28550                   SQL_LIBDIR=/usr/lib64/mysql
28551               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28552                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28553                   SQL_LIBDIR=/usr/lib/mysql
28554               else
28555                   SQL_LIBDIR=/usr/lib
28556               fi
28557            elif test -f /usr/local/bin/mysql; then
28558               SQL_BINDIR=/usr/local/bin
28559               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28560                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28561                   SQL_LIBDIR=/usr/local/lib64/mysql
28562               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28563                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28564                   SQL_LIBDIR=/usr/local/lib/mysql
28565               else
28566                   SQL_LIBDIR=/usr/local/lib
28567               fi
28568            elif test -f $withval/bin/mysql; then
28569               SQL_BINDIR=$withval/bin
28570               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28571                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28572                   SQL_LIBDIR=$withval/lib64/mysql
28573               elif test -f $withval/lib64/libmysqlclient_r.a \
28574                   -o -f $withval/lib64/libmysqlclient_r.so; then
28575                   SQL_LIBDIR=$withval/lib64
28576               elif test -f $withval/lib/libmysqlclient_r.a \
28577                   -o -f $withval/lib/libmysqlclient_r.so; then
28578                   SQL_LIBDIR=$withval/lib/
28579               else
28580                   SQL_LIBDIR=$withval/lib/mysql
28581               fi
28582            else
28583               { echo "$as_me:$LINENO: result: no" >&5
28584 echo "${ECHO_T}no" >&6; }
28585               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28586 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28587    { (exit 1); exit 1; }; }
28588            fi
28589            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28590         ;;
28591         "postgresql")
28592            db_prog="postgresql"
28593            PG_CONFIG=`which pg_config`
28594            if test -n "$PG_CONFIG"; then
28595               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28596               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28597            elif test -f /usr/local/bin/psql; then
28598               SQL_BINDIR=/usr/local/bin
28599               if test -d /usr/local/lib64; then
28600                  SQL_LIBDIR=/usr/local/lib64
28601               else
28602                  SQL_LIBDIR=/usr/local/lib
28603               fi
28604            elif test -f /usr/bin/psql; then
28605               SQL_BINDIR=/usr/local/bin
28606               if test -d /usr/lib64/postgresql; then
28607                  SQL_LIBDIR=/usr/lib64/postgresql
28608               elif test -d /usr/lib/postgresql; then
28609                  SQL_LIBDIR=/usr/lib/postgresql
28610               elif test -d /usr/lib64; then
28611                  SQL_LIBDIR=/usr/lib64
28612               else
28613                  SQL_LIBDIR=/usr/lib
28614               fi
28615            elif test -f $withval/bin/psql; then
28616               SQL_BINDIR=$withval/bin
28617               if test -d $withval/lib64; then
28618                  SQL_LIBDIR=$withval/lib64
28619               else
28620                  SQL_LIBDIR=$withval/lib
28621               fi
28622            else
28623               { echo "$as_me:$LINENO: result: no" >&5
28624 echo "${ECHO_T}no" >&6; }
28625               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28626 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28627    { (exit 1); exit 1; }; }
28628            fi
28629            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28630         ;;
28631         "sqlite")
28632            db_prog="sqlite"
28633            if test -f /usr/local/bin/sqlite; then
28634               SQL_BINDIR=/usr/local/bin
28635               if test -d /usr/local/lib64; then
28636                  SQL_LIBDIR=/usr/local/lib64
28637               else
28638                  SQL_LIBDIR=/usr/local/lib
28639               fi
28640            elif test -f /usr/bin/sqlite; then
28641               SQL_BINDIR=/usr/bin
28642               if test -d /usr/lib64; then
28643                  SQL_LIBDIR=/usr/lib64
28644               else
28645                  SQL_LIBDIR=/usr/lib
28646               fi
28647            elif test -f $withval/bin/sqlite; then
28648               SQL_BINDIR=$withval/bin
28649               if test -d $withval/lib64; then
28650                  SQL_LIBDIR=$withval/lib64
28651               else
28652                  SQL_LIBDIR=$withval/lib
28653               fi
28654            else
28655               { echo "$as_me:$LINENO: result: no" >&5
28656 echo "${ECHO_T}no" >&6; }
28657               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28658 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28659    { (exit 1); exit 1; }; }
28660            fi
28661            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28662         ;;
28663         "sqlite3")
28664            db_prog="sqlite3"
28665            if test -f /usr/local/bin/sqlite3; then
28666               SQL_BINDIR=/usr/local/bin
28667               if test -d /usr/local/lib64; then
28668                  SQL_LIBDIR=/usr/local/lib64
28669               else
28670                  SQL_LIBDIR=/usr/local/lib
28671               fi
28672            elif test -f /usr/bin/sqlite3; then
28673               SQL_BINDIR=/usr/bin
28674               if test -d /usr/lib64; then
28675                  SQL_LIBDIR=/usr/lib64
28676               else
28677                  SQL_LIBDIR=/usr/lib
28678               fi
28679            elif test -f $withval/bin/sqlite3; then
28680               SQL_BINDIR=$withval/bin
28681               if test -d $withval/lib64; then
28682                  SQL_LIBDIR=$withval/lib64
28683               else
28684                  SQL_LIBDIR=$withval/lib
28685               fi
28686            else
28687               { echo "$as_me:$LINENO: result: no" >&5
28688 echo "${ECHO_T}no" >&6; }
28689               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28690 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28691    { (exit 1); exit 1; }; }
28692            fi
28693            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28694         ;;
28695         *)
28696            { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28699 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28700    { (exit 1); exit 1; }; }
28701         ;;
28702      esac
28703
28704      { echo "$as_me:$LINENO: result: yes" >&5
28705 echo "${ECHO_T}yes" >&6; }
28706      DB_PROG=$db_prog
28707   else
28708      { echo "$as_me:$LINENO: result: no" >&5
28709 echo "${ECHO_T}no" >&6; }
28710   fi
28711
28712 else
28713
28714   { echo "$as_me:$LINENO: result: no" >&5
28715 echo "${ECHO_T}no" >&6; }
28716
28717 fi
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728 support_batch_insert=no
28729 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28730 pkg=$?
28731 if test $pkg = 0; then
28732    support_batch_insert=yes
28733    # Check whether --enable-batch-insert was given.
28734 if test "${enable_batch_insert+set}" = set; then
28735   enableval=$enable_batch_insert;
28736           if test x$enableval = xno; then
28737              support_batch_insert=no
28738           else
28739              support_batch_insert=yes
28740           fi
28741
28742
28743 fi
28744
28745 fi
28746
28747 if test x$DB_TYPE = xpostgresql; then
28748    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28749    pkg=$?
28750    if test $pkg != 0; then
28751       support_batch_insert=no
28752    fi
28753 fi
28754
28755 if test x$DB_TYPE = xdbi; then
28756    DB_TYPE=$DB_PROG
28757    db_type=$DB_PROG
28758    pkg=1
28759       if test $DB_PROG = postgresql; then
28760       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28761       pkg=$?
28762    fi
28763
28764    if test $DB_PROG = mysql; then
28765       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28766       pkg=$?
28767    fi
28768
28769    if test $DB_PROG = sqlite3; then
28770       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28771       pkg=$?
28772    fi
28773
28774    if test $pkg = 0; then
28775       # Check whether --enable-batch-insert was given.
28776 if test "${enable_batch_insert+set}" = set; then
28777   enableval=$enable_batch_insert;
28778              if test x$enableval = xno; then
28779                 support_batch_insert=no
28780              else
28781                 support_batch_insert=yes
28782              fi
28783
28784
28785 fi
28786
28787    fi
28788 else
28789       uncomment_dbi="#"
28790 fi
28791
28792
28793
28794 if test $support_batch_insert = yes ; then
28795
28796 cat >>confdefs.h <<\_ACEOF
28797 #define HAVE_BATCH_FILE_INSERT 1
28798 _ACEOF
28799
28800 fi
28801
28802 cat >>confdefs.h <<\_ACEOF
28803 #define PROTOTYPES 1
28804 _ACEOF
28805
28806
28807 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28808    if test -z "$CCOPTS"; then
28809       CCOPTS='-g -O2 -Wall'
28810    fi
28811    CFLAGS="$CCOPTS"
28812 fi
28813
28814
28815
28816 largefile_support="no"
28817
28818    # Check whether --enable-largefile was given.
28819 if test "${enable_largefile+set}" = set; then
28820   enableval=$enable_largefile;
28821 fi
28822
28823    if test "$enable_largefile" != no; then
28824      if test -n "$ac_tool_prefix"; then
28825   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28826 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28829 if test "${ac_cv_prog_GETCONF+set}" = set; then
28830   echo $ECHO_N "(cached) $ECHO_C" >&6
28831 else
28832   if test -n "$GETCONF"; then
28833   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28834 else
28835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28836 for as_dir in $PATH
28837 do
28838   IFS=$as_save_IFS
28839   test -z "$as_dir" && as_dir=.
28840   for ac_exec_ext in '' $ac_executable_extensions; do
28841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28842     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28844     break 2
28845   fi
28846 done
28847 done
28848 IFS=$as_save_IFS
28849
28850 fi
28851 fi
28852 GETCONF=$ac_cv_prog_GETCONF
28853 if test -n "$GETCONF"; then
28854   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28855 echo "${ECHO_T}$GETCONF" >&6; }
28856 else
28857   { echo "$as_me:$LINENO: result: no" >&5
28858 echo "${ECHO_T}no" >&6; }
28859 fi
28860
28861
28862 fi
28863 if test -z "$ac_cv_prog_GETCONF"; then
28864   ac_ct_GETCONF=$GETCONF
28865   # Extract the first word of "getconf", so it can be a program name with args.
28866 set dummy getconf; ac_word=$2
28867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28869 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872   if test -n "$ac_ct_GETCONF"; then
28873   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28874 else
28875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28876 for as_dir in $PATH
28877 do
28878   IFS=$as_save_IFS
28879   test -z "$as_dir" && as_dir=.
28880   for ac_exec_ext in '' $ac_executable_extensions; do
28881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28882     ac_cv_prog_ac_ct_GETCONF="getconf"
28883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28884     break 2
28885   fi
28886 done
28887 done
28888 IFS=$as_save_IFS
28889
28890 fi
28891 fi
28892 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28893 if test -n "$ac_ct_GETCONF"; then
28894   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28895 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28896 else
28897   { echo "$as_me:$LINENO: result: no" >&5
28898 echo "${ECHO_T}no" >&6; }
28899 fi
28900
28901   if test "x$ac_ct_GETCONF" = x; then
28902     GETCONF=""
28903   else
28904     case $cross_compiling:$ac_tool_warned in
28905 yes:)
28906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28907 whose name does not start with the host triplet.  If you think this
28908 configuration is useful to you, please write to autoconf@gnu.org." >&5
28909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28910 whose name does not start with the host triplet.  If you think this
28911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28912 ac_tool_warned=yes ;;
28913 esac
28914     GETCONF=$ac_ct_GETCONF
28915   fi
28916 else
28917   GETCONF="$ac_cv_prog_GETCONF"
28918 fi
28919
28920      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28921 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28922 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28923   echo $ECHO_N "(cached) $ECHO_C" >&6
28924 else
28925   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28926         ac_cv_sys_largefile_CFLAGS=no
28927         case "$host_os" in
28928            # IRIX 6.2 and later require cc -n32.
28929            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28930              if test "$GCC" != yes; then
28931                ac_cv_sys_largefile_CFLAGS=-n32
28932              fi
28933              ac_save_CC="$CC"
28934              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28935              cat >conftest.$ac_ext <<_ACEOF
28936 /* confdefs.h.  */
28937 _ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h.  */
28941
28942 int
28943 main ()
28944 {
28945
28946   ;
28947   return 0;
28948 }
28949 _ACEOF
28950 rm -f conftest.$ac_objext conftest$ac_exeext
28951 if { (ac_try="$ac_link"
28952 case "(($ac_try" in
28953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28954   *) ac_try_echo=$ac_try;;
28955 esac
28956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28957   (eval "$ac_link") 2>conftest.er1
28958   ac_status=$?
28959   grep -v '^ *+' conftest.er1 >conftest.err
28960   rm -f conftest.er1
28961   cat conftest.err >&5
28962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963   (exit $ac_status); } && {
28964          test -z "$ac_c_werror_flag" ||
28965          test ! -s conftest.err
28966        } && test -s conftest$ac_exeext &&
28967        $as_test_x conftest$ac_exeext; then
28968   :
28969 else
28970   echo "$as_me: failed program was:" >&5
28971 sed 's/^/| /' conftest.$ac_ext >&5
28972
28973         ac_cv_sys_largefile_CFLAGS=no
28974 fi
28975
28976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28977       conftest$ac_exeext conftest.$ac_ext
28978              CC="$ac_save_CC"
28979            esac
28980       }
28981 fi
28982 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28983 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28984      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28985 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28986 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28987   echo $ECHO_N "(cached) $ECHO_C" >&6
28988 else
28989   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28990         ac_cv_sys_largefile_LDFLAGS=no
28991
28992       }
28993 fi
28994 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28995 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28996      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28997 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28998 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28999   echo $ECHO_N "(cached) $ECHO_C" >&6
29000 else
29001   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29002         ac_cv_sys_largefile_LIBS=no
29003
29004       }
29005 fi
29006 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29007 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29008
29009      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29010        case "$ac_flag" in
29011        no) ;;
29012        -D_FILE_OFFSET_BITS=*) ;;
29013        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29014        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29015        -D?* | -I?*)
29016          case "$ac_flag" in
29017    no) ;;
29018    ?*)
29019      case "$CPPFLAGS" in
29020      '') CPPFLAGS="$ac_flag" ;;
29021      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29022      esac ;;
29023    esac ;;
29024        *)
29025          case "$ac_flag" in
29026    no) ;;
29027    ?*)
29028      case "$CFLAGS" in
29029      '') CFLAGS="$ac_flag" ;;
29030      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29031      esac ;;
29032    esac ;;
29033        esac
29034      done
29035      case "$ac_cv_sys_largefile_LDFLAGS" in
29036    no) ;;
29037    ?*)
29038      case "$LDFLAGS" in
29039      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29040      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29041      esac ;;
29042    esac
29043      case "$ac_cv_sys_largefile_LIBS" in
29044    no) ;;
29045    ?*)
29046      case "$LIBS" in
29047      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29048      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29049      esac ;;
29050    esac
29051      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29052 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29053 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29054   echo $ECHO_N "(cached) $ECHO_C" >&6
29055 else
29056   ac_cv_sys_file_offset_bits=no
29057       ac_cv_sys_file_offset_bits=64
29058       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29059         case "$ac_flag" in
29060         -D_FILE_OFFSET_BITS)
29061           ac_cv_sys_file_offset_bits=1 ;;
29062         -D_FILE_OFFSET_BITS=*)
29063           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29064         esac
29065       done
29066
29067 fi
29068 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29069 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29070    if test "$ac_cv_sys_file_offset_bits" != no; then
29071
29072 cat >>confdefs.h <<_ACEOF
29073 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29074 _ACEOF
29075
29076    fi
29077      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29078 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29079 if test "${ac_cv_sys_largefile_source+set}" = set; then
29080   echo $ECHO_N "(cached) $ECHO_C" >&6
29081 else
29082   ac_cv_sys_largefile_source=no
29083       ac_cv_sys_largefile_source=1
29084       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29085         case "$ac_flag" in
29086         -D_LARGEFILE_SOURCE)
29087           ac_cv_sys_largefile_source=1 ;;
29088         -D_LARGEFILE_SOURCE=*)
29089           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29090         esac
29091       done
29092
29093 fi
29094 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29095 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29096    if test "$ac_cv_sys_largefile_source" != no; then
29097
29098 cat >>confdefs.h <<_ACEOF
29099 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29100 _ACEOF
29101
29102    fi
29103      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29104 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29105 if test "${ac_cv_sys_large_files+set}" = set; then
29106   echo $ECHO_N "(cached) $ECHO_C" >&6
29107 else
29108   ac_cv_sys_large_files=no
29109       ac_cv_sys_large_files=1
29110       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29111         case "$ac_flag" in
29112         -D_LARGE_FILES)
29113           ac_cv_sys_large_files=1 ;;
29114         -D_LARGE_FILES=*)
29115           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29116         esac
29117       done
29118
29119 fi
29120 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29121 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29122    if test "$ac_cv_sys_large_files" != no; then
29123
29124 cat >>confdefs.h <<_ACEOF
29125 #define _LARGE_FILES $ac_cv_sys_large_files
29126 _ACEOF
29127
29128    fi
29129    fi
29130
29131
29132 { echo "$as_me:$LINENO: checking for X" >&5
29133 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29134
29135
29136 # Check whether --with-x was given.
29137 if test "${with_x+set}" = set; then
29138   withval=$with_x;
29139 fi
29140
29141 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29142 if test "x$with_x" = xno; then
29143   # The user explicitly disabled X.
29144   have_x=disabled
29145 else
29146   case $x_includes,$x_libraries in #(
29147     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29148 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29149    { (exit 1); exit 1; }; };; #(
29150     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29151   echo $ECHO_N "(cached) $ECHO_C" >&6
29152 else
29153   # One or both of the vars are not set, and there is no cached value.
29154 ac_x_includes=no ac_x_libraries=no
29155 rm -f -r conftest.dir
29156 if mkdir conftest.dir; then
29157   cd conftest.dir
29158   cat >Imakefile <<'_ACEOF'
29159 incroot:
29160         @echo incroot='${INCROOT}'
29161 usrlibdir:
29162         @echo usrlibdir='${USRLIBDIR}'
29163 libdir:
29164         @echo libdir='${LIBDIR}'
29165 _ACEOF
29166   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29167     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29168     for ac_var in incroot usrlibdir libdir; do
29169       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29170     done
29171     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29172     for ac_extension in a so sl; do
29173       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29174          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29175         ac_im_usrlibdir=$ac_im_libdir; break
29176       fi
29177     done
29178     # Screen out bogus values from the imake configuration.  They are
29179     # bogus both because they are the default anyway, and because
29180     # using them would break gcc on systems where it needs fixed includes.
29181     case $ac_im_incroot in
29182         /usr/include) ac_x_includes= ;;
29183         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29184     esac
29185     case $ac_im_usrlibdir in
29186         /usr/lib | /lib) ;;
29187         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29188     esac
29189   fi
29190   cd ..
29191   rm -f -r conftest.dir
29192 fi
29193
29194 # Standard set of common directories for X headers.
29195 # Check X11 before X11Rn because it is often a symlink to the current release.
29196 ac_x_header_dirs='
29197 /usr/X11/include
29198 /usr/X11R6/include
29199 /usr/X11R5/include
29200 /usr/X11R4/include
29201
29202 /usr/include/X11
29203 /usr/include/X11R6
29204 /usr/include/X11R5
29205 /usr/include/X11R4
29206
29207 /usr/local/X11/include
29208 /usr/local/X11R6/include
29209 /usr/local/X11R5/include
29210 /usr/local/X11R4/include
29211
29212 /usr/local/include/X11
29213 /usr/local/include/X11R6
29214 /usr/local/include/X11R5
29215 /usr/local/include/X11R4
29216
29217 /usr/X386/include
29218 /usr/x386/include
29219 /usr/XFree86/include/X11
29220
29221 /usr/include
29222 /usr/local/include
29223 /usr/unsupported/include
29224 /usr/athena/include
29225 /usr/local/x11r5/include
29226 /usr/lpp/Xamples/include
29227
29228 /usr/openwin/include
29229 /usr/openwin/share/include'
29230
29231 if test "$ac_x_includes" = no; then
29232   # Guess where to find include files, by looking for Xlib.h.
29233   # First, try using that file with no special directory specified.
29234   cat >conftest.$ac_ext <<_ACEOF
29235 /* confdefs.h.  */
29236 _ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h.  */
29240 #include <X11/Xlib.h>
29241 _ACEOF
29242 if { (ac_try="$ac_cpp conftest.$ac_ext"
29243 case "(($ac_try" in
29244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245   *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29249   ac_status=$?
29250   grep -v '^ *+' conftest.er1 >conftest.err
29251   rm -f conftest.er1
29252   cat conftest.err >&5
29253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254   (exit $ac_status); } >/dev/null && {
29255          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29256          test ! -s conftest.err
29257        }; then
29258   # We can compile using X headers with no special include directory.
29259 ac_x_includes=
29260 else
29261   echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29263
29264   for ac_dir in $ac_x_header_dirs; do
29265   if test -r "$ac_dir/X11/Xlib.h"; then
29266     ac_x_includes=$ac_dir
29267     break
29268   fi
29269 done
29270 fi
29271
29272 rm -f conftest.err conftest.$ac_ext
29273 fi # $ac_x_includes = no
29274
29275 if test "$ac_x_libraries" = no; then
29276   # Check for the libraries.
29277   # See if we find them without any special options.
29278   # Don't add to $LIBS permanently.
29279   ac_save_LIBS=$LIBS
29280   LIBS="-lX11 $LIBS"
29281   cat >conftest.$ac_ext <<_ACEOF
29282 /* confdefs.h.  */
29283 _ACEOF
29284 cat confdefs.h >>conftest.$ac_ext
29285 cat >>conftest.$ac_ext <<_ACEOF
29286 /* end confdefs.h.  */
29287 #include <X11/Xlib.h>
29288 int
29289 main ()
29290 {
29291 XrmInitialize ()
29292   ;
29293   return 0;
29294 }
29295 _ACEOF
29296 rm -f conftest.$ac_objext conftest$ac_exeext
29297 if { (ac_try="$ac_link"
29298 case "(($ac_try" in
29299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300   *) ac_try_echo=$ac_try;;
29301 esac
29302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303   (eval "$ac_link") 2>conftest.er1
29304   ac_status=$?
29305   grep -v '^ *+' conftest.er1 >conftest.err
29306   rm -f conftest.er1
29307   cat conftest.err >&5
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); } && {
29310          test -z "$ac_c_werror_flag" ||
29311          test ! -s conftest.err
29312        } && test -s conftest$ac_exeext &&
29313        $as_test_x conftest$ac_exeext; then
29314   LIBS=$ac_save_LIBS
29315 # We can link X programs with no special library path.
29316 ac_x_libraries=
29317 else
29318   echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29320
29321         LIBS=$ac_save_LIBS
29322 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29323 do
29324   # Don't even attempt the hair of trying to link an X program!
29325   for ac_extension in a so sl; do
29326     if test -r "$ac_dir/libX11.$ac_extension"; then
29327       ac_x_libraries=$ac_dir
29328       break 2
29329     fi
29330   done
29331 done
29332 fi
29333
29334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29335       conftest$ac_exeext conftest.$ac_ext
29336 fi # $ac_x_libraries = no
29337
29338 case $ac_x_includes,$ac_x_libraries in #(
29339   no,* | *,no | *\'*)
29340     # Didn't find X, or a directory has "'" in its name.
29341     ac_cv_have_x="have_x=no";; #(
29342   *)
29343     # Record where we found X for the cache.
29344     ac_cv_have_x="have_x=yes\
29345         ac_x_includes='$ac_x_includes'\
29346         ac_x_libraries='$ac_x_libraries'"
29347 esac
29348 fi
29349 ;; #(
29350     *) have_x=yes;;
29351   esac
29352   eval "$ac_cv_have_x"
29353 fi # $with_x != no
29354
29355 if test "$have_x" != yes; then
29356   { echo "$as_me:$LINENO: result: $have_x" >&5
29357 echo "${ECHO_T}$have_x" >&6; }
29358   no_x=yes
29359 else
29360   # If each of the values was on the command line, it overrides each guess.
29361   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29362   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29363   # Update the cache value to reflect the command line values.
29364   ac_cv_have_x="have_x=yes\
29365         ac_x_includes='$x_includes'\
29366         ac_x_libraries='$x_libraries'"
29367   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29368 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29369 fi
29370
29371 if test "$no_x" = yes; then
29372   # Not all programs may use this symbol, but it does not hurt to define it.
29373
29374 cat >>confdefs.h <<\_ACEOF
29375 #define X_DISPLAY_MISSING 1
29376 _ACEOF
29377
29378   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29379 else
29380   if test -n "$x_includes"; then
29381     X_CFLAGS="$X_CFLAGS -I$x_includes"
29382   fi
29383
29384   # It would also be nice to do this for all -L options, not just this one.
29385   if test -n "$x_libraries"; then
29386     X_LIBS="$X_LIBS -L$x_libraries"
29387     # For Solaris; some versions of Sun CC require a space after -R and
29388     # others require no space.  Words are not sufficient . . . .
29389     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29390 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29391     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29392     ac_xsave_c_werror_flag=$ac_c_werror_flag
29393     ac_c_werror_flag=yes
29394     cat >conftest.$ac_ext <<_ACEOF
29395 /* confdefs.h.  */
29396 _ACEOF
29397 cat confdefs.h >>conftest.$ac_ext
29398 cat >>conftest.$ac_ext <<_ACEOF
29399 /* end confdefs.h.  */
29400
29401 int
29402 main ()
29403 {
29404
29405   ;
29406   return 0;
29407 }
29408 _ACEOF
29409 rm -f conftest.$ac_objext conftest$ac_exeext
29410 if { (ac_try="$ac_link"
29411 case "(($ac_try" in
29412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413   *) ac_try_echo=$ac_try;;
29414 esac
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416   (eval "$ac_link") 2>conftest.er1
29417   ac_status=$?
29418   grep -v '^ *+' conftest.er1 >conftest.err
29419   rm -f conftest.er1
29420   cat conftest.err >&5
29421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422   (exit $ac_status); } && {
29423          test -z "$ac_c_werror_flag" ||
29424          test ! -s conftest.err
29425        } && test -s conftest$ac_exeext &&
29426        $as_test_x conftest$ac_exeext; then
29427   { echo "$as_me:$LINENO: result: no" >&5
29428 echo "${ECHO_T}no" >&6; }
29429        X_LIBS="$X_LIBS -R$x_libraries"
29430 else
29431   echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29433
29434         LIBS="$ac_xsave_LIBS -R $x_libraries"
29435        cat >conftest.$ac_ext <<_ACEOF
29436 /* confdefs.h.  */
29437 _ACEOF
29438 cat confdefs.h >>conftest.$ac_ext
29439 cat >>conftest.$ac_ext <<_ACEOF
29440 /* end confdefs.h.  */
29441
29442 int
29443 main ()
29444 {
29445
29446   ;
29447   return 0;
29448 }
29449 _ACEOF
29450 rm -f conftest.$ac_objext conftest$ac_exeext
29451 if { (ac_try="$ac_link"
29452 case "(($ac_try" in
29453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454   *) ac_try_echo=$ac_try;;
29455 esac
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457   (eval "$ac_link") 2>conftest.er1
29458   ac_status=$?
29459   grep -v '^ *+' conftest.er1 >conftest.err
29460   rm -f conftest.er1
29461   cat conftest.err >&5
29462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463   (exit $ac_status); } && {
29464          test -z "$ac_c_werror_flag" ||
29465          test ! -s conftest.err
29466        } && test -s conftest$ac_exeext &&
29467        $as_test_x conftest$ac_exeext; then
29468   { echo "$as_me:$LINENO: result: yes" >&5
29469 echo "${ECHO_T}yes" >&6; }
29470           X_LIBS="$X_LIBS -R $x_libraries"
29471 else
29472   echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29474
29475         { echo "$as_me:$LINENO: result: neither works" >&5
29476 echo "${ECHO_T}neither works" >&6; }
29477 fi
29478
29479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29480       conftest$ac_exeext conftest.$ac_ext
29481 fi
29482
29483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29484       conftest$ac_exeext conftest.$ac_ext
29485     ac_c_werror_flag=$ac_xsave_c_werror_flag
29486     LIBS=$ac_xsave_LIBS
29487   fi
29488
29489   # Check for system-dependent libraries X programs must link with.
29490   # Do this before checking for the system-independent R6 libraries
29491   # (-lICE), since we may need -lsocket or whatever for X linking.
29492
29493   if test "$ISC" = yes; then
29494     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29495   else
29496     # Martyn Johnson says this is needed for Ultrix, if the X
29497     # libraries were built with DECnet support.  And Karl Berry says
29498     # the Alpha needs dnet_stub (dnet does not exist).
29499     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29500     cat >conftest.$ac_ext <<_ACEOF
29501 /* confdefs.h.  */
29502 _ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h.  */
29506
29507 /* Override any GCC internal prototype to avoid an error.
29508    Use char because int might match the return type of a GCC
29509    builtin and then its argument prototype would still apply.  */
29510 #ifdef __cplusplus
29511 extern "C"
29512 #endif
29513 char XOpenDisplay ();
29514 int
29515 main ()
29516 {
29517 return XOpenDisplay ();
29518   ;
29519   return 0;
29520 }
29521 _ACEOF
29522 rm -f conftest.$ac_objext conftest$ac_exeext
29523 if { (ac_try="$ac_link"
29524 case "(($ac_try" in
29525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29526   *) ac_try_echo=$ac_try;;
29527 esac
29528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29529   (eval "$ac_link") 2>conftest.er1
29530   ac_status=$?
29531   grep -v '^ *+' conftest.er1 >conftest.err
29532   rm -f conftest.er1
29533   cat conftest.err >&5
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); } && {
29536          test -z "$ac_c_werror_flag" ||
29537          test ! -s conftest.err
29538        } && test -s conftest$ac_exeext &&
29539        $as_test_x conftest$ac_exeext; then
29540   :
29541 else
29542   echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29544
29545         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29546 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29547 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29548   echo $ECHO_N "(cached) $ECHO_C" >&6
29549 else
29550   ac_check_lib_save_LIBS=$LIBS
29551 LIBS="-ldnet  $LIBS"
29552 cat >conftest.$ac_ext <<_ACEOF
29553 /* confdefs.h.  */
29554 _ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h.  */
29558
29559 /* Override any GCC internal prototype to avoid an error.
29560    Use char because int might match the return type of a GCC
29561    builtin and then its argument prototype would still apply.  */
29562 #ifdef __cplusplus
29563 extern "C"
29564 #endif
29565 char dnet_ntoa ();
29566 int
29567 main ()
29568 {
29569 return dnet_ntoa ();
29570   ;
29571   return 0;
29572 }
29573 _ACEOF
29574 rm -f conftest.$ac_objext conftest$ac_exeext
29575 if { (ac_try="$ac_link"
29576 case "(($ac_try" in
29577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578   *) ac_try_echo=$ac_try;;
29579 esac
29580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581   (eval "$ac_link") 2>conftest.er1
29582   ac_status=$?
29583   grep -v '^ *+' conftest.er1 >conftest.err
29584   rm -f conftest.er1
29585   cat conftest.err >&5
29586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587   (exit $ac_status); } && {
29588          test -z "$ac_c_werror_flag" ||
29589          test ! -s conftest.err
29590        } && test -s conftest$ac_exeext &&
29591        $as_test_x conftest$ac_exeext; then
29592   ac_cv_lib_dnet_dnet_ntoa=yes
29593 else
29594   echo "$as_me: failed program was:" >&5
29595 sed 's/^/| /' conftest.$ac_ext >&5
29596
29597         ac_cv_lib_dnet_dnet_ntoa=no
29598 fi
29599
29600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29601       conftest$ac_exeext conftest.$ac_ext
29602 LIBS=$ac_check_lib_save_LIBS
29603 fi
29604 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29605 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29606 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29607   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29608 fi
29609
29610     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29611       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29612 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29613 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29614   echo $ECHO_N "(cached) $ECHO_C" >&6
29615 else
29616   ac_check_lib_save_LIBS=$LIBS
29617 LIBS="-ldnet_stub  $LIBS"
29618 cat >conftest.$ac_ext <<_ACEOF
29619 /* confdefs.h.  */
29620 _ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h.  */
29624
29625 /* Override any GCC internal prototype to avoid an error.
29626    Use char because int might match the return type of a GCC
29627    builtin and then its argument prototype would still apply.  */
29628 #ifdef __cplusplus
29629 extern "C"
29630 #endif
29631 char dnet_ntoa ();
29632 int
29633 main ()
29634 {
29635 return dnet_ntoa ();
29636   ;
29637   return 0;
29638 }
29639 _ACEOF
29640 rm -f conftest.$ac_objext conftest$ac_exeext
29641 if { (ac_try="$ac_link"
29642 case "(($ac_try" in
29643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29644   *) ac_try_echo=$ac_try;;
29645 esac
29646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29647   (eval "$ac_link") 2>conftest.er1
29648   ac_status=$?
29649   grep -v '^ *+' conftest.er1 >conftest.err
29650   rm -f conftest.er1
29651   cat conftest.err >&5
29652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653   (exit $ac_status); } && {
29654          test -z "$ac_c_werror_flag" ||
29655          test ! -s conftest.err
29656        } && test -s conftest$ac_exeext &&
29657        $as_test_x conftest$ac_exeext; then
29658   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29659 else
29660   echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29662
29663         ac_cv_lib_dnet_stub_dnet_ntoa=no
29664 fi
29665
29666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29667       conftest$ac_exeext conftest.$ac_ext
29668 LIBS=$ac_check_lib_save_LIBS
29669 fi
29670 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29671 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29672 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29673   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29674 fi
29675
29676     fi
29677 fi
29678
29679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29680       conftest$ac_exeext conftest.$ac_ext
29681     LIBS="$ac_xsave_LIBS"
29682
29683     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29684     # to get the SysV transport functions.
29685     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29686     # needs -lnsl.
29687     # The nsl library prevents programs from opening the X display
29688     # on Irix 5.2, according to T.E. Dickey.
29689     # The functions gethostbyname, getservbyname, and inet_addr are
29690     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29691     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29692 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29693 if test "${ac_cv_func_gethostbyname+set}" = set; then
29694   echo $ECHO_N "(cached) $ECHO_C" >&6
29695 else
29696   cat >conftest.$ac_ext <<_ACEOF
29697 /* confdefs.h.  */
29698 _ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h.  */
29702 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29704 #define gethostbyname innocuous_gethostbyname
29705
29706 /* System header to define __stub macros and hopefully few prototypes,
29707     which can conflict with char gethostbyname (); below.
29708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29709     <limits.h> exists even on freestanding compilers.  */
29710
29711 #ifdef __STDC__
29712 # include <limits.h>
29713 #else
29714 # include <assert.h>
29715 #endif
29716
29717 #undef gethostbyname
29718
29719 /* Override any GCC internal prototype to avoid an error.
29720    Use char because int might match the return type of a GCC
29721    builtin and then its argument prototype would still apply.  */
29722 #ifdef __cplusplus
29723 extern "C"
29724 #endif
29725 char gethostbyname ();
29726 /* The GNU C library defines this for functions which it implements
29727     to always fail with ENOSYS.  Some functions are actually named
29728     something starting with __ and the normal name is an alias.  */
29729 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29730 choke me
29731 #endif
29732
29733 int
29734 main ()
29735 {
29736 return gethostbyname ();
29737   ;
29738   return 0;
29739 }
29740 _ACEOF
29741 rm -f conftest.$ac_objext conftest$ac_exeext
29742 if { (ac_try="$ac_link"
29743 case "(($ac_try" in
29744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745   *) ac_try_echo=$ac_try;;
29746 esac
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748   (eval "$ac_link") 2>conftest.er1
29749   ac_status=$?
29750   grep -v '^ *+' conftest.er1 >conftest.err
29751   rm -f conftest.er1
29752   cat conftest.err >&5
29753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754   (exit $ac_status); } && {
29755          test -z "$ac_c_werror_flag" ||
29756          test ! -s conftest.err
29757        } && test -s conftest$ac_exeext &&
29758        $as_test_x conftest$ac_exeext; then
29759   ac_cv_func_gethostbyname=yes
29760 else
29761   echo "$as_me: failed program was:" >&5
29762 sed 's/^/| /' conftest.$ac_ext >&5
29763
29764         ac_cv_func_gethostbyname=no
29765 fi
29766
29767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29768       conftest$ac_exeext conftest.$ac_ext
29769 fi
29770 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29771 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29772
29773     if test $ac_cv_func_gethostbyname = no; then
29774       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29775 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29776 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29777   echo $ECHO_N "(cached) $ECHO_C" >&6
29778 else
29779   ac_check_lib_save_LIBS=$LIBS
29780 LIBS="-lnsl  $LIBS"
29781 cat >conftest.$ac_ext <<_ACEOF
29782 /* confdefs.h.  */
29783 _ACEOF
29784 cat confdefs.h >>conftest.$ac_ext
29785 cat >>conftest.$ac_ext <<_ACEOF
29786 /* end confdefs.h.  */
29787
29788 /* Override any GCC internal prototype to avoid an error.
29789    Use char because int might match the return type of a GCC
29790    builtin and then its argument prototype would still apply.  */
29791 #ifdef __cplusplus
29792 extern "C"
29793 #endif
29794 char gethostbyname ();
29795 int
29796 main ()
29797 {
29798 return gethostbyname ();
29799   ;
29800   return 0;
29801 }
29802 _ACEOF
29803 rm -f conftest.$ac_objext conftest$ac_exeext
29804 if { (ac_try="$ac_link"
29805 case "(($ac_try" in
29806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807   *) ac_try_echo=$ac_try;;
29808 esac
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810   (eval "$ac_link") 2>conftest.er1
29811   ac_status=$?
29812   grep -v '^ *+' conftest.er1 >conftest.err
29813   rm -f conftest.er1
29814   cat conftest.err >&5
29815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816   (exit $ac_status); } && {
29817          test -z "$ac_c_werror_flag" ||
29818          test ! -s conftest.err
29819        } && test -s conftest$ac_exeext &&
29820        $as_test_x conftest$ac_exeext; then
29821   ac_cv_lib_nsl_gethostbyname=yes
29822 else
29823   echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29825
29826         ac_cv_lib_nsl_gethostbyname=no
29827 fi
29828
29829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29830       conftest$ac_exeext conftest.$ac_ext
29831 LIBS=$ac_check_lib_save_LIBS
29832 fi
29833 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29834 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29835 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29836   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29837 fi
29838
29839       if test $ac_cv_lib_nsl_gethostbyname = no; then
29840         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29841 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29842 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29843   echo $ECHO_N "(cached) $ECHO_C" >&6
29844 else
29845   ac_check_lib_save_LIBS=$LIBS
29846 LIBS="-lbsd  $LIBS"
29847 cat >conftest.$ac_ext <<_ACEOF
29848 /* confdefs.h.  */
29849 _ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h.  */
29853
29854 /* Override any GCC internal prototype to avoid an error.
29855    Use char because int might match the return type of a GCC
29856    builtin and then its argument prototype would still apply.  */
29857 #ifdef __cplusplus
29858 extern "C"
29859 #endif
29860 char gethostbyname ();
29861 int
29862 main ()
29863 {
29864 return gethostbyname ();
29865   ;
29866   return 0;
29867 }
29868 _ACEOF
29869 rm -f conftest.$ac_objext conftest$ac_exeext
29870 if { (ac_try="$ac_link"
29871 case "(($ac_try" in
29872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873   *) ac_try_echo=$ac_try;;
29874 esac
29875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876   (eval "$ac_link") 2>conftest.er1
29877   ac_status=$?
29878   grep -v '^ *+' conftest.er1 >conftest.err
29879   rm -f conftest.er1
29880   cat conftest.err >&5
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); } && {
29883          test -z "$ac_c_werror_flag" ||
29884          test ! -s conftest.err
29885        } && test -s conftest$ac_exeext &&
29886        $as_test_x conftest$ac_exeext; then
29887   ac_cv_lib_bsd_gethostbyname=yes
29888 else
29889   echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29891
29892         ac_cv_lib_bsd_gethostbyname=no
29893 fi
29894
29895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29896       conftest$ac_exeext conftest.$ac_ext
29897 LIBS=$ac_check_lib_save_LIBS
29898 fi
29899 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29900 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29901 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29902   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29903 fi
29904
29905       fi
29906     fi
29907
29908     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29909     # socket/setsockopt and other routines are undefined under SCO ODT
29910     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29911     # on later versions), says Simon Leinen: it contains gethostby*
29912     # variants that don't use the name server (or something).  -lsocket
29913     # must be given before -lnsl if both are needed.  We assume that
29914     # if connect needs -lnsl, so does gethostbyname.
29915     { echo "$as_me:$LINENO: checking for connect" >&5
29916 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29917 if test "${ac_cv_func_connect+set}" = set; then
29918   echo $ECHO_N "(cached) $ECHO_C" >&6
29919 else
29920   cat >conftest.$ac_ext <<_ACEOF
29921 /* confdefs.h.  */
29922 _ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h.  */
29926 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29928 #define connect innocuous_connect
29929
29930 /* System header to define __stub macros and hopefully few prototypes,
29931     which can conflict with char connect (); below.
29932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29933     <limits.h> exists even on freestanding compilers.  */
29934
29935 #ifdef __STDC__
29936 # include <limits.h>
29937 #else
29938 # include <assert.h>
29939 #endif
29940
29941 #undef connect
29942
29943 /* Override any GCC internal prototype to avoid an error.
29944    Use char because int might match the return type of a GCC
29945    builtin and then its argument prototype would still apply.  */
29946 #ifdef __cplusplus
29947 extern "C"
29948 #endif
29949 char connect ();
29950 /* The GNU C library defines this for functions which it implements
29951     to always fail with ENOSYS.  Some functions are actually named
29952     something starting with __ and the normal name is an alias.  */
29953 #if defined __stub_connect || defined __stub___connect
29954 choke me
29955 #endif
29956
29957 int
29958 main ()
29959 {
29960 return connect ();
29961   ;
29962   return 0;
29963 }
29964 _ACEOF
29965 rm -f conftest.$ac_objext conftest$ac_exeext
29966 if { (ac_try="$ac_link"
29967 case "(($ac_try" in
29968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969   *) ac_try_echo=$ac_try;;
29970 esac
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972   (eval "$ac_link") 2>conftest.er1
29973   ac_status=$?
29974   grep -v '^ *+' conftest.er1 >conftest.err
29975   rm -f conftest.er1
29976   cat conftest.err >&5
29977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978   (exit $ac_status); } && {
29979          test -z "$ac_c_werror_flag" ||
29980          test ! -s conftest.err
29981        } && test -s conftest$ac_exeext &&
29982        $as_test_x conftest$ac_exeext; then
29983   ac_cv_func_connect=yes
29984 else
29985   echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29987
29988         ac_cv_func_connect=no
29989 fi
29990
29991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29992       conftest$ac_exeext conftest.$ac_ext
29993 fi
29994 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29995 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29996
29997     if test $ac_cv_func_connect = no; then
29998       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29999 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30000 if test "${ac_cv_lib_socket_connect+set}" = set; then
30001   echo $ECHO_N "(cached) $ECHO_C" >&6
30002 else
30003   ac_check_lib_save_LIBS=$LIBS
30004 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30005 cat >conftest.$ac_ext <<_ACEOF
30006 /* confdefs.h.  */
30007 _ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h.  */
30011
30012 /* Override any GCC internal prototype to avoid an error.
30013    Use char because int might match the return type of a GCC
30014    builtin and then its argument prototype would still apply.  */
30015 #ifdef __cplusplus
30016 extern "C"
30017 #endif
30018 char connect ();
30019 int
30020 main ()
30021 {
30022 return connect ();
30023   ;
30024   return 0;
30025 }
30026 _ACEOF
30027 rm -f conftest.$ac_objext conftest$ac_exeext
30028 if { (ac_try="$ac_link"
30029 case "(($ac_try" in
30030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30031   *) ac_try_echo=$ac_try;;
30032 esac
30033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30034   (eval "$ac_link") 2>conftest.er1
30035   ac_status=$?
30036   grep -v '^ *+' conftest.er1 >conftest.err
30037   rm -f conftest.er1
30038   cat conftest.err >&5
30039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040   (exit $ac_status); } && {
30041          test -z "$ac_c_werror_flag" ||
30042          test ! -s conftest.err
30043        } && test -s conftest$ac_exeext &&
30044        $as_test_x conftest$ac_exeext; then
30045   ac_cv_lib_socket_connect=yes
30046 else
30047   echo "$as_me: failed program was:" >&5
30048 sed 's/^/| /' conftest.$ac_ext >&5
30049
30050         ac_cv_lib_socket_connect=no
30051 fi
30052
30053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30054       conftest$ac_exeext conftest.$ac_ext
30055 LIBS=$ac_check_lib_save_LIBS
30056 fi
30057 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30058 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30059 if test $ac_cv_lib_socket_connect = yes; then
30060   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30061 fi
30062
30063     fi
30064
30065     # Guillermo Gomez says -lposix is necessary on A/UX.
30066     { echo "$as_me:$LINENO: checking for remove" >&5
30067 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30068 if test "${ac_cv_func_remove+set}" = set; then
30069   echo $ECHO_N "(cached) $ECHO_C" >&6
30070 else
30071   cat >conftest.$ac_ext <<_ACEOF
30072 /* confdefs.h.  */
30073 _ACEOF
30074 cat confdefs.h >>conftest.$ac_ext
30075 cat >>conftest.$ac_ext <<_ACEOF
30076 /* end confdefs.h.  */
30077 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30079 #define remove innocuous_remove
30080
30081 /* System header to define __stub macros and hopefully few prototypes,
30082     which can conflict with char remove (); below.
30083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30084     <limits.h> exists even on freestanding compilers.  */
30085
30086 #ifdef __STDC__
30087 # include <limits.h>
30088 #else
30089 # include <assert.h>
30090 #endif
30091
30092 #undef remove
30093
30094 /* Override any GCC internal prototype to avoid an error.
30095    Use char because int might match the return type of a GCC
30096    builtin and then its argument prototype would still apply.  */
30097 #ifdef __cplusplus
30098 extern "C"
30099 #endif
30100 char remove ();
30101 /* The GNU C library defines this for functions which it implements
30102     to always fail with ENOSYS.  Some functions are actually named
30103     something starting with __ and the normal name is an alias.  */
30104 #if defined __stub_remove || defined __stub___remove
30105 choke me
30106 #endif
30107
30108 int
30109 main ()
30110 {
30111 return remove ();
30112   ;
30113   return 0;
30114 }
30115 _ACEOF
30116 rm -f conftest.$ac_objext conftest$ac_exeext
30117 if { (ac_try="$ac_link"
30118 case "(($ac_try" in
30119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120   *) ac_try_echo=$ac_try;;
30121 esac
30122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123   (eval "$ac_link") 2>conftest.er1
30124   ac_status=$?
30125   grep -v '^ *+' conftest.er1 >conftest.err
30126   rm -f conftest.er1
30127   cat conftest.err >&5
30128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129   (exit $ac_status); } && {
30130          test -z "$ac_c_werror_flag" ||
30131          test ! -s conftest.err
30132        } && test -s conftest$ac_exeext &&
30133        $as_test_x conftest$ac_exeext; then
30134   ac_cv_func_remove=yes
30135 else
30136   echo "$as_me: failed program was:" >&5
30137 sed 's/^/| /' conftest.$ac_ext >&5
30138
30139         ac_cv_func_remove=no
30140 fi
30141
30142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30143       conftest$ac_exeext conftest.$ac_ext
30144 fi
30145 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30146 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30147
30148     if test $ac_cv_func_remove = no; then
30149       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30150 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30151 if test "${ac_cv_lib_posix_remove+set}" = set; then
30152   echo $ECHO_N "(cached) $ECHO_C" >&6
30153 else
30154   ac_check_lib_save_LIBS=$LIBS
30155 LIBS="-lposix  $LIBS"
30156 cat >conftest.$ac_ext <<_ACEOF
30157 /* confdefs.h.  */
30158 _ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h.  */
30162
30163 /* Override any GCC internal prototype to avoid an error.
30164    Use char because int might match the return type of a GCC
30165    builtin and then its argument prototype would still apply.  */
30166 #ifdef __cplusplus
30167 extern "C"
30168 #endif
30169 char remove ();
30170 int
30171 main ()
30172 {
30173 return remove ();
30174   ;
30175   return 0;
30176 }
30177 _ACEOF
30178 rm -f conftest.$ac_objext conftest$ac_exeext
30179 if { (ac_try="$ac_link"
30180 case "(($ac_try" in
30181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182   *) ac_try_echo=$ac_try;;
30183 esac
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185   (eval "$ac_link") 2>conftest.er1
30186   ac_status=$?
30187   grep -v '^ *+' conftest.er1 >conftest.err
30188   rm -f conftest.er1
30189   cat conftest.err >&5
30190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191   (exit $ac_status); } && {
30192          test -z "$ac_c_werror_flag" ||
30193          test ! -s conftest.err
30194        } && test -s conftest$ac_exeext &&
30195        $as_test_x conftest$ac_exeext; then
30196   ac_cv_lib_posix_remove=yes
30197 else
30198   echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30200
30201         ac_cv_lib_posix_remove=no
30202 fi
30203
30204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30205       conftest$ac_exeext conftest.$ac_ext
30206 LIBS=$ac_check_lib_save_LIBS
30207 fi
30208 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30209 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30210 if test $ac_cv_lib_posix_remove = yes; then
30211   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30212 fi
30213
30214     fi
30215
30216     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30217     { echo "$as_me:$LINENO: checking for shmat" >&5
30218 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30219 if test "${ac_cv_func_shmat+set}" = set; then
30220   echo $ECHO_N "(cached) $ECHO_C" >&6
30221 else
30222   cat >conftest.$ac_ext <<_ACEOF
30223 /* confdefs.h.  */
30224 _ACEOF
30225 cat confdefs.h >>conftest.$ac_ext
30226 cat >>conftest.$ac_ext <<_ACEOF
30227 /* end confdefs.h.  */
30228 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30230 #define shmat innocuous_shmat
30231
30232 /* System header to define __stub macros and hopefully few prototypes,
30233     which can conflict with char shmat (); below.
30234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30235     <limits.h> exists even on freestanding compilers.  */
30236
30237 #ifdef __STDC__
30238 # include <limits.h>
30239 #else
30240 # include <assert.h>
30241 #endif
30242
30243 #undef shmat
30244
30245 /* Override any GCC internal prototype to avoid an error.
30246    Use char because int might match the return type of a GCC
30247    builtin and then its argument prototype would still apply.  */
30248 #ifdef __cplusplus
30249 extern "C"
30250 #endif
30251 char shmat ();
30252 /* The GNU C library defines this for functions which it implements
30253     to always fail with ENOSYS.  Some functions are actually named
30254     something starting with __ and the normal name is an alias.  */
30255 #if defined __stub_shmat || defined __stub___shmat
30256 choke me
30257 #endif
30258
30259 int
30260 main ()
30261 {
30262 return shmat ();
30263   ;
30264   return 0;
30265 }
30266 _ACEOF
30267 rm -f conftest.$ac_objext conftest$ac_exeext
30268 if { (ac_try="$ac_link"
30269 case "(($ac_try" in
30270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271   *) ac_try_echo=$ac_try;;
30272 esac
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274   (eval "$ac_link") 2>conftest.er1
30275   ac_status=$?
30276   grep -v '^ *+' conftest.er1 >conftest.err
30277   rm -f conftest.er1
30278   cat conftest.err >&5
30279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280   (exit $ac_status); } && {
30281          test -z "$ac_c_werror_flag" ||
30282          test ! -s conftest.err
30283        } && test -s conftest$ac_exeext &&
30284        $as_test_x conftest$ac_exeext; then
30285   ac_cv_func_shmat=yes
30286 else
30287   echo "$as_me: failed program was:" >&5
30288 sed 's/^/| /' conftest.$ac_ext >&5
30289
30290         ac_cv_func_shmat=no
30291 fi
30292
30293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30294       conftest$ac_exeext conftest.$ac_ext
30295 fi
30296 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30297 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30298
30299     if test $ac_cv_func_shmat = no; then
30300       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30301 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30302 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30303   echo $ECHO_N "(cached) $ECHO_C" >&6
30304 else
30305   ac_check_lib_save_LIBS=$LIBS
30306 LIBS="-lipc  $LIBS"
30307 cat >conftest.$ac_ext <<_ACEOF
30308 /* confdefs.h.  */
30309 _ACEOF
30310 cat confdefs.h >>conftest.$ac_ext
30311 cat >>conftest.$ac_ext <<_ACEOF
30312 /* end confdefs.h.  */
30313
30314 /* Override any GCC internal prototype to avoid an error.
30315    Use char because int might match the return type of a GCC
30316    builtin and then its argument prototype would still apply.  */
30317 #ifdef __cplusplus
30318 extern "C"
30319 #endif
30320 char shmat ();
30321 int
30322 main ()
30323 {
30324 return shmat ();
30325   ;
30326   return 0;
30327 }
30328 _ACEOF
30329 rm -f conftest.$ac_objext conftest$ac_exeext
30330 if { (ac_try="$ac_link"
30331 case "(($ac_try" in
30332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30333   *) ac_try_echo=$ac_try;;
30334 esac
30335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30336   (eval "$ac_link") 2>conftest.er1
30337   ac_status=$?
30338   grep -v '^ *+' conftest.er1 >conftest.err
30339   rm -f conftest.er1
30340   cat conftest.err >&5
30341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342   (exit $ac_status); } && {
30343          test -z "$ac_c_werror_flag" ||
30344          test ! -s conftest.err
30345        } && test -s conftest$ac_exeext &&
30346        $as_test_x conftest$ac_exeext; then
30347   ac_cv_lib_ipc_shmat=yes
30348 else
30349   echo "$as_me: failed program was:" >&5
30350 sed 's/^/| /' conftest.$ac_ext >&5
30351
30352         ac_cv_lib_ipc_shmat=no
30353 fi
30354
30355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30356       conftest$ac_exeext conftest.$ac_ext
30357 LIBS=$ac_check_lib_save_LIBS
30358 fi
30359 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30360 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30361 if test $ac_cv_lib_ipc_shmat = yes; then
30362   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30363 fi
30364
30365     fi
30366   fi
30367
30368   # Check for libraries that X11R6 Xt/Xaw programs need.
30369   ac_save_LDFLAGS=$LDFLAGS
30370   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30371   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30372   # check for ICE first), but we must link in the order -lSM -lICE or
30373   # we get undefined symbols.  So assume we have SM if we have ICE.
30374   # These have to be linked with before -lX11, unlike the other
30375   # libraries we check for below, so use a different variable.
30376   # John Interrante, Karl Berry
30377   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30378 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30379 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30380   echo $ECHO_N "(cached) $ECHO_C" >&6
30381 else
30382   ac_check_lib_save_LIBS=$LIBS
30383 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30384 cat >conftest.$ac_ext <<_ACEOF
30385 /* confdefs.h.  */
30386 _ACEOF
30387 cat confdefs.h >>conftest.$ac_ext
30388 cat >>conftest.$ac_ext <<_ACEOF
30389 /* end confdefs.h.  */
30390
30391 /* Override any GCC internal prototype to avoid an error.
30392    Use char because int might match the return type of a GCC
30393    builtin and then its argument prototype would still apply.  */
30394 #ifdef __cplusplus
30395 extern "C"
30396 #endif
30397 char IceConnectionNumber ();
30398 int
30399 main ()
30400 {
30401 return IceConnectionNumber ();
30402   ;
30403   return 0;
30404 }
30405 _ACEOF
30406 rm -f conftest.$ac_objext conftest$ac_exeext
30407 if { (ac_try="$ac_link"
30408 case "(($ac_try" in
30409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410   *) ac_try_echo=$ac_try;;
30411 esac
30412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413   (eval "$ac_link") 2>conftest.er1
30414   ac_status=$?
30415   grep -v '^ *+' conftest.er1 >conftest.err
30416   rm -f conftest.er1
30417   cat conftest.err >&5
30418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419   (exit $ac_status); } && {
30420          test -z "$ac_c_werror_flag" ||
30421          test ! -s conftest.err
30422        } && test -s conftest$ac_exeext &&
30423        $as_test_x conftest$ac_exeext; then
30424   ac_cv_lib_ICE_IceConnectionNumber=yes
30425 else
30426   echo "$as_me: failed program was:" >&5
30427 sed 's/^/| /' conftest.$ac_ext >&5
30428
30429         ac_cv_lib_ICE_IceConnectionNumber=no
30430 fi
30431
30432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30433       conftest$ac_exeext conftest.$ac_ext
30434 LIBS=$ac_check_lib_save_LIBS
30435 fi
30436 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30437 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30438 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30439   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30440 fi
30441
30442   LDFLAGS=$ac_save_LDFLAGS
30443
30444 fi
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477 for ac_header in \
30478    assert.h \
30479    fcntl.h \
30480    grp.h \
30481    pwd.h \
30482    libc.h \
30483    limits.h \
30484    stdarg.h \
30485    stdlib.h \
30486    stdint.h \
30487    string.h \
30488    strings.h \
30489    termios.h \
30490    termcap.h \
30491    term.h \
30492    unistd.h \
30493    sys/bitypes.h \
30494    sys/byteorder.h \
30495    sys/ioctl.h \
30496    sys/select.h \
30497    sys/socket.h \
30498    sys/sockio.h \
30499    sys/stat.h \
30500    sys/time.h \
30501    sys/types.h \
30502    arpa/nameser.h \
30503    resolv.h \
30504    mtio.h \
30505    sys/mtio.h \
30506    sys/tape.h \
30507    regex.h \
30508
30509 do
30510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30512   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30515   echo $ECHO_N "(cached) $ECHO_C" >&6
30516 fi
30517 ac_res=`eval echo '${'$as_ac_Header'}'`
30518                { echo "$as_me:$LINENO: result: $ac_res" >&5
30519 echo "${ECHO_T}$ac_res" >&6; }
30520 else
30521   # Is the header compilable?
30522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30524 cat >conftest.$ac_ext <<_ACEOF
30525 /* confdefs.h.  */
30526 _ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h.  */
30530 $ac_includes_default
30531 #include <$ac_header>
30532 _ACEOF
30533 rm -f conftest.$ac_objext
30534 if { (ac_try="$ac_compile"
30535 case "(($ac_try" in
30536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537   *) ac_try_echo=$ac_try;;
30538 esac
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540   (eval "$ac_compile") 2>conftest.er1
30541   ac_status=$?
30542   grep -v '^ *+' conftest.er1 >conftest.err
30543   rm -f conftest.er1
30544   cat conftest.err >&5
30545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546   (exit $ac_status); } && {
30547          test -z "$ac_c_werror_flag" ||
30548          test ! -s conftest.err
30549        } && test -s conftest.$ac_objext; then
30550   ac_header_compiler=yes
30551 else
30552   echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30554
30555         ac_header_compiler=no
30556 fi
30557
30558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30560 echo "${ECHO_T}$ac_header_compiler" >&6; }
30561
30562 # Is the header present?
30563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30565 cat >conftest.$ac_ext <<_ACEOF
30566 /* confdefs.h.  */
30567 _ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h.  */
30571 #include <$ac_header>
30572 _ACEOF
30573 if { (ac_try="$ac_cpp conftest.$ac_ext"
30574 case "(($ac_try" in
30575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576   *) ac_try_echo=$ac_try;;
30577 esac
30578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30580   ac_status=$?
30581   grep -v '^ *+' conftest.er1 >conftest.err
30582   rm -f conftest.er1
30583   cat conftest.err >&5
30584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585   (exit $ac_status); } >/dev/null && {
30586          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30587          test ! -s conftest.err
30588        }; then
30589   ac_header_preproc=yes
30590 else
30591   echo "$as_me: failed program was:" >&5
30592 sed 's/^/| /' conftest.$ac_ext >&5
30593
30594   ac_header_preproc=no
30595 fi
30596
30597 rm -f conftest.err conftest.$ac_ext
30598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30599 echo "${ECHO_T}$ac_header_preproc" >&6; }
30600
30601 # So?  What about this header?
30602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30603   yes:no: )
30604     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30608     ac_header_preproc=yes
30609     ;;
30610   no:yes:* )
30611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30613     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30614 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30615     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30617     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30618 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30621     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30623
30624     ;;
30625 esac
30626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30629   echo $ECHO_N "(cached) $ECHO_C" >&6
30630 else
30631   eval "$as_ac_Header=\$ac_header_preproc"
30632 fi
30633 ac_res=`eval echo '${'$as_ac_Header'}'`
30634                { echo "$as_me:$LINENO: result: $ac_res" >&5
30635 echo "${ECHO_T}$ac_res" >&6; }
30636
30637 fi
30638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30639   cat >>confdefs.h <<_ACEOF
30640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30641 _ACEOF
30642
30643 fi
30644
30645 done
30646
30647 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30648 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30649 if test "${ac_cv_header_stdc+set}" = set; then
30650   echo $ECHO_N "(cached) $ECHO_C" >&6
30651 else
30652   cat >conftest.$ac_ext <<_ACEOF
30653 /* confdefs.h.  */
30654 _ACEOF
30655 cat confdefs.h >>conftest.$ac_ext
30656 cat >>conftest.$ac_ext <<_ACEOF
30657 /* end confdefs.h.  */
30658 #include <stdlib.h>
30659 #include <stdarg.h>
30660 #include <string.h>
30661 #include <float.h>
30662
30663 int
30664 main ()
30665 {
30666
30667   ;
30668   return 0;
30669 }
30670 _ACEOF
30671 rm -f conftest.$ac_objext
30672 if { (ac_try="$ac_compile"
30673 case "(($ac_try" in
30674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675   *) ac_try_echo=$ac_try;;
30676 esac
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678   (eval "$ac_compile") 2>conftest.er1
30679   ac_status=$?
30680   grep -v '^ *+' conftest.er1 >conftest.err
30681   rm -f conftest.er1
30682   cat conftest.err >&5
30683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684   (exit $ac_status); } && {
30685          test -z "$ac_c_werror_flag" ||
30686          test ! -s conftest.err
30687        } && test -s conftest.$ac_objext; then
30688   ac_cv_header_stdc=yes
30689 else
30690   echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.$ac_ext >&5
30692
30693         ac_cv_header_stdc=no
30694 fi
30695
30696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30697
30698 if test $ac_cv_header_stdc = yes; then
30699   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30700   cat >conftest.$ac_ext <<_ACEOF
30701 /* confdefs.h.  */
30702 _ACEOF
30703 cat confdefs.h >>conftest.$ac_ext
30704 cat >>conftest.$ac_ext <<_ACEOF
30705 /* end confdefs.h.  */
30706 #include <string.h>
30707
30708 _ACEOF
30709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30710   $EGREP "memchr" >/dev/null 2>&1; then
30711   :
30712 else
30713   ac_cv_header_stdc=no
30714 fi
30715 rm -f conftest*
30716
30717 fi
30718
30719 if test $ac_cv_header_stdc = yes; then
30720   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30721   cat >conftest.$ac_ext <<_ACEOF
30722 /* confdefs.h.  */
30723 _ACEOF
30724 cat confdefs.h >>conftest.$ac_ext
30725 cat >>conftest.$ac_ext <<_ACEOF
30726 /* end confdefs.h.  */
30727 #include <stdlib.h>
30728
30729 _ACEOF
30730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30731   $EGREP "free" >/dev/null 2>&1; then
30732   :
30733 else
30734   ac_cv_header_stdc=no
30735 fi
30736 rm -f conftest*
30737
30738 fi
30739
30740 if test $ac_cv_header_stdc = yes; then
30741   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30742   if test "$cross_compiling" = yes; then
30743   :
30744 else
30745   cat >conftest.$ac_ext <<_ACEOF
30746 /* confdefs.h.  */
30747 _ACEOF
30748 cat confdefs.h >>conftest.$ac_ext
30749 cat >>conftest.$ac_ext <<_ACEOF
30750 /* end confdefs.h.  */
30751 #include <ctype.h>
30752 #include <stdlib.h>
30753 #if ((' ' & 0x0FF) == 0x020)
30754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30756 #else
30757 # define ISLOWER(c) \
30758                    (('a' <= (c) && (c) <= 'i') \
30759                      || ('j' <= (c) && (c) <= 'r') \
30760                      || ('s' <= (c) && (c) <= 'z'))
30761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30762 #endif
30763
30764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30765 int
30766 main ()
30767 {
30768   int i;
30769   for (i = 0; i < 256; i++)
30770     if (XOR (islower (i), ISLOWER (i))
30771         || toupper (i) != TOUPPER (i))
30772       return 2;
30773   return 0;
30774 }
30775 _ACEOF
30776 rm -f conftest$ac_exeext
30777 if { (ac_try="$ac_link"
30778 case "(($ac_try" in
30779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780   *) ac_try_echo=$ac_try;;
30781 esac
30782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783   (eval "$ac_link") 2>&5
30784   ac_status=$?
30785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30787   { (case "(($ac_try" in
30788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789   *) ac_try_echo=$ac_try;;
30790 esac
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792   (eval "$ac_try") 2>&5
30793   ac_status=$?
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); }; }; then
30796   :
30797 else
30798   echo "$as_me: program exited with status $ac_status" >&5
30799 echo "$as_me: failed program was:" >&5
30800 sed 's/^/| /' conftest.$ac_ext >&5
30801
30802 ( exit $ac_status )
30803 ac_cv_header_stdc=no
30804 fi
30805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30806 fi
30807
30808
30809 fi
30810 fi
30811 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30812 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30813 if test $ac_cv_header_stdc = yes; then
30814
30815 cat >>confdefs.h <<\_ACEOF
30816 #define STDC_HEADERS 1
30817 _ACEOF
30818
30819 fi
30820
30821 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30822 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30823 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30824   echo $ECHO_N "(cached) $ECHO_C" >&6
30825 else
30826   cat >conftest.$ac_ext <<_ACEOF
30827 /* confdefs.h.  */
30828 _ACEOF
30829 cat confdefs.h >>conftest.$ac_ext
30830 cat >>conftest.$ac_ext <<_ACEOF
30831 /* end confdefs.h.  */
30832 #include <sys/types.h>
30833 int
30834 main ()
30835 {
30836 return makedev(0, 0);
30837   ;
30838   return 0;
30839 }
30840 _ACEOF
30841 rm -f conftest.$ac_objext conftest$ac_exeext
30842 if { (ac_try="$ac_link"
30843 case "(($ac_try" in
30844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30845   *) ac_try_echo=$ac_try;;
30846 esac
30847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30848   (eval "$ac_link") 2>conftest.er1
30849   ac_status=$?
30850   grep -v '^ *+' conftest.er1 >conftest.err
30851   rm -f conftest.er1
30852   cat conftest.err >&5
30853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854   (exit $ac_status); } && {
30855          test -z "$ac_c_werror_flag" ||
30856          test ! -s conftest.err
30857        } && test -s conftest$ac_exeext &&
30858        $as_test_x conftest$ac_exeext; then
30859   ac_cv_header_sys_types_h_makedev=yes
30860 else
30861   echo "$as_me: failed program was:" >&5
30862 sed 's/^/| /' conftest.$ac_ext >&5
30863
30864         ac_cv_header_sys_types_h_makedev=no
30865 fi
30866
30867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30868       conftest$ac_exeext conftest.$ac_ext
30869
30870 fi
30871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30872 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30873
30874 if test $ac_cv_header_sys_types_h_makedev = no; then
30875 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30876   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30877 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30878 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30879   echo $ECHO_N "(cached) $ECHO_C" >&6
30880 fi
30881 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30882 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30883 else
30884   # Is the header compilable?
30885 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30886 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30887 cat >conftest.$ac_ext <<_ACEOF
30888 /* confdefs.h.  */
30889 _ACEOF
30890 cat confdefs.h >>conftest.$ac_ext
30891 cat >>conftest.$ac_ext <<_ACEOF
30892 /* end confdefs.h.  */
30893 $ac_includes_default
30894 #include <sys/mkdev.h>
30895 _ACEOF
30896 rm -f conftest.$ac_objext
30897 if { (ac_try="$ac_compile"
30898 case "(($ac_try" in
30899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900   *) ac_try_echo=$ac_try;;
30901 esac
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903   (eval "$ac_compile") 2>conftest.er1
30904   ac_status=$?
30905   grep -v '^ *+' conftest.er1 >conftest.err
30906   rm -f conftest.er1
30907   cat conftest.err >&5
30908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909   (exit $ac_status); } && {
30910          test -z "$ac_c_werror_flag" ||
30911          test ! -s conftest.err
30912        } && test -s conftest.$ac_objext; then
30913   ac_header_compiler=yes
30914 else
30915   echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30917
30918         ac_header_compiler=no
30919 fi
30920
30921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30923 echo "${ECHO_T}$ac_header_compiler" >&6; }
30924
30925 # Is the header present?
30926 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30927 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30928 cat >conftest.$ac_ext <<_ACEOF
30929 /* confdefs.h.  */
30930 _ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h.  */
30934 #include <sys/mkdev.h>
30935 _ACEOF
30936 if { (ac_try="$ac_cpp conftest.$ac_ext"
30937 case "(($ac_try" in
30938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939   *) ac_try_echo=$ac_try;;
30940 esac
30941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30943   ac_status=$?
30944   grep -v '^ *+' conftest.er1 >conftest.err
30945   rm -f conftest.er1
30946   cat conftest.err >&5
30947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948   (exit $ac_status); } >/dev/null && {
30949          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30950          test ! -s conftest.err
30951        }; then
30952   ac_header_preproc=yes
30953 else
30954   echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30956
30957   ac_header_preproc=no
30958 fi
30959
30960 rm -f conftest.err conftest.$ac_ext
30961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30962 echo "${ECHO_T}$ac_header_preproc" >&6; }
30963
30964 # So?  What about this header?
30965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30966   yes:no: )
30967     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30968 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30969     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30970 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30971     ac_header_preproc=yes
30972     ;;
30973   no:yes:* )
30974     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30975 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30976     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
30978     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30979 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30980     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
30981 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30982     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30983 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30984     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30985 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30986
30987     ;;
30988 esac
30989 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30990 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30991 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30992   echo $ECHO_N "(cached) $ECHO_C" >&6
30993 else
30994   ac_cv_header_sys_mkdev_h=$ac_header_preproc
30995 fi
30996 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30997 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30998
30999 fi
31000 if test $ac_cv_header_sys_mkdev_h = yes; then
31001
31002 cat >>confdefs.h <<\_ACEOF
31003 #define MAJOR_IN_MKDEV 1
31004 _ACEOF
31005
31006 fi
31007
31008
31009
31010   if test $ac_cv_header_sys_mkdev_h = no; then
31011     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31012   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31013 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31014 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31015   echo $ECHO_N "(cached) $ECHO_C" >&6
31016 fi
31017 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31018 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31019 else
31020   # Is the header compilable?
31021 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31022 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31023 cat >conftest.$ac_ext <<_ACEOF
31024 /* confdefs.h.  */
31025 _ACEOF
31026 cat confdefs.h >>conftest.$ac_ext
31027 cat >>conftest.$ac_ext <<_ACEOF
31028 /* end confdefs.h.  */
31029 $ac_includes_default
31030 #include <sys/sysmacros.h>
31031 _ACEOF
31032 rm -f conftest.$ac_objext
31033 if { (ac_try="$ac_compile"
31034 case "(($ac_try" in
31035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036   *) ac_try_echo=$ac_try;;
31037 esac
31038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039   (eval "$ac_compile") 2>conftest.er1
31040   ac_status=$?
31041   grep -v '^ *+' conftest.er1 >conftest.err
31042   rm -f conftest.er1
31043   cat conftest.err >&5
31044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045   (exit $ac_status); } && {
31046          test -z "$ac_c_werror_flag" ||
31047          test ! -s conftest.err
31048        } && test -s conftest.$ac_objext; then
31049   ac_header_compiler=yes
31050 else
31051   echo "$as_me: failed program was:" >&5
31052 sed 's/^/| /' conftest.$ac_ext >&5
31053
31054         ac_header_compiler=no
31055 fi
31056
31057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31059 echo "${ECHO_T}$ac_header_compiler" >&6; }
31060
31061 # Is the header present?
31062 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31063 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31064 cat >conftest.$ac_ext <<_ACEOF
31065 /* confdefs.h.  */
31066 _ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h.  */
31070 #include <sys/sysmacros.h>
31071 _ACEOF
31072 if { (ac_try="$ac_cpp conftest.$ac_ext"
31073 case "(($ac_try" in
31074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075   *) ac_try_echo=$ac_try;;
31076 esac
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31079   ac_status=$?
31080   grep -v '^ *+' conftest.er1 >conftest.err
31081   rm -f conftest.er1
31082   cat conftest.err >&5
31083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084   (exit $ac_status); } >/dev/null && {
31085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31086          test ! -s conftest.err
31087        }; then
31088   ac_header_preproc=yes
31089 else
31090   echo "$as_me: failed program was:" >&5
31091 sed 's/^/| /' conftest.$ac_ext >&5
31092
31093   ac_header_preproc=no
31094 fi
31095
31096 rm -f conftest.err conftest.$ac_ext
31097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31098 echo "${ECHO_T}$ac_header_preproc" >&6; }
31099
31100 # So?  What about this header?
31101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31102   yes:no: )
31103     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31104 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31105     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31106 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31107     ac_header_preproc=yes
31108     ;;
31109   no:yes:* )
31110     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31111 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31112     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31114     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31115 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31116     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31117 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31118     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31119 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31120     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31121 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31122
31123     ;;
31124 esac
31125 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31126 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31127 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31128   echo $ECHO_N "(cached) $ECHO_C" >&6
31129 else
31130   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31131 fi
31132 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31133 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31134
31135 fi
31136 if test $ac_cv_header_sys_sysmacros_h = yes; then
31137
31138 cat >>confdefs.h <<\_ACEOF
31139 #define MAJOR_IN_SYSMACROS 1
31140 _ACEOF
31141
31142 fi
31143
31144
31145   fi
31146 fi
31147
31148
31149
31150
31151
31152
31153 ac_header_dirent=no
31154 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31155   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31156 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31157 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31159   echo $ECHO_N "(cached) $ECHO_C" >&6
31160 else
31161   cat >conftest.$ac_ext <<_ACEOF
31162 /* confdefs.h.  */
31163 _ACEOF
31164 cat confdefs.h >>conftest.$ac_ext
31165 cat >>conftest.$ac_ext <<_ACEOF
31166 /* end confdefs.h.  */
31167 #include <sys/types.h>
31168 #include <$ac_hdr>
31169
31170 int
31171 main ()
31172 {
31173 if ((DIR *) 0)
31174 return 0;
31175   ;
31176   return 0;
31177 }
31178 _ACEOF
31179 rm -f conftest.$ac_objext
31180 if { (ac_try="$ac_compile"
31181 case "(($ac_try" in
31182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31183   *) ac_try_echo=$ac_try;;
31184 esac
31185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31186   (eval "$ac_compile") 2>conftest.er1
31187   ac_status=$?
31188   grep -v '^ *+' conftest.er1 >conftest.err
31189   rm -f conftest.er1
31190   cat conftest.err >&5
31191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192   (exit $ac_status); } && {
31193          test -z "$ac_c_werror_flag" ||
31194          test ! -s conftest.err
31195        } && test -s conftest.$ac_objext; then
31196   eval "$as_ac_Header=yes"
31197 else
31198   echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31200
31201         eval "$as_ac_Header=no"
31202 fi
31203
31204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31205 fi
31206 ac_res=`eval echo '${'$as_ac_Header'}'`
31207                { echo "$as_me:$LINENO: result: $ac_res" >&5
31208 echo "${ECHO_T}$ac_res" >&6; }
31209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31210   cat >>confdefs.h <<_ACEOF
31211 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31212 _ACEOF
31213
31214 ac_header_dirent=$ac_hdr; break
31215 fi
31216
31217 done
31218 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31219 if test $ac_header_dirent = dirent.h; then
31220   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31221 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31222 if test "${ac_cv_search_opendir+set}" = set; then
31223   echo $ECHO_N "(cached) $ECHO_C" >&6
31224 else
31225   ac_func_search_save_LIBS=$LIBS
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
31233 /* Override any GCC internal prototype to avoid an error.
31234    Use char because int might match the return type of a GCC
31235    builtin and then its argument prototype would still apply.  */
31236 #ifdef __cplusplus
31237 extern "C"
31238 #endif
31239 char opendir ();
31240 int
31241 main ()
31242 {
31243 return opendir ();
31244   ;
31245   return 0;
31246 }
31247 _ACEOF
31248 for ac_lib in '' dir; do
31249   if test -z "$ac_lib"; then
31250     ac_res="none required"
31251   else
31252     ac_res=-l$ac_lib
31253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31254   fi
31255   rm -f conftest.$ac_objext conftest$ac_exeext
31256 if { (ac_try="$ac_link"
31257 case "(($ac_try" in
31258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31259   *) ac_try_echo=$ac_try;;
31260 esac
31261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31262   (eval "$ac_link") 2>conftest.er1
31263   ac_status=$?
31264   grep -v '^ *+' conftest.er1 >conftest.err
31265   rm -f conftest.er1
31266   cat conftest.err >&5
31267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268   (exit $ac_status); } && {
31269          test -z "$ac_c_werror_flag" ||
31270          test ! -s conftest.err
31271        } && test -s conftest$ac_exeext &&
31272        $as_test_x conftest$ac_exeext; then
31273   ac_cv_search_opendir=$ac_res
31274 else
31275   echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.$ac_ext >&5
31277
31278
31279 fi
31280
31281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31282       conftest$ac_exeext
31283   if test "${ac_cv_search_opendir+set}" = set; then
31284   break
31285 fi
31286 done
31287 if test "${ac_cv_search_opendir+set}" = set; then
31288   :
31289 else
31290   ac_cv_search_opendir=no
31291 fi
31292 rm conftest.$ac_ext
31293 LIBS=$ac_func_search_save_LIBS
31294 fi
31295 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31296 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31297 ac_res=$ac_cv_search_opendir
31298 if test "$ac_res" != no; then
31299   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31300
31301 fi
31302
31303 else
31304   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31305 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31306 if test "${ac_cv_search_opendir+set}" = set; then
31307   echo $ECHO_N "(cached) $ECHO_C" >&6
31308 else
31309   ac_func_search_save_LIBS=$LIBS
31310 cat >conftest.$ac_ext <<_ACEOF
31311 /* confdefs.h.  */
31312 _ACEOF
31313 cat confdefs.h >>conftest.$ac_ext
31314 cat >>conftest.$ac_ext <<_ACEOF
31315 /* end confdefs.h.  */
31316
31317 /* Override any GCC internal prototype to avoid an error.
31318    Use char because int might match the return type of a GCC
31319    builtin and then its argument prototype would still apply.  */
31320 #ifdef __cplusplus
31321 extern "C"
31322 #endif
31323 char opendir ();
31324 int
31325 main ()
31326 {
31327 return opendir ();
31328   ;
31329   return 0;
31330 }
31331 _ACEOF
31332 for ac_lib in '' x; do
31333   if test -z "$ac_lib"; then
31334     ac_res="none required"
31335   else
31336     ac_res=-l$ac_lib
31337     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31338   fi
31339   rm -f conftest.$ac_objext conftest$ac_exeext
31340 if { (ac_try="$ac_link"
31341 case "(($ac_try" in
31342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343   *) ac_try_echo=$ac_try;;
31344 esac
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346   (eval "$ac_link") 2>conftest.er1
31347   ac_status=$?
31348   grep -v '^ *+' conftest.er1 >conftest.err
31349   rm -f conftest.er1
31350   cat conftest.err >&5
31351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352   (exit $ac_status); } && {
31353          test -z "$ac_c_werror_flag" ||
31354          test ! -s conftest.err
31355        } && test -s conftest$ac_exeext &&
31356        $as_test_x conftest$ac_exeext; then
31357   ac_cv_search_opendir=$ac_res
31358 else
31359   echo "$as_me: failed program was:" >&5
31360 sed 's/^/| /' conftest.$ac_ext >&5
31361
31362
31363 fi
31364
31365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31366       conftest$ac_exeext
31367   if test "${ac_cv_search_opendir+set}" = set; then
31368   break
31369 fi
31370 done
31371 if test "${ac_cv_search_opendir+set}" = set; then
31372   :
31373 else
31374   ac_cv_search_opendir=no
31375 fi
31376 rm conftest.$ac_ext
31377 LIBS=$ac_func_search_save_LIBS
31378 fi
31379 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31380 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31381 ac_res=$ac_cv_search_opendir
31382 if test "$ac_res" != no; then
31383   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31384
31385 fi
31386
31387 fi
31388
31389 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31390 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31391 if test "${ac_cv_header_stat_broken+set}" = set; then
31392   echo $ECHO_N "(cached) $ECHO_C" >&6
31393 else
31394   cat >conftest.$ac_ext <<_ACEOF
31395 /* confdefs.h.  */
31396 _ACEOF
31397 cat confdefs.h >>conftest.$ac_ext
31398 cat >>conftest.$ac_ext <<_ACEOF
31399 /* end confdefs.h.  */
31400 #include <sys/types.h>
31401 #include <sys/stat.h>
31402
31403 #if defined S_ISBLK && defined S_IFDIR
31404 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31405 #endif
31406
31407 #if defined S_ISBLK && defined S_IFCHR
31408 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31409 #endif
31410
31411 #if defined S_ISLNK && defined S_IFREG
31412 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31413 #endif
31414
31415 #if defined S_ISSOCK && defined S_IFREG
31416 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31417 #endif
31418
31419 _ACEOF
31420 rm -f conftest.$ac_objext
31421 if { (ac_try="$ac_compile"
31422 case "(($ac_try" in
31423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424   *) ac_try_echo=$ac_try;;
31425 esac
31426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427   (eval "$ac_compile") 2>conftest.er1
31428   ac_status=$?
31429   grep -v '^ *+' conftest.er1 >conftest.err
31430   rm -f conftest.er1
31431   cat conftest.err >&5
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); } && {
31434          test -z "$ac_c_werror_flag" ||
31435          test ! -s conftest.err
31436        } && test -s conftest.$ac_objext; then
31437   ac_cv_header_stat_broken=no
31438 else
31439   echo "$as_me: failed program was:" >&5
31440 sed 's/^/| /' conftest.$ac_ext >&5
31441
31442         ac_cv_header_stat_broken=yes
31443 fi
31444
31445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31446 fi
31447 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31448 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31449 if test $ac_cv_header_stat_broken = yes; then
31450
31451 cat >>confdefs.h <<\_ACEOF
31452 #define STAT_MACROS_BROKEN 1
31453 _ACEOF
31454
31455 fi
31456
31457 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31458 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31459 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31460   echo $ECHO_N "(cached) $ECHO_C" >&6
31461 else
31462   cat >conftest.$ac_ext <<_ACEOF
31463 /* confdefs.h.  */
31464 _ACEOF
31465 cat confdefs.h >>conftest.$ac_ext
31466 cat >>conftest.$ac_ext <<_ACEOF
31467 /* end confdefs.h.  */
31468 #include <sys/types.h>
31469 #include <sys/wait.h>
31470 #ifndef WEXITSTATUS
31471 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31472 #endif
31473 #ifndef WIFEXITED
31474 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31475 #endif
31476
31477 int
31478 main ()
31479 {
31480   int s;
31481   wait (&s);
31482   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31483   ;
31484   return 0;
31485 }
31486 _ACEOF
31487 rm -f conftest.$ac_objext
31488 if { (ac_try="$ac_compile"
31489 case "(($ac_try" in
31490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31491   *) ac_try_echo=$ac_try;;
31492 esac
31493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31494   (eval "$ac_compile") 2>conftest.er1
31495   ac_status=$?
31496   grep -v '^ *+' conftest.er1 >conftest.err
31497   rm -f conftest.er1
31498   cat conftest.err >&5
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); } && {
31501          test -z "$ac_c_werror_flag" ||
31502          test ! -s conftest.err
31503        } && test -s conftest.$ac_objext; then
31504   ac_cv_header_sys_wait_h=yes
31505 else
31506   echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31508
31509         ac_cv_header_sys_wait_h=no
31510 fi
31511
31512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31513 fi
31514 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31515 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31516 if test $ac_cv_header_sys_wait_h = yes; then
31517
31518 cat >>confdefs.h <<\_ACEOF
31519 #define HAVE_SYS_WAIT_H 1
31520 _ACEOF
31521
31522 fi
31523
31524 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31525 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31526 if test "${ac_cv_header_time+set}" = set; then
31527   echo $ECHO_N "(cached) $ECHO_C" >&6
31528 else
31529   cat >conftest.$ac_ext <<_ACEOF
31530 /* confdefs.h.  */
31531 _ACEOF
31532 cat confdefs.h >>conftest.$ac_ext
31533 cat >>conftest.$ac_ext <<_ACEOF
31534 /* end confdefs.h.  */
31535 #include <sys/types.h>
31536 #include <sys/time.h>
31537 #include <time.h>
31538
31539 int
31540 main ()
31541 {
31542 if ((struct tm *) 0)
31543 return 0;
31544   ;
31545   return 0;
31546 }
31547 _ACEOF
31548 rm -f conftest.$ac_objext
31549 if { (ac_try="$ac_compile"
31550 case "(($ac_try" in
31551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552   *) ac_try_echo=$ac_try;;
31553 esac
31554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555   (eval "$ac_compile") 2>conftest.er1
31556   ac_status=$?
31557   grep -v '^ *+' conftest.er1 >conftest.err
31558   rm -f conftest.er1
31559   cat conftest.err >&5
31560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561   (exit $ac_status); } && {
31562          test -z "$ac_c_werror_flag" ||
31563          test ! -s conftest.err
31564        } && test -s conftest.$ac_objext; then
31565   ac_cv_header_time=yes
31566 else
31567   echo "$as_me: failed program was:" >&5
31568 sed 's/^/| /' conftest.$ac_ext >&5
31569
31570         ac_cv_header_time=no
31571 fi
31572
31573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31574 fi
31575 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31576 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31577 if test $ac_cv_header_time = yes; then
31578
31579 cat >>confdefs.h <<\_ACEOF
31580 #define TIME_WITH_SYS_TIME 1
31581 _ACEOF
31582
31583 fi
31584
31585 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31586 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31587 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31588   echo $ECHO_N "(cached) $ECHO_C" >&6
31589 else
31590   cat >conftest.$ac_ext <<_ACEOF
31591 /* confdefs.h.  */
31592 _ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h.  */
31596 $ac_includes_default
31597 int
31598 main ()
31599 {
31600 static struct stat ac_aggr;
31601 if (ac_aggr.st_blksize)
31602 return 0;
31603   ;
31604   return 0;
31605 }
31606 _ACEOF
31607 rm -f conftest.$ac_objext
31608 if { (ac_try="$ac_compile"
31609 case "(($ac_try" in
31610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31611   *) ac_try_echo=$ac_try;;
31612 esac
31613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31614   (eval "$ac_compile") 2>conftest.er1
31615   ac_status=$?
31616   grep -v '^ *+' conftest.er1 >conftest.err
31617   rm -f conftest.er1
31618   cat conftest.err >&5
31619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620   (exit $ac_status); } && {
31621          test -z "$ac_c_werror_flag" ||
31622          test ! -s conftest.err
31623        } && test -s conftest.$ac_objext; then
31624   ac_cv_member_struct_stat_st_blksize=yes
31625 else
31626   echo "$as_me: failed program was:" >&5
31627 sed 's/^/| /' conftest.$ac_ext >&5
31628
31629         cat >conftest.$ac_ext <<_ACEOF
31630 /* confdefs.h.  */
31631 _ACEOF
31632 cat confdefs.h >>conftest.$ac_ext
31633 cat >>conftest.$ac_ext <<_ACEOF
31634 /* end confdefs.h.  */
31635 $ac_includes_default
31636 int
31637 main ()
31638 {
31639 static struct stat ac_aggr;
31640 if (sizeof ac_aggr.st_blksize)
31641 return 0;
31642   ;
31643   return 0;
31644 }
31645 _ACEOF
31646 rm -f conftest.$ac_objext
31647 if { (ac_try="$ac_compile"
31648 case "(($ac_try" in
31649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31650   *) ac_try_echo=$ac_try;;
31651 esac
31652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31653   (eval "$ac_compile") 2>conftest.er1
31654   ac_status=$?
31655   grep -v '^ *+' conftest.er1 >conftest.err
31656   rm -f conftest.er1
31657   cat conftest.err >&5
31658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659   (exit $ac_status); } && {
31660          test -z "$ac_c_werror_flag" ||
31661          test ! -s conftest.err
31662        } && test -s conftest.$ac_objext; then
31663   ac_cv_member_struct_stat_st_blksize=yes
31664 else
31665   echo "$as_me: failed program was:" >&5
31666 sed 's/^/| /' conftest.$ac_ext >&5
31667
31668         ac_cv_member_struct_stat_st_blksize=no
31669 fi
31670
31671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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_member_struct_stat_st_blksize" >&5
31677 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31678 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31679
31680 cat >>confdefs.h <<_ACEOF
31681 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31682 _ACEOF
31683
31684
31685 cat >>confdefs.h <<\_ACEOF
31686 #define HAVE_ST_BLKSIZE 1
31687 _ACEOF
31688
31689 fi
31690
31691
31692 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31693 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31694 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31695   echo $ECHO_N "(cached) $ECHO_C" >&6
31696 else
31697   cat >conftest.$ac_ext <<_ACEOF
31698 /* confdefs.h.  */
31699 _ACEOF
31700 cat confdefs.h >>conftest.$ac_ext
31701 cat >>conftest.$ac_ext <<_ACEOF
31702 /* end confdefs.h.  */
31703 $ac_includes_default
31704 int
31705 main ()
31706 {
31707 static struct stat ac_aggr;
31708 if (ac_aggr.st_blocks)
31709 return 0;
31710   ;
31711   return 0;
31712 }
31713 _ACEOF
31714 rm -f conftest.$ac_objext
31715 if { (ac_try="$ac_compile"
31716 case "(($ac_try" in
31717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718   *) ac_try_echo=$ac_try;;
31719 esac
31720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721   (eval "$ac_compile") 2>conftest.er1
31722   ac_status=$?
31723   grep -v '^ *+' conftest.er1 >conftest.err
31724   rm -f conftest.er1
31725   cat conftest.err >&5
31726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727   (exit $ac_status); } && {
31728          test -z "$ac_c_werror_flag" ||
31729          test ! -s conftest.err
31730        } && test -s conftest.$ac_objext; then
31731   ac_cv_member_struct_stat_st_blocks=yes
31732 else
31733   echo "$as_me: failed program was:" >&5
31734 sed 's/^/| /' conftest.$ac_ext >&5
31735
31736         cat >conftest.$ac_ext <<_ACEOF
31737 /* confdefs.h.  */
31738 _ACEOF
31739 cat confdefs.h >>conftest.$ac_ext
31740 cat >>conftest.$ac_ext <<_ACEOF
31741 /* end confdefs.h.  */
31742 $ac_includes_default
31743 int
31744 main ()
31745 {
31746 static struct stat ac_aggr;
31747 if (sizeof ac_aggr.st_blocks)
31748 return 0;
31749   ;
31750   return 0;
31751 }
31752 _ACEOF
31753 rm -f conftest.$ac_objext
31754 if { (ac_try="$ac_compile"
31755 case "(($ac_try" in
31756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31757   *) ac_try_echo=$ac_try;;
31758 esac
31759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31760   (eval "$ac_compile") 2>conftest.er1
31761   ac_status=$?
31762   grep -v '^ *+' conftest.er1 >conftest.err
31763   rm -f conftest.er1
31764   cat conftest.err >&5
31765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766   (exit $ac_status); } && {
31767          test -z "$ac_c_werror_flag" ||
31768          test ! -s conftest.err
31769        } && test -s conftest.$ac_objext; then
31770   ac_cv_member_struct_stat_st_blocks=yes
31771 else
31772   echo "$as_me: failed program was:" >&5
31773 sed 's/^/| /' conftest.$ac_ext >&5
31774
31775         ac_cv_member_struct_stat_st_blocks=no
31776 fi
31777
31778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31779 fi
31780
31781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31782 fi
31783 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31784 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31785 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31786
31787 cat >>confdefs.h <<_ACEOF
31788 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31789 _ACEOF
31790
31791
31792 cat >>confdefs.h <<\_ACEOF
31793 #define HAVE_ST_BLOCKS 1
31794 _ACEOF
31795
31796 else
31797   case " $LIBOBJS " in
31798   *" fileblocks.$ac_objext "* ) ;;
31799   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31800  ;;
31801 esac
31802
31803 fi
31804
31805
31806 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31807 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31808 if test "${ac_cv_struct_tm+set}" = set; then
31809   echo $ECHO_N "(cached) $ECHO_C" >&6
31810 else
31811   cat >conftest.$ac_ext <<_ACEOF
31812 /* confdefs.h.  */
31813 _ACEOF
31814 cat confdefs.h >>conftest.$ac_ext
31815 cat >>conftest.$ac_ext <<_ACEOF
31816 /* end confdefs.h.  */
31817 #include <sys/types.h>
31818 #include <time.h>
31819
31820 int
31821 main ()
31822 {
31823 struct tm tm;
31824                                      int *p = &tm.tm_sec;
31825                                      return !p;
31826   ;
31827   return 0;
31828 }
31829 _ACEOF
31830 rm -f conftest.$ac_objext
31831 if { (ac_try="$ac_compile"
31832 case "(($ac_try" in
31833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834   *) ac_try_echo=$ac_try;;
31835 esac
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837   (eval "$ac_compile") 2>conftest.er1
31838   ac_status=$?
31839   grep -v '^ *+' conftest.er1 >conftest.err
31840   rm -f conftest.er1
31841   cat conftest.err >&5
31842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843   (exit $ac_status); } && {
31844          test -z "$ac_c_werror_flag" ||
31845          test ! -s conftest.err
31846        } && test -s conftest.$ac_objext; then
31847   ac_cv_struct_tm=time.h
31848 else
31849   echo "$as_me: failed program was:" >&5
31850 sed 's/^/| /' conftest.$ac_ext >&5
31851
31852         ac_cv_struct_tm=sys/time.h
31853 fi
31854
31855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31856 fi
31857 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31858 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31859 if test $ac_cv_struct_tm = sys/time.h; then
31860
31861 cat >>confdefs.h <<\_ACEOF
31862 #define TM_IN_SYS_TIME 1
31863 _ACEOF
31864
31865 fi
31866
31867 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31868 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31869 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31870   echo $ECHO_N "(cached) $ECHO_C" >&6
31871 else
31872   cat >conftest.$ac_ext <<_ACEOF
31873 /* confdefs.h.  */
31874 _ACEOF
31875 cat confdefs.h >>conftest.$ac_ext
31876 cat >>conftest.$ac_ext <<_ACEOF
31877 /* end confdefs.h.  */
31878 #include <sys/types.h>
31879 #include <$ac_cv_struct_tm>
31880
31881
31882 int
31883 main ()
31884 {
31885 static struct tm ac_aggr;
31886 if (ac_aggr.tm_zone)
31887 return 0;
31888   ;
31889   return 0;
31890 }
31891 _ACEOF
31892 rm -f conftest.$ac_objext
31893 if { (ac_try="$ac_compile"
31894 case "(($ac_try" in
31895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896   *) ac_try_echo=$ac_try;;
31897 esac
31898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899   (eval "$ac_compile") 2>conftest.er1
31900   ac_status=$?
31901   grep -v '^ *+' conftest.er1 >conftest.err
31902   rm -f conftest.er1
31903   cat conftest.err >&5
31904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905   (exit $ac_status); } && {
31906          test -z "$ac_c_werror_flag" ||
31907          test ! -s conftest.err
31908        } && test -s conftest.$ac_objext; then
31909   ac_cv_member_struct_tm_tm_zone=yes
31910 else
31911   echo "$as_me: failed program was:" >&5
31912 sed 's/^/| /' conftest.$ac_ext >&5
31913
31914         cat >conftest.$ac_ext <<_ACEOF
31915 /* confdefs.h.  */
31916 _ACEOF
31917 cat confdefs.h >>conftest.$ac_ext
31918 cat >>conftest.$ac_ext <<_ACEOF
31919 /* end confdefs.h.  */
31920 #include <sys/types.h>
31921 #include <$ac_cv_struct_tm>
31922
31923
31924 int
31925 main ()
31926 {
31927 static struct tm ac_aggr;
31928 if (sizeof ac_aggr.tm_zone)
31929 return 0;
31930   ;
31931   return 0;
31932 }
31933 _ACEOF
31934 rm -f conftest.$ac_objext
31935 if { (ac_try="$ac_compile"
31936 case "(($ac_try" in
31937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938   *) ac_try_echo=$ac_try;;
31939 esac
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941   (eval "$ac_compile") 2>conftest.er1
31942   ac_status=$?
31943   grep -v '^ *+' conftest.er1 >conftest.err
31944   rm -f conftest.er1
31945   cat conftest.err >&5
31946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947   (exit $ac_status); } && {
31948          test -z "$ac_c_werror_flag" ||
31949          test ! -s conftest.err
31950        } && test -s conftest.$ac_objext; then
31951   ac_cv_member_struct_tm_tm_zone=yes
31952 else
31953   echo "$as_me: failed program was:" >&5
31954 sed 's/^/| /' conftest.$ac_ext >&5
31955
31956         ac_cv_member_struct_tm_tm_zone=no
31957 fi
31958
31959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31960 fi
31961
31962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31963 fi
31964 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31965 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31966 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31967
31968 cat >>confdefs.h <<_ACEOF
31969 #define HAVE_STRUCT_TM_TM_ZONE 1
31970 _ACEOF
31971
31972
31973 fi
31974
31975 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31976
31977 cat >>confdefs.h <<\_ACEOF
31978 #define HAVE_TM_ZONE 1
31979 _ACEOF
31980
31981 else
31982   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31983 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31984 if test "${ac_cv_have_decl_tzname+set}" = set; then
31985   echo $ECHO_N "(cached) $ECHO_C" >&6
31986 else
31987   cat >conftest.$ac_ext <<_ACEOF
31988 /* confdefs.h.  */
31989 _ACEOF
31990 cat confdefs.h >>conftest.$ac_ext
31991 cat >>conftest.$ac_ext <<_ACEOF
31992 /* end confdefs.h.  */
31993 #include <time.h>
31994
31995 int
31996 main ()
31997 {
31998 #ifndef tzname
31999   (void) tzname;
32000 #endif
32001
32002   ;
32003   return 0;
32004 }
32005 _ACEOF
32006 rm -f conftest.$ac_objext
32007 if { (ac_try="$ac_compile"
32008 case "(($ac_try" in
32009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32010   *) ac_try_echo=$ac_try;;
32011 esac
32012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32013   (eval "$ac_compile") 2>conftest.er1
32014   ac_status=$?
32015   grep -v '^ *+' conftest.er1 >conftest.err
32016   rm -f conftest.er1
32017   cat conftest.err >&5
32018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019   (exit $ac_status); } && {
32020          test -z "$ac_c_werror_flag" ||
32021          test ! -s conftest.err
32022        } && test -s conftest.$ac_objext; then
32023   ac_cv_have_decl_tzname=yes
32024 else
32025   echo "$as_me: failed program was:" >&5
32026 sed 's/^/| /' conftest.$ac_ext >&5
32027
32028         ac_cv_have_decl_tzname=no
32029 fi
32030
32031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32032 fi
32033 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32034 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32035 if test $ac_cv_have_decl_tzname = yes; then
32036
32037 cat >>confdefs.h <<_ACEOF
32038 #define HAVE_DECL_TZNAME 1
32039 _ACEOF
32040
32041
32042 else
32043   cat >>confdefs.h <<_ACEOF
32044 #define HAVE_DECL_TZNAME 0
32045 _ACEOF
32046
32047
32048 fi
32049
32050
32051   { echo "$as_me:$LINENO: checking for tzname" >&5
32052 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32053 if test "${ac_cv_var_tzname+set}" = set; then
32054   echo $ECHO_N "(cached) $ECHO_C" >&6
32055 else
32056   cat >conftest.$ac_ext <<_ACEOF
32057 /* confdefs.h.  */
32058 _ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h.  */
32062 #include <time.h>
32063 #if !HAVE_DECL_TZNAME
32064 extern char *tzname[];
32065 #endif
32066
32067 int
32068 main ()
32069 {
32070 return tzname[0][0];
32071   ;
32072   return 0;
32073 }
32074 _ACEOF
32075 rm -f conftest.$ac_objext conftest$ac_exeext
32076 if { (ac_try="$ac_link"
32077 case "(($ac_try" in
32078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079   *) ac_try_echo=$ac_try;;
32080 esac
32081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082   (eval "$ac_link") 2>conftest.er1
32083   ac_status=$?
32084   grep -v '^ *+' conftest.er1 >conftest.err
32085   rm -f conftest.er1
32086   cat conftest.err >&5
32087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088   (exit $ac_status); } && {
32089          test -z "$ac_c_werror_flag" ||
32090          test ! -s conftest.err
32091        } && test -s conftest$ac_exeext &&
32092        $as_test_x conftest$ac_exeext; then
32093   ac_cv_var_tzname=yes
32094 else
32095   echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32097
32098         ac_cv_var_tzname=no
32099 fi
32100
32101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32102       conftest$ac_exeext conftest.$ac_ext
32103 fi
32104 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32105 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32106   if test $ac_cv_var_tzname = yes; then
32107
32108 cat >>confdefs.h <<\_ACEOF
32109 #define HAVE_TZNAME 1
32110 _ACEOF
32111
32112   fi
32113 fi
32114
32115
32116 { echo "$as_me:$LINENO: checking for utime.h" >&5
32117 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32118 if test "${ba_cv_header_utime_h+set}" = set; then
32119   echo $ECHO_N "(cached) $ECHO_C" >&6
32120 else
32121
32122        cat >conftest.$ac_ext <<_ACEOF
32123 /* confdefs.h.  */
32124 _ACEOF
32125 cat confdefs.h >>conftest.$ac_ext
32126 cat >>conftest.$ac_ext <<_ACEOF
32127 /* end confdefs.h.  */
32128
32129               #include <sys/types.h>
32130               #include <utime.h>
32131
32132 int
32133 main ()
32134 {
32135
32136               struct utimbuf foo
32137
32138   ;
32139   return 0;
32140 }
32141 _ACEOF
32142 rm -f conftest.$ac_objext
32143 if { (ac_try="$ac_compile"
32144 case "(($ac_try" in
32145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32146   *) ac_try_echo=$ac_try;;
32147 esac
32148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32149   (eval "$ac_compile") 2>conftest.er1
32150   ac_status=$?
32151   grep -v '^ *+' conftest.er1 >conftest.err
32152   rm -f conftest.er1
32153   cat conftest.err >&5
32154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155   (exit $ac_status); } && {
32156          test -z "$ac_c_werror_flag" ||
32157          test ! -s conftest.err
32158        } && test -s conftest.$ac_objext; then
32159
32160               ba_cv_header_utime_h=yes
32161
32162 else
32163   echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32165
32166
32167               ba_cv_header_utime_h=no
32168
32169
32170 fi
32171
32172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32173
32174
32175 fi
32176 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32177 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32178 test $ba_cv_header_utime_h = yes &&
32179 cat >>confdefs.h <<\_ACEOF
32180 #define HAVE_UTIME_H 1
32181 _ACEOF
32182
32183
32184 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32185 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32186 if test "${ba_cv_header_socklen_t+set}" = set; then
32187   echo $ECHO_N "(cached) $ECHO_C" >&6
32188 else
32189
32190        cat >conftest.$ac_ext <<_ACEOF
32191 /* confdefs.h.  */
32192 _ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h.  */
32196
32197               #include <sys/types.h>
32198               #include <sys/socket.h>
32199
32200 int
32201 main ()
32202 {
32203
32204               socklen_t x
32205
32206   ;
32207   return 0;
32208 }
32209 _ACEOF
32210 rm -f conftest.$ac_objext
32211 if { (ac_try="$ac_compile"
32212 case "(($ac_try" in
32213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214   *) ac_try_echo=$ac_try;;
32215 esac
32216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217   (eval "$ac_compile") 2>conftest.er1
32218   ac_status=$?
32219   grep -v '^ *+' conftest.er1 >conftest.err
32220   rm -f conftest.er1
32221   cat conftest.err >&5
32222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223   (exit $ac_status); } && {
32224          test -z "$ac_c_werror_flag" ||
32225          test ! -s conftest.err
32226        } && test -s conftest.$ac_objext; then
32227
32228              ba_cv_header_socklen_t=yes
32229
32230 else
32231   echo "$as_me: failed program was:" >&5
32232 sed 's/^/| /' conftest.$ac_ext >&5
32233
32234
32235              ba_cv_header_socklen_t=no
32236
32237
32238 fi
32239
32240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32241
32242
32243 fi
32244 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32245 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32246 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32247 #define HAVE_SOCKLEN_T 1
32248 _ACEOF
32249
32250
32251 { echo "$as_me:$LINENO: checking for bigendian" >&5
32252 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32253 if test "${ba_cv_bigendian+set}" = set; then
32254   echo $ECHO_N "(cached) $ECHO_C" >&6
32255 else
32256
32257        if test "$cross_compiling" = yes; then
32258
32259              ba_cv_bigendian=no
32260
32261
32262 else
32263   cat >conftest.$ac_ext <<_ACEOF
32264 /* confdefs.h.  */
32265 _ACEOF
32266 cat confdefs.h >>conftest.$ac_ext
32267 cat >>conftest.$ac_ext <<_ACEOF
32268 /* end confdefs.h.  */
32269
32270               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32271
32272 _ACEOF
32273 rm -f conftest$ac_exeext
32274 if { (ac_try="$ac_link"
32275 case "(($ac_try" in
32276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277   *) ac_try_echo=$ac_try;;
32278 esac
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280   (eval "$ac_link") 2>&5
32281   ac_status=$?
32282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32284   { (case "(($ac_try" in
32285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286   *) ac_try_echo=$ac_try;;
32287 esac
32288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289   (eval "$ac_try") 2>&5
32290   ac_status=$?
32291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292   (exit $ac_status); }; }; then
32293
32294              ba_cv_bigendian=yes
32295
32296 else
32297   echo "$as_me: program exited with status $ac_status" >&5
32298 echo "$as_me: failed program was:" >&5
32299 sed 's/^/| /' conftest.$ac_ext >&5
32300
32301 ( exit $ac_status )
32302
32303              ba_cv_bigendian=no
32304
32305 fi
32306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32307 fi
32308
32309
32310
32311
32312 fi
32313 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32314 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32315 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32316 #define HAVE_BIGENDIAN 1
32317 _ACEOF
32318
32319
32320 ac_ext=cpp
32321 ac_cpp='$CXXCPP $CPPFLAGS'
32322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32325
32326 { echo "$as_me:$LINENO: checking for typeof" >&5
32327 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32328 if test "${ba_cv_have_typeof+set}" = set; then
32329   echo $ECHO_N "(cached) $ECHO_C" >&6
32330 else
32331
32332        if test "$cross_compiling" = yes; then
32333
32334               ba_cv_have_typeof=no
32335
32336
32337 else
32338   cat >conftest.$ac_ext <<_ACEOF
32339 /* confdefs.h.  */
32340 _ACEOF
32341 cat confdefs.h >>conftest.$ac_ext
32342 cat >>conftest.$ac_ext <<_ACEOF
32343 /* end confdefs.h.  */
32344
32345               main(){char *a = 0; a = (typeof a)a;}
32346
32347 _ACEOF
32348 rm -f conftest$ac_exeext
32349 if { (ac_try="$ac_link"
32350 case "(($ac_try" in
32351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352   *) ac_try_echo=$ac_try;;
32353 esac
32354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355   (eval "$ac_link") 2>&5
32356   ac_status=$?
32357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32359   { (case "(($ac_try" in
32360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361   *) ac_try_echo=$ac_try;;
32362 esac
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364   (eval "$ac_try") 2>&5
32365   ac_status=$?
32366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367   (exit $ac_status); }; }; then
32368
32369               ba_cv_have_typeof=yes
32370
32371 else
32372   echo "$as_me: program exited with status $ac_status" >&5
32373 echo "$as_me: failed program was:" >&5
32374 sed 's/^/| /' conftest.$ac_ext >&5
32375
32376 ( exit $ac_status )
32377
32378               ba_cv_have_typeof=no
32379
32380 fi
32381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32382 fi
32383
32384
32385
32386
32387 fi
32388 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32389 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32390 test $ba_cv_have_typeof = yes &&
32391 cat >>confdefs.h <<\_ACEOF
32392 #define HAVE_TYPEOF 1
32393 _ACEOF
32394
32395 ac_ext=c
32396 ac_cpp='$CPP $CPPFLAGS'
32397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32400
32401
32402 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32403 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32404 if test "${ac_cv_c_const+set}" = set; then
32405   echo $ECHO_N "(cached) $ECHO_C" >&6
32406 else
32407   cat >conftest.$ac_ext <<_ACEOF
32408 /* confdefs.h.  */
32409 _ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h.  */
32413
32414 int
32415 main ()
32416 {
32417 /* FIXME: Include the comments suggested by Paul. */
32418 #ifndef __cplusplus
32419   /* Ultrix mips cc rejects this.  */
32420   typedef int charset[2];
32421   const charset cs;
32422   /* SunOS 4.1.1 cc rejects this.  */
32423   char const *const *pcpcc;
32424   char **ppc;
32425   /* NEC SVR4.0.2 mips cc rejects this.  */
32426   struct point {int x, y;};
32427   static struct point const zero = {0,0};
32428   /* AIX XL C 1.02.0.0 rejects this.
32429      It does not let you subtract one const X* pointer from another in
32430      an arm of an if-expression whose if-part is not a constant
32431      expression */
32432   const char *g = "string";
32433   pcpcc = &g + (g ? g-g : 0);
32434   /* HPUX 7.0 cc rejects these. */
32435   ++pcpcc;
32436   ppc = (char**) pcpcc;
32437   pcpcc = (char const *const *) ppc;
32438   { /* SCO 3.2v4 cc rejects this.  */
32439     char *t;
32440     char const *s = 0 ? (char *) 0 : (char const *) 0;
32441
32442     *t++ = 0;
32443     if (s) return 0;
32444   }
32445   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32446     int x[] = {25, 17};
32447     const int *foo = &x[0];
32448     ++foo;
32449   }
32450   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32451     typedef const int *iptr;
32452     iptr p = 0;
32453     ++p;
32454   }
32455   { /* AIX XL C 1.02.0.0 rejects this saying
32456        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32457     struct s { int j; const int *ap[3]; };
32458     struct s *b; b->j = 5;
32459   }
32460   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32461     const int foo = 10;
32462     if (!foo) return 0;
32463   }
32464   return !cs[0] && !zero.x;
32465 #endif
32466
32467   ;
32468   return 0;
32469 }
32470 _ACEOF
32471 rm -f conftest.$ac_objext
32472 if { (ac_try="$ac_compile"
32473 case "(($ac_try" in
32474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475   *) ac_try_echo=$ac_try;;
32476 esac
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478   (eval "$ac_compile") 2>conftest.er1
32479   ac_status=$?
32480   grep -v '^ *+' conftest.er1 >conftest.err
32481   rm -f conftest.er1
32482   cat conftest.err >&5
32483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484   (exit $ac_status); } && {
32485          test -z "$ac_c_werror_flag" ||
32486          test ! -s conftest.err
32487        } && test -s conftest.$ac_objext; then
32488   ac_cv_c_const=yes
32489 else
32490   echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32492
32493         ac_cv_c_const=no
32494 fi
32495
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32497 fi
32498 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32499 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32500 if test $ac_cv_c_const = no; then
32501
32502 cat >>confdefs.h <<\_ACEOF
32503 #define const
32504 _ACEOF
32505
32506 fi
32507
32508
32509 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32510 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32511 fstype=no
32512 # The order of these tests is important.
32513 cat >conftest.$ac_ext <<_ACEOF
32514 /* confdefs.h.  */
32515 _ACEOF
32516 cat confdefs.h >>conftest.$ac_ext
32517 cat >>conftest.$ac_ext <<_ACEOF
32518 /* end confdefs.h.  */
32519
32520        #include <sys/statvfs.h>
32521        #include <sys/fstyp.h>
32522
32523 _ACEOF
32524 if { (ac_try="$ac_cpp conftest.$ac_ext"
32525 case "(($ac_try" in
32526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527   *) ac_try_echo=$ac_try;;
32528 esac
32529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32531   ac_status=$?
32532   grep -v '^ *+' conftest.er1 >conftest.err
32533   rm -f conftest.er1
32534   cat conftest.err >&5
32535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536   (exit $ac_status); } >/dev/null && {
32537          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32538          test ! -s conftest.err
32539        }; then
32540   cat >>confdefs.h <<\_ACEOF
32541 #define FSTYPE_STATVFS 1
32542 _ACEOF
32543  fstype=SVR4
32544
32545 else
32546   echo "$as_me: failed program was:" >&5
32547 sed 's/^/| /' conftest.$ac_ext >&5
32548
32549
32550 fi
32551
32552 rm -f conftest.err conftest.$ac_ext
32553 if test $fstype = no; then
32554    cat >conftest.$ac_ext <<_ACEOF
32555 /* confdefs.h.  */
32556 _ACEOF
32557 cat confdefs.h >>conftest.$ac_ext
32558 cat >>conftest.$ac_ext <<_ACEOF
32559 /* end confdefs.h.  */
32560
32561           #include <sys/statfs.h>
32562           #include <sys/fstyp.h>
32563
32564 _ACEOF
32565 if { (ac_try="$ac_cpp conftest.$ac_ext"
32566 case "(($ac_try" in
32567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32568   *) ac_try_echo=$ac_try;;
32569 esac
32570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32572   ac_status=$?
32573   grep -v '^ *+' conftest.er1 >conftest.err
32574   rm -f conftest.er1
32575   cat conftest.err >&5
32576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577   (exit $ac_status); } >/dev/null && {
32578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32579          test ! -s conftest.err
32580        }; then
32581   cat >>confdefs.h <<\_ACEOF
32582 #define FSTYPE_USG_STATFS 1
32583 _ACEOF
32584  fstype=SVR3
32585
32586 else
32587   echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32589
32590
32591 fi
32592
32593 rm -f conftest.err conftest.$ac_ext
32594 fi
32595 if test $fstype = no; then
32596    cat >conftest.$ac_ext <<_ACEOF
32597 /* confdefs.h.  */
32598 _ACEOF
32599 cat confdefs.h >>conftest.$ac_ext
32600 cat >>conftest.$ac_ext <<_ACEOF
32601 /* end confdefs.h.  */
32602
32603           #include <sys/statfs.h>
32604           #include <sys/vmount.h>
32605
32606 _ACEOF
32607 if { (ac_try="$ac_cpp conftest.$ac_ext"
32608 case "(($ac_try" in
32609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32610   *) ac_try_echo=$ac_try;;
32611 esac
32612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32614   ac_status=$?
32615   grep -v '^ *+' conftest.er1 >conftest.err
32616   rm -f conftest.er1
32617   cat conftest.err >&5
32618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619   (exit $ac_status); } >/dev/null && {
32620          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32621          test ! -s conftest.err
32622        }; then
32623   cat >>confdefs.h <<\_ACEOF
32624 #define FSTYPE_AIX_STATFS 1
32625 _ACEOF
32626  fstype=AIX
32627
32628 else
32629   echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32631
32632
32633 fi
32634
32635 rm -f conftest.err conftest.$ac_ext
32636 fi
32637 if test $fstype = no; then
32638    cat >conftest.$ac_ext <<_ACEOF
32639 /* confdefs.h.  */
32640 _ACEOF
32641 cat confdefs.h >>conftest.$ac_ext
32642 cat >>conftest.$ac_ext <<_ACEOF
32643 /* end confdefs.h.  */
32644
32645           #include <mntent.h>
32646
32647 _ACEOF
32648 if { (ac_try="$ac_cpp conftest.$ac_ext"
32649 case "(($ac_try" in
32650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651   *) ac_try_echo=$ac_try;;
32652 esac
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32655   ac_status=$?
32656   grep -v '^ *+' conftest.er1 >conftest.err
32657   rm -f conftest.er1
32658   cat conftest.err >&5
32659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660   (exit $ac_status); } >/dev/null && {
32661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32662          test ! -s conftest.err
32663        }; then
32664   cat >>confdefs.h <<\_ACEOF
32665 #define FSTYPE_MNTENT 1
32666 _ACEOF
32667  fstype=4.3BSD
32668
32669 else
32670   echo "$as_me: failed program was:" >&5
32671 sed 's/^/| /' conftest.$ac_ext >&5
32672
32673
32674 fi
32675
32676 rm -f conftest.err conftest.$ac_ext
32677 fi
32678 if test $fstype = no; then
32679    cat >conftest.$ac_ext <<_ACEOF
32680 /* confdefs.h.  */
32681 _ACEOF
32682 cat confdefs.h >>conftest.$ac_ext
32683 cat >>conftest.$ac_ext <<_ACEOF
32684 /* end confdefs.h.  */
32685 #include <sys/mount.h>
32686
32687 _ACEOF
32688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32689   $EGREP "f_type;" >/dev/null 2>&1; then
32690   cat >>confdefs.h <<\_ACEOF
32691 #define FSTYPE_STATFS 1
32692 _ACEOF
32693  fstype=4.4BSD/OSF1
32694 fi
32695 rm -f conftest*
32696
32697 fi
32698 if test $fstype = no; then
32699    cat >conftest.$ac_ext <<_ACEOF
32700 /* confdefs.h.  */
32701 _ACEOF
32702 cat confdefs.h >>conftest.$ac_ext
32703 cat >>conftest.$ac_ext <<_ACEOF
32704 /* end confdefs.h.  */
32705
32706           #include <sys/mount.h>
32707           #include <sys/fs_types.h>
32708
32709 _ACEOF
32710 if { (ac_try="$ac_cpp conftest.$ac_ext"
32711 case "(($ac_try" in
32712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713   *) ac_try_echo=$ac_try;;
32714 esac
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32717   ac_status=$?
32718   grep -v '^ *+' conftest.er1 >conftest.err
32719   rm -f conftest.er1
32720   cat conftest.err >&5
32721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722   (exit $ac_status); } >/dev/null && {
32723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32724          test ! -s conftest.err
32725        }; then
32726   cat >>confdefs.h <<\_ACEOF
32727 #define FSTYPE_GETMNT 1
32728 _ACEOF
32729  fstype=Ultrix
32730
32731 else
32732   echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32734
32735
32736 fi
32737
32738 rm -f conftest.err conftest.$ac_ext
32739 fi
32740 { echo "$as_me:$LINENO: result: $fstype" >&5
32741 echo "${ECHO_T}$fstype" >&6; }
32742
32743 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32744   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32745 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32746 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32747   echo $ECHO_N "(cached) $ECHO_C" >&6
32748 fi
32749 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32750 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32751 else
32752   # Is the header compilable?
32753 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32754 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32755 cat >conftest.$ac_ext <<_ACEOF
32756 /* confdefs.h.  */
32757 _ACEOF
32758 cat confdefs.h >>conftest.$ac_ext
32759 cat >>conftest.$ac_ext <<_ACEOF
32760 /* end confdefs.h.  */
32761 $ac_includes_default
32762 #include <sys/statvfs.h>
32763 _ACEOF
32764 rm -f conftest.$ac_objext
32765 if { (ac_try="$ac_compile"
32766 case "(($ac_try" in
32767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768   *) ac_try_echo=$ac_try;;
32769 esac
32770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771   (eval "$ac_compile") 2>conftest.er1
32772   ac_status=$?
32773   grep -v '^ *+' conftest.er1 >conftest.err
32774   rm -f conftest.er1
32775   cat conftest.err >&5
32776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777   (exit $ac_status); } && {
32778          test -z "$ac_c_werror_flag" ||
32779          test ! -s conftest.err
32780        } && test -s conftest.$ac_objext; then
32781   ac_header_compiler=yes
32782 else
32783   echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32785
32786         ac_header_compiler=no
32787 fi
32788
32789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32791 echo "${ECHO_T}$ac_header_compiler" >&6; }
32792
32793 # Is the header present?
32794 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32795 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32796 cat >conftest.$ac_ext <<_ACEOF
32797 /* confdefs.h.  */
32798 _ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h.  */
32802 #include <sys/statvfs.h>
32803 _ACEOF
32804 if { (ac_try="$ac_cpp conftest.$ac_ext"
32805 case "(($ac_try" in
32806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32807   *) ac_try_echo=$ac_try;;
32808 esac
32809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32811   ac_status=$?
32812   grep -v '^ *+' conftest.er1 >conftest.err
32813   rm -f conftest.er1
32814   cat conftest.err >&5
32815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816   (exit $ac_status); } >/dev/null && {
32817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32818          test ! -s conftest.err
32819        }; then
32820   ac_header_preproc=yes
32821 else
32822   echo "$as_me: failed program was:" >&5
32823 sed 's/^/| /' conftest.$ac_ext >&5
32824
32825   ac_header_preproc=no
32826 fi
32827
32828 rm -f conftest.err conftest.$ac_ext
32829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32830 echo "${ECHO_T}$ac_header_preproc" >&6; }
32831
32832 # So?  What about this header?
32833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32834   yes:no: )
32835     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32836 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32837     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32838 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32839     ac_header_preproc=yes
32840     ;;
32841   no:yes:* )
32842     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32843 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32844     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32846     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32847 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32848     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32849 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32850     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32851 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32852     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32853 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32854
32855     ;;
32856 esac
32857 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32858 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32859 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32860   echo $ECHO_N "(cached) $ECHO_C" >&6
32861 else
32862   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32863 fi
32864 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32865 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32866
32867 fi
32868 if test $ac_cv_header_sys_statvfs_h = yes; then
32869
32870 cat >>confdefs.h <<\_ACEOF
32871 #define HAVE_SYS_STATVFS_H 1
32872 _ACEOF
32873
32874 fi
32875
32876
32877
32878 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32880 if test "${ac_cv_type_signal+set}" = set; then
32881   echo $ECHO_N "(cached) $ECHO_C" >&6
32882 else
32883   cat >conftest.$ac_ext <<_ACEOF
32884 /* confdefs.h.  */
32885 _ACEOF
32886 cat confdefs.h >>conftest.$ac_ext
32887 cat >>conftest.$ac_ext <<_ACEOF
32888 /* end confdefs.h.  */
32889 #include <sys/types.h>
32890 #include <signal.h>
32891
32892 int
32893 main ()
32894 {
32895 return *(signal (0, 0)) (0) == 1;
32896   ;
32897   return 0;
32898 }
32899 _ACEOF
32900 rm -f conftest.$ac_objext
32901 if { (ac_try="$ac_compile"
32902 case "(($ac_try" in
32903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904   *) ac_try_echo=$ac_try;;
32905 esac
32906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32907   (eval "$ac_compile") 2>conftest.er1
32908   ac_status=$?
32909   grep -v '^ *+' conftest.er1 >conftest.err
32910   rm -f conftest.er1
32911   cat conftest.err >&5
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); } && {
32914          test -z "$ac_c_werror_flag" ||
32915          test ! -s conftest.err
32916        } && test -s conftest.$ac_objext; then
32917   ac_cv_type_signal=int
32918 else
32919   echo "$as_me: failed program was:" >&5
32920 sed 's/^/| /' conftest.$ac_ext >&5
32921
32922         ac_cv_type_signal=void
32923 fi
32924
32925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32926 fi
32927 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32928 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32929
32930 cat >>confdefs.h <<_ACEOF
32931 #define RETSIGTYPE $ac_cv_type_signal
32932 _ACEOF
32933
32934
32935
32936   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32937 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32938   if test "${bash_cv_signal_vintage+set}" = set; then
32939   echo $ECHO_N "(cached) $ECHO_C" >&6
32940 else
32941
32942     cat >conftest.$ac_ext <<_ACEOF
32943 /* confdefs.h.  */
32944 _ACEOF
32945 cat confdefs.h >>conftest.$ac_ext
32946 cat >>conftest.$ac_ext <<_ACEOF
32947 /* end confdefs.h.  */
32948 #include <signal.h>
32949 int
32950 main ()
32951 {
32952
32953       sigset_t ss;
32954       struct sigaction sa;
32955       sigemptyset(&ss); sigsuspend(&ss);
32956       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32957       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32958
32959   ;
32960   return 0;
32961 }
32962 _ACEOF
32963 rm -f conftest.$ac_objext conftest$ac_exeext
32964 if { (ac_try="$ac_link"
32965 case "(($ac_try" in
32966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967   *) ac_try_echo=$ac_try;;
32968 esac
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970   (eval "$ac_link") 2>conftest.er1
32971   ac_status=$?
32972   grep -v '^ *+' conftest.er1 >conftest.err
32973   rm -f conftest.er1
32974   cat conftest.err >&5
32975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976   (exit $ac_status); } && {
32977          test -z "$ac_c_werror_flag" ||
32978          test ! -s conftest.err
32979        } && test -s conftest$ac_exeext &&
32980        $as_test_x conftest$ac_exeext; then
32981   bash_cv_signal_vintage="posix"
32982 else
32983   echo "$as_me: failed program was:" >&5
32984 sed 's/^/| /' conftest.$ac_ext >&5
32985
32986
32987       cat >conftest.$ac_ext <<_ACEOF
32988 /* confdefs.h.  */
32989 _ACEOF
32990 cat confdefs.h >>conftest.$ac_ext
32991 cat >>conftest.$ac_ext <<_ACEOF
32992 /* end confdefs.h.  */
32993 #include <signal.h>
32994 int
32995 main ()
32996 {
32997
32998           int mask = sigmask(SIGINT);
32999           sigsetmask(mask); sigblock(mask); sigpause(mask);
33000
33001   ;
33002   return 0;
33003 }
33004 _ACEOF
33005 rm -f conftest.$ac_objext conftest$ac_exeext
33006 if { (ac_try="$ac_link"
33007 case "(($ac_try" in
33008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33009   *) ac_try_echo=$ac_try;;
33010 esac
33011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33012   (eval "$ac_link") 2>conftest.er1
33013   ac_status=$?
33014   grep -v '^ *+' conftest.er1 >conftest.err
33015   rm -f conftest.er1
33016   cat conftest.err >&5
33017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018   (exit $ac_status); } && {
33019          test -z "$ac_c_werror_flag" ||
33020          test ! -s conftest.err
33021        } && test -s conftest$ac_exeext &&
33022        $as_test_x conftest$ac_exeext; then
33023   bash_cv_signal_vintage="4.2bsd"
33024 else
33025   echo "$as_me: failed program was:" >&5
33026 sed 's/^/| /' conftest.$ac_ext >&5
33027
33028
33029         cat >conftest.$ac_ext <<_ACEOF
33030 /* confdefs.h.  */
33031 _ACEOF
33032 cat confdefs.h >>conftest.$ac_ext
33033 cat >>conftest.$ac_ext <<_ACEOF
33034 /* end confdefs.h.  */
33035
33036           #include <signal.h>
33037           RETSIGTYPE foo() { }
33038 int
33039 main ()
33040 {
33041
33042                   int mask = sigmask(SIGINT);
33043                   sigset(SIGINT, foo); sigrelse(SIGINT);
33044                   sighold(SIGINT); sigpause(SIGINT);
33045
33046   ;
33047   return 0;
33048 }
33049 _ACEOF
33050 rm -f conftest.$ac_objext conftest$ac_exeext
33051 if { (ac_try="$ac_link"
33052 case "(($ac_try" in
33053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33054   *) ac_try_echo=$ac_try;;
33055 esac
33056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33057   (eval "$ac_link") 2>conftest.er1
33058   ac_status=$?
33059   grep -v '^ *+' conftest.er1 >conftest.err
33060   rm -f conftest.er1
33061   cat conftest.err >&5
33062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063   (exit $ac_status); } && {
33064          test -z "$ac_c_werror_flag" ||
33065          test ! -s conftest.err
33066        } && test -s conftest$ac_exeext &&
33067        $as_test_x conftest$ac_exeext; then
33068   bash_cv_signal_vintage="svr3"
33069 else
33070   echo "$as_me: failed program was:" >&5
33071 sed 's/^/| /' conftest.$ac_ext >&5
33072
33073         bash_cv_signal_vintage="v7"
33074
33075 fi
33076
33077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33078       conftest$ac_exeext conftest.$ac_ext
33079
33080 fi
33081
33082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33083       conftest$ac_exeext conftest.$ac_ext
33084
33085 fi
33086
33087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33088       conftest$ac_exeext conftest.$ac_ext
33089
33090 fi
33091
33092   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33093 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33094   if test "$bash_cv_signal_vintage" = "posix"; then
33095     cat >>confdefs.h <<\_ACEOF
33096 #define HAVE_POSIX_SIGNALS 1
33097 _ACEOF
33098
33099   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33100     cat >>confdefs.h <<\_ACEOF
33101 #define HAVE_BSD_SIGNALS 1
33102 _ACEOF
33103
33104   elif test "$bash_cv_signal_vintage" = "svr3"; then
33105     cat >>confdefs.h <<\_ACEOF
33106 #define HAVE_USG_SIGHOLD 1
33107 _ACEOF
33108
33109   fi
33110
33111 { echo "$as_me:$LINENO: checking for mode_t" >&5
33112 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33113 if test "${ac_cv_type_mode_t+set}" = set; then
33114   echo $ECHO_N "(cached) $ECHO_C" >&6
33115 else
33116   cat >conftest.$ac_ext <<_ACEOF
33117 /* confdefs.h.  */
33118 _ACEOF
33119 cat confdefs.h >>conftest.$ac_ext
33120 cat >>conftest.$ac_ext <<_ACEOF
33121 /* end confdefs.h.  */
33122 $ac_includes_default
33123 typedef mode_t ac__type_new_;
33124 int
33125 main ()
33126 {
33127 if ((ac__type_new_ *) 0)
33128   return 0;
33129 if (sizeof (ac__type_new_))
33130   return 0;
33131   ;
33132   return 0;
33133 }
33134 _ACEOF
33135 rm -f conftest.$ac_objext
33136 if { (ac_try="$ac_compile"
33137 case "(($ac_try" in
33138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139   *) ac_try_echo=$ac_try;;
33140 esac
33141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142   (eval "$ac_compile") 2>conftest.er1
33143   ac_status=$?
33144   grep -v '^ *+' conftest.er1 >conftest.err
33145   rm -f conftest.er1
33146   cat conftest.err >&5
33147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148   (exit $ac_status); } && {
33149          test -z "$ac_c_werror_flag" ||
33150          test ! -s conftest.err
33151        } && test -s conftest.$ac_objext; then
33152   ac_cv_type_mode_t=yes
33153 else
33154   echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33156
33157         ac_cv_type_mode_t=no
33158 fi
33159
33160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33161 fi
33162 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33163 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33164 if test $ac_cv_type_mode_t = yes; then
33165   :
33166 else
33167
33168 cat >>confdefs.h <<_ACEOF
33169 #define mode_t int
33170 _ACEOF
33171
33172 fi
33173
33174 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33175 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33176 if test "${ac_cv_type_uid_t+set}" = set; then
33177   echo $ECHO_N "(cached) $ECHO_C" >&6
33178 else
33179   cat >conftest.$ac_ext <<_ACEOF
33180 /* confdefs.h.  */
33181 _ACEOF
33182 cat confdefs.h >>conftest.$ac_ext
33183 cat >>conftest.$ac_ext <<_ACEOF
33184 /* end confdefs.h.  */
33185 #include <sys/types.h>
33186
33187 _ACEOF
33188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33189   $EGREP "uid_t" >/dev/null 2>&1; then
33190   ac_cv_type_uid_t=yes
33191 else
33192   ac_cv_type_uid_t=no
33193 fi
33194 rm -f conftest*
33195
33196 fi
33197 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33198 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33199 if test $ac_cv_type_uid_t = no; then
33200
33201 cat >>confdefs.h <<\_ACEOF
33202 #define uid_t int
33203 _ACEOF
33204
33205
33206 cat >>confdefs.h <<\_ACEOF
33207 #define gid_t int
33208 _ACEOF
33209
33210 fi
33211
33212 { echo "$as_me:$LINENO: checking for size_t" >&5
33213 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33214 if test "${ac_cv_type_size_t+set}" = set; then
33215   echo $ECHO_N "(cached) $ECHO_C" >&6
33216 else
33217   cat >conftest.$ac_ext <<_ACEOF
33218 /* confdefs.h.  */
33219 _ACEOF
33220 cat confdefs.h >>conftest.$ac_ext
33221 cat >>conftest.$ac_ext <<_ACEOF
33222 /* end confdefs.h.  */
33223 $ac_includes_default
33224 typedef size_t ac__type_new_;
33225 int
33226 main ()
33227 {
33228 if ((ac__type_new_ *) 0)
33229   return 0;
33230 if (sizeof (ac__type_new_))
33231   return 0;
33232   ;
33233   return 0;
33234 }
33235 _ACEOF
33236 rm -f conftest.$ac_objext
33237 if { (ac_try="$ac_compile"
33238 case "(($ac_try" in
33239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240   *) ac_try_echo=$ac_try;;
33241 esac
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243   (eval "$ac_compile") 2>conftest.er1
33244   ac_status=$?
33245   grep -v '^ *+' conftest.er1 >conftest.err
33246   rm -f conftest.er1
33247   cat conftest.err >&5
33248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249   (exit $ac_status); } && {
33250          test -z "$ac_c_werror_flag" ||
33251          test ! -s conftest.err
33252        } && test -s conftest.$ac_objext; then
33253   ac_cv_type_size_t=yes
33254 else
33255   echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33257
33258         ac_cv_type_size_t=no
33259 fi
33260
33261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33262 fi
33263 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33264 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33265 if test $ac_cv_type_size_t = yes; then
33266   :
33267 else
33268
33269 cat >>confdefs.h <<_ACEOF
33270 #define size_t unsigned int
33271 _ACEOF
33272
33273 fi
33274
33275 { echo "$as_me:$LINENO: checking for pid_t" >&5
33276 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33277 if test "${ac_cv_type_pid_t+set}" = set; then
33278   echo $ECHO_N "(cached) $ECHO_C" >&6
33279 else
33280   cat >conftest.$ac_ext <<_ACEOF
33281 /* confdefs.h.  */
33282 _ACEOF
33283 cat confdefs.h >>conftest.$ac_ext
33284 cat >>conftest.$ac_ext <<_ACEOF
33285 /* end confdefs.h.  */
33286 $ac_includes_default
33287 typedef pid_t ac__type_new_;
33288 int
33289 main ()
33290 {
33291 if ((ac__type_new_ *) 0)
33292   return 0;
33293 if (sizeof (ac__type_new_))
33294   return 0;
33295   ;
33296   return 0;
33297 }
33298 _ACEOF
33299 rm -f conftest.$ac_objext
33300 if { (ac_try="$ac_compile"
33301 case "(($ac_try" in
33302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303   *) ac_try_echo=$ac_try;;
33304 esac
33305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306   (eval "$ac_compile") 2>conftest.er1
33307   ac_status=$?
33308   grep -v '^ *+' conftest.er1 >conftest.err
33309   rm -f conftest.er1
33310   cat conftest.err >&5
33311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312   (exit $ac_status); } && {
33313          test -z "$ac_c_werror_flag" ||
33314          test ! -s conftest.err
33315        } && test -s conftest.$ac_objext; then
33316   ac_cv_type_pid_t=yes
33317 else
33318   echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33320
33321         ac_cv_type_pid_t=no
33322 fi
33323
33324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33325 fi
33326 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33327 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33328 if test $ac_cv_type_pid_t = yes; then
33329   :
33330 else
33331
33332 cat >>confdefs.h <<_ACEOF
33333 #define pid_t int
33334 _ACEOF
33335
33336 fi
33337
33338 { echo "$as_me:$LINENO: checking for off_t" >&5
33339 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33340 if test "${ac_cv_type_off_t+set}" = set; then
33341   echo $ECHO_N "(cached) $ECHO_C" >&6
33342 else
33343   cat >conftest.$ac_ext <<_ACEOF
33344 /* confdefs.h.  */
33345 _ACEOF
33346 cat confdefs.h >>conftest.$ac_ext
33347 cat >>conftest.$ac_ext <<_ACEOF
33348 /* end confdefs.h.  */
33349 $ac_includes_default
33350 typedef off_t ac__type_new_;
33351 int
33352 main ()
33353 {
33354 if ((ac__type_new_ *) 0)
33355   return 0;
33356 if (sizeof (ac__type_new_))
33357   return 0;
33358   ;
33359   return 0;
33360 }
33361 _ACEOF
33362 rm -f conftest.$ac_objext
33363 if { (ac_try="$ac_compile"
33364 case "(($ac_try" in
33365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366   *) ac_try_echo=$ac_try;;
33367 esac
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369   (eval "$ac_compile") 2>conftest.er1
33370   ac_status=$?
33371   grep -v '^ *+' conftest.er1 >conftest.err
33372   rm -f conftest.er1
33373   cat conftest.err >&5
33374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375   (exit $ac_status); } && {
33376          test -z "$ac_c_werror_flag" ||
33377          test ! -s conftest.err
33378        } && test -s conftest.$ac_objext; then
33379   ac_cv_type_off_t=yes
33380 else
33381   echo "$as_me: failed program was:" >&5
33382 sed 's/^/| /' conftest.$ac_ext >&5
33383
33384         ac_cv_type_off_t=no
33385 fi
33386
33387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33388 fi
33389 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33390 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33391 if test $ac_cv_type_off_t = yes; then
33392   :
33393 else
33394
33395 cat >>confdefs.h <<_ACEOF
33396 #define off_t long int
33397 _ACEOF
33398
33399 fi
33400
33401 { echo "$as_me:$LINENO: checking for ino_t" >&5
33402 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33403 if test "${ac_cv_type_ino_t+set}" = set; then
33404   echo $ECHO_N "(cached) $ECHO_C" >&6
33405 else
33406   cat >conftest.$ac_ext <<_ACEOF
33407 /* confdefs.h.  */
33408 _ACEOF
33409 cat confdefs.h >>conftest.$ac_ext
33410 cat >>conftest.$ac_ext <<_ACEOF
33411 /* end confdefs.h.  */
33412 $ac_includes_default
33413 typedef ino_t ac__type_new_;
33414 int
33415 main ()
33416 {
33417 if ((ac__type_new_ *) 0)
33418   return 0;
33419 if (sizeof (ac__type_new_))
33420   return 0;
33421   ;
33422   return 0;
33423 }
33424 _ACEOF
33425 rm -f conftest.$ac_objext
33426 if { (ac_try="$ac_compile"
33427 case "(($ac_try" in
33428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33429   *) ac_try_echo=$ac_try;;
33430 esac
33431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33432   (eval "$ac_compile") 2>conftest.er1
33433   ac_status=$?
33434   grep -v '^ *+' conftest.er1 >conftest.err
33435   rm -f conftest.er1
33436   cat conftest.err >&5
33437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438   (exit $ac_status); } && {
33439          test -z "$ac_c_werror_flag" ||
33440          test ! -s conftest.err
33441        } && test -s conftest.$ac_objext; then
33442   ac_cv_type_ino_t=yes
33443 else
33444   echo "$as_me: failed program was:" >&5
33445 sed 's/^/| /' conftest.$ac_ext >&5
33446
33447         ac_cv_type_ino_t=no
33448 fi
33449
33450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33451 fi
33452 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33453 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33454 if test $ac_cv_type_ino_t = yes; then
33455   :
33456 else
33457
33458 cat >>confdefs.h <<_ACEOF
33459 #define ino_t unsigned long
33460 _ACEOF
33461
33462 fi
33463
33464 { echo "$as_me:$LINENO: checking for dev_t" >&5
33465 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33466 if test "${ac_cv_type_dev_t+set}" = set; then
33467   echo $ECHO_N "(cached) $ECHO_C" >&6
33468 else
33469   cat >conftest.$ac_ext <<_ACEOF
33470 /* confdefs.h.  */
33471 _ACEOF
33472 cat confdefs.h >>conftest.$ac_ext
33473 cat >>conftest.$ac_ext <<_ACEOF
33474 /* end confdefs.h.  */
33475 $ac_includes_default
33476 typedef dev_t ac__type_new_;
33477 int
33478 main ()
33479 {
33480 if ((ac__type_new_ *) 0)
33481   return 0;
33482 if (sizeof (ac__type_new_))
33483   return 0;
33484   ;
33485   return 0;
33486 }
33487 _ACEOF
33488 rm -f conftest.$ac_objext
33489 if { (ac_try="$ac_compile"
33490 case "(($ac_try" in
33491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33492   *) ac_try_echo=$ac_try;;
33493 esac
33494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33495   (eval "$ac_compile") 2>conftest.er1
33496   ac_status=$?
33497   grep -v '^ *+' conftest.er1 >conftest.err
33498   rm -f conftest.er1
33499   cat conftest.err >&5
33500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501   (exit $ac_status); } && {
33502          test -z "$ac_c_werror_flag" ||
33503          test ! -s conftest.err
33504        } && test -s conftest.$ac_objext; then
33505   ac_cv_type_dev_t=yes
33506 else
33507   echo "$as_me: failed program was:" >&5
33508 sed 's/^/| /' conftest.$ac_ext >&5
33509
33510         ac_cv_type_dev_t=no
33511 fi
33512
33513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33514 fi
33515 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33516 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33517 if test $ac_cv_type_dev_t = yes; then
33518   :
33519 else
33520
33521 cat >>confdefs.h <<_ACEOF
33522 #define dev_t unsigned long
33523 _ACEOF
33524
33525 fi
33526
33527 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33528 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33529 if test "${ac_cv_type_daddr_t+set}" = set; then
33530   echo $ECHO_N "(cached) $ECHO_C" >&6
33531 else
33532   cat >conftest.$ac_ext <<_ACEOF
33533 /* confdefs.h.  */
33534 _ACEOF
33535 cat confdefs.h >>conftest.$ac_ext
33536 cat >>conftest.$ac_ext <<_ACEOF
33537 /* end confdefs.h.  */
33538 $ac_includes_default
33539 typedef daddr_t ac__type_new_;
33540 int
33541 main ()
33542 {
33543 if ((ac__type_new_ *) 0)
33544   return 0;
33545 if (sizeof (ac__type_new_))
33546   return 0;
33547   ;
33548   return 0;
33549 }
33550 _ACEOF
33551 rm -f conftest.$ac_objext
33552 if { (ac_try="$ac_compile"
33553 case "(($ac_try" in
33554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555   *) ac_try_echo=$ac_try;;
33556 esac
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558   (eval "$ac_compile") 2>conftest.er1
33559   ac_status=$?
33560   grep -v '^ *+' conftest.er1 >conftest.err
33561   rm -f conftest.er1
33562   cat conftest.err >&5
33563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564   (exit $ac_status); } && {
33565          test -z "$ac_c_werror_flag" ||
33566          test ! -s conftest.err
33567        } && test -s conftest.$ac_objext; then
33568   ac_cv_type_daddr_t=yes
33569 else
33570   echo "$as_me: failed program was:" >&5
33571 sed 's/^/| /' conftest.$ac_ext >&5
33572
33573         ac_cv_type_daddr_t=no
33574 fi
33575
33576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33577 fi
33578 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33579 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33580 if test $ac_cv_type_daddr_t = yes; then
33581   :
33582 else
33583
33584 cat >>confdefs.h <<_ACEOF
33585 #define daddr_t long
33586 _ACEOF
33587
33588 fi
33589
33590 { echo "$as_me:$LINENO: checking for major_t" >&5
33591 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33592 if test "${ac_cv_type_major_t+set}" = set; then
33593   echo $ECHO_N "(cached) $ECHO_C" >&6
33594 else
33595   cat >conftest.$ac_ext <<_ACEOF
33596 /* confdefs.h.  */
33597 _ACEOF
33598 cat confdefs.h >>conftest.$ac_ext
33599 cat >>conftest.$ac_ext <<_ACEOF
33600 /* end confdefs.h.  */
33601 $ac_includes_default
33602 typedef major_t ac__type_new_;
33603 int
33604 main ()
33605 {
33606 if ((ac__type_new_ *) 0)
33607   return 0;
33608 if (sizeof (ac__type_new_))
33609   return 0;
33610   ;
33611   return 0;
33612 }
33613 _ACEOF
33614 rm -f conftest.$ac_objext
33615 if { (ac_try="$ac_compile"
33616 case "(($ac_try" in
33617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33618   *) ac_try_echo=$ac_try;;
33619 esac
33620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33621   (eval "$ac_compile") 2>conftest.er1
33622   ac_status=$?
33623   grep -v '^ *+' conftest.er1 >conftest.err
33624   rm -f conftest.er1
33625   cat conftest.err >&5
33626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627   (exit $ac_status); } && {
33628          test -z "$ac_c_werror_flag" ||
33629          test ! -s conftest.err
33630        } && test -s conftest.$ac_objext; then
33631   ac_cv_type_major_t=yes
33632 else
33633   echo "$as_me: failed program was:" >&5
33634 sed 's/^/| /' conftest.$ac_ext >&5
33635
33636         ac_cv_type_major_t=no
33637 fi
33638
33639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33640 fi
33641 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33642 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33643 if test $ac_cv_type_major_t = yes; then
33644   :
33645 else
33646
33647 cat >>confdefs.h <<_ACEOF
33648 #define major_t int
33649 _ACEOF
33650
33651 fi
33652
33653 { echo "$as_me:$LINENO: checking for minor_t" >&5
33654 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33655 if test "${ac_cv_type_minor_t+set}" = set; then
33656   echo $ECHO_N "(cached) $ECHO_C" >&6
33657 else
33658   cat >conftest.$ac_ext <<_ACEOF
33659 /* confdefs.h.  */
33660 _ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h.  */
33664 $ac_includes_default
33665 typedef minor_t ac__type_new_;
33666 int
33667 main ()
33668 {
33669 if ((ac__type_new_ *) 0)
33670   return 0;
33671 if (sizeof (ac__type_new_))
33672   return 0;
33673   ;
33674   return 0;
33675 }
33676 _ACEOF
33677 rm -f conftest.$ac_objext
33678 if { (ac_try="$ac_compile"
33679 case "(($ac_try" in
33680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33681   *) ac_try_echo=$ac_try;;
33682 esac
33683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33684   (eval "$ac_compile") 2>conftest.er1
33685   ac_status=$?
33686   grep -v '^ *+' conftest.er1 >conftest.err
33687   rm -f conftest.er1
33688   cat conftest.err >&5
33689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690   (exit $ac_status); } && {
33691          test -z "$ac_c_werror_flag" ||
33692          test ! -s conftest.err
33693        } && test -s conftest.$ac_objext; then
33694   ac_cv_type_minor_t=yes
33695 else
33696   echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33698
33699         ac_cv_type_minor_t=no
33700 fi
33701
33702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33703 fi
33704 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33705 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33706 if test $ac_cv_type_minor_t = yes; then
33707   :
33708 else
33709
33710 cat >>confdefs.h <<_ACEOF
33711 #define minor_t int
33712 _ACEOF
33713
33714 fi
33715
33716 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33717 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33718 if test "${ac_cv_type_ssize_t+set}" = set; then
33719   echo $ECHO_N "(cached) $ECHO_C" >&6
33720 else
33721   cat >conftest.$ac_ext <<_ACEOF
33722 /* confdefs.h.  */
33723 _ACEOF
33724 cat confdefs.h >>conftest.$ac_ext
33725 cat >>conftest.$ac_ext <<_ACEOF
33726 /* end confdefs.h.  */
33727 $ac_includes_default
33728 typedef ssize_t ac__type_new_;
33729 int
33730 main ()
33731 {
33732 if ((ac__type_new_ *) 0)
33733   return 0;
33734 if (sizeof (ac__type_new_))
33735   return 0;
33736   ;
33737   return 0;
33738 }
33739 _ACEOF
33740 rm -f conftest.$ac_objext
33741 if { (ac_try="$ac_compile"
33742 case "(($ac_try" in
33743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33744   *) ac_try_echo=$ac_try;;
33745 esac
33746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33747   (eval "$ac_compile") 2>conftest.er1
33748   ac_status=$?
33749   grep -v '^ *+' conftest.er1 >conftest.err
33750   rm -f conftest.er1
33751   cat conftest.err >&5
33752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753   (exit $ac_status); } && {
33754          test -z "$ac_c_werror_flag" ||
33755          test ! -s conftest.err
33756        } && test -s conftest.$ac_objext; then
33757   ac_cv_type_ssize_t=yes
33758 else
33759   echo "$as_me: failed program was:" >&5
33760 sed 's/^/| /' conftest.$ac_ext >&5
33761
33762         ac_cv_type_ssize_t=no
33763 fi
33764
33765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33766 fi
33767 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33768 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33769 if test $ac_cv_type_ssize_t = yes; then
33770   :
33771 else
33772
33773 cat >>confdefs.h <<_ACEOF
33774 #define ssize_t int
33775 _ACEOF
33776
33777 fi
33778
33779 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33780 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33781 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33782   echo $ECHO_N "(cached) $ECHO_C" >&6
33783 else
33784   cat >conftest.$ac_ext <<_ACEOF
33785 /* confdefs.h.  */
33786 _ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h.  */
33790 $ac_includes_default
33791 int
33792 main ()
33793 {
33794 static struct stat ac_aggr;
33795 if (ac_aggr.st_blocks)
33796 return 0;
33797   ;
33798   return 0;
33799 }
33800 _ACEOF
33801 rm -f conftest.$ac_objext
33802 if { (ac_try="$ac_compile"
33803 case "(($ac_try" in
33804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805   *) ac_try_echo=$ac_try;;
33806 esac
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808   (eval "$ac_compile") 2>conftest.er1
33809   ac_status=$?
33810   grep -v '^ *+' conftest.er1 >conftest.err
33811   rm -f conftest.er1
33812   cat conftest.err >&5
33813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814   (exit $ac_status); } && {
33815          test -z "$ac_c_werror_flag" ||
33816          test ! -s conftest.err
33817        } && test -s conftest.$ac_objext; then
33818   ac_cv_member_struct_stat_st_blocks=yes
33819 else
33820   echo "$as_me: failed program was:" >&5
33821 sed 's/^/| /' conftest.$ac_ext >&5
33822
33823         cat >conftest.$ac_ext <<_ACEOF
33824 /* confdefs.h.  */
33825 _ACEOF
33826 cat confdefs.h >>conftest.$ac_ext
33827 cat >>conftest.$ac_ext <<_ACEOF
33828 /* end confdefs.h.  */
33829 $ac_includes_default
33830 int
33831 main ()
33832 {
33833 static struct stat ac_aggr;
33834 if (sizeof ac_aggr.st_blocks)
33835 return 0;
33836   ;
33837   return 0;
33838 }
33839 _ACEOF
33840 rm -f conftest.$ac_objext
33841 if { (ac_try="$ac_compile"
33842 case "(($ac_try" in
33843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33844   *) ac_try_echo=$ac_try;;
33845 esac
33846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33847   (eval "$ac_compile") 2>conftest.er1
33848   ac_status=$?
33849   grep -v '^ *+' conftest.er1 >conftest.err
33850   rm -f conftest.er1
33851   cat conftest.err >&5
33852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853   (exit $ac_status); } && {
33854          test -z "$ac_c_werror_flag" ||
33855          test ! -s conftest.err
33856        } && test -s conftest.$ac_objext; then
33857   ac_cv_member_struct_stat_st_blocks=yes
33858 else
33859   echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33861
33862         ac_cv_member_struct_stat_st_blocks=no
33863 fi
33864
33865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33866 fi
33867
33868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33869 fi
33870 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33871 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33872 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33873
33874 cat >>confdefs.h <<_ACEOF
33875 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33876 _ACEOF
33877
33878
33879 cat >>confdefs.h <<\_ACEOF
33880 #define HAVE_ST_BLOCKS 1
33881 _ACEOF
33882
33883 else
33884   case " $LIBOBJS " in
33885   *" fileblocks.$ac_objext "* ) ;;
33886   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33887  ;;
33888 esac
33889
33890 fi
33891
33892
33893 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33894 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33895 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33896   echo $ECHO_N "(cached) $ECHO_C" >&6
33897 else
33898   cat >conftest.$ac_ext <<_ACEOF
33899 /* confdefs.h.  */
33900 _ACEOF
33901 cat confdefs.h >>conftest.$ac_ext
33902 cat >>conftest.$ac_ext <<_ACEOF
33903 /* end confdefs.h.  */
33904 $ac_includes_default
33905 int
33906 main ()
33907 {
33908 static struct stat ac_aggr;
33909 if (ac_aggr.st_rdev)
33910 return 0;
33911   ;
33912   return 0;
33913 }
33914 _ACEOF
33915 rm -f conftest.$ac_objext
33916 if { (ac_try="$ac_compile"
33917 case "(($ac_try" in
33918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33919   *) ac_try_echo=$ac_try;;
33920 esac
33921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33922   (eval "$ac_compile") 2>conftest.er1
33923   ac_status=$?
33924   grep -v '^ *+' conftest.er1 >conftest.err
33925   rm -f conftest.er1
33926   cat conftest.err >&5
33927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928   (exit $ac_status); } && {
33929          test -z "$ac_c_werror_flag" ||
33930          test ! -s conftest.err
33931        } && test -s conftest.$ac_objext; then
33932   ac_cv_member_struct_stat_st_rdev=yes
33933 else
33934   echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33936
33937         cat >conftest.$ac_ext <<_ACEOF
33938 /* confdefs.h.  */
33939 _ACEOF
33940 cat confdefs.h >>conftest.$ac_ext
33941 cat >>conftest.$ac_ext <<_ACEOF
33942 /* end confdefs.h.  */
33943 $ac_includes_default
33944 int
33945 main ()
33946 {
33947 static struct stat ac_aggr;
33948 if (sizeof ac_aggr.st_rdev)
33949 return 0;
33950   ;
33951   return 0;
33952 }
33953 _ACEOF
33954 rm -f conftest.$ac_objext
33955 if { (ac_try="$ac_compile"
33956 case "(($ac_try" in
33957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958   *) ac_try_echo=$ac_try;;
33959 esac
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961   (eval "$ac_compile") 2>conftest.er1
33962   ac_status=$?
33963   grep -v '^ *+' conftest.er1 >conftest.err
33964   rm -f conftest.er1
33965   cat conftest.err >&5
33966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967   (exit $ac_status); } && {
33968          test -z "$ac_c_werror_flag" ||
33969          test ! -s conftest.err
33970        } && test -s conftest.$ac_objext; then
33971   ac_cv_member_struct_stat_st_rdev=yes
33972 else
33973   echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33975
33976         ac_cv_member_struct_stat_st_rdev=no
33977 fi
33978
33979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33980 fi
33981
33982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33983 fi
33984 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33985 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33986 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33987
33988 cat >>confdefs.h <<_ACEOF
33989 #define HAVE_STRUCT_STAT_ST_RDEV 1
33990 _ACEOF
33991
33992
33993 cat >>confdefs.h <<\_ACEOF
33994 #define HAVE_ST_RDEV 1
33995 _ACEOF
33996
33997 fi
33998
33999
34000 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34001 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34002 if test "${ac_cv_struct_tm+set}" = set; then
34003   echo $ECHO_N "(cached) $ECHO_C" >&6
34004 else
34005   cat >conftest.$ac_ext <<_ACEOF
34006 /* confdefs.h.  */
34007 _ACEOF
34008 cat confdefs.h >>conftest.$ac_ext
34009 cat >>conftest.$ac_ext <<_ACEOF
34010 /* end confdefs.h.  */
34011 #include <sys/types.h>
34012 #include <time.h>
34013
34014 int
34015 main ()
34016 {
34017 struct tm tm;
34018                                      int *p = &tm.tm_sec;
34019                                      return !p;
34020   ;
34021   return 0;
34022 }
34023 _ACEOF
34024 rm -f conftest.$ac_objext
34025 if { (ac_try="$ac_compile"
34026 case "(($ac_try" in
34027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028   *) ac_try_echo=$ac_try;;
34029 esac
34030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031   (eval "$ac_compile") 2>conftest.er1
34032   ac_status=$?
34033   grep -v '^ *+' conftest.er1 >conftest.err
34034   rm -f conftest.er1
34035   cat conftest.err >&5
34036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037   (exit $ac_status); } && {
34038          test -z "$ac_c_werror_flag" ||
34039          test ! -s conftest.err
34040        } && test -s conftest.$ac_objext; then
34041   ac_cv_struct_tm=time.h
34042 else
34043   echo "$as_me: failed program was:" >&5
34044 sed 's/^/| /' conftest.$ac_ext >&5
34045
34046         ac_cv_struct_tm=sys/time.h
34047 fi
34048
34049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34050 fi
34051 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34052 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34053 if test $ac_cv_struct_tm = sys/time.h; then
34054
34055 cat >>confdefs.h <<\_ACEOF
34056 #define TM_IN_SYS_TIME 1
34057 _ACEOF
34058
34059 fi
34060
34061 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34062 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34063 if test "${ac_cv_c_const+set}" = set; then
34064   echo $ECHO_N "(cached) $ECHO_C" >&6
34065 else
34066   cat >conftest.$ac_ext <<_ACEOF
34067 /* confdefs.h.  */
34068 _ACEOF
34069 cat confdefs.h >>conftest.$ac_ext
34070 cat >>conftest.$ac_ext <<_ACEOF
34071 /* end confdefs.h.  */
34072
34073 int
34074 main ()
34075 {
34076 /* FIXME: Include the comments suggested by Paul. */
34077 #ifndef __cplusplus
34078   /* Ultrix mips cc rejects this.  */
34079   typedef int charset[2];
34080   const charset cs;
34081   /* SunOS 4.1.1 cc rejects this.  */
34082   char const *const *pcpcc;
34083   char **ppc;
34084   /* NEC SVR4.0.2 mips cc rejects this.  */
34085   struct point {int x, y;};
34086   static struct point const zero = {0,0};
34087   /* AIX XL C 1.02.0.0 rejects this.
34088      It does not let you subtract one const X* pointer from another in
34089      an arm of an if-expression whose if-part is not a constant
34090      expression */
34091   const char *g = "string";
34092   pcpcc = &g + (g ? g-g : 0);
34093   /* HPUX 7.0 cc rejects these. */
34094   ++pcpcc;
34095   ppc = (char**) pcpcc;
34096   pcpcc = (char const *const *) ppc;
34097   { /* SCO 3.2v4 cc rejects this.  */
34098     char *t;
34099     char const *s = 0 ? (char *) 0 : (char const *) 0;
34100
34101     *t++ = 0;
34102     if (s) return 0;
34103   }
34104   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34105     int x[] = {25, 17};
34106     const int *foo = &x[0];
34107     ++foo;
34108   }
34109   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34110     typedef const int *iptr;
34111     iptr p = 0;
34112     ++p;
34113   }
34114   { /* AIX XL C 1.02.0.0 rejects this saying
34115        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34116     struct s { int j; const int *ap[3]; };
34117     struct s *b; b->j = 5;
34118   }
34119   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34120     const int foo = 10;
34121     if (!foo) return 0;
34122   }
34123   return !cs[0] && !zero.x;
34124 #endif
34125
34126   ;
34127   return 0;
34128 }
34129 _ACEOF
34130 rm -f conftest.$ac_objext
34131 if { (ac_try="$ac_compile"
34132 case "(($ac_try" in
34133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34134   *) ac_try_echo=$ac_try;;
34135 esac
34136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34137   (eval "$ac_compile") 2>conftest.er1
34138   ac_status=$?
34139   grep -v '^ *+' conftest.er1 >conftest.err
34140   rm -f conftest.er1
34141   cat conftest.err >&5
34142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143   (exit $ac_status); } && {
34144          test -z "$ac_c_werror_flag" ||
34145          test ! -s conftest.err
34146        } && test -s conftest.$ac_objext; then
34147   ac_cv_c_const=yes
34148 else
34149   echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34151
34152         ac_cv_c_const=no
34153 fi
34154
34155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34156 fi
34157 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34158 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34159 if test $ac_cv_c_const = no; then
34160
34161 cat >>confdefs.h <<\_ACEOF
34162 #define const
34163 _ACEOF
34164
34165 fi
34166
34167
34168 { echo "$as_me:$LINENO: checking for char" >&5
34169 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34170 if test "${ac_cv_type_char+set}" = set; then
34171   echo $ECHO_N "(cached) $ECHO_C" >&6
34172 else
34173   cat >conftest.$ac_ext <<_ACEOF
34174 /* confdefs.h.  */
34175 _ACEOF
34176 cat confdefs.h >>conftest.$ac_ext
34177 cat >>conftest.$ac_ext <<_ACEOF
34178 /* end confdefs.h.  */
34179 $ac_includes_default
34180 typedef char ac__type_new_;
34181 int
34182 main ()
34183 {
34184 if ((ac__type_new_ *) 0)
34185   return 0;
34186 if (sizeof (ac__type_new_))
34187   return 0;
34188   ;
34189   return 0;
34190 }
34191 _ACEOF
34192 rm -f conftest.$ac_objext
34193 if { (ac_try="$ac_compile"
34194 case "(($ac_try" in
34195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34196   *) ac_try_echo=$ac_try;;
34197 esac
34198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34199   (eval "$ac_compile") 2>conftest.er1
34200   ac_status=$?
34201   grep -v '^ *+' conftest.er1 >conftest.err
34202   rm -f conftest.er1
34203   cat conftest.err >&5
34204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205   (exit $ac_status); } && {
34206          test -z "$ac_c_werror_flag" ||
34207          test ! -s conftest.err
34208        } && test -s conftest.$ac_objext; then
34209   ac_cv_type_char=yes
34210 else
34211   echo "$as_me: failed program was:" >&5
34212 sed 's/^/| /' conftest.$ac_ext >&5
34213
34214         ac_cv_type_char=no
34215 fi
34216
34217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34218 fi
34219 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34220 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34221
34222 # The cast to long int works around a bug in the HP C Compiler
34223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34225 # This bug is HP SR number 8606223364.
34226 { echo "$as_me:$LINENO: checking size of char" >&5
34227 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34228 if test "${ac_cv_sizeof_char+set}" = set; then
34229   echo $ECHO_N "(cached) $ECHO_C" >&6
34230 else
34231   if test "$cross_compiling" = yes; then
34232   # Depending upon the size, compute the lo and hi bounds.
34233 cat >conftest.$ac_ext <<_ACEOF
34234 /* confdefs.h.  */
34235 _ACEOF
34236 cat confdefs.h >>conftest.$ac_ext
34237 cat >>conftest.$ac_ext <<_ACEOF
34238 /* end confdefs.h.  */
34239 $ac_includes_default
34240    typedef char ac__type_sizeof_;
34241 int
34242 main ()
34243 {
34244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34245 test_array [0] = 0
34246
34247   ;
34248   return 0;
34249 }
34250 _ACEOF
34251 rm -f conftest.$ac_objext
34252 if { (ac_try="$ac_compile"
34253 case "(($ac_try" in
34254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255   *) ac_try_echo=$ac_try;;
34256 esac
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258   (eval "$ac_compile") 2>conftest.er1
34259   ac_status=$?
34260   grep -v '^ *+' conftest.er1 >conftest.err
34261   rm -f conftest.er1
34262   cat conftest.err >&5
34263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264   (exit $ac_status); } && {
34265          test -z "$ac_c_werror_flag" ||
34266          test ! -s conftest.err
34267        } && test -s conftest.$ac_objext; then
34268   ac_lo=0 ac_mid=0
34269   while :; do
34270     cat >conftest.$ac_ext <<_ACEOF
34271 /* confdefs.h.  */
34272 _ACEOF
34273 cat confdefs.h >>conftest.$ac_ext
34274 cat >>conftest.$ac_ext <<_ACEOF
34275 /* end confdefs.h.  */
34276 $ac_includes_default
34277    typedef char ac__type_sizeof_;
34278 int
34279 main ()
34280 {
34281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34282 test_array [0] = 0
34283
34284   ;
34285   return 0;
34286 }
34287 _ACEOF
34288 rm -f conftest.$ac_objext
34289 if { (ac_try="$ac_compile"
34290 case "(($ac_try" in
34291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34292   *) ac_try_echo=$ac_try;;
34293 esac
34294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34295   (eval "$ac_compile") 2>conftest.er1
34296   ac_status=$?
34297   grep -v '^ *+' conftest.er1 >conftest.err
34298   rm -f conftest.er1
34299   cat conftest.err >&5
34300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301   (exit $ac_status); } && {
34302          test -z "$ac_c_werror_flag" ||
34303          test ! -s conftest.err
34304        } && test -s conftest.$ac_objext; then
34305   ac_hi=$ac_mid; break
34306 else
34307   echo "$as_me: failed program was:" >&5
34308 sed 's/^/| /' conftest.$ac_ext >&5
34309
34310         ac_lo=`expr $ac_mid + 1`
34311                         if test $ac_lo -le $ac_mid; then
34312                           ac_lo= ac_hi=
34313                           break
34314                         fi
34315                         ac_mid=`expr 2 '*' $ac_mid + 1`
34316 fi
34317
34318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34319   done
34320 else
34321   echo "$as_me: failed program was:" >&5
34322 sed 's/^/| /' conftest.$ac_ext >&5
34323
34324         cat >conftest.$ac_ext <<_ACEOF
34325 /* confdefs.h.  */
34326 _ACEOF
34327 cat confdefs.h >>conftest.$ac_ext
34328 cat >>conftest.$ac_ext <<_ACEOF
34329 /* end confdefs.h.  */
34330 $ac_includes_default
34331    typedef char ac__type_sizeof_;
34332 int
34333 main ()
34334 {
34335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34336 test_array [0] = 0
34337
34338   ;
34339   return 0;
34340 }
34341 _ACEOF
34342 rm -f conftest.$ac_objext
34343 if { (ac_try="$ac_compile"
34344 case "(($ac_try" in
34345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34346   *) ac_try_echo=$ac_try;;
34347 esac
34348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34349   (eval "$ac_compile") 2>conftest.er1
34350   ac_status=$?
34351   grep -v '^ *+' conftest.er1 >conftest.err
34352   rm -f conftest.er1
34353   cat conftest.err >&5
34354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355   (exit $ac_status); } && {
34356          test -z "$ac_c_werror_flag" ||
34357          test ! -s conftest.err
34358        } && test -s conftest.$ac_objext; then
34359   ac_hi=-1 ac_mid=-1
34360   while :; do
34361     cat >conftest.$ac_ext <<_ACEOF
34362 /* confdefs.h.  */
34363 _ACEOF
34364 cat confdefs.h >>conftest.$ac_ext
34365 cat >>conftest.$ac_ext <<_ACEOF
34366 /* end confdefs.h.  */
34367 $ac_includes_default
34368    typedef char ac__type_sizeof_;
34369 int
34370 main ()
34371 {
34372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34373 test_array [0] = 0
34374
34375   ;
34376   return 0;
34377 }
34378 _ACEOF
34379 rm -f conftest.$ac_objext
34380 if { (ac_try="$ac_compile"
34381 case "(($ac_try" in
34382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34383   *) ac_try_echo=$ac_try;;
34384 esac
34385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34386   (eval "$ac_compile") 2>conftest.er1
34387   ac_status=$?
34388   grep -v '^ *+' conftest.er1 >conftest.err
34389   rm -f conftest.er1
34390   cat conftest.err >&5
34391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392   (exit $ac_status); } && {
34393          test -z "$ac_c_werror_flag" ||
34394          test ! -s conftest.err
34395        } && test -s conftest.$ac_objext; then
34396   ac_lo=$ac_mid; break
34397 else
34398   echo "$as_me: failed program was:" >&5
34399 sed 's/^/| /' conftest.$ac_ext >&5
34400
34401         ac_hi=`expr '(' $ac_mid ')' - 1`
34402                         if test $ac_mid -le $ac_hi; then
34403                           ac_lo= ac_hi=
34404                           break
34405                         fi
34406                         ac_mid=`expr 2 '*' $ac_mid`
34407 fi
34408
34409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34410   done
34411 else
34412   echo "$as_me: failed program was:" >&5
34413 sed 's/^/| /' conftest.$ac_ext >&5
34414
34415         ac_lo= ac_hi=
34416 fi
34417
34418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34419 fi
34420
34421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34422 # Binary search between lo and hi bounds.
34423 while test "x$ac_lo" != "x$ac_hi"; do
34424   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34425   cat >conftest.$ac_ext <<_ACEOF
34426 /* confdefs.h.  */
34427 _ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h.  */
34431 $ac_includes_default
34432    typedef char ac__type_sizeof_;
34433 int
34434 main ()
34435 {
34436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34437 test_array [0] = 0
34438
34439   ;
34440   return 0;
34441 }
34442 _ACEOF
34443 rm -f conftest.$ac_objext
34444 if { (ac_try="$ac_compile"
34445 case "(($ac_try" in
34446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34447   *) ac_try_echo=$ac_try;;
34448 esac
34449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34450   (eval "$ac_compile") 2>conftest.er1
34451   ac_status=$?
34452   grep -v '^ *+' conftest.er1 >conftest.err
34453   rm -f conftest.er1
34454   cat conftest.err >&5
34455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456   (exit $ac_status); } && {
34457          test -z "$ac_c_werror_flag" ||
34458          test ! -s conftest.err
34459        } && test -s conftest.$ac_objext; then
34460   ac_hi=$ac_mid
34461 else
34462   echo "$as_me: failed program was:" >&5
34463 sed 's/^/| /' conftest.$ac_ext >&5
34464
34465         ac_lo=`expr '(' $ac_mid ')' + 1`
34466 fi
34467
34468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34469 done
34470 case $ac_lo in
34471 ?*) ac_cv_sizeof_char=$ac_lo;;
34472 '') if test "$ac_cv_type_char" = yes; then
34473      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34474 See \`config.log' for more details." >&5
34475 echo "$as_me: error: cannot compute sizeof (char)
34476 See \`config.log' for more details." >&2;}
34477    { (exit 77); exit 77; }; }
34478    else
34479      ac_cv_sizeof_char=0
34480    fi ;;
34481 esac
34482 else
34483   cat >conftest.$ac_ext <<_ACEOF
34484 /* confdefs.h.  */
34485 _ACEOF
34486 cat confdefs.h >>conftest.$ac_ext
34487 cat >>conftest.$ac_ext <<_ACEOF
34488 /* end confdefs.h.  */
34489 $ac_includes_default
34490    typedef char ac__type_sizeof_;
34491 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34492 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34493 #include <stdio.h>
34494 #include <stdlib.h>
34495 int
34496 main ()
34497 {
34498
34499   FILE *f = fopen ("conftest.val", "w");
34500   if (! f)
34501     return 1;
34502   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34503     {
34504       long int i = longval ();
34505       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34506         return 1;
34507       fprintf (f, "%ld\n", i);
34508     }
34509   else
34510     {
34511       unsigned long int i = ulongval ();
34512       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34513         return 1;
34514       fprintf (f, "%lu\n", i);
34515     }
34516   return ferror (f) || fclose (f) != 0;
34517
34518   ;
34519   return 0;
34520 }
34521 _ACEOF
34522 rm -f conftest$ac_exeext
34523 if { (ac_try="$ac_link"
34524 case "(($ac_try" in
34525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526   *) ac_try_echo=$ac_try;;
34527 esac
34528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529   (eval "$ac_link") 2>&5
34530   ac_status=$?
34531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34533   { (case "(($ac_try" in
34534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34535   *) ac_try_echo=$ac_try;;
34536 esac
34537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34538   (eval "$ac_try") 2>&5
34539   ac_status=$?
34540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541   (exit $ac_status); }; }; then
34542   ac_cv_sizeof_char=`cat conftest.val`
34543 else
34544   echo "$as_me: program exited with status $ac_status" >&5
34545 echo "$as_me: failed program was:" >&5
34546 sed 's/^/| /' conftest.$ac_ext >&5
34547
34548 ( exit $ac_status )
34549 if test "$ac_cv_type_char" = yes; then
34550      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34551 See \`config.log' for more details." >&5
34552 echo "$as_me: error: cannot compute sizeof (char)
34553 See \`config.log' for more details." >&2;}
34554    { (exit 77); exit 77; }; }
34555    else
34556      ac_cv_sizeof_char=0
34557    fi
34558 fi
34559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34560 fi
34561 rm -f conftest.val
34562 fi
34563 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34564 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34565
34566
34567
34568 cat >>confdefs.h <<_ACEOF
34569 #define SIZEOF_CHAR $ac_cv_sizeof_char
34570 _ACEOF
34571
34572
34573 { echo "$as_me:$LINENO: checking for short int" >&5
34574 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34575 if test "${ac_cv_type_short_int+set}" = set; then
34576   echo $ECHO_N "(cached) $ECHO_C" >&6
34577 else
34578   cat >conftest.$ac_ext <<_ACEOF
34579 /* confdefs.h.  */
34580 _ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h.  */
34584 $ac_includes_default
34585 typedef short int ac__type_new_;
34586 int
34587 main ()
34588 {
34589 if ((ac__type_new_ *) 0)
34590   return 0;
34591 if (sizeof (ac__type_new_))
34592   return 0;
34593   ;
34594   return 0;
34595 }
34596 _ACEOF
34597 rm -f conftest.$ac_objext
34598 if { (ac_try="$ac_compile"
34599 case "(($ac_try" in
34600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34601   *) ac_try_echo=$ac_try;;
34602 esac
34603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34604   (eval "$ac_compile") 2>conftest.er1
34605   ac_status=$?
34606   grep -v '^ *+' conftest.er1 >conftest.err
34607   rm -f conftest.er1
34608   cat conftest.err >&5
34609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610   (exit $ac_status); } && {
34611          test -z "$ac_c_werror_flag" ||
34612          test ! -s conftest.err
34613        } && test -s conftest.$ac_objext; then
34614   ac_cv_type_short_int=yes
34615 else
34616   echo "$as_me: failed program was:" >&5
34617 sed 's/^/| /' conftest.$ac_ext >&5
34618
34619         ac_cv_type_short_int=no
34620 fi
34621
34622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34623 fi
34624 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34625 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34626
34627 # The cast to long int works around a bug in the HP C Compiler
34628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34630 # This bug is HP SR number 8606223364.
34631 { echo "$as_me:$LINENO: checking size of short int" >&5
34632 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34633 if test "${ac_cv_sizeof_short_int+set}" = set; then
34634   echo $ECHO_N "(cached) $ECHO_C" >&6
34635 else
34636   if test "$cross_compiling" = yes; then
34637   # Depending upon the size, compute the lo and hi bounds.
34638 cat >conftest.$ac_ext <<_ACEOF
34639 /* confdefs.h.  */
34640 _ACEOF
34641 cat confdefs.h >>conftest.$ac_ext
34642 cat >>conftest.$ac_ext <<_ACEOF
34643 /* end confdefs.h.  */
34644 $ac_includes_default
34645    typedef short int ac__type_sizeof_;
34646 int
34647 main ()
34648 {
34649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34650 test_array [0] = 0
34651
34652   ;
34653   return 0;
34654 }
34655 _ACEOF
34656 rm -f conftest.$ac_objext
34657 if { (ac_try="$ac_compile"
34658 case "(($ac_try" in
34659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34660   *) ac_try_echo=$ac_try;;
34661 esac
34662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34663   (eval "$ac_compile") 2>conftest.er1
34664   ac_status=$?
34665   grep -v '^ *+' conftest.er1 >conftest.err
34666   rm -f conftest.er1
34667   cat conftest.err >&5
34668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669   (exit $ac_status); } && {
34670          test -z "$ac_c_werror_flag" ||
34671          test ! -s conftest.err
34672        } && test -s conftest.$ac_objext; then
34673   ac_lo=0 ac_mid=0
34674   while :; do
34675     cat >conftest.$ac_ext <<_ACEOF
34676 /* confdefs.h.  */
34677 _ACEOF
34678 cat confdefs.h >>conftest.$ac_ext
34679 cat >>conftest.$ac_ext <<_ACEOF
34680 /* end confdefs.h.  */
34681 $ac_includes_default
34682    typedef short int ac__type_sizeof_;
34683 int
34684 main ()
34685 {
34686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34687 test_array [0] = 0
34688
34689   ;
34690   return 0;
34691 }
34692 _ACEOF
34693 rm -f conftest.$ac_objext
34694 if { (ac_try="$ac_compile"
34695 case "(($ac_try" in
34696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34697   *) ac_try_echo=$ac_try;;
34698 esac
34699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34700   (eval "$ac_compile") 2>conftest.er1
34701   ac_status=$?
34702   grep -v '^ *+' conftest.er1 >conftest.err
34703   rm -f conftest.er1
34704   cat conftest.err >&5
34705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706   (exit $ac_status); } && {
34707          test -z "$ac_c_werror_flag" ||
34708          test ! -s conftest.err
34709        } && test -s conftest.$ac_objext; then
34710   ac_hi=$ac_mid; break
34711 else
34712   echo "$as_me: failed program was:" >&5
34713 sed 's/^/| /' conftest.$ac_ext >&5
34714
34715         ac_lo=`expr $ac_mid + 1`
34716                         if test $ac_lo -le $ac_mid; then
34717                           ac_lo= ac_hi=
34718                           break
34719                         fi
34720                         ac_mid=`expr 2 '*' $ac_mid + 1`
34721 fi
34722
34723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34724   done
34725 else
34726   echo "$as_me: failed program was:" >&5
34727 sed 's/^/| /' conftest.$ac_ext >&5
34728
34729         cat >conftest.$ac_ext <<_ACEOF
34730 /* confdefs.h.  */
34731 _ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h.  */
34735 $ac_includes_default
34736    typedef short int ac__type_sizeof_;
34737 int
34738 main ()
34739 {
34740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34741 test_array [0] = 0
34742
34743   ;
34744   return 0;
34745 }
34746 _ACEOF
34747 rm -f conftest.$ac_objext
34748 if { (ac_try="$ac_compile"
34749 case "(($ac_try" in
34750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34751   *) ac_try_echo=$ac_try;;
34752 esac
34753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34754   (eval "$ac_compile") 2>conftest.er1
34755   ac_status=$?
34756   grep -v '^ *+' conftest.er1 >conftest.err
34757   rm -f conftest.er1
34758   cat conftest.err >&5
34759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760   (exit $ac_status); } && {
34761          test -z "$ac_c_werror_flag" ||
34762          test ! -s conftest.err
34763        } && test -s conftest.$ac_objext; then
34764   ac_hi=-1 ac_mid=-1
34765   while :; do
34766     cat >conftest.$ac_ext <<_ACEOF
34767 /* confdefs.h.  */
34768 _ACEOF
34769 cat confdefs.h >>conftest.$ac_ext
34770 cat >>conftest.$ac_ext <<_ACEOF
34771 /* end confdefs.h.  */
34772 $ac_includes_default
34773    typedef short int ac__type_sizeof_;
34774 int
34775 main ()
34776 {
34777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34778 test_array [0] = 0
34779
34780   ;
34781   return 0;
34782 }
34783 _ACEOF
34784 rm -f conftest.$ac_objext
34785 if { (ac_try="$ac_compile"
34786 case "(($ac_try" in
34787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788   *) ac_try_echo=$ac_try;;
34789 esac
34790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791   (eval "$ac_compile") 2>conftest.er1
34792   ac_status=$?
34793   grep -v '^ *+' conftest.er1 >conftest.err
34794   rm -f conftest.er1
34795   cat conftest.err >&5
34796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797   (exit $ac_status); } && {
34798          test -z "$ac_c_werror_flag" ||
34799          test ! -s conftest.err
34800        } && test -s conftest.$ac_objext; then
34801   ac_lo=$ac_mid; break
34802 else
34803   echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34805
34806         ac_hi=`expr '(' $ac_mid ')' - 1`
34807                         if test $ac_mid -le $ac_hi; then
34808                           ac_lo= ac_hi=
34809                           break
34810                         fi
34811                         ac_mid=`expr 2 '*' $ac_mid`
34812 fi
34813
34814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34815   done
34816 else
34817   echo "$as_me: failed program was:" >&5
34818 sed 's/^/| /' conftest.$ac_ext >&5
34819
34820         ac_lo= ac_hi=
34821 fi
34822
34823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34824 fi
34825
34826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34827 # Binary search between lo and hi bounds.
34828 while test "x$ac_lo" != "x$ac_hi"; do
34829   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34830   cat >conftest.$ac_ext <<_ACEOF
34831 /* confdefs.h.  */
34832 _ACEOF
34833 cat confdefs.h >>conftest.$ac_ext
34834 cat >>conftest.$ac_ext <<_ACEOF
34835 /* end confdefs.h.  */
34836 $ac_includes_default
34837    typedef short int ac__type_sizeof_;
34838 int
34839 main ()
34840 {
34841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34842 test_array [0] = 0
34843
34844   ;
34845   return 0;
34846 }
34847 _ACEOF
34848 rm -f conftest.$ac_objext
34849 if { (ac_try="$ac_compile"
34850 case "(($ac_try" in
34851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34852   *) ac_try_echo=$ac_try;;
34853 esac
34854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34855   (eval "$ac_compile") 2>conftest.er1
34856   ac_status=$?
34857   grep -v '^ *+' conftest.er1 >conftest.err
34858   rm -f conftest.er1
34859   cat conftest.err >&5
34860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861   (exit $ac_status); } && {
34862          test -z "$ac_c_werror_flag" ||
34863          test ! -s conftest.err
34864        } && test -s conftest.$ac_objext; then
34865   ac_hi=$ac_mid
34866 else
34867   echo "$as_me: failed program was:" >&5
34868 sed 's/^/| /' conftest.$ac_ext >&5
34869
34870         ac_lo=`expr '(' $ac_mid ')' + 1`
34871 fi
34872
34873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34874 done
34875 case $ac_lo in
34876 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34877 '') if test "$ac_cv_type_short_int" = yes; then
34878      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34879 See \`config.log' for more details." >&5
34880 echo "$as_me: error: cannot compute sizeof (short int)
34881 See \`config.log' for more details." >&2;}
34882    { (exit 77); exit 77; }; }
34883    else
34884      ac_cv_sizeof_short_int=0
34885    fi ;;
34886 esac
34887 else
34888   cat >conftest.$ac_ext <<_ACEOF
34889 /* confdefs.h.  */
34890 _ACEOF
34891 cat confdefs.h >>conftest.$ac_ext
34892 cat >>conftest.$ac_ext <<_ACEOF
34893 /* end confdefs.h.  */
34894 $ac_includes_default
34895    typedef short int ac__type_sizeof_;
34896 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34897 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34898 #include <stdio.h>
34899 #include <stdlib.h>
34900 int
34901 main ()
34902 {
34903
34904   FILE *f = fopen ("conftest.val", "w");
34905   if (! f)
34906     return 1;
34907   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34908     {
34909       long int i = longval ();
34910       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34911         return 1;
34912       fprintf (f, "%ld\n", i);
34913     }
34914   else
34915     {
34916       unsigned long int i = ulongval ();
34917       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34918         return 1;
34919       fprintf (f, "%lu\n", i);
34920     }
34921   return ferror (f) || fclose (f) != 0;
34922
34923   ;
34924   return 0;
34925 }
34926 _ACEOF
34927 rm -f conftest$ac_exeext
34928 if { (ac_try="$ac_link"
34929 case "(($ac_try" in
34930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34931   *) ac_try_echo=$ac_try;;
34932 esac
34933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34934   (eval "$ac_link") 2>&5
34935   ac_status=$?
34936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34938   { (case "(($ac_try" in
34939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34940   *) ac_try_echo=$ac_try;;
34941 esac
34942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34943   (eval "$ac_try") 2>&5
34944   ac_status=$?
34945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946   (exit $ac_status); }; }; then
34947   ac_cv_sizeof_short_int=`cat conftest.val`
34948 else
34949   echo "$as_me: program exited with status $ac_status" >&5
34950 echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34952
34953 ( exit $ac_status )
34954 if test "$ac_cv_type_short_int" = yes; then
34955      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34956 See \`config.log' for more details." >&5
34957 echo "$as_me: error: cannot compute sizeof (short int)
34958 See \`config.log' for more details." >&2;}
34959    { (exit 77); exit 77; }; }
34960    else
34961      ac_cv_sizeof_short_int=0
34962    fi
34963 fi
34964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34965 fi
34966 rm -f conftest.val
34967 fi
34968 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34969 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34970
34971
34972
34973 cat >>confdefs.h <<_ACEOF
34974 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34975 _ACEOF
34976
34977
34978 { echo "$as_me:$LINENO: checking for int" >&5
34979 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34980 if test "${ac_cv_type_int+set}" = set; then
34981   echo $ECHO_N "(cached) $ECHO_C" >&6
34982 else
34983   cat >conftest.$ac_ext <<_ACEOF
34984 /* confdefs.h.  */
34985 _ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h.  */
34989 $ac_includes_default
34990 typedef int ac__type_new_;
34991 int
34992 main ()
34993 {
34994 if ((ac__type_new_ *) 0)
34995   return 0;
34996 if (sizeof (ac__type_new_))
34997   return 0;
34998   ;
34999   return 0;
35000 }
35001 _ACEOF
35002 rm -f conftest.$ac_objext
35003 if { (ac_try="$ac_compile"
35004 case "(($ac_try" in
35005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35006   *) ac_try_echo=$ac_try;;
35007 esac
35008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35009   (eval "$ac_compile") 2>conftest.er1
35010   ac_status=$?
35011   grep -v '^ *+' conftest.er1 >conftest.err
35012   rm -f conftest.er1
35013   cat conftest.err >&5
35014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015   (exit $ac_status); } && {
35016          test -z "$ac_c_werror_flag" ||
35017          test ! -s conftest.err
35018        } && test -s conftest.$ac_objext; then
35019   ac_cv_type_int=yes
35020 else
35021   echo "$as_me: failed program was:" >&5
35022 sed 's/^/| /' conftest.$ac_ext >&5
35023
35024         ac_cv_type_int=no
35025 fi
35026
35027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35028 fi
35029 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35030 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35031
35032 # The cast to long int works around a bug in the HP C Compiler
35033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35035 # This bug is HP SR number 8606223364.
35036 { echo "$as_me:$LINENO: checking size of int" >&5
35037 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35038 if test "${ac_cv_sizeof_int+set}" = set; then
35039   echo $ECHO_N "(cached) $ECHO_C" >&6
35040 else
35041   if test "$cross_compiling" = yes; then
35042   # Depending upon the size, compute the lo and hi bounds.
35043 cat >conftest.$ac_ext <<_ACEOF
35044 /* confdefs.h.  */
35045 _ACEOF
35046 cat confdefs.h >>conftest.$ac_ext
35047 cat >>conftest.$ac_ext <<_ACEOF
35048 /* end confdefs.h.  */
35049 $ac_includes_default
35050    typedef int ac__type_sizeof_;
35051 int
35052 main ()
35053 {
35054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35055 test_array [0] = 0
35056
35057   ;
35058   return 0;
35059 }
35060 _ACEOF
35061 rm -f conftest.$ac_objext
35062 if { (ac_try="$ac_compile"
35063 case "(($ac_try" in
35064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35065   *) ac_try_echo=$ac_try;;
35066 esac
35067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35068   (eval "$ac_compile") 2>conftest.er1
35069   ac_status=$?
35070   grep -v '^ *+' conftest.er1 >conftest.err
35071   rm -f conftest.er1
35072   cat conftest.err >&5
35073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074   (exit $ac_status); } && {
35075          test -z "$ac_c_werror_flag" ||
35076          test ! -s conftest.err
35077        } && test -s conftest.$ac_objext; then
35078   ac_lo=0 ac_mid=0
35079   while :; do
35080     cat >conftest.$ac_ext <<_ACEOF
35081 /* confdefs.h.  */
35082 _ACEOF
35083 cat confdefs.h >>conftest.$ac_ext
35084 cat >>conftest.$ac_ext <<_ACEOF
35085 /* end confdefs.h.  */
35086 $ac_includes_default
35087    typedef int ac__type_sizeof_;
35088 int
35089 main ()
35090 {
35091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35092 test_array [0] = 0
35093
35094   ;
35095   return 0;
35096 }
35097 _ACEOF
35098 rm -f conftest.$ac_objext
35099 if { (ac_try="$ac_compile"
35100 case "(($ac_try" in
35101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35102   *) ac_try_echo=$ac_try;;
35103 esac
35104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35105   (eval "$ac_compile") 2>conftest.er1
35106   ac_status=$?
35107   grep -v '^ *+' conftest.er1 >conftest.err
35108   rm -f conftest.er1
35109   cat conftest.err >&5
35110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111   (exit $ac_status); } && {
35112          test -z "$ac_c_werror_flag" ||
35113          test ! -s conftest.err
35114        } && test -s conftest.$ac_objext; then
35115   ac_hi=$ac_mid; break
35116 else
35117   echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.$ac_ext >&5
35119
35120         ac_lo=`expr $ac_mid + 1`
35121                         if test $ac_lo -le $ac_mid; then
35122                           ac_lo= ac_hi=
35123                           break
35124                         fi
35125                         ac_mid=`expr 2 '*' $ac_mid + 1`
35126 fi
35127
35128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35129   done
35130 else
35131   echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35133
35134         cat >conftest.$ac_ext <<_ACEOF
35135 /* confdefs.h.  */
35136 _ACEOF
35137 cat confdefs.h >>conftest.$ac_ext
35138 cat >>conftest.$ac_ext <<_ACEOF
35139 /* end confdefs.h.  */
35140 $ac_includes_default
35141    typedef int ac__type_sizeof_;
35142 int
35143 main ()
35144 {
35145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35146 test_array [0] = 0
35147
35148   ;
35149   return 0;
35150 }
35151 _ACEOF
35152 rm -f conftest.$ac_objext
35153 if { (ac_try="$ac_compile"
35154 case "(($ac_try" in
35155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35156   *) ac_try_echo=$ac_try;;
35157 esac
35158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35159   (eval "$ac_compile") 2>conftest.er1
35160   ac_status=$?
35161   grep -v '^ *+' conftest.er1 >conftest.err
35162   rm -f conftest.er1
35163   cat conftest.err >&5
35164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165   (exit $ac_status); } && {
35166          test -z "$ac_c_werror_flag" ||
35167          test ! -s conftest.err
35168        } && test -s conftest.$ac_objext; then
35169   ac_hi=-1 ac_mid=-1
35170   while :; do
35171     cat >conftest.$ac_ext <<_ACEOF
35172 /* confdefs.h.  */
35173 _ACEOF
35174 cat confdefs.h >>conftest.$ac_ext
35175 cat >>conftest.$ac_ext <<_ACEOF
35176 /* end confdefs.h.  */
35177 $ac_includes_default
35178    typedef int ac__type_sizeof_;
35179 int
35180 main ()
35181 {
35182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35183 test_array [0] = 0
35184
35185   ;
35186   return 0;
35187 }
35188 _ACEOF
35189 rm -f conftest.$ac_objext
35190 if { (ac_try="$ac_compile"
35191 case "(($ac_try" in
35192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35193   *) ac_try_echo=$ac_try;;
35194 esac
35195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35196   (eval "$ac_compile") 2>conftest.er1
35197   ac_status=$?
35198   grep -v '^ *+' conftest.er1 >conftest.err
35199   rm -f conftest.er1
35200   cat conftest.err >&5
35201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202   (exit $ac_status); } && {
35203          test -z "$ac_c_werror_flag" ||
35204          test ! -s conftest.err
35205        } && test -s conftest.$ac_objext; then
35206   ac_lo=$ac_mid; break
35207 else
35208   echo "$as_me: failed program was:" >&5
35209 sed 's/^/| /' conftest.$ac_ext >&5
35210
35211         ac_hi=`expr '(' $ac_mid ')' - 1`
35212                         if test $ac_mid -le $ac_hi; then
35213                           ac_lo= ac_hi=
35214                           break
35215                         fi
35216                         ac_mid=`expr 2 '*' $ac_mid`
35217 fi
35218
35219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35220   done
35221 else
35222   echo "$as_me: failed program was:" >&5
35223 sed 's/^/| /' conftest.$ac_ext >&5
35224
35225         ac_lo= ac_hi=
35226 fi
35227
35228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35229 fi
35230
35231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35232 # Binary search between lo and hi bounds.
35233 while test "x$ac_lo" != "x$ac_hi"; do
35234   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35235   cat >conftest.$ac_ext <<_ACEOF
35236 /* confdefs.h.  */
35237 _ACEOF
35238 cat confdefs.h >>conftest.$ac_ext
35239 cat >>conftest.$ac_ext <<_ACEOF
35240 /* end confdefs.h.  */
35241 $ac_includes_default
35242    typedef int ac__type_sizeof_;
35243 int
35244 main ()
35245 {
35246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35247 test_array [0] = 0
35248
35249   ;
35250   return 0;
35251 }
35252 _ACEOF
35253 rm -f conftest.$ac_objext
35254 if { (ac_try="$ac_compile"
35255 case "(($ac_try" in
35256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35257   *) ac_try_echo=$ac_try;;
35258 esac
35259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35260   (eval "$ac_compile") 2>conftest.er1
35261   ac_status=$?
35262   grep -v '^ *+' conftest.er1 >conftest.err
35263   rm -f conftest.er1
35264   cat conftest.err >&5
35265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266   (exit $ac_status); } && {
35267          test -z "$ac_c_werror_flag" ||
35268          test ! -s conftest.err
35269        } && test -s conftest.$ac_objext; then
35270   ac_hi=$ac_mid
35271 else
35272   echo "$as_me: failed program was:" >&5
35273 sed 's/^/| /' conftest.$ac_ext >&5
35274
35275         ac_lo=`expr '(' $ac_mid ')' + 1`
35276 fi
35277
35278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35279 done
35280 case $ac_lo in
35281 ?*) ac_cv_sizeof_int=$ac_lo;;
35282 '') if test "$ac_cv_type_int" = yes; then
35283      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35284 See \`config.log' for more details." >&5
35285 echo "$as_me: error: cannot compute sizeof (int)
35286 See \`config.log' for more details." >&2;}
35287    { (exit 77); exit 77; }; }
35288    else
35289      ac_cv_sizeof_int=0
35290    fi ;;
35291 esac
35292 else
35293   cat >conftest.$ac_ext <<_ACEOF
35294 /* confdefs.h.  */
35295 _ACEOF
35296 cat confdefs.h >>conftest.$ac_ext
35297 cat >>conftest.$ac_ext <<_ACEOF
35298 /* end confdefs.h.  */
35299 $ac_includes_default
35300    typedef int ac__type_sizeof_;
35301 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35302 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35303 #include <stdio.h>
35304 #include <stdlib.h>
35305 int
35306 main ()
35307 {
35308
35309   FILE *f = fopen ("conftest.val", "w");
35310   if (! f)
35311     return 1;
35312   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35313     {
35314       long int i = longval ();
35315       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35316         return 1;
35317       fprintf (f, "%ld\n", i);
35318     }
35319   else
35320     {
35321       unsigned long int i = ulongval ();
35322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35323         return 1;
35324       fprintf (f, "%lu\n", i);
35325     }
35326   return ferror (f) || fclose (f) != 0;
35327
35328   ;
35329   return 0;
35330 }
35331 _ACEOF
35332 rm -f conftest$ac_exeext
35333 if { (ac_try="$ac_link"
35334 case "(($ac_try" in
35335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35336   *) ac_try_echo=$ac_try;;
35337 esac
35338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35339   (eval "$ac_link") 2>&5
35340   ac_status=$?
35341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35343   { (case "(($ac_try" in
35344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345   *) ac_try_echo=$ac_try;;
35346 esac
35347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35348   (eval "$ac_try") 2>&5
35349   ac_status=$?
35350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351   (exit $ac_status); }; }; then
35352   ac_cv_sizeof_int=`cat conftest.val`
35353 else
35354   echo "$as_me: program exited with status $ac_status" >&5
35355 echo "$as_me: failed program was:" >&5
35356 sed 's/^/| /' conftest.$ac_ext >&5
35357
35358 ( exit $ac_status )
35359 if test "$ac_cv_type_int" = yes; then
35360      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35361 See \`config.log' for more details." >&5
35362 echo "$as_me: error: cannot compute sizeof (int)
35363 See \`config.log' for more details." >&2;}
35364    { (exit 77); exit 77; }; }
35365    else
35366      ac_cv_sizeof_int=0
35367    fi
35368 fi
35369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35370 fi
35371 rm -f conftest.val
35372 fi
35373 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35374 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35375
35376
35377
35378 cat >>confdefs.h <<_ACEOF
35379 #define SIZEOF_INT $ac_cv_sizeof_int
35380 _ACEOF
35381
35382
35383 { echo "$as_me:$LINENO: checking for long int" >&5
35384 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35385 if test "${ac_cv_type_long_int+set}" = set; then
35386   echo $ECHO_N "(cached) $ECHO_C" >&6
35387 else
35388   cat >conftest.$ac_ext <<_ACEOF
35389 /* confdefs.h.  */
35390 _ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h.  */
35394 $ac_includes_default
35395 typedef long int ac__type_new_;
35396 int
35397 main ()
35398 {
35399 if ((ac__type_new_ *) 0)
35400   return 0;
35401 if (sizeof (ac__type_new_))
35402   return 0;
35403   ;
35404   return 0;
35405 }
35406 _ACEOF
35407 rm -f conftest.$ac_objext
35408 if { (ac_try="$ac_compile"
35409 case "(($ac_try" in
35410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35411   *) ac_try_echo=$ac_try;;
35412 esac
35413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35414   (eval "$ac_compile") 2>conftest.er1
35415   ac_status=$?
35416   grep -v '^ *+' conftest.er1 >conftest.err
35417   rm -f conftest.er1
35418   cat conftest.err >&5
35419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35420   (exit $ac_status); } && {
35421          test -z "$ac_c_werror_flag" ||
35422          test ! -s conftest.err
35423        } && test -s conftest.$ac_objext; then
35424   ac_cv_type_long_int=yes
35425 else
35426   echo "$as_me: failed program was:" >&5
35427 sed 's/^/| /' conftest.$ac_ext >&5
35428
35429         ac_cv_type_long_int=no
35430 fi
35431
35432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35433 fi
35434 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35435 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35436
35437 # The cast to long int works around a bug in the HP C Compiler
35438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35440 # This bug is HP SR number 8606223364.
35441 { echo "$as_me:$LINENO: checking size of long int" >&5
35442 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35443 if test "${ac_cv_sizeof_long_int+set}" = set; then
35444   echo $ECHO_N "(cached) $ECHO_C" >&6
35445 else
35446   if test "$cross_compiling" = yes; then
35447   # Depending upon the size, compute the lo and hi bounds.
35448 cat >conftest.$ac_ext <<_ACEOF
35449 /* confdefs.h.  */
35450 _ACEOF
35451 cat confdefs.h >>conftest.$ac_ext
35452 cat >>conftest.$ac_ext <<_ACEOF
35453 /* end confdefs.h.  */
35454 $ac_includes_default
35455    typedef long int ac__type_sizeof_;
35456 int
35457 main ()
35458 {
35459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35460 test_array [0] = 0
35461
35462   ;
35463   return 0;
35464 }
35465 _ACEOF
35466 rm -f conftest.$ac_objext
35467 if { (ac_try="$ac_compile"
35468 case "(($ac_try" in
35469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35470   *) ac_try_echo=$ac_try;;
35471 esac
35472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35473   (eval "$ac_compile") 2>conftest.er1
35474   ac_status=$?
35475   grep -v '^ *+' conftest.er1 >conftest.err
35476   rm -f conftest.er1
35477   cat conftest.err >&5
35478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479   (exit $ac_status); } && {
35480          test -z "$ac_c_werror_flag" ||
35481          test ! -s conftest.err
35482        } && test -s conftest.$ac_objext; then
35483   ac_lo=0 ac_mid=0
35484   while :; do
35485     cat >conftest.$ac_ext <<_ACEOF
35486 /* confdefs.h.  */
35487 _ACEOF
35488 cat confdefs.h >>conftest.$ac_ext
35489 cat >>conftest.$ac_ext <<_ACEOF
35490 /* end confdefs.h.  */
35491 $ac_includes_default
35492    typedef long int ac__type_sizeof_;
35493 int
35494 main ()
35495 {
35496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35497 test_array [0] = 0
35498
35499   ;
35500   return 0;
35501 }
35502 _ACEOF
35503 rm -f conftest.$ac_objext
35504 if { (ac_try="$ac_compile"
35505 case "(($ac_try" in
35506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35507   *) ac_try_echo=$ac_try;;
35508 esac
35509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35510   (eval "$ac_compile") 2>conftest.er1
35511   ac_status=$?
35512   grep -v '^ *+' conftest.er1 >conftest.err
35513   rm -f conftest.er1
35514   cat conftest.err >&5
35515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516   (exit $ac_status); } && {
35517          test -z "$ac_c_werror_flag" ||
35518          test ! -s conftest.err
35519        } && test -s conftest.$ac_objext; then
35520   ac_hi=$ac_mid; break
35521 else
35522   echo "$as_me: failed program was:" >&5
35523 sed 's/^/| /' conftest.$ac_ext >&5
35524
35525         ac_lo=`expr $ac_mid + 1`
35526                         if test $ac_lo -le $ac_mid; then
35527                           ac_lo= ac_hi=
35528                           break
35529                         fi
35530                         ac_mid=`expr 2 '*' $ac_mid + 1`
35531 fi
35532
35533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35534   done
35535 else
35536   echo "$as_me: failed program was:" >&5
35537 sed 's/^/| /' conftest.$ac_ext >&5
35538
35539         cat >conftest.$ac_ext <<_ACEOF
35540 /* confdefs.h.  */
35541 _ACEOF
35542 cat confdefs.h >>conftest.$ac_ext
35543 cat >>conftest.$ac_ext <<_ACEOF
35544 /* end confdefs.h.  */
35545 $ac_includes_default
35546    typedef long int ac__type_sizeof_;
35547 int
35548 main ()
35549 {
35550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35551 test_array [0] = 0
35552
35553   ;
35554   return 0;
35555 }
35556 _ACEOF
35557 rm -f conftest.$ac_objext
35558 if { (ac_try="$ac_compile"
35559 case "(($ac_try" in
35560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35561   *) ac_try_echo=$ac_try;;
35562 esac
35563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35564   (eval "$ac_compile") 2>conftest.er1
35565   ac_status=$?
35566   grep -v '^ *+' conftest.er1 >conftest.err
35567   rm -f conftest.er1
35568   cat conftest.err >&5
35569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570   (exit $ac_status); } && {
35571          test -z "$ac_c_werror_flag" ||
35572          test ! -s conftest.err
35573        } && test -s conftest.$ac_objext; then
35574   ac_hi=-1 ac_mid=-1
35575   while :; do
35576     cat >conftest.$ac_ext <<_ACEOF
35577 /* confdefs.h.  */
35578 _ACEOF
35579 cat confdefs.h >>conftest.$ac_ext
35580 cat >>conftest.$ac_ext <<_ACEOF
35581 /* end confdefs.h.  */
35582 $ac_includes_default
35583    typedef long int ac__type_sizeof_;
35584 int
35585 main ()
35586 {
35587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35588 test_array [0] = 0
35589
35590   ;
35591   return 0;
35592 }
35593 _ACEOF
35594 rm -f conftest.$ac_objext
35595 if { (ac_try="$ac_compile"
35596 case "(($ac_try" in
35597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35598   *) ac_try_echo=$ac_try;;
35599 esac
35600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35601   (eval "$ac_compile") 2>conftest.er1
35602   ac_status=$?
35603   grep -v '^ *+' conftest.er1 >conftest.err
35604   rm -f conftest.er1
35605   cat conftest.err >&5
35606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607   (exit $ac_status); } && {
35608          test -z "$ac_c_werror_flag" ||
35609          test ! -s conftest.err
35610        } && test -s conftest.$ac_objext; then
35611   ac_lo=$ac_mid; break
35612 else
35613   echo "$as_me: failed program was:" >&5
35614 sed 's/^/| /' conftest.$ac_ext >&5
35615
35616         ac_hi=`expr '(' $ac_mid ')' - 1`
35617                         if test $ac_mid -le $ac_hi; then
35618                           ac_lo= ac_hi=
35619                           break
35620                         fi
35621                         ac_mid=`expr 2 '*' $ac_mid`
35622 fi
35623
35624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35625   done
35626 else
35627   echo "$as_me: failed program was:" >&5
35628 sed 's/^/| /' conftest.$ac_ext >&5
35629
35630         ac_lo= ac_hi=
35631 fi
35632
35633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35634 fi
35635
35636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35637 # Binary search between lo and hi bounds.
35638 while test "x$ac_lo" != "x$ac_hi"; do
35639   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35640   cat >conftest.$ac_ext <<_ACEOF
35641 /* confdefs.h.  */
35642 _ACEOF
35643 cat confdefs.h >>conftest.$ac_ext
35644 cat >>conftest.$ac_ext <<_ACEOF
35645 /* end confdefs.h.  */
35646 $ac_includes_default
35647    typedef long int ac__type_sizeof_;
35648 int
35649 main ()
35650 {
35651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35652 test_array [0] = 0
35653
35654   ;
35655   return 0;
35656 }
35657 _ACEOF
35658 rm -f conftest.$ac_objext
35659 if { (ac_try="$ac_compile"
35660 case "(($ac_try" in
35661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35662   *) ac_try_echo=$ac_try;;
35663 esac
35664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35665   (eval "$ac_compile") 2>conftest.er1
35666   ac_status=$?
35667   grep -v '^ *+' conftest.er1 >conftest.err
35668   rm -f conftest.er1
35669   cat conftest.err >&5
35670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35671   (exit $ac_status); } && {
35672          test -z "$ac_c_werror_flag" ||
35673          test ! -s conftest.err
35674        } && test -s conftest.$ac_objext; then
35675   ac_hi=$ac_mid
35676 else
35677   echo "$as_me: failed program was:" >&5
35678 sed 's/^/| /' conftest.$ac_ext >&5
35679
35680         ac_lo=`expr '(' $ac_mid ')' + 1`
35681 fi
35682
35683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35684 done
35685 case $ac_lo in
35686 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35687 '') if test "$ac_cv_type_long_int" = yes; then
35688      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35689 See \`config.log' for more details." >&5
35690 echo "$as_me: error: cannot compute sizeof (long int)
35691 See \`config.log' for more details." >&2;}
35692    { (exit 77); exit 77; }; }
35693    else
35694      ac_cv_sizeof_long_int=0
35695    fi ;;
35696 esac
35697 else
35698   cat >conftest.$ac_ext <<_ACEOF
35699 /* confdefs.h.  */
35700 _ACEOF
35701 cat confdefs.h >>conftest.$ac_ext
35702 cat >>conftest.$ac_ext <<_ACEOF
35703 /* end confdefs.h.  */
35704 $ac_includes_default
35705    typedef long int ac__type_sizeof_;
35706 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35707 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35708 #include <stdio.h>
35709 #include <stdlib.h>
35710 int
35711 main ()
35712 {
35713
35714   FILE *f = fopen ("conftest.val", "w");
35715   if (! f)
35716     return 1;
35717   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35718     {
35719       long int i = longval ();
35720       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35721         return 1;
35722       fprintf (f, "%ld\n", i);
35723     }
35724   else
35725     {
35726       unsigned long int i = ulongval ();
35727       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35728         return 1;
35729       fprintf (f, "%lu\n", i);
35730     }
35731   return ferror (f) || fclose (f) != 0;
35732
35733   ;
35734   return 0;
35735 }
35736 _ACEOF
35737 rm -f conftest$ac_exeext
35738 if { (ac_try="$ac_link"
35739 case "(($ac_try" in
35740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35741   *) ac_try_echo=$ac_try;;
35742 esac
35743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35744   (eval "$ac_link") 2>&5
35745   ac_status=$?
35746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35748   { (case "(($ac_try" in
35749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750   *) ac_try_echo=$ac_try;;
35751 esac
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753   (eval "$ac_try") 2>&5
35754   ac_status=$?
35755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); }; }; then
35757   ac_cv_sizeof_long_int=`cat conftest.val`
35758 else
35759   echo "$as_me: program exited with status $ac_status" >&5
35760 echo "$as_me: failed program was:" >&5
35761 sed 's/^/| /' conftest.$ac_ext >&5
35762
35763 ( exit $ac_status )
35764 if test "$ac_cv_type_long_int" = yes; then
35765      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35766 See \`config.log' for more details." >&5
35767 echo "$as_me: error: cannot compute sizeof (long int)
35768 See \`config.log' for more details." >&2;}
35769    { (exit 77); exit 77; }; }
35770    else
35771      ac_cv_sizeof_long_int=0
35772    fi
35773 fi
35774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35775 fi
35776 rm -f conftest.val
35777 fi
35778 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35779 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35780
35781
35782
35783 cat >>confdefs.h <<_ACEOF
35784 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35785 _ACEOF
35786
35787
35788 { echo "$as_me:$LINENO: checking for long long int" >&5
35789 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35790 if test "${ac_cv_type_long_long_int+set}" = set; then
35791   echo $ECHO_N "(cached) $ECHO_C" >&6
35792 else
35793   cat >conftest.$ac_ext <<_ACEOF
35794 /* confdefs.h.  */
35795 _ACEOF
35796 cat confdefs.h >>conftest.$ac_ext
35797 cat >>conftest.$ac_ext <<_ACEOF
35798 /* end confdefs.h.  */
35799 $ac_includes_default
35800 typedef long long int ac__type_new_;
35801 int
35802 main ()
35803 {
35804 if ((ac__type_new_ *) 0)
35805   return 0;
35806 if (sizeof (ac__type_new_))
35807   return 0;
35808   ;
35809   return 0;
35810 }
35811 _ACEOF
35812 rm -f conftest.$ac_objext
35813 if { (ac_try="$ac_compile"
35814 case "(($ac_try" in
35815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35816   *) ac_try_echo=$ac_try;;
35817 esac
35818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35819   (eval "$ac_compile") 2>conftest.er1
35820   ac_status=$?
35821   grep -v '^ *+' conftest.er1 >conftest.err
35822   rm -f conftest.er1
35823   cat conftest.err >&5
35824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825   (exit $ac_status); } && {
35826          test -z "$ac_c_werror_flag" ||
35827          test ! -s conftest.err
35828        } && test -s conftest.$ac_objext; then
35829   ac_cv_type_long_long_int=yes
35830 else
35831   echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.$ac_ext >&5
35833
35834         ac_cv_type_long_long_int=no
35835 fi
35836
35837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35838 fi
35839 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35840 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35841
35842 # The cast to long int works around a bug in the HP C Compiler
35843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35845 # This bug is HP SR number 8606223364.
35846 { echo "$as_me:$LINENO: checking size of long long int" >&5
35847 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35848 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35849   echo $ECHO_N "(cached) $ECHO_C" >&6
35850 else
35851   if test "$cross_compiling" = yes; then
35852   # Depending upon the size, compute the lo and hi bounds.
35853 cat >conftest.$ac_ext <<_ACEOF
35854 /* confdefs.h.  */
35855 _ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h.  */
35859 $ac_includes_default
35860    typedef long long int ac__type_sizeof_;
35861 int
35862 main ()
35863 {
35864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35865 test_array [0] = 0
35866
35867   ;
35868   return 0;
35869 }
35870 _ACEOF
35871 rm -f conftest.$ac_objext
35872 if { (ac_try="$ac_compile"
35873 case "(($ac_try" in
35874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35875   *) ac_try_echo=$ac_try;;
35876 esac
35877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35878   (eval "$ac_compile") 2>conftest.er1
35879   ac_status=$?
35880   grep -v '^ *+' conftest.er1 >conftest.err
35881   rm -f conftest.er1
35882   cat conftest.err >&5
35883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884   (exit $ac_status); } && {
35885          test -z "$ac_c_werror_flag" ||
35886          test ! -s conftest.err
35887        } && test -s conftest.$ac_objext; then
35888   ac_lo=0 ac_mid=0
35889   while :; do
35890     cat >conftest.$ac_ext <<_ACEOF
35891 /* confdefs.h.  */
35892 _ACEOF
35893 cat confdefs.h >>conftest.$ac_ext
35894 cat >>conftest.$ac_ext <<_ACEOF
35895 /* end confdefs.h.  */
35896 $ac_includes_default
35897    typedef long long int ac__type_sizeof_;
35898 int
35899 main ()
35900 {
35901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35902 test_array [0] = 0
35903
35904   ;
35905   return 0;
35906 }
35907 _ACEOF
35908 rm -f conftest.$ac_objext
35909 if { (ac_try="$ac_compile"
35910 case "(($ac_try" in
35911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35912   *) ac_try_echo=$ac_try;;
35913 esac
35914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35915   (eval "$ac_compile") 2>conftest.er1
35916   ac_status=$?
35917   grep -v '^ *+' conftest.er1 >conftest.err
35918   rm -f conftest.er1
35919   cat conftest.err >&5
35920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35921   (exit $ac_status); } && {
35922          test -z "$ac_c_werror_flag" ||
35923          test ! -s conftest.err
35924        } && test -s conftest.$ac_objext; then
35925   ac_hi=$ac_mid; break
35926 else
35927   echo "$as_me: failed program was:" >&5
35928 sed 's/^/| /' conftest.$ac_ext >&5
35929
35930         ac_lo=`expr $ac_mid + 1`
35931                         if test $ac_lo -le $ac_mid; then
35932                           ac_lo= ac_hi=
35933                           break
35934                         fi
35935                         ac_mid=`expr 2 '*' $ac_mid + 1`
35936 fi
35937
35938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35939   done
35940 else
35941   echo "$as_me: failed program was:" >&5
35942 sed 's/^/| /' conftest.$ac_ext >&5
35943
35944         cat >conftest.$ac_ext <<_ACEOF
35945 /* confdefs.h.  */
35946 _ACEOF
35947 cat confdefs.h >>conftest.$ac_ext
35948 cat >>conftest.$ac_ext <<_ACEOF
35949 /* end confdefs.h.  */
35950 $ac_includes_default
35951    typedef long long int ac__type_sizeof_;
35952 int
35953 main ()
35954 {
35955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35956 test_array [0] = 0
35957
35958   ;
35959   return 0;
35960 }
35961 _ACEOF
35962 rm -f conftest.$ac_objext
35963 if { (ac_try="$ac_compile"
35964 case "(($ac_try" in
35965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35966   *) ac_try_echo=$ac_try;;
35967 esac
35968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35969   (eval "$ac_compile") 2>conftest.er1
35970   ac_status=$?
35971   grep -v '^ *+' conftest.er1 >conftest.err
35972   rm -f conftest.er1
35973   cat conftest.err >&5
35974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975   (exit $ac_status); } && {
35976          test -z "$ac_c_werror_flag" ||
35977          test ! -s conftest.err
35978        } && test -s conftest.$ac_objext; then
35979   ac_hi=-1 ac_mid=-1
35980   while :; do
35981     cat >conftest.$ac_ext <<_ACEOF
35982 /* confdefs.h.  */
35983 _ACEOF
35984 cat confdefs.h >>conftest.$ac_ext
35985 cat >>conftest.$ac_ext <<_ACEOF
35986 /* end confdefs.h.  */
35987 $ac_includes_default
35988    typedef long long int ac__type_sizeof_;
35989 int
35990 main ()
35991 {
35992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35993 test_array [0] = 0
35994
35995   ;
35996   return 0;
35997 }
35998 _ACEOF
35999 rm -f conftest.$ac_objext
36000 if { (ac_try="$ac_compile"
36001 case "(($ac_try" in
36002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36003   *) ac_try_echo=$ac_try;;
36004 esac
36005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36006   (eval "$ac_compile") 2>conftest.er1
36007   ac_status=$?
36008   grep -v '^ *+' conftest.er1 >conftest.err
36009   rm -f conftest.er1
36010   cat conftest.err >&5
36011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012   (exit $ac_status); } && {
36013          test -z "$ac_c_werror_flag" ||
36014          test ! -s conftest.err
36015        } && test -s conftest.$ac_objext; then
36016   ac_lo=$ac_mid; break
36017 else
36018   echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36020
36021         ac_hi=`expr '(' $ac_mid ')' - 1`
36022                         if test $ac_mid -le $ac_hi; then
36023                           ac_lo= ac_hi=
36024                           break
36025                         fi
36026                         ac_mid=`expr 2 '*' $ac_mid`
36027 fi
36028
36029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36030   done
36031 else
36032   echo "$as_me: failed program was:" >&5
36033 sed 's/^/| /' conftest.$ac_ext >&5
36034
36035         ac_lo= ac_hi=
36036 fi
36037
36038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36039 fi
36040
36041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36042 # Binary search between lo and hi bounds.
36043 while test "x$ac_lo" != "x$ac_hi"; do
36044   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36045   cat >conftest.$ac_ext <<_ACEOF
36046 /* confdefs.h.  */
36047 _ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h.  */
36051 $ac_includes_default
36052    typedef long long int ac__type_sizeof_;
36053 int
36054 main ()
36055 {
36056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36057 test_array [0] = 0
36058
36059   ;
36060   return 0;
36061 }
36062 _ACEOF
36063 rm -f conftest.$ac_objext
36064 if { (ac_try="$ac_compile"
36065 case "(($ac_try" in
36066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36067   *) ac_try_echo=$ac_try;;
36068 esac
36069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36070   (eval "$ac_compile") 2>conftest.er1
36071   ac_status=$?
36072   grep -v '^ *+' conftest.er1 >conftest.err
36073   rm -f conftest.er1
36074   cat conftest.err >&5
36075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076   (exit $ac_status); } && {
36077          test -z "$ac_c_werror_flag" ||
36078          test ! -s conftest.err
36079        } && test -s conftest.$ac_objext; then
36080   ac_hi=$ac_mid
36081 else
36082   echo "$as_me: failed program was:" >&5
36083 sed 's/^/| /' conftest.$ac_ext >&5
36084
36085         ac_lo=`expr '(' $ac_mid ')' + 1`
36086 fi
36087
36088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36089 done
36090 case $ac_lo in
36091 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36092 '') if test "$ac_cv_type_long_long_int" = yes; then
36093      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36094 See \`config.log' for more details." >&5
36095 echo "$as_me: error: cannot compute sizeof (long long int)
36096 See \`config.log' for more details." >&2;}
36097    { (exit 77); exit 77; }; }
36098    else
36099      ac_cv_sizeof_long_long_int=0
36100    fi ;;
36101 esac
36102 else
36103   cat >conftest.$ac_ext <<_ACEOF
36104 /* confdefs.h.  */
36105 _ACEOF
36106 cat confdefs.h >>conftest.$ac_ext
36107 cat >>conftest.$ac_ext <<_ACEOF
36108 /* end confdefs.h.  */
36109 $ac_includes_default
36110    typedef long long int ac__type_sizeof_;
36111 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36112 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36113 #include <stdio.h>
36114 #include <stdlib.h>
36115 int
36116 main ()
36117 {
36118
36119   FILE *f = fopen ("conftest.val", "w");
36120   if (! f)
36121     return 1;
36122   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36123     {
36124       long int i = longval ();
36125       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36126         return 1;
36127       fprintf (f, "%ld\n", i);
36128     }
36129   else
36130     {
36131       unsigned long int i = ulongval ();
36132       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36133         return 1;
36134       fprintf (f, "%lu\n", i);
36135     }
36136   return ferror (f) || fclose (f) != 0;
36137
36138   ;
36139   return 0;
36140 }
36141 _ACEOF
36142 rm -f conftest$ac_exeext
36143 if { (ac_try="$ac_link"
36144 case "(($ac_try" in
36145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36146   *) ac_try_echo=$ac_try;;
36147 esac
36148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36149   (eval "$ac_link") 2>&5
36150   ac_status=$?
36151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36153   { (case "(($ac_try" in
36154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36155   *) ac_try_echo=$ac_try;;
36156 esac
36157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36158   (eval "$ac_try") 2>&5
36159   ac_status=$?
36160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161   (exit $ac_status); }; }; then
36162   ac_cv_sizeof_long_long_int=`cat conftest.val`
36163 else
36164   echo "$as_me: program exited with status $ac_status" >&5
36165 echo "$as_me: failed program was:" >&5
36166 sed 's/^/| /' conftest.$ac_ext >&5
36167
36168 ( exit $ac_status )
36169 if test "$ac_cv_type_long_long_int" = yes; then
36170      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36171 See \`config.log' for more details." >&5
36172 echo "$as_me: error: cannot compute sizeof (long long int)
36173 See \`config.log' for more details." >&2;}
36174    { (exit 77); exit 77; }; }
36175    else
36176      ac_cv_sizeof_long_long_int=0
36177    fi
36178 fi
36179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36180 fi
36181 rm -f conftest.val
36182 fi
36183 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36184 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36185
36186
36187
36188 cat >>confdefs.h <<_ACEOF
36189 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36190 _ACEOF
36191
36192
36193 { echo "$as_me:$LINENO: checking for int *" >&5
36194 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36195 if test "${ac_cv_type_int_p+set}" = set; then
36196   echo $ECHO_N "(cached) $ECHO_C" >&6
36197 else
36198   cat >conftest.$ac_ext <<_ACEOF
36199 /* confdefs.h.  */
36200 _ACEOF
36201 cat confdefs.h >>conftest.$ac_ext
36202 cat >>conftest.$ac_ext <<_ACEOF
36203 /* end confdefs.h.  */
36204 $ac_includes_default
36205 typedef int * ac__type_new_;
36206 int
36207 main ()
36208 {
36209 if ((ac__type_new_ *) 0)
36210   return 0;
36211 if (sizeof (ac__type_new_))
36212   return 0;
36213   ;
36214   return 0;
36215 }
36216 _ACEOF
36217 rm -f conftest.$ac_objext
36218 if { (ac_try="$ac_compile"
36219 case "(($ac_try" in
36220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36221   *) ac_try_echo=$ac_try;;
36222 esac
36223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36224   (eval "$ac_compile") 2>conftest.er1
36225   ac_status=$?
36226   grep -v '^ *+' conftest.er1 >conftest.err
36227   rm -f conftest.er1
36228   cat conftest.err >&5
36229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230   (exit $ac_status); } && {
36231          test -z "$ac_c_werror_flag" ||
36232          test ! -s conftest.err
36233        } && test -s conftest.$ac_objext; then
36234   ac_cv_type_int_p=yes
36235 else
36236   echo "$as_me: failed program was:" >&5
36237 sed 's/^/| /' conftest.$ac_ext >&5
36238
36239         ac_cv_type_int_p=no
36240 fi
36241
36242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36243 fi
36244 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36245 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36246
36247 # The cast to long int works around a bug in the HP C Compiler
36248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36250 # This bug is HP SR number 8606223364.
36251 { echo "$as_me:$LINENO: checking size of int *" >&5
36252 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36253 if test "${ac_cv_sizeof_int_p+set}" = set; then
36254   echo $ECHO_N "(cached) $ECHO_C" >&6
36255 else
36256   if test "$cross_compiling" = yes; then
36257   # Depending upon the size, compute the lo and hi bounds.
36258 cat >conftest.$ac_ext <<_ACEOF
36259 /* confdefs.h.  */
36260 _ACEOF
36261 cat confdefs.h >>conftest.$ac_ext
36262 cat >>conftest.$ac_ext <<_ACEOF
36263 /* end confdefs.h.  */
36264 $ac_includes_default
36265    typedef int * ac__type_sizeof_;
36266 int
36267 main ()
36268 {
36269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36270 test_array [0] = 0
36271
36272   ;
36273   return 0;
36274 }
36275 _ACEOF
36276 rm -f conftest.$ac_objext
36277 if { (ac_try="$ac_compile"
36278 case "(($ac_try" in
36279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36280   *) ac_try_echo=$ac_try;;
36281 esac
36282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36283   (eval "$ac_compile") 2>conftest.er1
36284   ac_status=$?
36285   grep -v '^ *+' conftest.er1 >conftest.err
36286   rm -f conftest.er1
36287   cat conftest.err >&5
36288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289   (exit $ac_status); } && {
36290          test -z "$ac_c_werror_flag" ||
36291          test ! -s conftest.err
36292        } && test -s conftest.$ac_objext; then
36293   ac_lo=0 ac_mid=0
36294   while :; do
36295     cat >conftest.$ac_ext <<_ACEOF
36296 /* confdefs.h.  */
36297 _ACEOF
36298 cat confdefs.h >>conftest.$ac_ext
36299 cat >>conftest.$ac_ext <<_ACEOF
36300 /* end confdefs.h.  */
36301 $ac_includes_default
36302    typedef int * ac__type_sizeof_;
36303 int
36304 main ()
36305 {
36306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36307 test_array [0] = 0
36308
36309   ;
36310   return 0;
36311 }
36312 _ACEOF
36313 rm -f conftest.$ac_objext
36314 if { (ac_try="$ac_compile"
36315 case "(($ac_try" in
36316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36317   *) ac_try_echo=$ac_try;;
36318 esac
36319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36320   (eval "$ac_compile") 2>conftest.er1
36321   ac_status=$?
36322   grep -v '^ *+' conftest.er1 >conftest.err
36323   rm -f conftest.er1
36324   cat conftest.err >&5
36325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326   (exit $ac_status); } && {
36327          test -z "$ac_c_werror_flag" ||
36328          test ! -s conftest.err
36329        } && test -s conftest.$ac_objext; then
36330   ac_hi=$ac_mid; break
36331 else
36332   echo "$as_me: failed program was:" >&5
36333 sed 's/^/| /' conftest.$ac_ext >&5
36334
36335         ac_lo=`expr $ac_mid + 1`
36336                         if test $ac_lo -le $ac_mid; then
36337                           ac_lo= ac_hi=
36338                           break
36339                         fi
36340                         ac_mid=`expr 2 '*' $ac_mid + 1`
36341 fi
36342
36343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36344   done
36345 else
36346   echo "$as_me: failed program was:" >&5
36347 sed 's/^/| /' conftest.$ac_ext >&5
36348
36349         cat >conftest.$ac_ext <<_ACEOF
36350 /* confdefs.h.  */
36351 _ACEOF
36352 cat confdefs.h >>conftest.$ac_ext
36353 cat >>conftest.$ac_ext <<_ACEOF
36354 /* end confdefs.h.  */
36355 $ac_includes_default
36356    typedef int * ac__type_sizeof_;
36357 int
36358 main ()
36359 {
36360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36361 test_array [0] = 0
36362
36363   ;
36364   return 0;
36365 }
36366 _ACEOF
36367 rm -f conftest.$ac_objext
36368 if { (ac_try="$ac_compile"
36369 case "(($ac_try" in
36370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371   *) ac_try_echo=$ac_try;;
36372 esac
36373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36374   (eval "$ac_compile") 2>conftest.er1
36375   ac_status=$?
36376   grep -v '^ *+' conftest.er1 >conftest.err
36377   rm -f conftest.er1
36378   cat conftest.err >&5
36379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380   (exit $ac_status); } && {
36381          test -z "$ac_c_werror_flag" ||
36382          test ! -s conftest.err
36383        } && test -s conftest.$ac_objext; then
36384   ac_hi=-1 ac_mid=-1
36385   while :; do
36386     cat >conftest.$ac_ext <<_ACEOF
36387 /* confdefs.h.  */
36388 _ACEOF
36389 cat confdefs.h >>conftest.$ac_ext
36390 cat >>conftest.$ac_ext <<_ACEOF
36391 /* end confdefs.h.  */
36392 $ac_includes_default
36393    typedef int * ac__type_sizeof_;
36394 int
36395 main ()
36396 {
36397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36398 test_array [0] = 0
36399
36400   ;
36401   return 0;
36402 }
36403 _ACEOF
36404 rm -f conftest.$ac_objext
36405 if { (ac_try="$ac_compile"
36406 case "(($ac_try" in
36407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408   *) ac_try_echo=$ac_try;;
36409 esac
36410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36411   (eval "$ac_compile") 2>conftest.er1
36412   ac_status=$?
36413   grep -v '^ *+' conftest.er1 >conftest.err
36414   rm -f conftest.er1
36415   cat conftest.err >&5
36416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417   (exit $ac_status); } && {
36418          test -z "$ac_c_werror_flag" ||
36419          test ! -s conftest.err
36420        } && test -s conftest.$ac_objext; then
36421   ac_lo=$ac_mid; break
36422 else
36423   echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36425
36426         ac_hi=`expr '(' $ac_mid ')' - 1`
36427                         if test $ac_mid -le $ac_hi; then
36428                           ac_lo= ac_hi=
36429                           break
36430                         fi
36431                         ac_mid=`expr 2 '*' $ac_mid`
36432 fi
36433
36434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36435   done
36436 else
36437   echo "$as_me: failed program was:" >&5
36438 sed 's/^/| /' conftest.$ac_ext >&5
36439
36440         ac_lo= ac_hi=
36441 fi
36442
36443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36444 fi
36445
36446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36447 # Binary search between lo and hi bounds.
36448 while test "x$ac_lo" != "x$ac_hi"; do
36449   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36450   cat >conftest.$ac_ext <<_ACEOF
36451 /* confdefs.h.  */
36452 _ACEOF
36453 cat confdefs.h >>conftest.$ac_ext
36454 cat >>conftest.$ac_ext <<_ACEOF
36455 /* end confdefs.h.  */
36456 $ac_includes_default
36457    typedef int * ac__type_sizeof_;
36458 int
36459 main ()
36460 {
36461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36462 test_array [0] = 0
36463
36464   ;
36465   return 0;
36466 }
36467 _ACEOF
36468 rm -f conftest.$ac_objext
36469 if { (ac_try="$ac_compile"
36470 case "(($ac_try" in
36471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36472   *) ac_try_echo=$ac_try;;
36473 esac
36474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36475   (eval "$ac_compile") 2>conftest.er1
36476   ac_status=$?
36477   grep -v '^ *+' conftest.er1 >conftest.err
36478   rm -f conftest.er1
36479   cat conftest.err >&5
36480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481   (exit $ac_status); } && {
36482          test -z "$ac_c_werror_flag" ||
36483          test ! -s conftest.err
36484        } && test -s conftest.$ac_objext; then
36485   ac_hi=$ac_mid
36486 else
36487   echo "$as_me: failed program was:" >&5
36488 sed 's/^/| /' conftest.$ac_ext >&5
36489
36490         ac_lo=`expr '(' $ac_mid ')' + 1`
36491 fi
36492
36493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36494 done
36495 case $ac_lo in
36496 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36497 '') if test "$ac_cv_type_int_p" = yes; then
36498      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36499 See \`config.log' for more details." >&5
36500 echo "$as_me: error: cannot compute sizeof (int *)
36501 See \`config.log' for more details." >&2;}
36502    { (exit 77); exit 77; }; }
36503    else
36504      ac_cv_sizeof_int_p=0
36505    fi ;;
36506 esac
36507 else
36508   cat >conftest.$ac_ext <<_ACEOF
36509 /* confdefs.h.  */
36510 _ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h.  */
36514 $ac_includes_default
36515    typedef int * ac__type_sizeof_;
36516 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36517 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36518 #include <stdio.h>
36519 #include <stdlib.h>
36520 int
36521 main ()
36522 {
36523
36524   FILE *f = fopen ("conftest.val", "w");
36525   if (! f)
36526     return 1;
36527   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36528     {
36529       long int i = longval ();
36530       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36531         return 1;
36532       fprintf (f, "%ld\n", i);
36533     }
36534   else
36535     {
36536       unsigned long int i = ulongval ();
36537       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36538         return 1;
36539       fprintf (f, "%lu\n", i);
36540     }
36541   return ferror (f) || fclose (f) != 0;
36542
36543   ;
36544   return 0;
36545 }
36546 _ACEOF
36547 rm -f conftest$ac_exeext
36548 if { (ac_try="$ac_link"
36549 case "(($ac_try" in
36550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36551   *) ac_try_echo=$ac_try;;
36552 esac
36553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36554   (eval "$ac_link") 2>&5
36555   ac_status=$?
36556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36558   { (case "(($ac_try" in
36559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36560   *) ac_try_echo=$ac_try;;
36561 esac
36562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36563   (eval "$ac_try") 2>&5
36564   ac_status=$?
36565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566   (exit $ac_status); }; }; then
36567   ac_cv_sizeof_int_p=`cat conftest.val`
36568 else
36569   echo "$as_me: program exited with status $ac_status" >&5
36570 echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36572
36573 ( exit $ac_status )
36574 if test "$ac_cv_type_int_p" = yes; then
36575      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36576 See \`config.log' for more details." >&5
36577 echo "$as_me: error: cannot compute sizeof (int *)
36578 See \`config.log' for more details." >&2;}
36579    { (exit 77); exit 77; }; }
36580    else
36581      ac_cv_sizeof_int_p=0
36582    fi
36583 fi
36584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36585 fi
36586 rm -f conftest.val
36587 fi
36588 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36589 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36590
36591
36592
36593 cat >>confdefs.h <<_ACEOF
36594 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36595 _ACEOF
36596
36597
36598
36599 { echo "$as_me:$LINENO: checking for u_int type" >&5
36600 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36601 if test "${ac_cv_have_u_int+set}" = set; then
36602   echo $ECHO_N "(cached) $ECHO_C" >&6
36603 else
36604
36605        cat >conftest.$ac_ext <<_ACEOF
36606 /* confdefs.h.  */
36607 _ACEOF
36608 cat confdefs.h >>conftest.$ac_ext
36609 cat >>conftest.$ac_ext <<_ACEOF
36610 /* end confdefs.h.  */
36611
36612               #include <sys/types.h>
36613
36614 int
36615 main ()
36616 {
36617
36618               u_int a; a = 1;
36619
36620   ;
36621   return 0;
36622 }
36623 _ACEOF
36624 rm -f conftest.$ac_objext
36625 if { (ac_try="$ac_compile"
36626 case "(($ac_try" in
36627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36628   *) ac_try_echo=$ac_try;;
36629 esac
36630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36631   (eval "$ac_compile") 2>conftest.er1
36632   ac_status=$?
36633   grep -v '^ *+' conftest.er1 >conftest.err
36634   rm -f conftest.er1
36635   cat conftest.err >&5
36636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637   (exit $ac_status); } && {
36638          test -z "$ac_c_werror_flag" ||
36639          test ! -s conftest.err
36640        } && test -s conftest.$ac_objext; then
36641
36642               ac_cv_have_u_int="yes"
36643
36644 else
36645   echo "$as_me: failed program was:" >&5
36646 sed 's/^/| /' conftest.$ac_ext >&5
36647
36648
36649               ac_cv_have_u_int="no"
36650
36651
36652 fi
36653
36654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36655
36656
36657 fi
36658 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36659 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36660 if test "x$ac_cv_have_u_int" = "xyes" ; then
36661    cat >>confdefs.h <<\_ACEOF
36662 #define HAVE_U_INT 1
36663 _ACEOF
36664
36665    have_u_int=1
36666 fi
36667
36668 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36669 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36670 if test "${ac_cv_have_intmax_t+set}" = set; then
36671   echo $ECHO_N "(cached) $ECHO_C" >&6
36672 else
36673
36674        cat >conftest.$ac_ext <<_ACEOF
36675 /* confdefs.h.  */
36676 _ACEOF
36677 cat confdefs.h >>conftest.$ac_ext
36678 cat >>conftest.$ac_ext <<_ACEOF
36679 /* end confdefs.h.  */
36680
36681               #include <sys/types.h>
36682
36683 int
36684 main ()
36685 {
36686
36687               intmax_t a; a = 1;
36688
36689   ;
36690   return 0;
36691 }
36692 _ACEOF
36693 rm -f conftest.$ac_objext
36694 if { (ac_try="$ac_compile"
36695 case "(($ac_try" in
36696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36697   *) ac_try_echo=$ac_try;;
36698 esac
36699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36700   (eval "$ac_compile") 2>conftest.er1
36701   ac_status=$?
36702   grep -v '^ *+' conftest.er1 >conftest.err
36703   rm -f conftest.er1
36704   cat conftest.err >&5
36705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706   (exit $ac_status); } && {
36707          test -z "$ac_c_werror_flag" ||
36708          test ! -s conftest.err
36709        } && test -s conftest.$ac_objext; then
36710
36711               ac_cv_have_intmax_t="yes"
36712
36713 else
36714   echo "$as_me: failed program was:" >&5
36715 sed 's/^/| /' conftest.$ac_ext >&5
36716
36717
36718               cat >conftest.$ac_ext <<_ACEOF
36719 /* confdefs.h.  */
36720 _ACEOF
36721 cat confdefs.h >>conftest.$ac_ext
36722 cat >>conftest.$ac_ext <<_ACEOF
36723 /* end confdefs.h.  */
36724
36725                      #include <stdint.h>
36726
36727 int
36728 main ()
36729 {
36730
36731                      intmax_t a; a = 1;
36732
36733   ;
36734   return 0;
36735 }
36736 _ACEOF
36737 rm -f conftest.$ac_objext
36738 if { (ac_try="$ac_compile"
36739 case "(($ac_try" in
36740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36741   *) ac_try_echo=$ac_try;;
36742 esac
36743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36744   (eval "$ac_compile") 2>conftest.er1
36745   ac_status=$?
36746   grep -v '^ *+' conftest.er1 >conftest.err
36747   rm -f conftest.er1
36748   cat conftest.err >&5
36749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750   (exit $ac_status); } && {
36751          test -z "$ac_c_werror_flag" ||
36752          test ! -s conftest.err
36753        } && test -s conftest.$ac_objext; then
36754
36755                      ac_cv_have_intmax_t="yes"
36756
36757 else
36758   echo "$as_me: failed program was:" >&5
36759 sed 's/^/| /' conftest.$ac_ext >&5
36760
36761
36762                      ac_cv_have_intmax_t="no"
36763
36764
36765 fi
36766
36767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36768
36769
36770 fi
36771
36772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36773
36774
36775 fi
36776 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36777 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36778 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36779    cat >>confdefs.h <<\_ACEOF
36780 #define HAVE_INTMAX_T 1
36781 _ACEOF
36782
36783    have_intmax_t=1
36784 fi
36785
36786 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36787 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36788 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36789   echo $ECHO_N "(cached) $ECHO_C" >&6
36790 else
36791
36792        cat >conftest.$ac_ext <<_ACEOF
36793 /* confdefs.h.  */
36794 _ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h.  */
36798
36799               #include <sys/types.h>
36800
36801 int
36802 main ()
36803 {
36804
36805               u_intmax_t a; a = 1;
36806
36807   ;
36808   return 0;
36809 }
36810 _ACEOF
36811 rm -f conftest.$ac_objext
36812 if { (ac_try="$ac_compile"
36813 case "(($ac_try" in
36814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36815   *) ac_try_echo=$ac_try;;
36816 esac
36817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36818   (eval "$ac_compile") 2>conftest.er1
36819   ac_status=$?
36820   grep -v '^ *+' conftest.er1 >conftest.err
36821   rm -f conftest.er1
36822   cat conftest.err >&5
36823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824   (exit $ac_status); } && {
36825          test -z "$ac_c_werror_flag" ||
36826          test ! -s conftest.err
36827        } && test -s conftest.$ac_objext; then
36828
36829               ac_cv_have_u_intmax_t="yes"
36830
36831 else
36832   echo "$as_me: failed program was:" >&5
36833 sed 's/^/| /' conftest.$ac_ext >&5
36834
36835
36836               cat >conftest.$ac_ext <<_ACEOF
36837 /* confdefs.h.  */
36838 _ACEOF
36839 cat confdefs.h >>conftest.$ac_ext
36840 cat >>conftest.$ac_ext <<_ACEOF
36841 /* end confdefs.h.  */
36842
36843                      #include <stdint.h>
36844
36845 int
36846 main ()
36847 {
36848
36849                     u_intmax_t a; a = 1;
36850
36851   ;
36852   return 0;
36853 }
36854 _ACEOF
36855 rm -f conftest.$ac_objext
36856 if { (ac_try="$ac_compile"
36857 case "(($ac_try" in
36858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36859   *) ac_try_echo=$ac_try;;
36860 esac
36861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36862   (eval "$ac_compile") 2>conftest.er1
36863   ac_status=$?
36864   grep -v '^ *+' conftest.er1 >conftest.err
36865   rm -f conftest.er1
36866   cat conftest.err >&5
36867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36868   (exit $ac_status); } && {
36869          test -z "$ac_c_werror_flag" ||
36870          test ! -s conftest.err
36871        } && test -s conftest.$ac_objext; then
36872
36873                     ac_cv_have_u_intmax_t="yes"
36874
36875 else
36876   echo "$as_me: failed program was:" >&5
36877 sed 's/^/| /' conftest.$ac_ext >&5
36878
36879
36880                     ac_cv_have_u_intmax_t="no"
36881
36882
36883 fi
36884
36885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36886
36887
36888 fi
36889
36890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36891
36892
36893 fi
36894 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36895 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36896 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36897    cat >>confdefs.h <<\_ACEOF
36898 #define HAVE_U_INTMAX_T 1
36899 _ACEOF
36900
36901    have_u_intmax_t=1
36902 fi
36903
36904 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36905 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36906 if test "${ac_cv_have_intxx_t+set}" = set; then
36907   echo $ECHO_N "(cached) $ECHO_C" >&6
36908 else
36909
36910        cat >conftest.$ac_ext <<_ACEOF
36911 /* confdefs.h.  */
36912 _ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h.  */
36916
36917               #include <sys/types.h>
36918
36919 int
36920 main ()
36921 {
36922
36923               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36924
36925   ;
36926   return 0;
36927 }
36928 _ACEOF
36929 rm -f conftest.$ac_objext
36930 if { (ac_try="$ac_compile"
36931 case "(($ac_try" in
36932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36933   *) ac_try_echo=$ac_try;;
36934 esac
36935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36936   (eval "$ac_compile") 2>conftest.er1
36937   ac_status=$?
36938   grep -v '^ *+' conftest.er1 >conftest.err
36939   rm -f conftest.er1
36940   cat conftest.err >&5
36941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942   (exit $ac_status); } && {
36943          test -z "$ac_c_werror_flag" ||
36944          test ! -s conftest.err
36945        } && test -s conftest.$ac_objext; then
36946
36947               ac_cv_have_intxx_t="yes"
36948
36949 else
36950   echo "$as_me: failed program was:" >&5
36951 sed 's/^/| /' conftest.$ac_ext >&5
36952
36953
36954               ac_cv_have_intxx_t="no"
36955
36956
36957 fi
36958
36959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36960
36961
36962 fi
36963 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36964 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36965 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36966    cat >>confdefs.h <<\_ACEOF
36967 #define HAVE_INTXX_T 1
36968 _ACEOF
36969
36970    have_intxx_t=1
36971 fi
36972
36973 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36974 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36975 if test "${ac_cv_have_int64_t+set}" = set; then
36976   echo $ECHO_N "(cached) $ECHO_C" >&6
36977 else
36978
36979        cat >conftest.$ac_ext <<_ACEOF
36980 /* confdefs.h.  */
36981 _ACEOF
36982 cat confdefs.h >>conftest.$ac_ext
36983 cat >>conftest.$ac_ext <<_ACEOF
36984 /* end confdefs.h.  */
36985
36986               #include <sys/types.h>
36987
36988 int
36989 main ()
36990 {
36991
36992               int64_t a; a = 1;
36993
36994   ;
36995   return 0;
36996 }
36997 _ACEOF
36998 rm -f conftest.$ac_objext
36999 if { (ac_try="$ac_compile"
37000 case "(($ac_try" in
37001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37002   *) ac_try_echo=$ac_try;;
37003 esac
37004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37005   (eval "$ac_compile") 2>conftest.er1
37006   ac_status=$?
37007   grep -v '^ *+' conftest.er1 >conftest.err
37008   rm -f conftest.er1
37009   cat conftest.err >&5
37010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37011   (exit $ac_status); } && {
37012          test -z "$ac_c_werror_flag" ||
37013          test ! -s conftest.err
37014        } && test -s conftest.$ac_objext; then
37015
37016               ac_cv_have_int64_t="yes"
37017
37018 else
37019   echo "$as_me: failed program was:" >&5
37020 sed 's/^/| /' conftest.$ac_ext >&5
37021
37022
37023               ac_cv_have_int64_t="no"
37024
37025
37026 fi
37027
37028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37029
37030
37031 fi
37032 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37033 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37034 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37035    cat >>confdefs.h <<\_ACEOF
37036 #define HAVE_INT64_T 1
37037 _ACEOF
37038
37039    have_int64_t=1
37040 fi
37041
37042 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37043 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37044 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37045   echo $ECHO_N "(cached) $ECHO_C" >&6
37046 else
37047
37048        cat >conftest.$ac_ext <<_ACEOF
37049 /* confdefs.h.  */
37050 _ACEOF
37051 cat confdefs.h >>conftest.$ac_ext
37052 cat >>conftest.$ac_ext <<_ACEOF
37053 /* end confdefs.h.  */
37054
37055               #include <sys/types.h>
37056
37057 int
37058 main ()
37059 {
37060
37061               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37062
37063   ;
37064   return 0;
37065 }
37066 _ACEOF
37067 rm -f conftest.$ac_objext
37068 if { (ac_try="$ac_compile"
37069 case "(($ac_try" in
37070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37071   *) ac_try_echo=$ac_try;;
37072 esac
37073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37074   (eval "$ac_compile") 2>conftest.er1
37075   ac_status=$?
37076   grep -v '^ *+' conftest.er1 >conftest.err
37077   rm -f conftest.er1
37078   cat conftest.err >&5
37079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080   (exit $ac_status); } && {
37081          test -z "$ac_c_werror_flag" ||
37082          test ! -s conftest.err
37083        } && test -s conftest.$ac_objext; then
37084
37085              ac_cv_have_u_intxx_t="yes"
37086
37087 else
37088   echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37090
37091
37092              ac_cv_have_u_intxx_t="no"
37093
37094
37095 fi
37096
37097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37098
37099
37100 fi
37101 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37102 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37103 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37104    cat >>confdefs.h <<\_ACEOF
37105 #define HAVE_U_INTXX_T 1
37106 _ACEOF
37107
37108    have_u_intxx_t=1
37109 fi
37110
37111 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37112 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37113 if test "${ac_cv_have_u_int64_t+set}" = set; then
37114   echo $ECHO_N "(cached) $ECHO_C" >&6
37115 else
37116
37117        cat >conftest.$ac_ext <<_ACEOF
37118 /* confdefs.h.  */
37119 _ACEOF
37120 cat confdefs.h >>conftest.$ac_ext
37121 cat >>conftest.$ac_ext <<_ACEOF
37122 /* end confdefs.h.  */
37123
37124               #include <sys/types.h>
37125
37126 int
37127 main ()
37128 {
37129
37130               u_int64_t a; a = 1;
37131
37132   ;
37133   return 0;
37134 }
37135 _ACEOF
37136 rm -f conftest.$ac_objext
37137 if { (ac_try="$ac_compile"
37138 case "(($ac_try" in
37139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37140   *) ac_try_echo=$ac_try;;
37141 esac
37142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37143   (eval "$ac_compile") 2>conftest.er1
37144   ac_status=$?
37145   grep -v '^ *+' conftest.er1 >conftest.err
37146   rm -f conftest.er1
37147   cat conftest.err >&5
37148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149   (exit $ac_status); } && {
37150          test -z "$ac_c_werror_flag" ||
37151          test ! -s conftest.err
37152        } && test -s conftest.$ac_objext; then
37153
37154              ac_cv_have_u_int64_t="yes"
37155
37156 else
37157   echo "$as_me: failed program was:" >&5
37158 sed 's/^/| /' conftest.$ac_ext >&5
37159
37160
37161              ac_cv_have_u_int64_t="no"
37162
37163
37164 fi
37165
37166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37167
37168
37169 fi
37170 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37171 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37172 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37173    cat >>confdefs.h <<\_ACEOF
37174 #define HAVE_U_INT64_T 1
37175 _ACEOF
37176
37177    have_u_int64_t=1
37178 fi
37179
37180 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37181     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37182 then
37183    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37184 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
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/bitypes.h>
37193
37194 int
37195 main ()
37196 {
37197
37198           int8_t a; int16_t b; int32_t c;
37199           u_int8_t e; u_int16_t f; u_int32_t g;
37200           a = b = c = e = f = g = 1;
37201
37202   ;
37203   return 0;
37204 }
37205 _ACEOF
37206 rm -f conftest.$ac_objext
37207 if { (ac_try="$ac_compile"
37208 case "(($ac_try" in
37209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37210   *) ac_try_echo=$ac_try;;
37211 esac
37212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37213   (eval "$ac_compile") 2>conftest.er1
37214   ac_status=$?
37215   grep -v '^ *+' conftest.er1 >conftest.err
37216   rm -f conftest.er1
37217   cat conftest.err >&5
37218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219   (exit $ac_status); } && {
37220          test -z "$ac_c_werror_flag" ||
37221          test ! -s conftest.err
37222        } && test -s conftest.$ac_objext; then
37223
37224           cat >>confdefs.h <<\_ACEOF
37225 #define HAVE_U_INTXX_T 1
37226 _ACEOF
37227
37228           cat >>confdefs.h <<\_ACEOF
37229 #define HAVE_INTXX_T 1
37230 _ACEOF
37231
37232           cat >>confdefs.h <<\_ACEOF
37233 #define HAVE_SYS_BITYPES_H 1
37234 _ACEOF
37235
37236           { echo "$as_me:$LINENO: result: yes" >&5
37237 echo "${ECHO_T}yes" >&6; }
37238
37239 else
37240   echo "$as_me: failed program was:" >&5
37241 sed 's/^/| /' conftest.$ac_ext >&5
37242
37243
37244           { echo "$as_me:$LINENO: result: no" >&5
37245 echo "${ECHO_T}no" >&6; }
37246
37247
37248 fi
37249
37250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37251 fi
37252
37253 if test -z "$have_u_intxx_t" ; then
37254    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37255 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37256 if test "${ac_cv_have_uintxx_t+set}" = set; then
37257   echo $ECHO_N "(cached) $ECHO_C" >&6
37258 else
37259
37260           cat >conftest.$ac_ext <<_ACEOF
37261 /* confdefs.h.  */
37262 _ACEOF
37263 cat confdefs.h >>conftest.$ac_ext
37264 cat >>conftest.$ac_ext <<_ACEOF
37265 /* end confdefs.h.  */
37266
37267                  #include <sys/types.h>
37268
37269 int
37270 main ()
37271 {
37272
37273                  uint8_t a; uint16_t b;
37274                  uint32_t c; a = b = c = 1;
37275
37276   ;
37277   return 0;
37278 }
37279 _ACEOF
37280 rm -f conftest.$ac_objext
37281 if { (ac_try="$ac_compile"
37282 case "(($ac_try" in
37283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37284   *) ac_try_echo=$ac_try;;
37285 esac
37286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37287   (eval "$ac_compile") 2>conftest.er1
37288   ac_status=$?
37289   grep -v '^ *+' conftest.er1 >conftest.err
37290   rm -f conftest.er1
37291   cat conftest.err >&5
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); } && {
37294          test -z "$ac_c_werror_flag" ||
37295          test ! -s conftest.err
37296        } && test -s conftest.$ac_objext; then
37297
37298                 ac_cv_have_uintxx_t="yes"
37299
37300 else
37301   echo "$as_me: failed program was:" >&5
37302 sed 's/^/| /' conftest.$ac_ext >&5
37303
37304
37305                 ac_cv_have_uintxx_t="no"
37306
37307
37308 fi
37309
37310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37311
37312
37313 fi
37314 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37315 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37316    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37317       cat >>confdefs.h <<\_ACEOF
37318 #define HAVE_UINTXX_T 1
37319 _ACEOF
37320
37321    fi
37322 fi
37323
37324 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37325     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37326 then
37327    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37328 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37329    cat >conftest.$ac_ext <<_ACEOF
37330 /* confdefs.h.  */
37331 _ACEOF
37332 cat confdefs.h >>conftest.$ac_ext
37333 cat >>conftest.$ac_ext <<_ACEOF
37334 /* end confdefs.h.  */
37335
37336           #include <sys/bitypes.h>
37337
37338 int
37339 main ()
37340 {
37341
37342           int64_t a; u_int64_t b;
37343           a = b = 1;
37344
37345   ;
37346   return 0;
37347 }
37348 _ACEOF
37349 rm -f conftest.$ac_objext
37350 if { (ac_try="$ac_compile"
37351 case "(($ac_try" in
37352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37353   *) ac_try_echo=$ac_try;;
37354 esac
37355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37356   (eval "$ac_compile") 2>conftest.er1
37357   ac_status=$?
37358   grep -v '^ *+' conftest.er1 >conftest.err
37359   rm -f conftest.er1
37360   cat conftest.err >&5
37361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362   (exit $ac_status); } && {
37363          test -z "$ac_c_werror_flag" ||
37364          test ! -s conftest.err
37365        } && test -s conftest.$ac_objext; then
37366
37367           cat >>confdefs.h <<\_ACEOF
37368 #define HAVE_U_INT64_T 1
37369 _ACEOF
37370
37371           cat >>confdefs.h <<\_ACEOF
37372 #define HAVE_INT64_T 1
37373 _ACEOF
37374
37375           { echo "$as_me:$LINENO: result: yes" >&5
37376 echo "${ECHO_T}yes" >&6; }
37377
37378 else
37379   echo "$as_me: failed program was:" >&5
37380 sed 's/^/| /' conftest.$ac_ext >&5
37381
37382
37383           { echo "$as_me:$LINENO: result: no" >&5
37384 echo "${ECHO_T}no" >&6; }
37385
37386
37387 fi
37388
37389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37390 fi
37391
37392 if (test -z "$have_uintxx_t" && \
37393     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37394 then
37395    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37396 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37397    cat >conftest.$ac_ext <<_ACEOF
37398 /* confdefs.h.  */
37399 _ACEOF
37400 cat confdefs.h >>conftest.$ac_ext
37401 cat >>conftest.$ac_ext <<_ACEOF
37402 /* end confdefs.h.  */
37403
37404           #include <sys/bitypes.h>
37405
37406 int
37407 main ()
37408 {
37409
37410           uint8_t a; uint16_t b;
37411           uint32_t c; a = b = c = 1;
37412
37413   ;
37414   return 0;
37415 }
37416 _ACEOF
37417 rm -f conftest.$ac_objext
37418 if { (ac_try="$ac_compile"
37419 case "(($ac_try" in
37420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37421   *) ac_try_echo=$ac_try;;
37422 esac
37423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37424   (eval "$ac_compile") 2>conftest.er1
37425   ac_status=$?
37426   grep -v '^ *+' conftest.er1 >conftest.err
37427   rm -f conftest.er1
37428   cat conftest.err >&5
37429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430   (exit $ac_status); } && {
37431          test -z "$ac_c_werror_flag" ||
37432          test ! -s conftest.err
37433        } && test -s conftest.$ac_objext; then
37434
37435           cat >>confdefs.h <<\_ACEOF
37436 #define HAVE_UINTXX_T 1
37437 _ACEOF
37438
37439           { echo "$as_me:$LINENO: result: yes" >&5
37440 echo "${ECHO_T}yes" >&6; }
37441
37442 else
37443   echo "$as_me: failed program was:" >&5
37444 sed 's/^/| /' conftest.$ac_ext >&5
37445
37446
37447           { echo "$as_me:$LINENO: result: no" >&5
37448 echo "${ECHO_T}no" >&6; }
37449
37450
37451 fi
37452
37453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37454 fi
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468
37469 for ac_func in \
37470    fork \
37471    getcwd \
37472    gethostname \
37473    getpid \
37474    gettimeofday \
37475    setpgid \
37476    setpgrp \
37477    setsid \
37478    signal \
37479    strerror \
37480    strncmp \
37481    strncpy \
37482    vfprintf \
37483
37484 do
37485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37489   echo $ECHO_N "(cached) $ECHO_C" >&6
37490 else
37491   cat >conftest.$ac_ext <<_ACEOF
37492 /* confdefs.h.  */
37493 _ACEOF
37494 cat confdefs.h >>conftest.$ac_ext
37495 cat >>conftest.$ac_ext <<_ACEOF
37496 /* end confdefs.h.  */
37497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37499 #define $ac_func innocuous_$ac_func
37500
37501 /* System header to define __stub macros and hopefully few prototypes,
37502     which can conflict with char $ac_func (); below.
37503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37504     <limits.h> exists even on freestanding compilers.  */
37505
37506 #ifdef __STDC__
37507 # include <limits.h>
37508 #else
37509 # include <assert.h>
37510 #endif
37511
37512 #undef $ac_func
37513
37514 /* Override any GCC internal prototype to avoid an error.
37515    Use char because int might match the return type of a GCC
37516    builtin and then its argument prototype would still apply.  */
37517 #ifdef __cplusplus
37518 extern "C"
37519 #endif
37520 char $ac_func ();
37521 /* The GNU C library defines this for functions which it implements
37522     to always fail with ENOSYS.  Some functions are actually named
37523     something starting with __ and the normal name is an alias.  */
37524 #if defined __stub_$ac_func || defined __stub___$ac_func
37525 choke me
37526 #endif
37527
37528 int
37529 main ()
37530 {
37531 return $ac_func ();
37532   ;
37533   return 0;
37534 }
37535 _ACEOF
37536 rm -f conftest.$ac_objext conftest$ac_exeext
37537 if { (ac_try="$ac_link"
37538 case "(($ac_try" in
37539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37540   *) ac_try_echo=$ac_try;;
37541 esac
37542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37543   (eval "$ac_link") 2>conftest.er1
37544   ac_status=$?
37545   grep -v '^ *+' conftest.er1 >conftest.err
37546   rm -f conftest.er1
37547   cat conftest.err >&5
37548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549   (exit $ac_status); } && {
37550          test -z "$ac_c_werror_flag" ||
37551          test ! -s conftest.err
37552        } && test -s conftest$ac_exeext &&
37553        $as_test_x conftest$ac_exeext; then
37554   eval "$as_ac_var=yes"
37555 else
37556   echo "$as_me: failed program was:" >&5
37557 sed 's/^/| /' conftest.$ac_ext >&5
37558
37559         eval "$as_ac_var=no"
37560 fi
37561
37562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37563       conftest$ac_exeext conftest.$ac_ext
37564 fi
37565 ac_res=`eval echo '${'$as_ac_var'}'`
37566                { echo "$as_me:$LINENO: result: $ac_res" >&5
37567 echo "${ECHO_T}$ac_res" >&6; }
37568 if test `eval echo '${'$as_ac_var'}'` = yes; then
37569   cat >>confdefs.h <<_ACEOF
37570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37571 _ACEOF
37572
37573 else
37574   echo 'configure: cannot find needed function.'; exit 1
37575
37576 fi
37577 done
37578
37579
37580
37581 for ac_func in fchdir
37582 do
37583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37587   echo $ECHO_N "(cached) $ECHO_C" >&6
37588 else
37589   cat >conftest.$ac_ext <<_ACEOF
37590 /* confdefs.h.  */
37591 _ACEOF
37592 cat confdefs.h >>conftest.$ac_ext
37593 cat >>conftest.$ac_ext <<_ACEOF
37594 /* end confdefs.h.  */
37595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37597 #define $ac_func innocuous_$ac_func
37598
37599 /* System header to define __stub macros and hopefully few prototypes,
37600     which can conflict with char $ac_func (); below.
37601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37602     <limits.h> exists even on freestanding compilers.  */
37603
37604 #ifdef __STDC__
37605 # include <limits.h>
37606 #else
37607 # include <assert.h>
37608 #endif
37609
37610 #undef $ac_func
37611
37612 /* Override any GCC internal prototype to avoid an error.
37613    Use char because int might match the return type of a GCC
37614    builtin and then its argument prototype would still apply.  */
37615 #ifdef __cplusplus
37616 extern "C"
37617 #endif
37618 char $ac_func ();
37619 /* The GNU C library defines this for functions which it implements
37620     to always fail with ENOSYS.  Some functions are actually named
37621     something starting with __ and the normal name is an alias.  */
37622 #if defined __stub_$ac_func || defined __stub___$ac_func
37623 choke me
37624 #endif
37625
37626 int
37627 main ()
37628 {
37629 return $ac_func ();
37630   ;
37631   return 0;
37632 }
37633 _ACEOF
37634 rm -f conftest.$ac_objext conftest$ac_exeext
37635 if { (ac_try="$ac_link"
37636 case "(($ac_try" in
37637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638   *) ac_try_echo=$ac_try;;
37639 esac
37640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37641   (eval "$ac_link") 2>conftest.er1
37642   ac_status=$?
37643   grep -v '^ *+' conftest.er1 >conftest.err
37644   rm -f conftest.er1
37645   cat conftest.err >&5
37646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647   (exit $ac_status); } && {
37648          test -z "$ac_c_werror_flag" ||
37649          test ! -s conftest.err
37650        } && test -s conftest$ac_exeext &&
37651        $as_test_x conftest$ac_exeext; then
37652   eval "$as_ac_var=yes"
37653 else
37654   echo "$as_me: failed program was:" >&5
37655 sed 's/^/| /' conftest.$ac_ext >&5
37656
37657         eval "$as_ac_var=no"
37658 fi
37659
37660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37661       conftest$ac_exeext conftest.$ac_ext
37662 fi
37663 ac_res=`eval echo '${'$as_ac_var'}'`
37664                { echo "$as_me:$LINENO: result: $ac_res" >&5
37665 echo "${ECHO_T}$ac_res" >&6; }
37666 if test `eval echo '${'$as_ac_var'}'` = yes; then
37667   cat >>confdefs.h <<_ACEOF
37668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37669 _ACEOF
37670  cat >>confdefs.h <<\_ACEOF
37671 #define HAVE_FCHDIR 1
37672 _ACEOF
37673
37674 fi
37675 done
37676
37677
37678 for ac_func in strtoll
37679 do
37680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37684   echo $ECHO_N "(cached) $ECHO_C" >&6
37685 else
37686   cat >conftest.$ac_ext <<_ACEOF
37687 /* confdefs.h.  */
37688 _ACEOF
37689 cat confdefs.h >>conftest.$ac_ext
37690 cat >>conftest.$ac_ext <<_ACEOF
37691 /* end confdefs.h.  */
37692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37694 #define $ac_func innocuous_$ac_func
37695
37696 /* System header to define __stub macros and hopefully few prototypes,
37697     which can conflict with char $ac_func (); below.
37698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37699     <limits.h> exists even on freestanding compilers.  */
37700
37701 #ifdef __STDC__
37702 # include <limits.h>
37703 #else
37704 # include <assert.h>
37705 #endif
37706
37707 #undef $ac_func
37708
37709 /* Override any GCC internal prototype to avoid an error.
37710    Use char because int might match the return type of a GCC
37711    builtin and then its argument prototype would still apply.  */
37712 #ifdef __cplusplus
37713 extern "C"
37714 #endif
37715 char $ac_func ();
37716 /* The GNU C library defines this for functions which it implements
37717     to always fail with ENOSYS.  Some functions are actually named
37718     something starting with __ and the normal name is an alias.  */
37719 #if defined __stub_$ac_func || defined __stub___$ac_func
37720 choke me
37721 #endif
37722
37723 int
37724 main ()
37725 {
37726 return $ac_func ();
37727   ;
37728   return 0;
37729 }
37730 _ACEOF
37731 rm -f conftest.$ac_objext conftest$ac_exeext
37732 if { (ac_try="$ac_link"
37733 case "(($ac_try" in
37734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37735   *) ac_try_echo=$ac_try;;
37736 esac
37737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37738   (eval "$ac_link") 2>conftest.er1
37739   ac_status=$?
37740   grep -v '^ *+' conftest.er1 >conftest.err
37741   rm -f conftest.er1
37742   cat conftest.err >&5
37743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744   (exit $ac_status); } && {
37745          test -z "$ac_c_werror_flag" ||
37746          test ! -s conftest.err
37747        } && test -s conftest$ac_exeext &&
37748        $as_test_x conftest$ac_exeext; then
37749   eval "$as_ac_var=yes"
37750 else
37751   echo "$as_me: failed program was:" >&5
37752 sed 's/^/| /' conftest.$ac_ext >&5
37753
37754         eval "$as_ac_var=no"
37755 fi
37756
37757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37758       conftest$ac_exeext conftest.$ac_ext
37759 fi
37760 ac_res=`eval echo '${'$as_ac_var'}'`
37761                { echo "$as_me:$LINENO: result: $ac_res" >&5
37762 echo "${ECHO_T}$ac_res" >&6; }
37763 if test `eval echo '${'$as_ac_var'}'` = yes; then
37764   cat >>confdefs.h <<_ACEOF
37765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37766 _ACEOF
37767  cat >>confdefs.h <<\_ACEOF
37768 #define HAVE_STRTOLL 1
37769 _ACEOF
37770
37771 fi
37772 done
37773
37774
37775 for ac_func in posix_fadvise
37776 do
37777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37781   echo $ECHO_N "(cached) $ECHO_C" >&6
37782 else
37783   cat >conftest.$ac_ext <<_ACEOF
37784 /* confdefs.h.  */
37785 _ACEOF
37786 cat confdefs.h >>conftest.$ac_ext
37787 cat >>conftest.$ac_ext <<_ACEOF
37788 /* end confdefs.h.  */
37789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37791 #define $ac_func innocuous_$ac_func
37792
37793 /* System header to define __stub macros and hopefully few prototypes,
37794     which can conflict with char $ac_func (); below.
37795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37796     <limits.h> exists even on freestanding compilers.  */
37797
37798 #ifdef __STDC__
37799 # include <limits.h>
37800 #else
37801 # include <assert.h>
37802 #endif
37803
37804 #undef $ac_func
37805
37806 /* Override any GCC internal prototype to avoid an error.
37807    Use char because int might match the return type of a GCC
37808    builtin and then its argument prototype would still apply.  */
37809 #ifdef __cplusplus
37810 extern "C"
37811 #endif
37812 char $ac_func ();
37813 /* The GNU C library defines this for functions which it implements
37814     to always fail with ENOSYS.  Some functions are actually named
37815     something starting with __ and the normal name is an alias.  */
37816 #if defined __stub_$ac_func || defined __stub___$ac_func
37817 choke me
37818 #endif
37819
37820 int
37821 main ()
37822 {
37823 return $ac_func ();
37824   ;
37825   return 0;
37826 }
37827 _ACEOF
37828 rm -f conftest.$ac_objext conftest$ac_exeext
37829 if { (ac_try="$ac_link"
37830 case "(($ac_try" in
37831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37832   *) ac_try_echo=$ac_try;;
37833 esac
37834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37835   (eval "$ac_link") 2>conftest.er1
37836   ac_status=$?
37837   grep -v '^ *+' conftest.er1 >conftest.err
37838   rm -f conftest.er1
37839   cat conftest.err >&5
37840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37841   (exit $ac_status); } && {
37842          test -z "$ac_c_werror_flag" ||
37843          test ! -s conftest.err
37844        } && test -s conftest$ac_exeext &&
37845        $as_test_x conftest$ac_exeext; then
37846   eval "$as_ac_var=yes"
37847 else
37848   echo "$as_me: failed program was:" >&5
37849 sed 's/^/| /' conftest.$ac_ext >&5
37850
37851         eval "$as_ac_var=no"
37852 fi
37853
37854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37855       conftest$ac_exeext conftest.$ac_ext
37856 fi
37857 ac_res=`eval echo '${'$as_ac_var'}'`
37858                { echo "$as_me:$LINENO: result: $ac_res" >&5
37859 echo "${ECHO_T}$ac_res" >&6; }
37860 if test `eval echo '${'$as_ac_var'}'` = yes; then
37861   cat >>confdefs.h <<_ACEOF
37862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37863 _ACEOF
37864
37865 fi
37866 done
37867
37868
37869 for ac_func in fdatasync
37870 do
37871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37875   echo $ECHO_N "(cached) $ECHO_C" >&6
37876 else
37877   cat >conftest.$ac_ext <<_ACEOF
37878 /* confdefs.h.  */
37879 _ACEOF
37880 cat confdefs.h >>conftest.$ac_ext
37881 cat >>conftest.$ac_ext <<_ACEOF
37882 /* end confdefs.h.  */
37883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37885 #define $ac_func innocuous_$ac_func
37886
37887 /* System header to define __stub macros and hopefully few prototypes,
37888     which can conflict with char $ac_func (); below.
37889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37890     <limits.h> exists even on freestanding compilers.  */
37891
37892 #ifdef __STDC__
37893 # include <limits.h>
37894 #else
37895 # include <assert.h>
37896 #endif
37897
37898 #undef $ac_func
37899
37900 /* Override any GCC internal prototype to avoid an error.
37901    Use char because int might match the return type of a GCC
37902    builtin and then its argument prototype would still apply.  */
37903 #ifdef __cplusplus
37904 extern "C"
37905 #endif
37906 char $ac_func ();
37907 /* The GNU C library defines this for functions which it implements
37908     to always fail with ENOSYS.  Some functions are actually named
37909     something starting with __ and the normal name is an alias.  */
37910 #if defined __stub_$ac_func || defined __stub___$ac_func
37911 choke me
37912 #endif
37913
37914 int
37915 main ()
37916 {
37917 return $ac_func ();
37918   ;
37919   return 0;
37920 }
37921 _ACEOF
37922 rm -f conftest.$ac_objext conftest$ac_exeext
37923 if { (ac_try="$ac_link"
37924 case "(($ac_try" in
37925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37926   *) ac_try_echo=$ac_try;;
37927 esac
37928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37929   (eval "$ac_link") 2>conftest.er1
37930   ac_status=$?
37931   grep -v '^ *+' conftest.er1 >conftest.err
37932   rm -f conftest.er1
37933   cat conftest.err >&5
37934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935   (exit $ac_status); } && {
37936          test -z "$ac_c_werror_flag" ||
37937          test ! -s conftest.err
37938        } && test -s conftest$ac_exeext &&
37939        $as_test_x conftest$ac_exeext; then
37940   eval "$as_ac_var=yes"
37941 else
37942   echo "$as_me: failed program was:" >&5
37943 sed 's/^/| /' conftest.$ac_ext >&5
37944
37945         eval "$as_ac_var=no"
37946 fi
37947
37948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37949       conftest$ac_exeext conftest.$ac_ext
37950 fi
37951 ac_res=`eval echo '${'$as_ac_var'}'`
37952                { echo "$as_me:$LINENO: result: $ac_res" >&5
37953 echo "${ECHO_T}$ac_res" >&6; }
37954 if test `eval echo '${'$as_ac_var'}'` = yes; then
37955   cat >>confdefs.h <<_ACEOF
37956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37957 _ACEOF
37958
37959 fi
37960 done
37961
37962
37963
37964 for ac_func in chflags
37965 do
37966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37970   echo $ECHO_N "(cached) $ECHO_C" >&6
37971 else
37972   cat >conftest.$ac_ext <<_ACEOF
37973 /* confdefs.h.  */
37974 _ACEOF
37975 cat confdefs.h >>conftest.$ac_ext
37976 cat >>conftest.$ac_ext <<_ACEOF
37977 /* end confdefs.h.  */
37978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37980 #define $ac_func innocuous_$ac_func
37981
37982 /* System header to define __stub macros and hopefully few prototypes,
37983     which can conflict with char $ac_func (); below.
37984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37985     <limits.h> exists even on freestanding compilers.  */
37986
37987 #ifdef __STDC__
37988 # include <limits.h>
37989 #else
37990 # include <assert.h>
37991 #endif
37992
37993 #undef $ac_func
37994
37995 /* Override any GCC internal prototype to avoid an error.
37996    Use char because int might match the return type of a GCC
37997    builtin and then its argument prototype would still apply.  */
37998 #ifdef __cplusplus
37999 extern "C"
38000 #endif
38001 char $ac_func ();
38002 /* The GNU C library defines this for functions which it implements
38003     to always fail with ENOSYS.  Some functions are actually named
38004     something starting with __ and the normal name is an alias.  */
38005 #if defined __stub_$ac_func || defined __stub___$ac_func
38006 choke me
38007 #endif
38008
38009 int
38010 main ()
38011 {
38012 return $ac_func ();
38013   ;
38014   return 0;
38015 }
38016 _ACEOF
38017 rm -f conftest.$ac_objext conftest$ac_exeext
38018 if { (ac_try="$ac_link"
38019 case "(($ac_try" in
38020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38021   *) ac_try_echo=$ac_try;;
38022 esac
38023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38024   (eval "$ac_link") 2>conftest.er1
38025   ac_status=$?
38026   grep -v '^ *+' conftest.er1 >conftest.err
38027   rm -f conftest.er1
38028   cat conftest.err >&5
38029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38030   (exit $ac_status); } && {
38031          test -z "$ac_c_werror_flag" ||
38032          test ! -s conftest.err
38033        } && test -s conftest$ac_exeext &&
38034        $as_test_x conftest$ac_exeext; then
38035   eval "$as_ac_var=yes"
38036 else
38037   echo "$as_me: failed program was:" >&5
38038 sed 's/^/| /' conftest.$ac_ext >&5
38039
38040         eval "$as_ac_var=no"
38041 fi
38042
38043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38044       conftest$ac_exeext conftest.$ac_ext
38045 fi
38046 ac_res=`eval echo '${'$as_ac_var'}'`
38047                { echo "$as_me:$LINENO: result: $ac_res" >&5
38048 echo "${ECHO_T}$ac_res" >&6; }
38049 if test `eval echo '${'$as_ac_var'}'` = yes; then
38050   cat >>confdefs.h <<_ACEOF
38051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38052 _ACEOF
38053
38054 fi
38055 done
38056
38057
38058
38059
38060
38061
38062 for ac_func in snprintf vsnprintf gethostid fseeko
38063 do
38064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38068   echo $ECHO_N "(cached) $ECHO_C" >&6
38069 else
38070   cat >conftest.$ac_ext <<_ACEOF
38071 /* confdefs.h.  */
38072 _ACEOF
38073 cat confdefs.h >>conftest.$ac_ext
38074 cat >>conftest.$ac_ext <<_ACEOF
38075 /* end confdefs.h.  */
38076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38078 #define $ac_func innocuous_$ac_func
38079
38080 /* System header to define __stub macros and hopefully few prototypes,
38081     which can conflict with char $ac_func (); below.
38082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38083     <limits.h> exists even on freestanding compilers.  */
38084
38085 #ifdef __STDC__
38086 # include <limits.h>
38087 #else
38088 # include <assert.h>
38089 #endif
38090
38091 #undef $ac_func
38092
38093 /* Override any GCC internal prototype to avoid an error.
38094    Use char because int might match the return type of a GCC
38095    builtin and then its argument prototype would still apply.  */
38096 #ifdef __cplusplus
38097 extern "C"
38098 #endif
38099 char $ac_func ();
38100 /* The GNU C library defines this for functions which it implements
38101     to always fail with ENOSYS.  Some functions are actually named
38102     something starting with __ and the normal name is an alias.  */
38103 #if defined __stub_$ac_func || defined __stub___$ac_func
38104 choke me
38105 #endif
38106
38107 int
38108 main ()
38109 {
38110 return $ac_func ();
38111   ;
38112   return 0;
38113 }
38114 _ACEOF
38115 rm -f conftest.$ac_objext conftest$ac_exeext
38116 if { (ac_try="$ac_link"
38117 case "(($ac_try" in
38118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38119   *) ac_try_echo=$ac_try;;
38120 esac
38121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38122   (eval "$ac_link") 2>conftest.er1
38123   ac_status=$?
38124   grep -v '^ *+' conftest.er1 >conftest.err
38125   rm -f conftest.er1
38126   cat conftest.err >&5
38127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128   (exit $ac_status); } && {
38129          test -z "$ac_c_werror_flag" ||
38130          test ! -s conftest.err
38131        } && test -s conftest$ac_exeext &&
38132        $as_test_x conftest$ac_exeext; then
38133   eval "$as_ac_var=yes"
38134 else
38135   echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38137
38138         eval "$as_ac_var=no"
38139 fi
38140
38141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38142       conftest$ac_exeext conftest.$ac_ext
38143 fi
38144 ac_res=`eval echo '${'$as_ac_var'}'`
38145                { echo "$as_me:$LINENO: result: $ac_res" >&5
38146 echo "${ECHO_T}$ac_res" >&6; }
38147 if test `eval echo '${'$as_ac_var'}'` = yes; then
38148   cat >>confdefs.h <<_ACEOF
38149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38150 _ACEOF
38151
38152 fi
38153 done
38154
38155
38156 { echo "$as_me:$LINENO: checking for va_copy" >&5
38157 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38158 if test "${ba_cv_va_copy+set}" = set; then
38159   echo $ECHO_N "(cached) $ECHO_C" >&6
38160 else
38161
38162        cat >conftest.$ac_ext <<_ACEOF
38163 /* confdefs.h.  */
38164 _ACEOF
38165 cat confdefs.h >>conftest.$ac_ext
38166 cat >>conftest.$ac_ext <<_ACEOF
38167 /* end confdefs.h.  */
38168
38169               #include <stdarg.h>
38170               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38171               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38172
38173 int
38174 main ()
38175 {
38176
38177               call_use_va_copy(1,2,3)
38178
38179   ;
38180   return 0;
38181 }
38182 _ACEOF
38183 rm -f conftest.$ac_objext conftest$ac_exeext
38184 if { (ac_try="$ac_link"
38185 case "(($ac_try" in
38186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38187   *) ac_try_echo=$ac_try;;
38188 esac
38189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38190   (eval "$ac_link") 2>conftest.er1
38191   ac_status=$?
38192   grep -v '^ *+' conftest.er1 >conftest.err
38193   rm -f conftest.er1
38194   cat conftest.err >&5
38195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38196   (exit $ac_status); } && {
38197          test -z "$ac_c_werror_flag" ||
38198          test ! -s conftest.err
38199        } && test -s conftest$ac_exeext &&
38200        $as_test_x conftest$ac_exeext; then
38201
38202               ba_cv_va_copy=yes,
38203
38204 else
38205   echo "$as_me: failed program was:" >&5
38206 sed 's/^/| /' conftest.$ac_ext >&5
38207
38208
38209               ba_cv_va_copy=no
38210
38211
38212 fi
38213
38214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38215       conftest$ac_exeext conftest.$ac_ext
38216
38217
38218 fi
38219 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38220 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38221 test $ba_cv_va_copy = yes &&
38222 cat >>confdefs.h <<\_ACEOF
38223 #define HAVE_VA_COPY 1
38224 _ACEOF
38225
38226
38227
38228
38229
38230
38231 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38232 do
38233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38237   echo $ECHO_N "(cached) $ECHO_C" >&6
38238 else
38239   cat >conftest.$ac_ext <<_ACEOF
38240 /* confdefs.h.  */
38241 _ACEOF
38242 cat confdefs.h >>conftest.$ac_ext
38243 cat >>conftest.$ac_ext <<_ACEOF
38244 /* end confdefs.h.  */
38245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38247 #define $ac_func innocuous_$ac_func
38248
38249 /* System header to define __stub macros and hopefully few prototypes,
38250     which can conflict with char $ac_func (); below.
38251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38252     <limits.h> exists even on freestanding compilers.  */
38253
38254 #ifdef __STDC__
38255 # include <limits.h>
38256 #else
38257 # include <assert.h>
38258 #endif
38259
38260 #undef $ac_func
38261
38262 /* Override any GCC internal prototype to avoid an error.
38263    Use char because int might match the return type of a GCC
38264    builtin and then its argument prototype would still apply.  */
38265 #ifdef __cplusplus
38266 extern "C"
38267 #endif
38268 char $ac_func ();
38269 /* The GNU C library defines this for functions which it implements
38270     to always fail with ENOSYS.  Some functions are actually named
38271     something starting with __ and the normal name is an alias.  */
38272 #if defined __stub_$ac_func || defined __stub___$ac_func
38273 choke me
38274 #endif
38275
38276 int
38277 main ()
38278 {
38279 return $ac_func ();
38280   ;
38281   return 0;
38282 }
38283 _ACEOF
38284 rm -f conftest.$ac_objext conftest$ac_exeext
38285 if { (ac_try="$ac_link"
38286 case "(($ac_try" in
38287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38288   *) ac_try_echo=$ac_try;;
38289 esac
38290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38291   (eval "$ac_link") 2>conftest.er1
38292   ac_status=$?
38293   grep -v '^ *+' conftest.er1 >conftest.err
38294   rm -f conftest.er1
38295   cat conftest.err >&5
38296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297   (exit $ac_status); } && {
38298          test -z "$ac_c_werror_flag" ||
38299          test ! -s conftest.err
38300        } && test -s conftest$ac_exeext &&
38301        $as_test_x conftest$ac_exeext; then
38302   eval "$as_ac_var=yes"
38303 else
38304   echo "$as_me: failed program was:" >&5
38305 sed 's/^/| /' conftest.$ac_ext >&5
38306
38307         eval "$as_ac_var=no"
38308 fi
38309
38310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38311       conftest$ac_exeext conftest.$ac_ext
38312 fi
38313 ac_res=`eval echo '${'$as_ac_var'}'`
38314                { echo "$as_me:$LINENO: result: $ac_res" >&5
38315 echo "${ECHO_T}$ac_res" >&6; }
38316 if test `eval echo '${'$as_ac_var'}'` = yes; then
38317   cat >>confdefs.h <<_ACEOF
38318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38319 _ACEOF
38320
38321 fi
38322 done
38323
38324
38325 # If resolver functions are not in libc check for -lnsl or -lresolv.
38326 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38327 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38328 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38329   echo $ECHO_N "(cached) $ECHO_C" >&6
38330 else
38331   cat >conftest.$ac_ext <<_ACEOF
38332 /* confdefs.h.  */
38333 _ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h.  */
38337 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38339 #define gethostbyname_r innocuous_gethostbyname_r
38340
38341 /* System header to define __stub macros and hopefully few prototypes,
38342     which can conflict with char gethostbyname_r (); below.
38343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38344     <limits.h> exists even on freestanding compilers.  */
38345
38346 #ifdef __STDC__
38347 # include <limits.h>
38348 #else
38349 # include <assert.h>
38350 #endif
38351
38352 #undef gethostbyname_r
38353
38354 /* Override any GCC internal prototype to avoid an error.
38355    Use char because int might match the return type of a GCC
38356    builtin and then its argument prototype would still apply.  */
38357 #ifdef __cplusplus
38358 extern "C"
38359 #endif
38360 char gethostbyname_r ();
38361 /* The GNU C library defines this for functions which it implements
38362     to always fail with ENOSYS.  Some functions are actually named
38363     something starting with __ and the normal name is an alias.  */
38364 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38365 choke me
38366 #endif
38367
38368 int
38369 main ()
38370 {
38371 return gethostbyname_r ();
38372   ;
38373   return 0;
38374 }
38375 _ACEOF
38376 rm -f conftest.$ac_objext conftest$ac_exeext
38377 if { (ac_try="$ac_link"
38378 case "(($ac_try" in
38379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38380   *) ac_try_echo=$ac_try;;
38381 esac
38382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38383   (eval "$ac_link") 2>conftest.er1
38384   ac_status=$?
38385   grep -v '^ *+' conftest.er1 >conftest.err
38386   rm -f conftest.er1
38387   cat conftest.err >&5
38388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38389   (exit $ac_status); } && {
38390          test -z "$ac_c_werror_flag" ||
38391          test ! -s conftest.err
38392        } && test -s conftest$ac_exeext &&
38393        $as_test_x conftest$ac_exeext; then
38394   ac_cv_func_gethostbyname_r=yes
38395 else
38396   echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38398
38399         ac_cv_func_gethostbyname_r=no
38400 fi
38401
38402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38403       conftest$ac_exeext conftest.$ac_ext
38404 fi
38405 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38406 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38407 if test $ac_cv_func_gethostbyname_r = yes; then
38408   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38409 echo "${ECHO_T}using libc's resolver" >&6; }
38410 else
38411
38412 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38413 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38414 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38415   echo $ECHO_N "(cached) $ECHO_C" >&6
38416 else
38417   ac_check_lib_save_LIBS=$LIBS
38418 LIBS="-lnsl  $LIBS"
38419 cat >conftest.$ac_ext <<_ACEOF
38420 /* confdefs.h.  */
38421 _ACEOF
38422 cat confdefs.h >>conftest.$ac_ext
38423 cat >>conftest.$ac_ext <<_ACEOF
38424 /* end confdefs.h.  */
38425
38426 /* Override any GCC internal prototype to avoid an error.
38427    Use char because int might match the return type of a GCC
38428    builtin and then its argument prototype would still apply.  */
38429 #ifdef __cplusplus
38430 extern "C"
38431 #endif
38432 char gethostbyname_r ();
38433 int
38434 main ()
38435 {
38436 return gethostbyname_r ();
38437   ;
38438   return 0;
38439 }
38440 _ACEOF
38441 rm -f conftest.$ac_objext conftest$ac_exeext
38442 if { (ac_try="$ac_link"
38443 case "(($ac_try" in
38444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38445   *) ac_try_echo=$ac_try;;
38446 esac
38447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38448   (eval "$ac_link") 2>conftest.er1
38449   ac_status=$?
38450   grep -v '^ *+' conftest.er1 >conftest.err
38451   rm -f conftest.er1
38452   cat conftest.err >&5
38453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454   (exit $ac_status); } && {
38455          test -z "$ac_c_werror_flag" ||
38456          test ! -s conftest.err
38457        } && test -s conftest$ac_exeext &&
38458        $as_test_x conftest$ac_exeext; then
38459   ac_cv_lib_nsl_gethostbyname_r=yes
38460 else
38461   echo "$as_me: failed program was:" >&5
38462 sed 's/^/| /' conftest.$ac_ext >&5
38463
38464         ac_cv_lib_nsl_gethostbyname_r=no
38465 fi
38466
38467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38468       conftest$ac_exeext conftest.$ac_ext
38469 LIBS=$ac_check_lib_save_LIBS
38470 fi
38471 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38472 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38473 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38474   cat >>confdefs.h <<_ACEOF
38475 #define HAVE_LIBNSL 1
38476 _ACEOF
38477
38478   LIBS="-lnsl $LIBS"
38479
38480 fi
38481
38482
38483 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38484 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38485 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38486   echo $ECHO_N "(cached) $ECHO_C" >&6
38487 else
38488   ac_check_lib_save_LIBS=$LIBS
38489 LIBS="-lresolv  $LIBS"
38490 cat >conftest.$ac_ext <<_ACEOF
38491 /* confdefs.h.  */
38492 _ACEOF
38493 cat confdefs.h >>conftest.$ac_ext
38494 cat >>conftest.$ac_ext <<_ACEOF
38495 /* end confdefs.h.  */
38496
38497 /* Override any GCC internal prototype to avoid an error.
38498    Use char because int might match the return type of a GCC
38499    builtin and then its argument prototype would still apply.  */
38500 #ifdef __cplusplus
38501 extern "C"
38502 #endif
38503 char gethostbyname_r ();
38504 int
38505 main ()
38506 {
38507 return gethostbyname_r ();
38508   ;
38509   return 0;
38510 }
38511 _ACEOF
38512 rm -f conftest.$ac_objext conftest$ac_exeext
38513 if { (ac_try="$ac_link"
38514 case "(($ac_try" in
38515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38516   *) ac_try_echo=$ac_try;;
38517 esac
38518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38519   (eval "$ac_link") 2>conftest.er1
38520   ac_status=$?
38521   grep -v '^ *+' conftest.er1 >conftest.err
38522   rm -f conftest.er1
38523   cat conftest.err >&5
38524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525   (exit $ac_status); } && {
38526          test -z "$ac_c_werror_flag" ||
38527          test ! -s conftest.err
38528        } && test -s conftest$ac_exeext &&
38529        $as_test_x conftest$ac_exeext; then
38530   ac_cv_lib_resolv_gethostbyname_r=yes
38531 else
38532   echo "$as_me: failed program was:" >&5
38533 sed 's/^/| /' conftest.$ac_ext >&5
38534
38535         ac_cv_lib_resolv_gethostbyname_r=no
38536 fi
38537
38538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38539       conftest$ac_exeext conftest.$ac_ext
38540 LIBS=$ac_check_lib_save_LIBS
38541 fi
38542 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38543 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38544 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38545   cat >>confdefs.h <<_ACEOF
38546 #define HAVE_LIBRESOLV 1
38547 _ACEOF
38548
38549   LIBS="-lresolv $LIBS"
38550
38551 fi
38552
38553 fi
38554
38555
38556
38557 for ac_func in inet_pton
38558 do
38559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38563   echo $ECHO_N "(cached) $ECHO_C" >&6
38564 else
38565   cat >conftest.$ac_ext <<_ACEOF
38566 /* confdefs.h.  */
38567 _ACEOF
38568 cat confdefs.h >>conftest.$ac_ext
38569 cat >>conftest.$ac_ext <<_ACEOF
38570 /* end confdefs.h.  */
38571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38573 #define $ac_func innocuous_$ac_func
38574
38575 /* System header to define __stub macros and hopefully few prototypes,
38576     which can conflict with char $ac_func (); below.
38577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38578     <limits.h> exists even on freestanding compilers.  */
38579
38580 #ifdef __STDC__
38581 # include <limits.h>
38582 #else
38583 # include <assert.h>
38584 #endif
38585
38586 #undef $ac_func
38587
38588 /* Override any GCC internal prototype to avoid an error.
38589    Use char because int might match the return type of a GCC
38590    builtin and then its argument prototype would still apply.  */
38591 #ifdef __cplusplus
38592 extern "C"
38593 #endif
38594 char $ac_func ();
38595 /* The GNU C library defines this for functions which it implements
38596     to always fail with ENOSYS.  Some functions are actually named
38597     something starting with __ and the normal name is an alias.  */
38598 #if defined __stub_$ac_func || defined __stub___$ac_func
38599 choke me
38600 #endif
38601
38602 int
38603 main ()
38604 {
38605 return $ac_func ();
38606   ;
38607   return 0;
38608 }
38609 _ACEOF
38610 rm -f conftest.$ac_objext conftest$ac_exeext
38611 if { (ac_try="$ac_link"
38612 case "(($ac_try" in
38613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38614   *) ac_try_echo=$ac_try;;
38615 esac
38616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38617   (eval "$ac_link") 2>conftest.er1
38618   ac_status=$?
38619   grep -v '^ *+' conftest.er1 >conftest.err
38620   rm -f conftest.er1
38621   cat conftest.err >&5
38622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623   (exit $ac_status); } && {
38624          test -z "$ac_c_werror_flag" ||
38625          test ! -s conftest.err
38626        } && test -s conftest$ac_exeext &&
38627        $as_test_x conftest$ac_exeext; then
38628   eval "$as_ac_var=yes"
38629 else
38630   echo "$as_me: failed program was:" >&5
38631 sed 's/^/| /' conftest.$ac_ext >&5
38632
38633         eval "$as_ac_var=no"
38634 fi
38635
38636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38637       conftest$ac_exeext conftest.$ac_ext
38638 fi
38639 ac_res=`eval echo '${'$as_ac_var'}'`
38640                { echo "$as_me:$LINENO: result: $ac_res" >&5
38641 echo "${ECHO_T}$ac_res" >&6; }
38642 if test `eval echo '${'$as_ac_var'}'` = yes; then
38643   cat >>confdefs.h <<_ACEOF
38644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38645 _ACEOF
38646  cat >>confdefs.h <<\_ACEOF
38647 #define HAVE_INET_PTON 1
38648 _ACEOF
38649
38650 fi
38651 done
38652
38653
38654 for ac_func in inet_ntop
38655 do
38656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38660   echo $ECHO_N "(cached) $ECHO_C" >&6
38661 else
38662   cat >conftest.$ac_ext <<_ACEOF
38663 /* confdefs.h.  */
38664 _ACEOF
38665 cat confdefs.h >>conftest.$ac_ext
38666 cat >>conftest.$ac_ext <<_ACEOF
38667 /* end confdefs.h.  */
38668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38670 #define $ac_func innocuous_$ac_func
38671
38672 /* System header to define __stub macros and hopefully few prototypes,
38673     which can conflict with char $ac_func (); below.
38674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38675     <limits.h> exists even on freestanding compilers.  */
38676
38677 #ifdef __STDC__
38678 # include <limits.h>
38679 #else
38680 # include <assert.h>
38681 #endif
38682
38683 #undef $ac_func
38684
38685 /* Override any GCC internal prototype to avoid an error.
38686    Use char because int might match the return type of a GCC
38687    builtin and then its argument prototype would still apply.  */
38688 #ifdef __cplusplus
38689 extern "C"
38690 #endif
38691 char $ac_func ();
38692 /* The GNU C library defines this for functions which it implements
38693     to always fail with ENOSYS.  Some functions are actually named
38694     something starting with __ and the normal name is an alias.  */
38695 #if defined __stub_$ac_func || defined __stub___$ac_func
38696 choke me
38697 #endif
38698
38699 int
38700 main ()
38701 {
38702 return $ac_func ();
38703   ;
38704   return 0;
38705 }
38706 _ACEOF
38707 rm -f conftest.$ac_objext conftest$ac_exeext
38708 if { (ac_try="$ac_link"
38709 case "(($ac_try" in
38710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38711   *) ac_try_echo=$ac_try;;
38712 esac
38713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38714   (eval "$ac_link") 2>conftest.er1
38715   ac_status=$?
38716   grep -v '^ *+' conftest.er1 >conftest.err
38717   rm -f conftest.er1
38718   cat conftest.err >&5
38719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720   (exit $ac_status); } && {
38721          test -z "$ac_c_werror_flag" ||
38722          test ! -s conftest.err
38723        } && test -s conftest$ac_exeext &&
38724        $as_test_x conftest$ac_exeext; then
38725   eval "$as_ac_var=yes"
38726 else
38727   echo "$as_me: failed program was:" >&5
38728 sed 's/^/| /' conftest.$ac_ext >&5
38729
38730         eval "$as_ac_var=no"
38731 fi
38732
38733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38734       conftest$ac_exeext conftest.$ac_ext
38735 fi
38736 ac_res=`eval echo '${'$as_ac_var'}'`
38737                { echo "$as_me:$LINENO: result: $ac_res" >&5
38738 echo "${ECHO_T}$ac_res" >&6; }
38739 if test `eval echo '${'$as_ac_var'}'` = yes; then
38740   cat >>confdefs.h <<_ACEOF
38741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38742 _ACEOF
38743  cat >>confdefs.h <<\_ACEOF
38744 #define HAVE_INET_NTOP 1
38745 _ACEOF
38746
38747 fi
38748 done
38749
38750
38751 for ac_func in gethostbyname2
38752 do
38753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38757   echo $ECHO_N "(cached) $ECHO_C" >&6
38758 else
38759   cat >conftest.$ac_ext <<_ACEOF
38760 /* confdefs.h.  */
38761 _ACEOF
38762 cat confdefs.h >>conftest.$ac_ext
38763 cat >>conftest.$ac_ext <<_ACEOF
38764 /* end confdefs.h.  */
38765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38767 #define $ac_func innocuous_$ac_func
38768
38769 /* System header to define __stub macros and hopefully few prototypes,
38770     which can conflict with char $ac_func (); below.
38771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38772     <limits.h> exists even on freestanding compilers.  */
38773
38774 #ifdef __STDC__
38775 # include <limits.h>
38776 #else
38777 # include <assert.h>
38778 #endif
38779
38780 #undef $ac_func
38781
38782 /* Override any GCC internal prototype to avoid an error.
38783    Use char because int might match the return type of a GCC
38784    builtin and then its argument prototype would still apply.  */
38785 #ifdef __cplusplus
38786 extern "C"
38787 #endif
38788 char $ac_func ();
38789 /* The GNU C library defines this for functions which it implements
38790     to always fail with ENOSYS.  Some functions are actually named
38791     something starting with __ and the normal name is an alias.  */
38792 #if defined __stub_$ac_func || defined __stub___$ac_func
38793 choke me
38794 #endif
38795
38796 int
38797 main ()
38798 {
38799 return $ac_func ();
38800   ;
38801   return 0;
38802 }
38803 _ACEOF
38804 rm -f conftest.$ac_objext conftest$ac_exeext
38805 if { (ac_try="$ac_link"
38806 case "(($ac_try" in
38807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38808   *) ac_try_echo=$ac_try;;
38809 esac
38810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38811   (eval "$ac_link") 2>conftest.er1
38812   ac_status=$?
38813   grep -v '^ *+' conftest.er1 >conftest.err
38814   rm -f conftest.er1
38815   cat conftest.err >&5
38816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817   (exit $ac_status); } && {
38818          test -z "$ac_c_werror_flag" ||
38819          test ! -s conftest.err
38820        } && test -s conftest$ac_exeext &&
38821        $as_test_x conftest$ac_exeext; then
38822   eval "$as_ac_var=yes"
38823 else
38824   echo "$as_me: failed program was:" >&5
38825 sed 's/^/| /' conftest.$ac_ext >&5
38826
38827         eval "$as_ac_var=no"
38828 fi
38829
38830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38831       conftest$ac_exeext conftest.$ac_ext
38832 fi
38833 ac_res=`eval echo '${'$as_ac_var'}'`
38834                { echo "$as_me:$LINENO: result: $ac_res" >&5
38835 echo "${ECHO_T}$ac_res" >&6; }
38836 if test `eval echo '${'$as_ac_var'}'` = yes; then
38837   cat >>confdefs.h <<_ACEOF
38838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38839 _ACEOF
38840  cat >>confdefs.h <<\_ACEOF
38841 #define HAVE_GETHOSTBYNAME2 1
38842 _ACEOF
38843
38844 fi
38845 done
38846
38847
38848 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38849 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38850 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38851   echo $ECHO_N "(cached) $ECHO_C" >&6
38852 else
38853
38854        cat >conftest.$ac_ext <<_ACEOF
38855 /* confdefs.h.  */
38856 _ACEOF
38857 cat confdefs.h >>conftest.$ac_ext
38858 cat >>conftest.$ac_ext <<_ACEOF
38859 /* end confdefs.h.  */
38860
38861               #include <sys/socket.h>
38862
38863 int
38864 main ()
38865 {
38866
38867               struct sockaddr s; s.sa_len;
38868
38869   ;
38870   return 0;
38871 }
38872 _ACEOF
38873 rm -f conftest.$ac_objext
38874 if { (ac_try="$ac_compile"
38875 case "(($ac_try" in
38876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38877   *) ac_try_echo=$ac_try;;
38878 esac
38879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38880   (eval "$ac_compile") 2>conftest.er1
38881   ac_status=$?
38882   grep -v '^ *+' conftest.er1 >conftest.err
38883   rm -f conftest.er1
38884   cat conftest.err >&5
38885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886   (exit $ac_status); } && {
38887          test -z "$ac_c_werror_flag" ||
38888          test ! -s conftest.err
38889        } && test -s conftest.$ac_objext; then
38890
38891              ac_cv_struct_sockaddr_sa_len=yes
38892
38893 else
38894   echo "$as_me: failed program was:" >&5
38895 sed 's/^/| /' conftest.$ac_ext >&5
38896
38897         ac_cv_struct_sockaddr_sa_len=no
38898
38899
38900 fi
38901
38902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38903
38904
38905 fi
38906 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38907 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38908
38909 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38910
38911 cat >>confdefs.h <<\_ACEOF
38912 #define HAVE_SA_LEN 1
38913 _ACEOF
38914
38915 fi
38916
38917
38918 for ac_func in strftime
38919 do
38920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38924   echo $ECHO_N "(cached) $ECHO_C" >&6
38925 else
38926   cat >conftest.$ac_ext <<_ACEOF
38927 /* confdefs.h.  */
38928 _ACEOF
38929 cat confdefs.h >>conftest.$ac_ext
38930 cat >>conftest.$ac_ext <<_ACEOF
38931 /* end confdefs.h.  */
38932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38934 #define $ac_func innocuous_$ac_func
38935
38936 /* System header to define __stub macros and hopefully few prototypes,
38937     which can conflict with char $ac_func (); below.
38938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38939     <limits.h> exists even on freestanding compilers.  */
38940
38941 #ifdef __STDC__
38942 # include <limits.h>
38943 #else
38944 # include <assert.h>
38945 #endif
38946
38947 #undef $ac_func
38948
38949 /* Override any GCC internal prototype to avoid an error.
38950    Use char because int might match the return type of a GCC
38951    builtin and then its argument prototype would still apply.  */
38952 #ifdef __cplusplus
38953 extern "C"
38954 #endif
38955 char $ac_func ();
38956 /* The GNU C library defines this for functions which it implements
38957     to always fail with ENOSYS.  Some functions are actually named
38958     something starting with __ and the normal name is an alias.  */
38959 #if defined __stub_$ac_func || defined __stub___$ac_func
38960 choke me
38961 #endif
38962
38963 int
38964 main ()
38965 {
38966 return $ac_func ();
38967   ;
38968   return 0;
38969 }
38970 _ACEOF
38971 rm -f conftest.$ac_objext conftest$ac_exeext
38972 if { (ac_try="$ac_link"
38973 case "(($ac_try" in
38974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38975   *) ac_try_echo=$ac_try;;
38976 esac
38977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38978   (eval "$ac_link") 2>conftest.er1
38979   ac_status=$?
38980   grep -v '^ *+' conftest.er1 >conftest.err
38981   rm -f conftest.er1
38982   cat conftest.err >&5
38983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38984   (exit $ac_status); } && {
38985          test -z "$ac_c_werror_flag" ||
38986          test ! -s conftest.err
38987        } && test -s conftest$ac_exeext &&
38988        $as_test_x conftest$ac_exeext; then
38989   eval "$as_ac_var=yes"
38990 else
38991   echo "$as_me: failed program was:" >&5
38992 sed 's/^/| /' conftest.$ac_ext >&5
38993
38994         eval "$as_ac_var=no"
38995 fi
38996
38997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38998       conftest$ac_exeext conftest.$ac_ext
38999 fi
39000 ac_res=`eval echo '${'$as_ac_var'}'`
39001                { echo "$as_me:$LINENO: result: $ac_res" >&5
39002 echo "${ECHO_T}$ac_res" >&6; }
39003 if test `eval echo '${'$as_ac_var'}'` = yes; then
39004   cat >>confdefs.h <<_ACEOF
39005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39006 _ACEOF
39007
39008 else
39009   # strftime is in -lintl on SCO UNIX.
39010 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39011 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39012 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39013   echo $ECHO_N "(cached) $ECHO_C" >&6
39014 else
39015   ac_check_lib_save_LIBS=$LIBS
39016 LIBS="-lintl  $LIBS"
39017 cat >conftest.$ac_ext <<_ACEOF
39018 /* confdefs.h.  */
39019 _ACEOF
39020 cat confdefs.h >>conftest.$ac_ext
39021 cat >>conftest.$ac_ext <<_ACEOF
39022 /* end confdefs.h.  */
39023
39024 /* Override any GCC internal prototype to avoid an error.
39025    Use char because int might match the return type of a GCC
39026    builtin and then its argument prototype would still apply.  */
39027 #ifdef __cplusplus
39028 extern "C"
39029 #endif
39030 char strftime ();
39031 int
39032 main ()
39033 {
39034 return strftime ();
39035   ;
39036   return 0;
39037 }
39038 _ACEOF
39039 rm -f conftest.$ac_objext conftest$ac_exeext
39040 if { (ac_try="$ac_link"
39041 case "(($ac_try" in
39042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39043   *) ac_try_echo=$ac_try;;
39044 esac
39045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39046   (eval "$ac_link") 2>conftest.er1
39047   ac_status=$?
39048   grep -v '^ *+' conftest.er1 >conftest.err
39049   rm -f conftest.er1
39050   cat conftest.err >&5
39051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052   (exit $ac_status); } && {
39053          test -z "$ac_c_werror_flag" ||
39054          test ! -s conftest.err
39055        } && test -s conftest$ac_exeext &&
39056        $as_test_x conftest$ac_exeext; then
39057   ac_cv_lib_intl_strftime=yes
39058 else
39059   echo "$as_me: failed program was:" >&5
39060 sed 's/^/| /' conftest.$ac_ext >&5
39061
39062         ac_cv_lib_intl_strftime=no
39063 fi
39064
39065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39066       conftest$ac_exeext conftest.$ac_ext
39067 LIBS=$ac_check_lib_save_LIBS
39068 fi
39069 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39070 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39071 if test $ac_cv_lib_intl_strftime = yes; then
39072   cat >>confdefs.h <<\_ACEOF
39073 #define HAVE_STRFTIME 1
39074 _ACEOF
39075
39076 LIBS="-lintl $LIBS"
39077 fi
39078
39079 fi
39080 done
39081
39082
39083 for ac_func in vprintf
39084 do
39085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39089   echo $ECHO_N "(cached) $ECHO_C" >&6
39090 else
39091   cat >conftest.$ac_ext <<_ACEOF
39092 /* confdefs.h.  */
39093 _ACEOF
39094 cat confdefs.h >>conftest.$ac_ext
39095 cat >>conftest.$ac_ext <<_ACEOF
39096 /* end confdefs.h.  */
39097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39099 #define $ac_func innocuous_$ac_func
39100
39101 /* System header to define __stub macros and hopefully few prototypes,
39102     which can conflict with char $ac_func (); below.
39103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39104     <limits.h> exists even on freestanding compilers.  */
39105
39106 #ifdef __STDC__
39107 # include <limits.h>
39108 #else
39109 # include <assert.h>
39110 #endif
39111
39112 #undef $ac_func
39113
39114 /* Override any GCC internal prototype to avoid an error.
39115    Use char because int might match the return type of a GCC
39116    builtin and then its argument prototype would still apply.  */
39117 #ifdef __cplusplus
39118 extern "C"
39119 #endif
39120 char $ac_func ();
39121 /* The GNU C library defines this for functions which it implements
39122     to always fail with ENOSYS.  Some functions are actually named
39123     something starting with __ and the normal name is an alias.  */
39124 #if defined __stub_$ac_func || defined __stub___$ac_func
39125 choke me
39126 #endif
39127
39128 int
39129 main ()
39130 {
39131 return $ac_func ();
39132   ;
39133   return 0;
39134 }
39135 _ACEOF
39136 rm -f conftest.$ac_objext conftest$ac_exeext
39137 if { (ac_try="$ac_link"
39138 case "(($ac_try" in
39139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39140   *) ac_try_echo=$ac_try;;
39141 esac
39142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39143   (eval "$ac_link") 2>conftest.er1
39144   ac_status=$?
39145   grep -v '^ *+' conftest.er1 >conftest.err
39146   rm -f conftest.er1
39147   cat conftest.err >&5
39148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39149   (exit $ac_status); } && {
39150          test -z "$ac_c_werror_flag" ||
39151          test ! -s conftest.err
39152        } && test -s conftest$ac_exeext &&
39153        $as_test_x conftest$ac_exeext; then
39154   eval "$as_ac_var=yes"
39155 else
39156   echo "$as_me: failed program was:" >&5
39157 sed 's/^/| /' conftest.$ac_ext >&5
39158
39159         eval "$as_ac_var=no"
39160 fi
39161
39162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39163       conftest$ac_exeext conftest.$ac_ext
39164 fi
39165 ac_res=`eval echo '${'$as_ac_var'}'`
39166                { echo "$as_me:$LINENO: result: $ac_res" >&5
39167 echo "${ECHO_T}$ac_res" >&6; }
39168 if test `eval echo '${'$as_ac_var'}'` = yes; then
39169   cat >>confdefs.h <<_ACEOF
39170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39171 _ACEOF
39172
39173 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39174 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39175 if test "${ac_cv_func__doprnt+set}" = set; then
39176   echo $ECHO_N "(cached) $ECHO_C" >&6
39177 else
39178   cat >conftest.$ac_ext <<_ACEOF
39179 /* confdefs.h.  */
39180 _ACEOF
39181 cat confdefs.h >>conftest.$ac_ext
39182 cat >>conftest.$ac_ext <<_ACEOF
39183 /* end confdefs.h.  */
39184 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39186 #define _doprnt innocuous__doprnt
39187
39188 /* System header to define __stub macros and hopefully few prototypes,
39189     which can conflict with char _doprnt (); below.
39190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39191     <limits.h> exists even on freestanding compilers.  */
39192
39193 #ifdef __STDC__
39194 # include <limits.h>
39195 #else
39196 # include <assert.h>
39197 #endif
39198
39199 #undef _doprnt
39200
39201 /* Override any GCC internal prototype to avoid an error.
39202    Use char because int might match the return type of a GCC
39203    builtin and then its argument prototype would still apply.  */
39204 #ifdef __cplusplus
39205 extern "C"
39206 #endif
39207 char _doprnt ();
39208 /* The GNU C library defines this for functions which it implements
39209     to always fail with ENOSYS.  Some functions are actually named
39210     something starting with __ and the normal name is an alias.  */
39211 #if defined __stub__doprnt || defined __stub____doprnt
39212 choke me
39213 #endif
39214
39215 int
39216 main ()
39217 {
39218 return _doprnt ();
39219   ;
39220   return 0;
39221 }
39222 _ACEOF
39223 rm -f conftest.$ac_objext conftest$ac_exeext
39224 if { (ac_try="$ac_link"
39225 case "(($ac_try" in
39226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39227   *) ac_try_echo=$ac_try;;
39228 esac
39229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39230   (eval "$ac_link") 2>conftest.er1
39231   ac_status=$?
39232   grep -v '^ *+' conftest.er1 >conftest.err
39233   rm -f conftest.er1
39234   cat conftest.err >&5
39235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236   (exit $ac_status); } && {
39237          test -z "$ac_c_werror_flag" ||
39238          test ! -s conftest.err
39239        } && test -s conftest$ac_exeext &&
39240        $as_test_x conftest$ac_exeext; then
39241   ac_cv_func__doprnt=yes
39242 else
39243   echo "$as_me: failed program was:" >&5
39244 sed 's/^/| /' conftest.$ac_ext >&5
39245
39246         ac_cv_func__doprnt=no
39247 fi
39248
39249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39250       conftest$ac_exeext conftest.$ac_ext
39251 fi
39252 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39253 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39254 if test $ac_cv_func__doprnt = yes; then
39255
39256 cat >>confdefs.h <<\_ACEOF
39257 #define HAVE_DOPRNT 1
39258 _ACEOF
39259
39260 fi
39261
39262 fi
39263 done
39264
39265
39266 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39267 # for constant arguments.  Useless!
39268 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39269 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39270 if test "${ac_cv_working_alloca_h+set}" = set; then
39271   echo $ECHO_N "(cached) $ECHO_C" >&6
39272 else
39273   cat >conftest.$ac_ext <<_ACEOF
39274 /* confdefs.h.  */
39275 _ACEOF
39276 cat confdefs.h >>conftest.$ac_ext
39277 cat >>conftest.$ac_ext <<_ACEOF
39278 /* end confdefs.h.  */
39279 #include <alloca.h>
39280 int
39281 main ()
39282 {
39283 char *p = (char *) alloca (2 * sizeof (int));
39284                           if (p) return 0;
39285   ;
39286   return 0;
39287 }
39288 _ACEOF
39289 rm -f conftest.$ac_objext conftest$ac_exeext
39290 if { (ac_try="$ac_link"
39291 case "(($ac_try" in
39292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39293   *) ac_try_echo=$ac_try;;
39294 esac
39295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39296   (eval "$ac_link") 2>conftest.er1
39297   ac_status=$?
39298   grep -v '^ *+' conftest.er1 >conftest.err
39299   rm -f conftest.er1
39300   cat conftest.err >&5
39301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39302   (exit $ac_status); } && {
39303          test -z "$ac_c_werror_flag" ||
39304          test ! -s conftest.err
39305        } && test -s conftest$ac_exeext &&
39306        $as_test_x conftest$ac_exeext; then
39307   ac_cv_working_alloca_h=yes
39308 else
39309   echo "$as_me: failed program was:" >&5
39310 sed 's/^/| /' conftest.$ac_ext >&5
39311
39312         ac_cv_working_alloca_h=no
39313 fi
39314
39315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39316       conftest$ac_exeext conftest.$ac_ext
39317 fi
39318 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39319 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39320 if test $ac_cv_working_alloca_h = yes; then
39321
39322 cat >>confdefs.h <<\_ACEOF
39323 #define HAVE_ALLOCA_H 1
39324 _ACEOF
39325
39326 fi
39327
39328 { echo "$as_me:$LINENO: checking for alloca" >&5
39329 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39330 if test "${ac_cv_func_alloca_works+set}" = set; then
39331   echo $ECHO_N "(cached) $ECHO_C" >&6
39332 else
39333   cat >conftest.$ac_ext <<_ACEOF
39334 /* confdefs.h.  */
39335 _ACEOF
39336 cat confdefs.h >>conftest.$ac_ext
39337 cat >>conftest.$ac_ext <<_ACEOF
39338 /* end confdefs.h.  */
39339 #ifdef __GNUC__
39340 # define alloca __builtin_alloca
39341 #else
39342 # ifdef _MSC_VER
39343 #  include <malloc.h>
39344 #  define alloca _alloca
39345 # else
39346 #  ifdef HAVE_ALLOCA_H
39347 #   include <alloca.h>
39348 #  else
39349 #   ifdef _AIX
39350  #pragma alloca
39351 #   else
39352 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39353 char *alloca ();
39354 #    endif
39355 #   endif
39356 #  endif
39357 # endif
39358 #endif
39359
39360 int
39361 main ()
39362 {
39363 char *p = (char *) alloca (1);
39364                                     if (p) return 0;
39365   ;
39366   return 0;
39367 }
39368 _ACEOF
39369 rm -f conftest.$ac_objext conftest$ac_exeext
39370 if { (ac_try="$ac_link"
39371 case "(($ac_try" in
39372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39373   *) ac_try_echo=$ac_try;;
39374 esac
39375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39376   (eval "$ac_link") 2>conftest.er1
39377   ac_status=$?
39378   grep -v '^ *+' conftest.er1 >conftest.err
39379   rm -f conftest.er1
39380   cat conftest.err >&5
39381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382   (exit $ac_status); } && {
39383          test -z "$ac_c_werror_flag" ||
39384          test ! -s conftest.err
39385        } && test -s conftest$ac_exeext &&
39386        $as_test_x conftest$ac_exeext; then
39387   ac_cv_func_alloca_works=yes
39388 else
39389   echo "$as_me: failed program was:" >&5
39390 sed 's/^/| /' conftest.$ac_ext >&5
39391
39392         ac_cv_func_alloca_works=no
39393 fi
39394
39395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39396       conftest$ac_exeext conftest.$ac_ext
39397 fi
39398 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39399 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39400
39401 if test $ac_cv_func_alloca_works = yes; then
39402
39403 cat >>confdefs.h <<\_ACEOF
39404 #define HAVE_ALLOCA 1
39405 _ACEOF
39406
39407 else
39408   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39409 # that cause trouble.  Some versions do not even contain alloca or
39410 # contain a buggy version.  If you still want to use their alloca,
39411 # use ar to extract alloca.o from them instead of compiling alloca.c.
39412
39413 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39414
39415 cat >>confdefs.h <<\_ACEOF
39416 #define C_ALLOCA 1
39417 _ACEOF
39418
39419
39420 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39421 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39422 if test "${ac_cv_os_cray+set}" = set; then
39423   echo $ECHO_N "(cached) $ECHO_C" >&6
39424 else
39425   cat >conftest.$ac_ext <<_ACEOF
39426 /* confdefs.h.  */
39427 _ACEOF
39428 cat confdefs.h >>conftest.$ac_ext
39429 cat >>conftest.$ac_ext <<_ACEOF
39430 /* end confdefs.h.  */
39431 #if defined CRAY && ! defined CRAY2
39432 webecray
39433 #else
39434 wenotbecray
39435 #endif
39436
39437 _ACEOF
39438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39439   $EGREP "webecray" >/dev/null 2>&1; then
39440   ac_cv_os_cray=yes
39441 else
39442   ac_cv_os_cray=no
39443 fi
39444 rm -f conftest*
39445
39446 fi
39447 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39448 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39449 if test $ac_cv_os_cray = yes; then
39450   for ac_func in _getb67 GETB67 getb67; do
39451     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39455   echo $ECHO_N "(cached) $ECHO_C" >&6
39456 else
39457   cat >conftest.$ac_ext <<_ACEOF
39458 /* confdefs.h.  */
39459 _ACEOF
39460 cat confdefs.h >>conftest.$ac_ext
39461 cat >>conftest.$ac_ext <<_ACEOF
39462 /* end confdefs.h.  */
39463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39465 #define $ac_func innocuous_$ac_func
39466
39467 /* System header to define __stub macros and hopefully few prototypes,
39468     which can conflict with char $ac_func (); below.
39469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39470     <limits.h> exists even on freestanding compilers.  */
39471
39472 #ifdef __STDC__
39473 # include <limits.h>
39474 #else
39475 # include <assert.h>
39476 #endif
39477
39478 #undef $ac_func
39479
39480 /* Override any GCC internal prototype to avoid an error.
39481    Use char because int might match the return type of a GCC
39482    builtin and then its argument prototype would still apply.  */
39483 #ifdef __cplusplus
39484 extern "C"
39485 #endif
39486 char $ac_func ();
39487 /* The GNU C library defines this for functions which it implements
39488     to always fail with ENOSYS.  Some functions are actually named
39489     something starting with __ and the normal name is an alias.  */
39490 #if defined __stub_$ac_func || defined __stub___$ac_func
39491 choke me
39492 #endif
39493
39494 int
39495 main ()
39496 {
39497 return $ac_func ();
39498   ;
39499   return 0;
39500 }
39501 _ACEOF
39502 rm -f conftest.$ac_objext conftest$ac_exeext
39503 if { (ac_try="$ac_link"
39504 case "(($ac_try" in
39505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39506   *) ac_try_echo=$ac_try;;
39507 esac
39508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39509   (eval "$ac_link") 2>conftest.er1
39510   ac_status=$?
39511   grep -v '^ *+' conftest.er1 >conftest.err
39512   rm -f conftest.er1
39513   cat conftest.err >&5
39514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39515   (exit $ac_status); } && {
39516          test -z "$ac_c_werror_flag" ||
39517          test ! -s conftest.err
39518        } && test -s conftest$ac_exeext &&
39519        $as_test_x conftest$ac_exeext; then
39520   eval "$as_ac_var=yes"
39521 else
39522   echo "$as_me: failed program was:" >&5
39523 sed 's/^/| /' conftest.$ac_ext >&5
39524
39525         eval "$as_ac_var=no"
39526 fi
39527
39528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39529       conftest$ac_exeext conftest.$ac_ext
39530 fi
39531 ac_res=`eval echo '${'$as_ac_var'}'`
39532                { echo "$as_me:$LINENO: result: $ac_res" >&5
39533 echo "${ECHO_T}$ac_res" >&6; }
39534 if test `eval echo '${'$as_ac_var'}'` = yes; then
39535
39536 cat >>confdefs.h <<_ACEOF
39537 #define CRAY_STACKSEG_END $ac_func
39538 _ACEOF
39539
39540     break
39541 fi
39542
39543   done
39544 fi
39545
39546 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39547 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39548 if test "${ac_cv_c_stack_direction+set}" = set; then
39549   echo $ECHO_N "(cached) $ECHO_C" >&6
39550 else
39551   if test "$cross_compiling" = yes; then
39552   ac_cv_c_stack_direction=0
39553 else
39554   cat >conftest.$ac_ext <<_ACEOF
39555 /* confdefs.h.  */
39556 _ACEOF
39557 cat confdefs.h >>conftest.$ac_ext
39558 cat >>conftest.$ac_ext <<_ACEOF
39559 /* end confdefs.h.  */
39560 $ac_includes_default
39561 int
39562 find_stack_direction ()
39563 {
39564   static char *addr = 0;
39565   auto char dummy;
39566   if (addr == 0)
39567     {
39568       addr = &dummy;
39569       return find_stack_direction ();
39570     }
39571   else
39572     return (&dummy > addr) ? 1 : -1;
39573 }
39574
39575 int
39576 main ()
39577 {
39578   return find_stack_direction () < 0;
39579 }
39580 _ACEOF
39581 rm -f conftest$ac_exeext
39582 if { (ac_try="$ac_link"
39583 case "(($ac_try" in
39584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39585   *) ac_try_echo=$ac_try;;
39586 esac
39587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39588   (eval "$ac_link") 2>&5
39589   ac_status=$?
39590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39592   { (case "(($ac_try" in
39593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39594   *) ac_try_echo=$ac_try;;
39595 esac
39596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39597   (eval "$ac_try") 2>&5
39598   ac_status=$?
39599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600   (exit $ac_status); }; }; then
39601   ac_cv_c_stack_direction=1
39602 else
39603   echo "$as_me: program exited with status $ac_status" >&5
39604 echo "$as_me: failed program was:" >&5
39605 sed 's/^/| /' conftest.$ac_ext >&5
39606
39607 ( exit $ac_status )
39608 ac_cv_c_stack_direction=-1
39609 fi
39610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39611 fi
39612
39613
39614 fi
39615 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39616 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39617
39618 cat >>confdefs.h <<_ACEOF
39619 #define STACK_DIRECTION $ac_cv_c_stack_direction
39620 _ACEOF
39621
39622
39623 fi
39624
39625 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39626 # -lseq on Dynix/PTX, -lgen on Unixware.
39627 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39628 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39629 if test "${ac_cv_search_getmntent+set}" = set; then
39630   echo $ECHO_N "(cached) $ECHO_C" >&6
39631 else
39632   ac_func_search_save_LIBS=$LIBS
39633 cat >conftest.$ac_ext <<_ACEOF
39634 /* confdefs.h.  */
39635 _ACEOF
39636 cat confdefs.h >>conftest.$ac_ext
39637 cat >>conftest.$ac_ext <<_ACEOF
39638 /* end confdefs.h.  */
39639
39640 /* Override any GCC internal prototype to avoid an error.
39641    Use char because int might match the return type of a GCC
39642    builtin and then its argument prototype would still apply.  */
39643 #ifdef __cplusplus
39644 extern "C"
39645 #endif
39646 char getmntent ();
39647 int
39648 main ()
39649 {
39650 return getmntent ();
39651   ;
39652   return 0;
39653 }
39654 _ACEOF
39655 for ac_lib in '' sun seq gen; do
39656   if test -z "$ac_lib"; then
39657     ac_res="none required"
39658   else
39659     ac_res=-l$ac_lib
39660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39661   fi
39662   rm -f conftest.$ac_objext conftest$ac_exeext
39663 if { (ac_try="$ac_link"
39664 case "(($ac_try" in
39665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39666   *) ac_try_echo=$ac_try;;
39667 esac
39668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39669   (eval "$ac_link") 2>conftest.er1
39670   ac_status=$?
39671   grep -v '^ *+' conftest.er1 >conftest.err
39672   rm -f conftest.er1
39673   cat conftest.err >&5
39674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675   (exit $ac_status); } && {
39676          test -z "$ac_c_werror_flag" ||
39677          test ! -s conftest.err
39678        } && test -s conftest$ac_exeext &&
39679        $as_test_x conftest$ac_exeext; then
39680   ac_cv_search_getmntent=$ac_res
39681 else
39682   echo "$as_me: failed program was:" >&5
39683 sed 's/^/| /' conftest.$ac_ext >&5
39684
39685
39686 fi
39687
39688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39689       conftest$ac_exeext
39690   if test "${ac_cv_search_getmntent+set}" = set; then
39691   break
39692 fi
39693 done
39694 if test "${ac_cv_search_getmntent+set}" = set; then
39695   :
39696 else
39697   ac_cv_search_getmntent=no
39698 fi
39699 rm conftest.$ac_ext
39700 LIBS=$ac_func_search_save_LIBS
39701 fi
39702 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39703 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39704 ac_res=$ac_cv_search_getmntent
39705 if test "$ac_res" != no; then
39706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39707   ac_cv_func_getmntent=yes
39708
39709 cat >>confdefs.h <<\_ACEOF
39710 #define HAVE_GETMNTENT 1
39711 _ACEOF
39712
39713 else
39714   ac_cv_func_getmntent=no
39715 fi
39716
39717
39718 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39719 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39720 if test "${ac_cv_func_closedir_void+set}" = set; then
39721   echo $ECHO_N "(cached) $ECHO_C" >&6
39722 else
39723   if test "$cross_compiling" = yes; then
39724   ac_cv_func_closedir_void=yes
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 $ac_includes_default
39733 #include <$ac_header_dirent>
39734 #ifndef __cplusplus
39735 int closedir ();
39736 #endif
39737
39738 int
39739 main ()
39740 {
39741 return closedir (opendir (".")) != 0;
39742   ;
39743   return 0;
39744 }
39745 _ACEOF
39746 rm -f conftest$ac_exeext
39747 if { (ac_try="$ac_link"
39748 case "(($ac_try" in
39749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39750   *) ac_try_echo=$ac_try;;
39751 esac
39752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39753   (eval "$ac_link") 2>&5
39754   ac_status=$?
39755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39757   { (case "(($ac_try" in
39758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39759   *) ac_try_echo=$ac_try;;
39760 esac
39761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39762   (eval "$ac_try") 2>&5
39763   ac_status=$?
39764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765   (exit $ac_status); }; }; then
39766   ac_cv_func_closedir_void=no
39767 else
39768   echo "$as_me: program exited with status $ac_status" >&5
39769 echo "$as_me: failed program was:" >&5
39770 sed 's/^/| /' conftest.$ac_ext >&5
39771
39772 ( exit $ac_status )
39773 ac_cv_func_closedir_void=yes
39774 fi
39775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39776 fi
39777
39778
39779 fi
39780 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39781 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39782 if test $ac_cv_func_closedir_void = yes; then
39783
39784 cat >>confdefs.h <<\_ACEOF
39785 #define CLOSEDIR_VOID 1
39786 _ACEOF
39787
39788 fi
39789
39790 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39791 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39792 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39793   echo $ECHO_N "(cached) $ECHO_C" >&6
39794 else
39795   if test "$cross_compiling" = yes; then
39796   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39797 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39798    { (exit 1); exit 1; }; }
39799 else
39800   cat >conftest.$ac_ext <<_ACEOF
39801 /* confdefs.h.  */
39802 _ACEOF
39803 cat confdefs.h >>conftest.$ac_ext
39804 cat >>conftest.$ac_ext <<_ACEOF
39805 /* end confdefs.h.  */
39806 $ac_includes_default
39807 int
39808 main ()
39809 {
39810 /* If this system has a BSD-style setpgrp which takes arguments,
39811   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39812   exit successfully. */
39813   return setpgrp (1,1) != -1;
39814   ;
39815   return 0;
39816 }
39817 _ACEOF
39818 rm -f conftest$ac_exeext
39819 if { (ac_try="$ac_link"
39820 case "(($ac_try" in
39821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39822   *) ac_try_echo=$ac_try;;
39823 esac
39824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39825   (eval "$ac_link") 2>&5
39826   ac_status=$?
39827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39829   { (case "(($ac_try" in
39830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39831   *) ac_try_echo=$ac_try;;
39832 esac
39833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39834   (eval "$ac_try") 2>&5
39835   ac_status=$?
39836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837   (exit $ac_status); }; }; then
39838   ac_cv_func_setpgrp_void=no
39839 else
39840   echo "$as_me: program exited with status $ac_status" >&5
39841 echo "$as_me: failed program was:" >&5
39842 sed 's/^/| /' conftest.$ac_ext >&5
39843
39844 ( exit $ac_status )
39845 ac_cv_func_setpgrp_void=yes
39846 fi
39847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39848 fi
39849
39850
39851 fi
39852 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39853 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39854 if test $ac_cv_func_setpgrp_void = yes; then
39855
39856 cat >>confdefs.h <<\_ACEOF
39857 #define SETPGRP_VOID 1
39858 _ACEOF
39859
39860 fi
39861              # AC_FUNC_FNMATCH    dnl use local version
39862
39863 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39864 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39865 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39866   echo $ECHO_N "(cached) $ECHO_C" >&6
39867 else
39868   ac_check_lib_save_LIBS=$LIBS
39869 LIBS="-lintl  $LIBS"
39870 cat >conftest.$ac_ext <<_ACEOF
39871 /* confdefs.h.  */
39872 _ACEOF
39873 cat confdefs.h >>conftest.$ac_ext
39874 cat >>conftest.$ac_ext <<_ACEOF
39875 /* end confdefs.h.  */
39876
39877 /* Override any GCC internal prototype to avoid an error.
39878    Use char because int might match the return type of a GCC
39879    builtin and then its argument prototype would still apply.  */
39880 #ifdef __cplusplus
39881 extern "C"
39882 #endif
39883 char gettext ();
39884 int
39885 main ()
39886 {
39887 return gettext ();
39888   ;
39889   return 0;
39890 }
39891 _ACEOF
39892 rm -f conftest.$ac_objext conftest$ac_exeext
39893 if { (ac_try="$ac_link"
39894 case "(($ac_try" in
39895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39896   *) ac_try_echo=$ac_try;;
39897 esac
39898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39899   (eval "$ac_link") 2>conftest.er1
39900   ac_status=$?
39901   grep -v '^ *+' conftest.er1 >conftest.err
39902   rm -f conftest.er1
39903   cat conftest.err >&5
39904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905   (exit $ac_status); } && {
39906          test -z "$ac_c_werror_flag" ||
39907          test ! -s conftest.err
39908        } && test -s conftest$ac_exeext &&
39909        $as_test_x conftest$ac_exeext; then
39910   ac_cv_lib_intl_gettext=yes
39911 else
39912   echo "$as_me: failed program was:" >&5
39913 sed 's/^/| /' conftest.$ac_ext >&5
39914
39915         ac_cv_lib_intl_gettext=no
39916 fi
39917
39918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39919       conftest$ac_exeext conftest.$ac_ext
39920 LIBS=$ac_check_lib_save_LIBS
39921 fi
39922 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39923 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39924 if test $ac_cv_lib_intl_gettext = yes; then
39925   LIBS="$LIBS -lintl"
39926 fi
39927
39928
39929
39930 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39931 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39932 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39933   echo $ECHO_N "(cached) $ECHO_C" >&6
39934 else
39935   ac_check_lib_save_LIBS=$LIBS
39936 LIBS="-lsun  $LIBS"
39937 cat >conftest.$ac_ext <<_ACEOF
39938 /* confdefs.h.  */
39939 _ACEOF
39940 cat confdefs.h >>conftest.$ac_ext
39941 cat >>conftest.$ac_ext <<_ACEOF
39942 /* end confdefs.h.  */
39943
39944 /* Override any GCC internal prototype to avoid an error.
39945    Use char because int might match the return type of a GCC
39946    builtin and then its argument prototype would still apply.  */
39947 #ifdef __cplusplus
39948 extern "C"
39949 #endif
39950 char getpwnam ();
39951 int
39952 main ()
39953 {
39954 return getpwnam ();
39955   ;
39956   return 0;
39957 }
39958 _ACEOF
39959 rm -f conftest.$ac_objext conftest$ac_exeext
39960 if { (ac_try="$ac_link"
39961 case "(($ac_try" in
39962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39963   *) ac_try_echo=$ac_try;;
39964 esac
39965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39966   (eval "$ac_link") 2>conftest.er1
39967   ac_status=$?
39968   grep -v '^ *+' conftest.er1 >conftest.err
39969   rm -f conftest.er1
39970   cat conftest.err >&5
39971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972   (exit $ac_status); } && {
39973          test -z "$ac_c_werror_flag" ||
39974          test ! -s conftest.err
39975        } && test -s conftest$ac_exeext &&
39976        $as_test_x conftest$ac_exeext; then
39977   ac_cv_lib_sun_getpwnam=yes
39978 else
39979   echo "$as_me: failed program was:" >&5
39980 sed 's/^/| /' conftest.$ac_ext >&5
39981
39982         ac_cv_lib_sun_getpwnam=no
39983 fi
39984
39985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39986       conftest$ac_exeext conftest.$ac_ext
39987 LIBS=$ac_check_lib_save_LIBS
39988 fi
39989 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39990 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39991 if test $ac_cv_lib_sun_getpwnam = yes; then
39992   cat >>confdefs.h <<_ACEOF
39993 #define HAVE_LIBSUN 1
39994 _ACEOF
39995
39996   LIBS="-lsun $LIBS"
39997
39998 fi
39999
40000
40001
40002 for ac_header in zlib.h
40003 do
40004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40006   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40009   echo $ECHO_N "(cached) $ECHO_C" >&6
40010 fi
40011 ac_res=`eval echo '${'$as_ac_Header'}'`
40012                { echo "$as_me:$LINENO: result: $ac_res" >&5
40013 echo "${ECHO_T}$ac_res" >&6; }
40014 else
40015   # Is the header compilable?
40016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40018 cat >conftest.$ac_ext <<_ACEOF
40019 /* confdefs.h.  */
40020 _ACEOF
40021 cat confdefs.h >>conftest.$ac_ext
40022 cat >>conftest.$ac_ext <<_ACEOF
40023 /* end confdefs.h.  */
40024 $ac_includes_default
40025 #include <$ac_header>
40026 _ACEOF
40027 rm -f conftest.$ac_objext
40028 if { (ac_try="$ac_compile"
40029 case "(($ac_try" in
40030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40031   *) ac_try_echo=$ac_try;;
40032 esac
40033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40034   (eval "$ac_compile") 2>conftest.er1
40035   ac_status=$?
40036   grep -v '^ *+' conftest.er1 >conftest.err
40037   rm -f conftest.er1
40038   cat conftest.err >&5
40039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040   (exit $ac_status); } && {
40041          test -z "$ac_c_werror_flag" ||
40042          test ! -s conftest.err
40043        } && test -s conftest.$ac_objext; then
40044   ac_header_compiler=yes
40045 else
40046   echo "$as_me: failed program was:" >&5
40047 sed 's/^/| /' conftest.$ac_ext >&5
40048
40049         ac_header_compiler=no
40050 fi
40051
40052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40054 echo "${ECHO_T}$ac_header_compiler" >&6; }
40055
40056 # Is the header present?
40057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40059 cat >conftest.$ac_ext <<_ACEOF
40060 /* confdefs.h.  */
40061 _ACEOF
40062 cat confdefs.h >>conftest.$ac_ext
40063 cat >>conftest.$ac_ext <<_ACEOF
40064 /* end confdefs.h.  */
40065 #include <$ac_header>
40066 _ACEOF
40067 if { (ac_try="$ac_cpp conftest.$ac_ext"
40068 case "(($ac_try" in
40069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40070   *) ac_try_echo=$ac_try;;
40071 esac
40072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40074   ac_status=$?
40075   grep -v '^ *+' conftest.er1 >conftest.err
40076   rm -f conftest.er1
40077   cat conftest.err >&5
40078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40079   (exit $ac_status); } >/dev/null && {
40080          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40081          test ! -s conftest.err
40082        }; then
40083   ac_header_preproc=yes
40084 else
40085   echo "$as_me: failed program was:" >&5
40086 sed 's/^/| /' conftest.$ac_ext >&5
40087
40088   ac_header_preproc=no
40089 fi
40090
40091 rm -f conftest.err conftest.$ac_ext
40092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40093 echo "${ECHO_T}$ac_header_preproc" >&6; }
40094
40095 # So?  What about this header?
40096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40097   yes:no: )
40098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40102     ac_header_preproc=yes
40103     ;;
40104   no:yes:* )
40105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40117
40118     ;;
40119 esac
40120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40123   echo $ECHO_N "(cached) $ECHO_C" >&6
40124 else
40125   eval "$as_ac_Header=\$ac_header_preproc"
40126 fi
40127 ac_res=`eval echo '${'$as_ac_Header'}'`
40128                { echo "$as_me:$LINENO: result: $ac_res" >&5
40129 echo "${ECHO_T}$ac_res" >&6; }
40130
40131 fi
40132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40133   cat >>confdefs.h <<_ACEOF
40134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40135 _ACEOF
40136
40137 fi
40138
40139 done
40140
40141 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40142 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40143 if test "${ac_cv_lib_z_deflate+set}" = set; then
40144   echo $ECHO_N "(cached) $ECHO_C" >&6
40145 else
40146   ac_check_lib_save_LIBS=$LIBS
40147 LIBS="-lz  $LIBS"
40148 cat >conftest.$ac_ext <<_ACEOF
40149 /* confdefs.h.  */
40150 _ACEOF
40151 cat confdefs.h >>conftest.$ac_ext
40152 cat >>conftest.$ac_ext <<_ACEOF
40153 /* end confdefs.h.  */
40154
40155 /* Override any GCC internal prototype to avoid an error.
40156    Use char because int might match the return type of a GCC
40157    builtin and then its argument prototype would still apply.  */
40158 #ifdef __cplusplus
40159 extern "C"
40160 #endif
40161 char deflate ();
40162 int
40163 main ()
40164 {
40165 return deflate ();
40166   ;
40167   return 0;
40168 }
40169 _ACEOF
40170 rm -f conftest.$ac_objext conftest$ac_exeext
40171 if { (ac_try="$ac_link"
40172 case "(($ac_try" in
40173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40174   *) ac_try_echo=$ac_try;;
40175 esac
40176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40177   (eval "$ac_link") 2>conftest.er1
40178   ac_status=$?
40179   grep -v '^ *+' conftest.er1 >conftest.err
40180   rm -f conftest.er1
40181   cat conftest.err >&5
40182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40183   (exit $ac_status); } && {
40184          test -z "$ac_c_werror_flag" ||
40185          test ! -s conftest.err
40186        } && test -s conftest$ac_exeext &&
40187        $as_test_x conftest$ac_exeext; then
40188   ac_cv_lib_z_deflate=yes
40189 else
40190   echo "$as_me: failed program was:" >&5
40191 sed 's/^/| /' conftest.$ac_ext >&5
40192
40193         ac_cv_lib_z_deflate=no
40194 fi
40195
40196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40197       conftest$ac_exeext conftest.$ac_ext
40198 LIBS=$ac_check_lib_save_LIBS
40199 fi
40200 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40201 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40202 if test $ac_cv_lib_z_deflate = yes; then
40203   FDLIBS="-lz"
40204 fi
40205
40206 have_zlib=no
40207 if test x$FDLIBS = x-lz; then
40208    cat >>confdefs.h <<\_ACEOF
40209 #define HAVE_LIBZ 1
40210 _ACEOF
40211
40212    have_zlib=yes
40213 fi
40214
40215 have_acl=no
40216 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40217   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40218 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40219 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40220   echo $ECHO_N "(cached) $ECHO_C" >&6
40221 fi
40222 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40223 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40224 else
40225   # Is the header compilable?
40226 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40227 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40228 cat >conftest.$ac_ext <<_ACEOF
40229 /* confdefs.h.  */
40230 _ACEOF
40231 cat confdefs.h >>conftest.$ac_ext
40232 cat >>conftest.$ac_ext <<_ACEOF
40233 /* end confdefs.h.  */
40234 $ac_includes_default
40235 #include <sys/acl.h>
40236 _ACEOF
40237 rm -f conftest.$ac_objext
40238 if { (ac_try="$ac_compile"
40239 case "(($ac_try" in
40240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40241   *) ac_try_echo=$ac_try;;
40242 esac
40243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40244   (eval "$ac_compile") 2>conftest.er1
40245   ac_status=$?
40246   grep -v '^ *+' conftest.er1 >conftest.err
40247   rm -f conftest.er1
40248   cat conftest.err >&5
40249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40250   (exit $ac_status); } && {
40251          test -z "$ac_c_werror_flag" ||
40252          test ! -s conftest.err
40253        } && test -s conftest.$ac_objext; then
40254   ac_header_compiler=yes
40255 else
40256   echo "$as_me: failed program was:" >&5
40257 sed 's/^/| /' conftest.$ac_ext >&5
40258
40259         ac_header_compiler=no
40260 fi
40261
40262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40264 echo "${ECHO_T}$ac_header_compiler" >&6; }
40265
40266 # Is the header present?
40267 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40268 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40269 cat >conftest.$ac_ext <<_ACEOF
40270 /* confdefs.h.  */
40271 _ACEOF
40272 cat confdefs.h >>conftest.$ac_ext
40273 cat >>conftest.$ac_ext <<_ACEOF
40274 /* end confdefs.h.  */
40275 #include <sys/acl.h>
40276 _ACEOF
40277 if { (ac_try="$ac_cpp conftest.$ac_ext"
40278 case "(($ac_try" in
40279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40280   *) ac_try_echo=$ac_try;;
40281 esac
40282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40284   ac_status=$?
40285   grep -v '^ *+' conftest.er1 >conftest.err
40286   rm -f conftest.er1
40287   cat conftest.err >&5
40288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289   (exit $ac_status); } >/dev/null && {
40290          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40291          test ! -s conftest.err
40292        }; then
40293   ac_header_preproc=yes
40294 else
40295   echo "$as_me: failed program was:" >&5
40296 sed 's/^/| /' conftest.$ac_ext >&5
40297
40298   ac_header_preproc=no
40299 fi
40300
40301 rm -f conftest.err conftest.$ac_ext
40302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40303 echo "${ECHO_T}$ac_header_preproc" >&6; }
40304
40305 # So?  What about this header?
40306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40307   yes:no: )
40308     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40309 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40310     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40311 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40312     ac_header_preproc=yes
40313     ;;
40314   no:yes:* )
40315     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40316 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40317     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40318 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40319     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40320 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40321     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40322 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40323     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40324 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40325     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40326 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40327
40328     ;;
40329 esac
40330 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40331 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40332 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40333   echo $ECHO_N "(cached) $ECHO_C" >&6
40334 else
40335   ac_cv_header_sys_acl_h=$ac_header_preproc
40336 fi
40337 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40338 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40339
40340 fi
40341
40342
40343 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40344 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40345 if test "${ac_cv_func_acl_get_file+set}" = set; then
40346   echo $ECHO_N "(cached) $ECHO_C" >&6
40347 else
40348   cat >conftest.$ac_ext <<_ACEOF
40349 /* confdefs.h.  */
40350 _ACEOF
40351 cat confdefs.h >>conftest.$ac_ext
40352 cat >>conftest.$ac_ext <<_ACEOF
40353 /* end confdefs.h.  */
40354 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40356 #define acl_get_file innocuous_acl_get_file
40357
40358 /* System header to define __stub macros and hopefully few prototypes,
40359     which can conflict with char acl_get_file (); below.
40360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40361     <limits.h> exists even on freestanding compilers.  */
40362
40363 #ifdef __STDC__
40364 # include <limits.h>
40365 #else
40366 # include <assert.h>
40367 #endif
40368
40369 #undef acl_get_file
40370
40371 /* Override any GCC internal prototype to avoid an error.
40372    Use char because int might match the return type of a GCC
40373    builtin and then its argument prototype would still apply.  */
40374 #ifdef __cplusplus
40375 extern "C"
40376 #endif
40377 char acl_get_file ();
40378 /* The GNU C library defines this for functions which it implements
40379     to always fail with ENOSYS.  Some functions are actually named
40380     something starting with __ and the normal name is an alias.  */
40381 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40382 choke me
40383 #endif
40384
40385 int
40386 main ()
40387 {
40388 return acl_get_file ();
40389   ;
40390   return 0;
40391 }
40392 _ACEOF
40393 rm -f conftest.$ac_objext conftest$ac_exeext
40394 if { (ac_try="$ac_link"
40395 case "(($ac_try" in
40396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40397   *) ac_try_echo=$ac_try;;
40398 esac
40399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40400   (eval "$ac_link") 2>conftest.er1
40401   ac_status=$?
40402   grep -v '^ *+' conftest.er1 >conftest.err
40403   rm -f conftest.er1
40404   cat conftest.err >&5
40405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406   (exit $ac_status); } && {
40407          test -z "$ac_c_werror_flag" ||
40408          test ! -s conftest.err
40409        } && test -s conftest$ac_exeext &&
40410        $as_test_x conftest$ac_exeext; then
40411   ac_cv_func_acl_get_file=yes
40412 else
40413   echo "$as_me: failed program was:" >&5
40414 sed 's/^/| /' conftest.$ac_ext >&5
40415
40416         ac_cv_func_acl_get_file=no
40417 fi
40418
40419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40420       conftest$ac_exeext conftest.$ac_ext
40421 fi
40422 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40423 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40424 if test $ac_cv_func_acl_get_file = yes; then
40425   have_acl=yes
40426 else
40427
40428        { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40429 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40430 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40431   echo $ECHO_N "(cached) $ECHO_C" >&6
40432 else
40433   ac_check_lib_save_LIBS=$LIBS
40434 LIBS="-lacl  $LIBS"
40435 cat >conftest.$ac_ext <<_ACEOF
40436 /* confdefs.h.  */
40437 _ACEOF
40438 cat confdefs.h >>conftest.$ac_ext
40439 cat >>conftest.$ac_ext <<_ACEOF
40440 /* end confdefs.h.  */
40441
40442 /* Override any GCC internal prototype to avoid an error.
40443    Use char because int might match the return type of a GCC
40444    builtin and then its argument prototype would still apply.  */
40445 #ifdef __cplusplus
40446 extern "C"
40447 #endif
40448 char acl_get_file ();
40449 int
40450 main ()
40451 {
40452 return acl_get_file ();
40453   ;
40454   return 0;
40455 }
40456 _ACEOF
40457 rm -f conftest.$ac_objext conftest$ac_exeext
40458 if { (ac_try="$ac_link"
40459 case "(($ac_try" in
40460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40461   *) ac_try_echo=$ac_try;;
40462 esac
40463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40464   (eval "$ac_link") 2>conftest.er1
40465   ac_status=$?
40466   grep -v '^ *+' conftest.er1 >conftest.err
40467   rm -f conftest.er1
40468   cat conftest.err >&5
40469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470   (exit $ac_status); } && {
40471          test -z "$ac_c_werror_flag" ||
40472          test ! -s conftest.err
40473        } && test -s conftest$ac_exeext &&
40474        $as_test_x conftest$ac_exeext; then
40475   ac_cv_lib_acl_acl_get_file=yes
40476 else
40477   echo "$as_me: failed program was:" >&5
40478 sed 's/^/| /' conftest.$ac_ext >&5
40479
40480         ac_cv_lib_acl_acl_get_file=no
40481 fi
40482
40483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40484       conftest$ac_exeext conftest.$ac_ext
40485 LIBS=$ac_check_lib_save_LIBS
40486 fi
40487 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40488 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40489 if test $ac_cv_lib_acl_acl_get_file = yes; then
40490
40491               have_acl=yes;
40492               FDLIBS="-lacl $FDLIBS"
40493
40494 else
40495
40496               { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40497 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40498 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40499   echo $ECHO_N "(cached) $ECHO_C" >&6
40500 else
40501   ac_check_lib_save_LIBS=$LIBS
40502 LIBS="-lsec  $LIBS"
40503 cat >conftest.$ac_ext <<_ACEOF
40504 /* confdefs.h.  */
40505 _ACEOF
40506 cat confdefs.h >>conftest.$ac_ext
40507 cat >>conftest.$ac_ext <<_ACEOF
40508 /* end confdefs.h.  */
40509
40510 /* Override any GCC internal prototype to avoid an error.
40511    Use char because int might match the return type of a GCC
40512    builtin and then its argument prototype would still apply.  */
40513 #ifdef __cplusplus
40514 extern "C"
40515 #endif
40516 char acltotext ();
40517 int
40518 main ()
40519 {
40520 return acltotext ();
40521   ;
40522   return 0;
40523 }
40524 _ACEOF
40525 rm -f conftest.$ac_objext conftest$ac_exeext
40526 if { (ac_try="$ac_link"
40527 case "(($ac_try" in
40528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40529   *) ac_try_echo=$ac_try;;
40530 esac
40531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40532   (eval "$ac_link") 2>conftest.er1
40533   ac_status=$?
40534   grep -v '^ *+' conftest.er1 >conftest.err
40535   rm -f conftest.er1
40536   cat conftest.err >&5
40537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40538   (exit $ac_status); } && {
40539          test -z "$ac_c_werror_flag" ||
40540          test ! -s conftest.err
40541        } && test -s conftest$ac_exeext &&
40542        $as_test_x conftest$ac_exeext; then
40543   ac_cv_lib_sec_acltotext=yes
40544 else
40545   echo "$as_me: failed program was:" >&5
40546 sed 's/^/| /' conftest.$ac_ext >&5
40547
40548         ac_cv_lib_sec_acltotext=no
40549 fi
40550
40551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40552       conftest$ac_exeext conftest.$ac_ext
40553 LIBS=$ac_check_lib_save_LIBS
40554 fi
40555 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40556 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40557 if test $ac_cv_lib_sec_acltotext = yes; then
40558
40559                      have_acl=yes;
40560                      FDLIBS="-lsec $FDLIBS"
40561
40562
40563 fi
40564
40565
40566
40567 fi
40568
40569
40570
40571 fi
40572
40573 if test $have_acl = yes; then
40574    cat >>confdefs.h <<\_ACEOF
40575 #define HAVE_ACL 1
40576 _ACEOF
40577
40578 fi
40579
40580 PTHREAD_LIB=""
40581 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40582 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40583 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40584   echo $ECHO_N "(cached) $ECHO_C" >&6
40585 else
40586   ac_check_lib_save_LIBS=$LIBS
40587 LIBS="-lpthread  $LIBS"
40588 cat >conftest.$ac_ext <<_ACEOF
40589 /* confdefs.h.  */
40590 _ACEOF
40591 cat confdefs.h >>conftest.$ac_ext
40592 cat >>conftest.$ac_ext <<_ACEOF
40593 /* end confdefs.h.  */
40594
40595 /* Override any GCC internal prototype to avoid an error.
40596    Use char because int might match the return type of a GCC
40597    builtin and then its argument prototype would still apply.  */
40598 #ifdef __cplusplus
40599 extern "C"
40600 #endif
40601 char pthread_create ();
40602 int
40603 main ()
40604 {
40605 return pthread_create ();
40606   ;
40607   return 0;
40608 }
40609 _ACEOF
40610 rm -f conftest.$ac_objext conftest$ac_exeext
40611 if { (ac_try="$ac_link"
40612 case "(($ac_try" in
40613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40614   *) ac_try_echo=$ac_try;;
40615 esac
40616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40617   (eval "$ac_link") 2>conftest.er1
40618   ac_status=$?
40619   grep -v '^ *+' conftest.er1 >conftest.err
40620   rm -f conftest.er1
40621   cat conftest.err >&5
40622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623   (exit $ac_status); } && {
40624          test -z "$ac_c_werror_flag" ||
40625          test ! -s conftest.err
40626        } && test -s conftest$ac_exeext &&
40627        $as_test_x conftest$ac_exeext; then
40628   ac_cv_lib_pthread_pthread_create=yes
40629 else
40630   echo "$as_me: failed program was:" >&5
40631 sed 's/^/| /' conftest.$ac_ext >&5
40632
40633         ac_cv_lib_pthread_pthread_create=no
40634 fi
40635
40636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40637       conftest$ac_exeext conftest.$ac_ext
40638 LIBS=$ac_check_lib_save_LIBS
40639 fi
40640 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40641 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40642 if test $ac_cv_lib_pthread_pthread_create = yes; then
40643   PTHREAD_LIB="-lpthread"
40644 else
40645
40646        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40647 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40648 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40649   echo $ECHO_N "(cached) $ECHO_C" >&6
40650 else
40651   ac_check_lib_save_LIBS=$LIBS
40652 LIBS="-lpthreads  $LIBS"
40653 cat >conftest.$ac_ext <<_ACEOF
40654 /* confdefs.h.  */
40655 _ACEOF
40656 cat confdefs.h >>conftest.$ac_ext
40657 cat >>conftest.$ac_ext <<_ACEOF
40658 /* end confdefs.h.  */
40659
40660 /* Override any GCC internal prototype to avoid an error.
40661    Use char because int might match the return type of a GCC
40662    builtin and then its argument prototype would still apply.  */
40663 #ifdef __cplusplus
40664 extern "C"
40665 #endif
40666 char pthread_create ();
40667 int
40668 main ()
40669 {
40670 return pthread_create ();
40671   ;
40672   return 0;
40673 }
40674 _ACEOF
40675 rm -f conftest.$ac_objext conftest$ac_exeext
40676 if { (ac_try="$ac_link"
40677 case "(($ac_try" in
40678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40679   *) ac_try_echo=$ac_try;;
40680 esac
40681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40682   (eval "$ac_link") 2>conftest.er1
40683   ac_status=$?
40684   grep -v '^ *+' conftest.er1 >conftest.err
40685   rm -f conftest.er1
40686   cat conftest.err >&5
40687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40688   (exit $ac_status); } && {
40689          test -z "$ac_c_werror_flag" ||
40690          test ! -s conftest.err
40691        } && test -s conftest$ac_exeext &&
40692        $as_test_x conftest$ac_exeext; then
40693   ac_cv_lib_pthreads_pthread_create=yes
40694 else
40695   echo "$as_me: failed program was:" >&5
40696 sed 's/^/| /' conftest.$ac_ext >&5
40697
40698         ac_cv_lib_pthreads_pthread_create=no
40699 fi
40700
40701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40702       conftest$ac_exeext conftest.$ac_ext
40703 LIBS=$ac_check_lib_save_LIBS
40704 fi
40705 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40706 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40707 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40708   PTHREAD_LIB="-lpthreads"
40709 else
40710
40711               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40712 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40713 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40714   echo $ECHO_N "(cached) $ECHO_C" >&6
40715 else
40716   ac_check_lib_save_LIBS=$LIBS
40717 LIBS="-lc_r  $LIBS"
40718 cat >conftest.$ac_ext <<_ACEOF
40719 /* confdefs.h.  */
40720 _ACEOF
40721 cat confdefs.h >>conftest.$ac_ext
40722 cat >>conftest.$ac_ext <<_ACEOF
40723 /* end confdefs.h.  */
40724
40725 /* Override any GCC internal prototype to avoid an error.
40726    Use char because int might match the return type of a GCC
40727    builtin and then its argument prototype would still apply.  */
40728 #ifdef __cplusplus
40729 extern "C"
40730 #endif
40731 char pthread_create ();
40732 int
40733 main ()
40734 {
40735 return pthread_create ();
40736   ;
40737   return 0;
40738 }
40739 _ACEOF
40740 rm -f conftest.$ac_objext conftest$ac_exeext
40741 if { (ac_try="$ac_link"
40742 case "(($ac_try" in
40743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40744   *) ac_try_echo=$ac_try;;
40745 esac
40746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40747   (eval "$ac_link") 2>conftest.er1
40748   ac_status=$?
40749   grep -v '^ *+' conftest.er1 >conftest.err
40750   rm -f conftest.er1
40751   cat conftest.err >&5
40752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753   (exit $ac_status); } && {
40754          test -z "$ac_c_werror_flag" ||
40755          test ! -s conftest.err
40756        } && test -s conftest$ac_exeext &&
40757        $as_test_x conftest$ac_exeext; then
40758   ac_cv_lib_c_r_pthread_create=yes
40759 else
40760   echo "$as_me: failed program was:" >&5
40761 sed 's/^/| /' conftest.$ac_ext >&5
40762
40763         ac_cv_lib_c_r_pthread_create=no
40764 fi
40765
40766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40767       conftest$ac_exeext conftest.$ac_ext
40768 LIBS=$ac_check_lib_save_LIBS
40769 fi
40770 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40771 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40772 if test $ac_cv_lib_c_r_pthread_create = yes; then
40773   PTHREAD_LIB="-lc_r"
40774 else
40775
40776                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
40777 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40778 if test "${ac_cv_func_pthread_create+set}" = set; then
40779   echo $ECHO_N "(cached) $ECHO_C" >&6
40780 else
40781   cat >conftest.$ac_ext <<_ACEOF
40782 /* confdefs.h.  */
40783 _ACEOF
40784 cat confdefs.h >>conftest.$ac_ext
40785 cat >>conftest.$ac_ext <<_ACEOF
40786 /* end confdefs.h.  */
40787 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40789 #define pthread_create innocuous_pthread_create
40790
40791 /* System header to define __stub macros and hopefully few prototypes,
40792     which can conflict with char pthread_create (); below.
40793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40794     <limits.h> exists even on freestanding compilers.  */
40795
40796 #ifdef __STDC__
40797 # include <limits.h>
40798 #else
40799 # include <assert.h>
40800 #endif
40801
40802 #undef pthread_create
40803
40804 /* Override any GCC internal prototype to avoid an error.
40805    Use char because int might match the return type of a GCC
40806    builtin and then its argument prototype would still apply.  */
40807 #ifdef __cplusplus
40808 extern "C"
40809 #endif
40810 char pthread_create ();
40811 /* The GNU C library defines this for functions which it implements
40812     to always fail with ENOSYS.  Some functions are actually named
40813     something starting with __ and the normal name is an alias.  */
40814 #if defined __stub_pthread_create || defined __stub___pthread_create
40815 choke me
40816 #endif
40817
40818 int
40819 main ()
40820 {
40821 return pthread_create ();
40822   ;
40823   return 0;
40824 }
40825 _ACEOF
40826 rm -f conftest.$ac_objext conftest$ac_exeext
40827 if { (ac_try="$ac_link"
40828 case "(($ac_try" in
40829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40830   *) ac_try_echo=$ac_try;;
40831 esac
40832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40833   (eval "$ac_link") 2>conftest.er1
40834   ac_status=$?
40835   grep -v '^ *+' conftest.er1 >conftest.err
40836   rm -f conftest.er1
40837   cat conftest.err >&5
40838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40839   (exit $ac_status); } && {
40840          test -z "$ac_c_werror_flag" ||
40841          test ! -s conftest.err
40842        } && test -s conftest$ac_exeext &&
40843        $as_test_x conftest$ac_exeext; then
40844   ac_cv_func_pthread_create=yes
40845 else
40846   echo "$as_me: failed program was:" >&5
40847 sed 's/^/| /' conftest.$ac_ext >&5
40848
40849         ac_cv_func_pthread_create=no
40850 fi
40851
40852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40853       conftest$ac_exeext conftest.$ac_ext
40854 fi
40855 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40856 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40857
40858
40859
40860 fi
40861
40862
40863
40864 fi
40865
40866
40867
40868 fi
40869
40870
40871
40872 cat >>confdefs.h <<\_ACEOF
40873 #define FDLIBS 1
40874 _ACEOF
40875
40876
40877 CFLAGS=${CFLAGS--O}
40878
40879 if test x$have_gcc = xyes ; then
40880    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40881    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40882 fi
40883 LDFLAGS=${LDFLAGS--O}
40884 DB_LIBS="${SQL_LFLAGS}"
40885 CPPFLAGS="$CPPFLAGS"
40886 CFLAGS="$CFLAGS"
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903 OBJLIST=
40904
40905
40906 lld="lld"
40907 llu="llu"
40908
40909 WCFLAGS=
40910 WLDFLAGS=
40911
40912 PFILES="platforms/Makefile"
40913 PSCMD="ps -e"
40914 WIN32=
40915 MACOSX=
40916 hostname=`uname -n | cut -d '.' -f 1`
40917 if test x${hostname} = x ; then
40918    hostname="localhost"
40919 fi
40920 case "$DISTNAME" in
40921 aix)
40922    DISTVER=`uname -r`
40923    PSCMD="ps -e -o pid,comm"
40924    PFILES="${PFILES} \
40925       platforms/aix/Makefile"
40926    TAPEDRIVE="/dev/rmt0.1"
40927   ;;
40928 alpha)
40929    DISTVER=`uname -r`
40930    PTHREAD_LIB="-lpthread -lexc"
40931    if test "${CC}" = "gcc" ; then
40932       lld="lld"
40933       llu="llu"
40934    else
40935       lld="ld"
40936       llu="lu"
40937    fi
40938    TAPEDRIVE="/dev/nrmt0"
40939   ;;
40940 bsdi)
40941    DISTVER=`uname -a |awk '{print $3}'`
40942    TAPEDRIVE="/dev/nrmt0"
40943    PTHREAD_LIB="-pthread"
40944    CFLAGS="${CFLAGS} -pthread"
40945    PSCMD="ps -ax -o pid,command"
40946    lld="qd"
40947    llu="qu"
40948    PFILES="${PFILES} \
40949        platforms/bsdi/Makefile \
40950        platforms/bsdi/bacula-fd \
40951        platforms/bsdi/bacula-sd \
40952        platforms/bsdi/bacula-dir"
40953    largefile_support="yes"
40954   ;;
40955 cygwin)
40956    DISTVER=`uname -a |awk '{print $3}'`
40957    TAPEDRIVE="/dev/nrst0"
40958    WIN32=win32
40959    WCFLAGS="-mwindows"
40960    WLDFLAGS="-mwindows"
40961   ;;
40962 darwin)
40963    DISTVER=`uname -r`
40964    TAPEDRIVE="/dev/nst0"
40965    PSCMD="ps -e -o pid,command"
40966    MACOSX=macosx
40967    PFILES="${PFILES} \
40968       platforms/darwin/Makefile"
40969   ;;
40970 debian)
40971       ping -c 1 $hostname 2>&1 1>/dev/null
40972    if test ! $? = 0; then
40973       hostname="localhost"
40974    fi
40975    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40976       DISTNAME="ubuntu"
40977    fi
40978    DISTVER=`cat /etc/debian_version`
40979    if test -f /etc/lsb-release ; then
40980       . /etc/lsb-release
40981       if test "x$DISTRIB_ID" != "x" ; then
40982          DISTNAME=$DISTRIB_ID
40983       fi
40984       if test "x$DISTRIB_RELEASE" != "x" ; then
40985          DISTVER=$DISTRIB_RELEASE
40986       fi
40987    fi
40988    if test "$DISTNAME" = "Ubuntu" ; then
40989       DISTNAME="ubuntu"
40990    fi
40991    TAPEDRIVE="/dev/nst0"
40992    PSCMD="ps -e -o pid,command"
40993    if test "$DISTNAME" = "ubuntu" ; then
40994       PFILES="${PFILES} \
40995          platforms/ubuntu/Makefile \
40996          platforms/ubuntu/bacula-fd \
40997          platforms/ubuntu/bacula-sd \
40998          platforms/ubuntu/bacula-dir"
40999    else
41000       PFILES="${PFILES} \
41001          platforms/debian/Makefile \
41002          platforms/debian/bacula-fd \
41003          platforms/debian/bacula-sd \
41004          platforms/debian/bacula-dir"
41005    fi
41006   ;;
41007 freebsd)
41008       ping -c 1 $hostname 2>&1 1>/dev/null
41009    if test ! $? = 0; then
41010       hostname="localhost"
41011    fi
41012    DISTVER=`uname -a |awk '{print $3}'`
41013    VER=`echo $DISTVER | cut -c 1`
41014    if test x$VER = x4 ; then
41015       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41016       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41017    fi
41018    lld="qd"
41019    llu="qu"
41020    TAPEDRIVE="/dev/nrsa0"
41021    PSCMD="ps -ax -o pid,command"
41022    PFILES="${PFILES} \
41023        platforms/freebsd/Makefile \
41024        platforms/freebsd/bacula-fd \
41025        platforms/freebsd/bacula-sd \
41026        platforms/freebsd/bacula-dir"
41027    largefile_support="yes"
41028   ;;
41029 hpux)
41030    PSCMD="UNIX95=1; ps -e -o pid,comm"
41031    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41032    DISTVER=`uname -r`
41033    TAPEDRIVE="/dev/rmt/0hnb"
41034    PTHREAD_LIB="-lpthread"
41035    cat >>confdefs.h <<\_ACEOF
41036 #define _INCLUDE_LONGLONG 1
41037 _ACEOF
41038
41039   ;;
41040 irix)
41041    DISTVER=`uname -r`
41042    TAPEDRIVE="/dev/rmt/0cbn"
41043    PSCMD="ps -e -o pid,comm"
41044    PFILES="${PFILES} \
41045        platforms/irix/Makefile \
41046        platforms/irix/bacula-fd \
41047        platforms/irix/bacula-sd \
41048        platforms/irix/bacula-dir"
41049   ;;
41050 netbsd)
41051    DISTVER=`uname -a |awk '{print $3}'`
41052    lld="qd"
41053    llu="qu"
41054    TAPEDRIVE="/dev/nrst0"
41055    PSCMD="ps -ax -o pid,command"
41056    PTHREAD_LIB="-pthread"
41057    CFLAGS="${CFLAGS} -pthread"
41058   ;;
41059 openbsd)
41060    DISTVER=`uname -a |awk '{print $3}'`
41061    lld="qd"
41062    llu="qu"
41063    TAPEDRIVE="/dev/nrst0"
41064    PSCMD="ps -ax -o pid,command"
41065    PTHREAD_LIB="-pthread"
41066    CFLAGS="${CFLAGS} -pthread"
41067    PFILES="${PFILES} \
41068        platforms/openbsd/Makefile \
41069        platforms/openbsd/bacula-fd \
41070        platforms/openbsd/bacula-sd \
41071        platforms/openbsd/bacula-dir"
41072   ;;
41073 redhat)
41074       ping -c 1 $hostname 2>&1 1>/dev/null
41075    if test ! $? = 0; then
41076       hostname="localhost"
41077    fi
41078    if test -f /etc/whitebox-release ; then
41079       f=/etc/whitebox-release
41080    else
41081       f=/etc/redhat-release
41082    fi
41083    if test `cat $f | grep release |\
41084          cut -f 3 -d ' '`x = "Enterprise"x ; then
41085       DISTVER="Enterprise "`cat $f | grep release |\
41086           cut -f 6 -d ' '`
41087    else
41088        DISTVER=`cat /etc/redhat-release | grep release |\
41089            cut -f 5 -d ' '`
41090    fi
41091    TAPEDRIVE="/dev/nst0"
41092    PSCMD="ps -e -o pid,command"
41093    PFILES="${PFILES} \
41094        platforms/redhat/Makefile \
41095        platforms/redhat/bacula-fd \
41096        platforms/redhat/bacula-sd \
41097        platforms/redhat/bacula-dir \
41098        platforms/redhat/bacula.spec \
41099        "
41100   ;;
41101 mandrake)
41102       ping -c 1 $hostname 2>&1 1>/dev/null
41103    if test ! $? = 0; then
41104       hostname="localhost"
41105    fi
41106    DISTVER=`cat /etc/mandrake-release | grep release |\
41107       cut -f 5 -d ' '`
41108    TAPEDRIVE="/dev/nst0"
41109    PSCMD="ps -e -o pid,command"
41110    PFILES="${PFILES} \
41111        platforms/mandrake/Makefile \
41112        platforms/mandrake/bacula-fd \
41113        platforms/mandrake/bacula-sd \
41114        platforms/mandrake/bacula-dir \
41115        platforms/mandrake/bacula.spec \
41116        "
41117   ;;
41118 gentoo)
41119       ping -c 1 $hostname 2>&1 1>/dev/null
41120    if test ! $? = 0; then
41121       hostname="localhost"
41122    fi
41123    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41124    TAPEDRIVE="/dev/nst0"
41125    PSCMD="ps -e -o pid,command"
41126    PFILES="${PFILES} \
41127        platforms/gentoo/Makefile \
41128     platforms/gentoo/bacula-init \
41129        platforms/gentoo/bacula-fd \
41130        platforms/gentoo/bacula-sd \
41131        platforms/gentoo/bacula-dir"
41132   ;;
41133 slackware)
41134       ping -c 1 $hostname 2>&1 1>/dev/null
41135    if test ! $? = 0; then
41136       hostname="localhost"
41137    fi
41138    DISTVER=`cat /etc/slackware-version`
41139    TAPEDRIVE="/dev/nst0"
41140    PSCMD="ps -e -o pid,command"
41141    PFILES="${PFILES} \
41142        platforms/slackware/Makefile \
41143        platforms/slackware/rc.bacula-fd \
41144        platforms/slackware/rc.bacula-sd \
41145        platforms/slackware/rc.bacula-dir\
41146        platforms/slackware/functions.bacula"
41147   ;;
41148 solaris)
41149    DISTVER=`uname -r`
41150    TAPEDRIVE="/dev/rmt/0cbn"
41151    PSCMD="ps -e -o pid,comm"
41152    PFILES="${PFILES} \
41153        platforms/solaris/Makefile \
41154        platforms/solaris/bacula-fd \
41155        platforms/solaris/bacula-sd \
41156        platforms/solaris/bacula-dir"
41157    if test x$DISTVER = x5.6 ; then
41158        cat >>confdefs.h <<\_ACEOF
41159 #define HAVE_OLD_SOCKOPT 1
41160 _ACEOF
41161
41162    fi
41163    LIBS="$LIBS -lresolv"
41164   ;;
41165 suse)
41166       ping -c 1 $hostname 2>&1 1>/dev/null
41167    if test ! $? = 0; then
41168       hostname="localhost"
41169    fi
41170    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41171        cut -f 3 -d ' '`
41172    TAPEDRIVE="/dev/nst0"
41173    PSCMD="ps -e -o pid,command"
41174    PFILES="${PFILES} \
41175        platforms/suse/Makefile \
41176        platforms/suse/bacula-fd \
41177        platforms/suse/bacula-sd \
41178        platforms/suse/bacula-dir \
41179        platforms/suse/bacula \
41180        platforms/suse/bacula.spec"
41181   ;;
41182 suse5)
41183       ping -c 1 $hostname 2>&1 1>/dev/null
41184    if test ! $? = 0; then
41185       hostname="localhost"
41186    fi
41187    DISTNAME=suse
41188    DISTVER=5.x
41189    TAPEDRIVE="/dev/nst0"
41190    PSCMD="ps -e -o pid,command"
41191    PFILES="${PFILES} \
41192        platforms/suse/Makefile \
41193        platforms/suse/bacula-fd \
41194        platforms/suse/bacula-sd \
41195        platforms/suse/bacula-dir"
41196   ;;
41197 unknown)
41198    DISTVER=unknown
41199    TAPEDRIVE="/dev/nst0"
41200   ;;
41201 *)
41202   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41203   ;;
41204 esac
41205
41206
41207
41208 LIBS="$PTHREAD_LIB $LIBS"
41209
41210 cat >>confdefs.h <<_ACEOF
41211 #define lld "$lld"
41212 _ACEOF
41213
41214 cat >>confdefs.h <<_ACEOF
41215 #define llu "$llu"
41216 _ACEOF
41217
41218
41219
41220
41221
41222
41223
41224
41225 MCOMMON=./autoconf/Make.common
41226
41227
41228 if test "x${subsysdir}" = "x${sbindir}" ; then
41229    echo " "
41230    echo " "
41231    echo "You have set both --sbindir and --with-subsys-dir"
41232    echo "  equal to: ${subsysdir} "
41233    echo "This is not permitted. Please reconfigure."
41234    echo " "
41235    echo "Aborting configuration ..."
41236    echo " "
41237    echo " "
41238    exit 1
41239 fi
41240
41241 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 po/Makefile.in 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"
41242
41243 ac_config_commands="$ac_config_commands default"
41244
41245 cat >confcache <<\_ACEOF
41246 # This file is a shell script that caches the results of configure
41247 # tests run on this system so they can be shared between configure
41248 # scripts and configure runs, see configure's option --config-cache.
41249 # It is not useful on other systems.  If it contains results you don't
41250 # want to keep, you may remove or edit it.
41251 #
41252 # config.status only pays attention to the cache file if you give it
41253 # the --recheck option to rerun configure.
41254 #
41255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41257 # following values.
41258
41259 _ACEOF
41260
41261 # The following way of writing the cache mishandles newlines in values,
41262 # but we know of no workaround that is simple, portable, and efficient.
41263 # So, we kill variables containing newlines.
41264 # Ultrix sh set writes to stderr and can't be redirected directly,
41265 # and sets the high bit in the cache file unless we assign to the vars.
41266 (
41267   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41268     eval ac_val=\$$ac_var
41269     case $ac_val in #(
41270     *${as_nl}*)
41271       case $ac_var in #(
41272       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41273 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41274       esac
41275       case $ac_var in #(
41276       _ | IFS | as_nl) ;; #(
41277       *) $as_unset $ac_var ;;
41278       esac ;;
41279     esac
41280   done
41281
41282   (set) 2>&1 |
41283     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41284     *${as_nl}ac_space=\ *)
41285       # `set' does not quote correctly, so add quotes (double-quote
41286       # substitution turns \\\\ into \\, and sed turns \\ into \).
41287       sed -n \
41288         "s/'/'\\\\''/g;
41289           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41290       ;; #(
41291     *)
41292       # `set' quotes correctly as required by POSIX, so do not add quotes.
41293       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41294       ;;
41295     esac |
41296     sort
41297 ) |
41298   sed '
41299      /^ac_cv_env_/b end
41300      t clear
41301      :clear
41302      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41303      t end
41304      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41305      :end' >>confcache
41306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41307   if test -w "$cache_file"; then
41308     test "x$cache_file" != "x/dev/null" &&
41309       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41310 echo "$as_me: updating cache $cache_file" >&6;}
41311     cat confcache >$cache_file
41312   else
41313     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41314 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41315   fi
41316 fi
41317 rm -f confcache
41318
41319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41320 # Let make expand exec_prefix.
41321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41322
41323 DEFS=-DHAVE_CONFIG_H
41324
41325 ac_libobjs=
41326 ac_ltlibobjs=
41327 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41328   # 1. Remove the extension, and $U if already installed.
41329   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41330   ac_i=`echo "$ac_i" | sed "$ac_script"`
41331   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41332   #    will be set to the directory where LIBOBJS objects are built.
41333   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41334   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41335 done
41336 LIBOBJS=$ac_libobjs
41337
41338 LTLIBOBJS=$ac_ltlibobjs
41339
41340
41341
41342 : ${CONFIG_STATUS=./config.status}
41343 ac_clean_files_save=$ac_clean_files
41344 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41345 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41346 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41347 cat >$CONFIG_STATUS <<_ACEOF
41348 #! $SHELL
41349 # Generated by $as_me.
41350 # Run this file to recreate the current configuration.
41351 # Compiler output produced by configure, useful for debugging
41352 # configure, is in config.log if it exists.
41353
41354 debug=false
41355 ac_cs_recheck=false
41356 ac_cs_silent=false
41357 SHELL=\${CONFIG_SHELL-$SHELL}
41358 _ACEOF
41359
41360 cat >>$CONFIG_STATUS <<\_ACEOF
41361 ## --------------------- ##
41362 ## M4sh Initialization.  ##
41363 ## --------------------- ##
41364
41365 # Be more Bourne compatible
41366 DUALCASE=1; export DUALCASE # for MKS sh
41367 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41368   emulate sh
41369   NULLCMD=:
41370   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41371   # is contrary to our usage.  Disable this feature.
41372   alias -g '${1+"$@"}'='"$@"'
41373   setopt NO_GLOB_SUBST
41374 else
41375   case `(set -o) 2>/dev/null` in
41376   *posix*) set -o posix ;;
41377 esac
41378
41379 fi
41380
41381
41382
41383
41384 # PATH needs CR
41385 # Avoid depending upon Character Ranges.
41386 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41387 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41388 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41389 as_cr_digits='0123456789'
41390 as_cr_alnum=$as_cr_Letters$as_cr_digits
41391
41392 # The user is always right.
41393 if test "${PATH_SEPARATOR+set}" != set; then
41394   echo "#! /bin/sh" >conf$$.sh
41395   echo  "exit 0"   >>conf$$.sh
41396   chmod +x conf$$.sh
41397   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41398     PATH_SEPARATOR=';'
41399   else
41400     PATH_SEPARATOR=:
41401   fi
41402   rm -f conf$$.sh
41403 fi
41404
41405 # Support unset when possible.
41406 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41407   as_unset=unset
41408 else
41409   as_unset=false
41410 fi
41411
41412
41413 # IFS
41414 # We need space, tab and new line, in precisely that order.  Quoting is
41415 # there to prevent editors from complaining about space-tab.
41416 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41417 # splitting by setting IFS to empty value.)
41418 as_nl='
41419 '
41420 IFS=" ""        $as_nl"
41421
41422 # Find who we are.  Look in the path if we contain no directory separator.
41423 case $0 in
41424   *[\\/]* ) as_myself=$0 ;;
41425   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41426 for as_dir in $PATH
41427 do
41428   IFS=$as_save_IFS
41429   test -z "$as_dir" && as_dir=.
41430   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41431 done
41432 IFS=$as_save_IFS
41433
41434      ;;
41435 esac
41436 # We did not find ourselves, most probably we were run as `sh COMMAND'
41437 # in which case we are not to be found in the path.
41438 if test "x$as_myself" = x; then
41439   as_myself=$0
41440 fi
41441 if test ! -f "$as_myself"; then
41442   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41443   { (exit 1); exit 1; }
41444 fi
41445
41446 # Work around bugs in pre-3.0 UWIN ksh.
41447 for as_var in ENV MAIL MAILPATH
41448 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41449 done
41450 PS1='$ '
41451 PS2='> '
41452 PS4='+ '
41453
41454 # NLS nuisances.
41455 for as_var in \
41456   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41457   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41458   LC_TELEPHONE LC_TIME
41459 do
41460   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41461     eval $as_var=C; export $as_var
41462   else
41463     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41464   fi
41465 done
41466
41467 # Required to use basename.
41468 if expr a : '\(a\)' >/dev/null 2>&1 &&
41469    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41470   as_expr=expr
41471 else
41472   as_expr=false
41473 fi
41474
41475 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41476   as_basename=basename
41477 else
41478   as_basename=false
41479 fi
41480
41481
41482 # Name of the executable.
41483 as_me=`$as_basename -- "$0" ||
41484 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41485          X"$0" : 'X\(//\)$' \| \
41486          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41487 echo X/"$0" |
41488     sed '/^.*\/\([^/][^/]*\)\/*$/{
41489             s//\1/
41490             q
41491           }
41492           /^X\/\(\/\/\)$/{
41493             s//\1/
41494             q
41495           }
41496           /^X\/\(\/\).*/{
41497             s//\1/
41498             q
41499           }
41500           s/.*/./; q'`
41501
41502 # CDPATH.
41503 $as_unset CDPATH
41504
41505
41506
41507   as_lineno_1=$LINENO
41508   as_lineno_2=$LINENO
41509   test "x$as_lineno_1" != "x$as_lineno_2" &&
41510   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41511
41512   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41513   # uniformly replaced by the line number.  The first 'sed' inserts a
41514   # line-number line after each line using $LINENO; the second 'sed'
41515   # does the real work.  The second script uses 'N' to pair each
41516   # line-number line with the line containing $LINENO, and appends
41517   # trailing '-' during substitution so that $LINENO is not a special
41518   # case at line end.
41519   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41520   # scripts with optimization help from Paolo Bonzini.  Blame Lee
41521   # E. McMahon (1931-1989) for sed's syntax.  :-)
41522   sed -n '
41523     p
41524     /[$]LINENO/=
41525   ' <$as_myself |
41526     sed '
41527       s/[$]LINENO.*/&-/
41528       t lineno
41529       b
41530       :lineno
41531       N
41532       :loop
41533       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41534       t loop
41535       s/-\n.*//
41536     ' >$as_me.lineno &&
41537   chmod +x "$as_me.lineno" ||
41538     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41539    { (exit 1); exit 1; }; }
41540
41541   # Don't try to exec as it changes $[0], causing all sort of problems
41542   # (the dirname of $[0] is not the place where we might find the
41543   # original and so on.  Autoconf is especially sensitive to this).
41544   . "./$as_me.lineno"
41545   # Exit status is that of the last command.
41546   exit
41547 }
41548
41549
41550 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41551   as_dirname=dirname
41552 else
41553   as_dirname=false
41554 fi
41555
41556 ECHO_C= ECHO_N= ECHO_T=
41557 case `echo -n x` in
41558 -n*)
41559   case `echo 'x\c'` in
41560   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41561   *)   ECHO_C='\c';;
41562   esac;;
41563 *)
41564   ECHO_N='-n';;
41565 esac
41566
41567 if expr a : '\(a\)' >/dev/null 2>&1 &&
41568    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41569   as_expr=expr
41570 else
41571   as_expr=false
41572 fi
41573
41574 rm -f conf$$ conf$$.exe conf$$.file
41575 if test -d conf$$.dir; then
41576   rm -f conf$$.dir/conf$$.file
41577 else
41578   rm -f conf$$.dir
41579   mkdir conf$$.dir
41580 fi
41581 echo >conf$$.file
41582 if ln -s conf$$.file conf$$ 2>/dev/null; then
41583   as_ln_s='ln -s'
41584   # ... but there are two gotchas:
41585   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41586   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41587   # In both cases, we have to default to `cp -p'.
41588   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41589     as_ln_s='cp -p'
41590 elif ln conf$$.file conf$$ 2>/dev/null; then
41591   as_ln_s=ln
41592 else
41593   as_ln_s='cp -p'
41594 fi
41595 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41596 rmdir conf$$.dir 2>/dev/null
41597
41598 if mkdir -p . 2>/dev/null; then
41599   as_mkdir_p=:
41600 else
41601   test -d ./-p && rmdir ./-p
41602   as_mkdir_p=false
41603 fi
41604
41605 if test -x / >/dev/null 2>&1; then
41606   as_test_x='test -x'
41607 else
41608   if ls -dL / >/dev/null 2>&1; then
41609     as_ls_L_option=L
41610   else
41611     as_ls_L_option=
41612   fi
41613   as_test_x='
41614     eval sh -c '\''
41615       if test -d "$1"; then
41616         test -d "$1/.";
41617       else
41618         case $1 in
41619         -*)set "./$1";;
41620         esac;
41621         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41622         ???[sx]*):;;*)false;;esac;fi
41623     '\'' sh
41624   '
41625 fi
41626 as_executable_p=$as_test_x
41627
41628 # Sed expression to map a string onto a valid CPP name.
41629 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41630
41631 # Sed expression to map a string onto a valid variable name.
41632 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41633
41634
41635 exec 6>&1
41636
41637 # Save the log message, to keep $[0] and so on meaningful, and to
41638 # report actual input values of CONFIG_FILES etc. instead of their
41639 # values after options handling.
41640 ac_log="
41641 This file was extended by $as_me, which was
41642 generated by GNU Autoconf 2.61.  Invocation command line was
41643
41644   CONFIG_FILES    = $CONFIG_FILES
41645   CONFIG_HEADERS  = $CONFIG_HEADERS
41646   CONFIG_LINKS    = $CONFIG_LINKS
41647   CONFIG_COMMANDS = $CONFIG_COMMANDS
41648   $ $0 $@
41649
41650 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41651 "
41652
41653 _ACEOF
41654
41655 cat >>$CONFIG_STATUS <<_ACEOF
41656 # Files that config.status was made for.
41657 config_files="$ac_config_files"
41658 config_headers="$ac_config_headers"
41659 config_commands="$ac_config_commands"
41660
41661 _ACEOF
41662
41663 cat >>$CONFIG_STATUS <<\_ACEOF
41664 ac_cs_usage="\
41665 \`$as_me' instantiates files from templates according to the
41666 current configuration.
41667
41668 Usage: $0 [OPTIONS] [FILE]...
41669
41670   -h, --help       print this help, then exit
41671   -V, --version    print version number and configuration settings, then exit
41672   -q, --quiet      do not print progress messages
41673   -d, --debug      don't remove temporary files
41674       --recheck    update $as_me by reconfiguring in the same conditions
41675   --file=FILE[:TEMPLATE]
41676                    instantiate the configuration file FILE
41677   --header=FILE[:TEMPLATE]
41678                    instantiate the configuration header FILE
41679
41680 Configuration files:
41681 $config_files
41682
41683 Configuration headers:
41684 $config_headers
41685
41686 Configuration commands:
41687 $config_commands
41688
41689 Report bugs to <bug-autoconf@gnu.org>."
41690
41691 _ACEOF
41692 cat >>$CONFIG_STATUS <<_ACEOF
41693 ac_cs_version="\\
41694 config.status
41695 configured by $0, generated by GNU Autoconf 2.61,
41696   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41697
41698 Copyright (C) 2006 Free Software Foundation, Inc.
41699 This config.status script is free software; the Free Software Foundation
41700 gives unlimited permission to copy, distribute and modify it."
41701
41702 ac_pwd='$ac_pwd'
41703 srcdir='$srcdir'
41704 INSTALL='$INSTALL'
41705 _ACEOF
41706
41707 cat >>$CONFIG_STATUS <<\_ACEOF
41708 # If no file are specified by the user, then we need to provide default
41709 # value.  By we need to know if files were specified by the user.
41710 ac_need_defaults=:
41711 while test $# != 0
41712 do
41713   case $1 in
41714   --*=*)
41715     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41716     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41717     ac_shift=:
41718     ;;
41719   *)
41720     ac_option=$1
41721     ac_optarg=$2
41722     ac_shift=shift
41723     ;;
41724   esac
41725
41726   case $ac_option in
41727   # Handling of the options.
41728   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41729     ac_cs_recheck=: ;;
41730   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41731     echo "$ac_cs_version"; exit ;;
41732   --debug | --debu | --deb | --de | --d | -d )
41733     debug=: ;;
41734   --file | --fil | --fi | --f )
41735     $ac_shift
41736     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41737     ac_need_defaults=false;;
41738   --header | --heade | --head | --hea )
41739     $ac_shift
41740     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41741     ac_need_defaults=false;;
41742   --he | --h)
41743     # Conflict between --help and --header
41744     { echo "$as_me: error: ambiguous option: $1
41745 Try \`$0 --help' for more information." >&2
41746    { (exit 1); exit 1; }; };;
41747   --help | --hel | -h )
41748     echo "$ac_cs_usage"; exit ;;
41749   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41750   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41751     ac_cs_silent=: ;;
41752
41753   # This is an error.
41754   -*) { echo "$as_me: error: unrecognized option: $1
41755 Try \`$0 --help' for more information." >&2
41756    { (exit 1); exit 1; }; } ;;
41757
41758   *) ac_config_targets="$ac_config_targets $1"
41759      ac_need_defaults=false ;;
41760
41761   esac
41762   shift
41763 done
41764
41765 ac_configure_extra_args=
41766
41767 if $ac_cs_silent; then
41768   exec 6>/dev/null
41769   ac_configure_extra_args="$ac_configure_extra_args --silent"
41770 fi
41771
41772 _ACEOF
41773 cat >>$CONFIG_STATUS <<_ACEOF
41774 if \$ac_cs_recheck; then
41775   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41776   CONFIG_SHELL=$SHELL
41777   export CONFIG_SHELL
41778   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41779 fi
41780
41781 _ACEOF
41782 cat >>$CONFIG_STATUS <<\_ACEOF
41783 exec 5>>config.log
41784 {
41785   echo
41786   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41787 ## Running $as_me. ##
41788 _ASBOX
41789   echo "$ac_log"
41790 } >&5
41791
41792 _ACEOF
41793 cat >>$CONFIG_STATUS <<_ACEOF
41794 #
41795 # INIT-COMMANDS
41796 #
41797
41798
41799 # The HP-UX ksh and POSIX shell print the target directory to stdout
41800 # if CDPATH is set.
41801 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41802
41803 sed_quote_subst='$sed_quote_subst'
41804 double_quote_subst='$double_quote_subst'
41805 delay_variable_subst='$delay_variable_subst'
41806 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41807 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41808 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41809 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41810 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41811 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41812 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41813 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41814 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41815 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41816 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41817 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41818 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41819 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41820 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41821 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41822 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41823 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41824 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41825 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41826 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41827 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41828 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41829 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41831 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41832 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41833 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41834 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41835 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41836 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41837 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41838 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41839 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41840 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41841 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41842 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41843 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41844 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41845 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41846 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41847 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41848 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41849 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41850 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"`'
41851 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"`'
41852 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41853 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41854 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41855 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41856 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41857 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41858 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41859 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41860 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41861 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41862 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41863 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41864 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41865 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41866 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41867 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41868 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41869 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41870 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41871 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41872 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41873 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41874 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41875 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41876 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41877 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41878 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41879 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41880 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41881 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41882 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41883 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41884 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41885 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41886 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41887 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41888 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41889 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41890 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41891 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41892 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41893 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41894 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41895 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41896 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41897 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41898 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41899 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41900 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41901 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41902 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41903 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41904 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41905 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41906 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41907 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41908 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41909 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41910 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41911 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41912 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41913 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41914 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41915 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41916 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41917 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41918 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41919 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41920 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41921 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41922 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41923 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41924 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41925 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41926 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41927 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41928 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41929 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41930 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41959 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41961 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41962 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41963 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41964 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41965 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41966 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41967 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41968 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41969 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41970 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41971 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41972 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41973 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41974 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41975 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41976 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41977
41978 LTCC='$LTCC'
41979 LTCFLAGS='$LTCFLAGS'
41980 compiler='$compiler_DEFAULT'
41981
41982 # Quote evaled strings.
41983 for var in SED \
41984 GREP \
41985 EGREP \
41986 FGREP \
41987 LD \
41988 NM \
41989 LN_S \
41990 lt_SP2NL \
41991 lt_NL2SP \
41992 reload_flag \
41993 OBJDUMP \
41994 deplibs_check_method \
41995 file_magic_cmd \
41996 AR \
41997 AR_FLAGS \
41998 STRIP \
41999 RANLIB \
42000 CC \
42001 CFLAGS \
42002 compiler \
42003 lt_cv_sys_global_symbol_pipe \
42004 lt_cv_sys_global_symbol_to_cdecl \
42005 lt_cv_sys_global_symbol_to_c_name_address \
42006 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42007 SHELL \
42008 ECHO \
42009 lt_prog_compiler_no_builtin_flag \
42010 lt_prog_compiler_wl \
42011 lt_prog_compiler_pic \
42012 lt_prog_compiler_static \
42013 lt_cv_prog_compiler_c_o \
42014 need_locks \
42015 DSYMUTIL \
42016 NMEDIT \
42017 LIPO \
42018 OTOOL \
42019 OTOOL64 \
42020 shrext_cmds \
42021 export_dynamic_flag_spec \
42022 whole_archive_flag_spec \
42023 compiler_needs_object \
42024 with_gnu_ld \
42025 allow_undefined_flag \
42026 no_undefined_flag \
42027 hardcode_libdir_flag_spec \
42028 hardcode_libdir_flag_spec_ld \
42029 hardcode_libdir_separator \
42030 fix_srcfile_path \
42031 exclude_expsyms \
42032 include_expsyms \
42033 file_list_spec \
42034 variables_saved_for_relink \
42035 libname_spec \
42036 library_names_spec \
42037 soname_spec \
42038 finish_eval \
42039 old_striplib \
42040 striplib \
42041 compiler_lib_search_dirs \
42042 predep_objects \
42043 postdep_objects \
42044 predeps \
42045 postdeps \
42046 compiler_lib_search_path \
42047 LD_CXX \
42048 compiler_CXX \
42049 lt_prog_compiler_no_builtin_flag_CXX \
42050 lt_prog_compiler_wl_CXX \
42051 lt_prog_compiler_pic_CXX \
42052 lt_prog_compiler_static_CXX \
42053 lt_cv_prog_compiler_c_o_CXX \
42054 export_dynamic_flag_spec_CXX \
42055 whole_archive_flag_spec_CXX \
42056 compiler_needs_object_CXX \
42057 with_gnu_ld_CXX \
42058 allow_undefined_flag_CXX \
42059 no_undefined_flag_CXX \
42060 hardcode_libdir_flag_spec_CXX \
42061 hardcode_libdir_flag_spec_ld_CXX \
42062 hardcode_libdir_separator_CXX \
42063 fix_srcfile_path_CXX \
42064 exclude_expsyms_CXX \
42065 include_expsyms_CXX \
42066 file_list_spec_CXX \
42067 compiler_lib_search_dirs_CXX \
42068 predep_objects_CXX \
42069 postdep_objects_CXX \
42070 predeps_CXX \
42071 postdeps_CXX \
42072 compiler_lib_search_path_CXX; do
42073     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42074     *[\\\\\\\`\\"\\\$]*)
42075       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42076       ;;
42077     *)
42078       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42079       ;;
42080     esac
42081 done
42082
42083 # Double-quote double-evaled strings.
42084 for var in reload_cmds \
42085 old_postinstall_cmds \
42086 old_postuninstall_cmds \
42087 old_archive_cmds \
42088 extract_expsyms_cmds \
42089 old_archive_from_new_cmds \
42090 old_archive_from_expsyms_cmds \
42091 archive_cmds \
42092 archive_expsym_cmds \
42093 module_cmds \
42094 module_expsym_cmds \
42095 export_symbols_cmds \
42096 prelink_cmds \
42097 postinstall_cmds \
42098 postuninstall_cmds \
42099 finish_cmds \
42100 sys_lib_search_path_spec \
42101 sys_lib_dlsearch_path_spec \
42102 old_archive_cmds_CXX \
42103 old_archive_from_new_cmds_CXX \
42104 old_archive_from_expsyms_cmds_CXX \
42105 archive_cmds_CXX \
42106 archive_expsym_cmds_CXX \
42107 module_cmds_CXX \
42108 module_expsym_cmds_CXX \
42109 export_symbols_cmds_CXX \
42110 prelink_cmds_CXX; do
42111     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42112     *[\\\\\\\`\\"\\\$]*)
42113       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42114       ;;
42115     *)
42116       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42117       ;;
42118     esac
42119 done
42120
42121 # Fix-up fallback echo if it was mangled by the above quoting rules.
42122 case \$lt_ECHO in
42123 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42124   ;;
42125 esac
42126
42127 ac_aux_dir='$ac_aux_dir'
42128 xsi_shell='$xsi_shell'
42129 lt_shell_append='$lt_shell_append'
42130
42131 # See if we are running on zsh, and set the options which allow our
42132 # commands through without removal of \ escapes INIT.
42133 if test -n "\${ZSH_VERSION+set}" ; then
42134    setopt NO_GLOB_SUBST
42135 fi
42136
42137
42138     PACKAGE='$PACKAGE'
42139     VERSION='$VERSION'
42140     TIMESTAMP='$TIMESTAMP'
42141     RM='$RM'
42142     ofile='$ofile'
42143
42144
42145
42146
42147
42148 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42149     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42150     # from automake.
42151     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42152     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42153     LINGUAS="${LINGUAS-%UNSET%}"
42154
42155
42156 _ACEOF
42157
42158 cat >>$CONFIG_STATUS <<\_ACEOF
42159
42160 # Handling of arguments.
42161 for ac_config_target in $ac_config_targets
42162 do
42163   case $ac_config_target in
42164     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42165     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42166     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42167     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42168     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42169     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42170     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42171     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42172     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42173     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42174     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42175     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42176     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42177     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42178     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42179     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42180     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42181     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42182     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42183     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42184     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42185     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42186     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42187     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42188     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42189     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42190     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42191     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42192     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42193     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42194     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42195     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42196     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42197     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42198     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42199     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42200     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42201     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42202     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42203     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42204     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42205     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42206     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42207     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42208     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42209     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42210     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42211     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42212     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42213     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42214     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42215     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42216     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42217     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42218     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42219     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42220     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42221     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42222     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42223     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42224     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42225     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42226     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42227     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42228     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42229     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42230     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42231     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42232     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42233     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42234     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42235     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42236     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42237     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42238     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42239     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42240     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42241     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42242     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42243     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42244     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42245     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42246     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42247     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42248     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42249     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42250     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42251     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42252     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42253     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42254     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42255     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42256     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42257     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42258     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42259     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42260     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42261     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42262     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42263     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42264     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42265     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42266     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42267     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42268     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42269     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42270     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42271     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42272     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42273     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42274     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42275     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42276     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42277
42278   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42279 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42280    { (exit 1); exit 1; }; };;
42281   esac
42282 done
42283
42284
42285 # If the user did not use the arguments to specify the items to instantiate,
42286 # then the envvar interface is used.  Set only those that are not.
42287 # We use the long form for the default assignment because of an extremely
42288 # bizarre bug on SunOS 4.1.3.
42289 if $ac_need_defaults; then
42290   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42291   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42292   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42293 fi
42294
42295 # Have a temporary directory for convenience.  Make it in the build tree
42296 # simply because there is no reason against having it here, and in addition,
42297 # creating and moving files from /tmp can sometimes cause problems.
42298 # Hook for its removal unless debugging.
42299 # Note that there is a small window in which the directory will not be cleaned:
42300 # after its creation but before its name has been assigned to `$tmp'.
42301 $debug ||
42302 {
42303   tmp=
42304   trap 'exit_status=$?
42305   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42306 ' 0
42307   trap '{ (exit 1); exit 1; }' 1 2 13 15
42308 }
42309 # Create a (secure) tmp directory for tmp files.
42310
42311 {
42312   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42313   test -n "$tmp" && test -d "$tmp"
42314 }  ||
42315 {
42316   tmp=./conf$$-$RANDOM
42317   (umask 077 && mkdir "$tmp")
42318 } ||
42319 {
42320    echo "$me: cannot create a temporary directory in ." >&2
42321    { (exit 1); exit 1; }
42322 }
42323
42324 #
42325 # Set up the sed scripts for CONFIG_FILES section.
42326 #
42327
42328 # No need to generate the scripts if there are no CONFIG_FILES.
42329 # This happens for instance when ./config.status config.h
42330 if test -n "$CONFIG_FILES"; then
42331
42332 _ACEOF
42333
42334 # Create sed commands to just substitute file output variables.
42335
42336 # Remaining file output variables are in a fragment that also has non-file
42337 # output varibles.
42338
42339
42340
42341 ac_delim='%!_!# '
42342 for ac_last_try in false false false false false :; do
42343   cat >conf$$subs.sed <<_ACEOF
42344 SHELL!$SHELL$ac_delim
42345 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42346 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42347 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42348 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42349 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42350 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42351 exec_prefix!$exec_prefix$ac_delim
42352 prefix!$prefix$ac_delim
42353 program_transform_name!$program_transform_name$ac_delim
42354 bindir!$bindir$ac_delim
42355 sbindir!$sbindir$ac_delim
42356 libexecdir!$libexecdir$ac_delim
42357 datarootdir!$datarootdir$ac_delim
42358 datadir!$datadir$ac_delim
42359 sysconfdir!$sysconfdir$ac_delim
42360 sharedstatedir!$sharedstatedir$ac_delim
42361 localstatedir!$localstatedir$ac_delim
42362 includedir!$includedir$ac_delim
42363 oldincludedir!$oldincludedir$ac_delim
42364 docdir!$docdir$ac_delim
42365 infodir!$infodir$ac_delim
42366 htmldir!$htmldir$ac_delim
42367 dvidir!$dvidir$ac_delim
42368 pdfdir!$pdfdir$ac_delim
42369 psdir!$psdir$ac_delim
42370 libdir!$libdir$ac_delim
42371 localedir!$localedir$ac_delim
42372 mandir!$mandir$ac_delim
42373 DEFS!$DEFS$ac_delim
42374 ECHO_C!$ECHO_C$ac_delim
42375 ECHO_N!$ECHO_N$ac_delim
42376 ECHO_T!$ECHO_T$ac_delim
42377 LIBS!$LIBS$ac_delim
42378 build_alias!$build_alias$ac_delim
42379 host_alias!$host_alias$ac_delim
42380 target_alias!$target_alias$ac_delim
42381 BUILD_DIR!$BUILD_DIR$ac_delim
42382 TOP_DIR!$TOP_DIR$ac_delim
42383 TRUEPRG!$TRUEPRG$ac_delim
42384 FALSEPRG!$FALSEPRG$ac_delim
42385 VERSION!$VERSION$ac_delim
42386 DATE!$DATE$ac_delim
42387 LSMDATE!$LSMDATE$ac_delim
42388 BACULA!$BACULA$ac_delim
42389 post_host!$post_host$ac_delim
42390 CC!$CC$ac_delim
42391 CFLAGS!$CFLAGS$ac_delim
42392 LDFLAGS!$LDFLAGS$ac_delim
42393 CPPFLAGS!$CPPFLAGS$ac_delim
42394 ac_ct_CC!$ac_ct_CC$ac_delim
42395 EXEEXT!$EXEEXT$ac_delim
42396 OBJEXT!$OBJEXT$ac_delim
42397 CXX!$CXX$ac_delim
42398 CXXFLAGS!$CXXFLAGS$ac_delim
42399 ac_ct_CXX!$ac_ct_CXX$ac_delim
42400 CPP!$CPP$ac_delim
42401 GREP!$GREP$ac_delim
42402 EGREP!$EGREP$ac_delim
42403 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42404 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42405 INSTALL_DATA!$INSTALL_DATA$ac_delim
42406 MV!$MV$ac_delim
42407 REMOVE!$REMOVE$ac_delim
42408 CP!$CP$ac_delim
42409 SED!$SED$ac_delim
42410 ECHO!$ECHO$ac_delim
42411 CMP!$CMP$ac_delim
42412 TBL!$TBL$ac_delim
42413 AR!$AR$ac_delim
42414 OPENSSL!$OPENSSL$ac_delim
42415 MTX!$MTX$ac_delim
42416 DD!$DD$ac_delim
42417 MKISOFS!$MKISOFS$ac_delim
42418 PYTHON!$PYTHON$ac_delim
42419 GROWISOFS!$GROWISOFS$ac_delim
42420 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42421 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42422 PKGCONFIG!$PKGCONFIG$ac_delim
42423 QMAKE!$QMAKE$ac_delim
42424 QMAKEQT4!$QMAKEQT4$ac_delim
42425 WXCONFIG!$WXCONFIG$ac_delim
42426 WXFLAGS!$WXFLAGS$ac_delim
42427 CDRECORD!$CDRECORD$ac_delim
42428 PIDOF!$PIDOF$ac_delim
42429 AWK!$AWK$ac_delim
42430 ARFLAGS!$ARFLAGS$ac_delim
42431 MAKE_SHELL!$MAKE_SHELL$ac_delim
42432 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42433 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42434 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42435 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42436 LIBTOOL!$LIBTOOL$ac_delim
42437 build!$build$ac_delim
42438 _ACEOF
42439
42440   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42441     break
42442   elif $ac_last_try; then
42443     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42444 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42445    { (exit 1); exit 1; }; }
42446   else
42447     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42448   fi
42449 done
42450
42451 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42452 if test -n "$ac_eof"; then
42453   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42454   ac_eof=`expr $ac_eof + 1`
42455 fi
42456
42457 cat >>$CONFIG_STATUS <<_ACEOF
42458 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42460 /^[      ]*@MCOMMON@[    ]*$/{
42461 r $MCOMMON
42462 d
42463 }
42464 _ACEOF
42465 sed '
42466 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42467 s/^/s,@/; s/!/@,|#_!!_#|/
42468 :n
42469 t n
42470 s/'"$ac_delim"'$/,g/; t
42471 s/$/\\/; p
42472 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42473 ' >>$CONFIG_STATUS <conf$$subs.sed
42474 rm -f conf$$subs.sed
42475 cat >>$CONFIG_STATUS <<_ACEOF
42476 CEOF$ac_eof
42477 _ACEOF
42478
42479
42480 ac_delim='%!_!# '
42481 for ac_last_try in false false false false false :; do
42482   cat >conf$$subs.sed <<_ACEOF
42483 build_cpu!$build_cpu$ac_delim
42484 build_vendor!$build_vendor$ac_delim
42485 build_os!$build_os$ac_delim
42486 host!$host$ac_delim
42487 host_cpu!$host_cpu$ac_delim
42488 host_vendor!$host_vendor$ac_delim
42489 host_os!$host_os$ac_delim
42490 FGREP!$FGREP$ac_delim
42491 LD!$LD$ac_delim
42492 DUMPBIN!$DUMPBIN$ac_delim
42493 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42494 NM!$NM$ac_delim
42495 LN_S!$LN_S$ac_delim
42496 OBJDUMP!$OBJDUMP$ac_delim
42497 STRIP!$STRIP$ac_delim
42498 RANLIB!$RANLIB$ac_delim
42499 lt_ECHO!$lt_ECHO$ac_delim
42500 DSYMUTIL!$DSYMUTIL$ac_delim
42501 NMEDIT!$NMEDIT$ac_delim
42502 LIPO!$LIPO$ac_delim
42503 OTOOL!$OTOOL$ac_delim
42504 OTOOL64!$OTOOL64$ac_delim
42505 CXXCPP!$CXXCPP$ac_delim
42506 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42507 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42508 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42509 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42510 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42511 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42512 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42513 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42514 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42515 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42516 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42517 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42518 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42519 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42520 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42521 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42522 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42523 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42524 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42525 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42526 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42527 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42528 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42529 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42530 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42531 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42532 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42533 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42534 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42535 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42536 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42537 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42538 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42539 SET_MAKE!$SET_MAKE$ac_delim
42540 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42541 USE_NLS!$USE_NLS$ac_delim
42542 MSGFMT!$MSGFMT$ac_delim
42543 GMSGFMT!$GMSGFMT$ac_delim
42544 XGETTEXT!$XGETTEXT$ac_delim
42545 MSGMERGE!$MSGMERGE$ac_delim
42546 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42547 LIBICONV!$LIBICONV$ac_delim
42548 LTLIBICONV!$LTLIBICONV$ac_delim
42549 INTLLIBS!$INTLLIBS$ac_delim
42550 LIBINTL!$LIBINTL$ac_delim
42551 LTLIBINTL!$LTLIBINTL$ac_delim
42552 POSUB!$POSUB$ac_delim
42553 GLIBC2!$GLIBC2$ac_delim
42554 ALLOCA!$ALLOCA$ac_delim
42555 GLIBC21!$GLIBC21$ac_delim
42556 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42557 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42558 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42559 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42560 INTLBISON!$INTLBISON$ac_delim
42561 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42562 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42563 CATOBJEXT!$CATOBJEXT$ac_delim
42564 DATADIRNAME!$DATADIRNAME$ac_delim
42565 INSTOBJEXT!$INSTOBJEXT$ac_delim
42566 GENCAT!$GENCAT$ac_delim
42567 INTLOBJS!$INTLOBJS$ac_delim
42568 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42569 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42570 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42571 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42572 GNOME_LIBS!$GNOME_LIBS$ac_delim
42573 GNOME_DIR!$GNOME_DIR$ac_delim
42574 BAT_DIR!$BAT_DIR$ac_delim
42575 QWT_INC!$QWT_INC$ac_delim
42576 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42577 QWT_LIB!$QWT_LIB$ac_delim
42578 QWT!$QWT$ac_delim
42579 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42580 _ACEOF
42581
42582   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42583     break
42584   elif $ac_last_try; then
42585     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42587    { (exit 1); exit 1; }; }
42588   else
42589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42590   fi
42591 done
42592
42593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42594 if test -n "$ac_eof"; then
42595   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42596   ac_eof=`expr $ac_eof + 1`
42597 fi
42598
42599 cat >>$CONFIG_STATUS <<_ACEOF
42600 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42602 _ACEOF
42603 sed '
42604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42605 s/^/s,@/; s/!/@,|#_!!_#|/
42606 :n
42607 t n
42608 s/'"$ac_delim"'$/,g/; t
42609 s/$/\\/; p
42610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42611 ' >>$CONFIG_STATUS <conf$$subs.sed
42612 rm -f conf$$subs.sed
42613 cat >>$CONFIG_STATUS <<_ACEOF
42614 CEOF$ac_eof
42615 _ACEOF
42616
42617
42618 ac_delim='%!_!# '
42619 for ac_last_try in false false false false false :; do
42620   cat >conf$$subs.sed <<_ACEOF
42621 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42622 WX_DIR!$WX_DIR$ac_delim
42623 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42624 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42625 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42626 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42627 STATIC_FD!$STATIC_FD$ac_delim
42628 STATIC_SD!$STATIC_SD$ac_delim
42629 STATIC_DIR!$STATIC_DIR$ac_delim
42630 STATIC_CONS!$STATIC_CONS$ac_delim
42631 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42632 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42633 ALL_DIRS!$ALL_DIRS$ac_delim
42634 DIRD_DIR!$DIRD_DIR$ac_delim
42635 DIR_TOOLS!$DIR_TOOLS$ac_delim
42636 STORED_DIR!$STORED_DIR$ac_delim
42637 CONS_INC!$CONS_INC$ac_delim
42638 CONS_OBJ!$CONS_OBJ$ac_delim
42639 CONS_SRC!$CONS_SRC$ac_delim
42640 CONS_LIBS!$CONS_LIBS$ac_delim
42641 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42642 READLINE_SRC!$READLINE_SRC$ac_delim
42643 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42644 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42645 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42646 OPENSSL_INC!$OPENSSL_INC$ac_delim
42647 working_dir!$working_dir$ac_delim
42648 archivedir!$archivedir$ac_delim
42649 scriptdir!$scriptdir$ac_delim
42650 plugindir!$plugindir$ac_delim
42651 dump_email!$dump_email$ac_delim
42652 job_email!$job_email$ac_delim
42653 smtp_host!$smtp_host$ac_delim
42654 piddir!$piddir$ac_delim
42655 subsysdir!$subsysdir$ac_delim
42656 baseport!$baseport$ac_delim
42657 dir_port!$dir_port$ac_delim
42658 fd_port!$fd_port$ac_delim
42659 sd_port!$sd_port$ac_delim
42660 dir_password!$dir_password$ac_delim
42661 fd_password!$fd_password$ac_delim
42662 sd_password!$sd_password$ac_delim
42663 mon_dir_password!$mon_dir_password$ac_delim
42664 mon_fd_password!$mon_fd_password$ac_delim
42665 mon_sd_password!$mon_sd_password$ac_delim
42666 db_name!$db_name$ac_delim
42667 db_user!$db_user$ac_delim
42668 db_password!$db_password$ac_delim
42669 db_port!$db_port$ac_delim
42670 dir_user!$dir_user$ac_delim
42671 dir_group!$dir_group$ac_delim
42672 sd_user!$sd_user$ac_delim
42673 sd_group!$sd_group$ac_delim
42674 fd_user!$fd_user$ac_delim
42675 fd_group!$fd_group$ac_delim
42676 SBINPERM!$SBINPERM$ac_delim
42677 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42678 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42679 SQL_BINDIR!$SQL_BINDIR$ac_delim
42680 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42681 uncomment_dbi!$uncomment_dbi$ac_delim
42682 DB_PROG!$DB_PROG$ac_delim
42683 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42684 cats!$cats$ac_delim
42685 DB_TYPE!$DB_TYPE$ac_delim
42686 GETCONF!$GETCONF$ac_delim
42687 XMKMF!$XMKMF$ac_delim
42688 X_CFLAGS!$X_CFLAGS$ac_delim
42689 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42690 X_LIBS!$X_LIBS$ac_delim
42691 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42692 LIBOBJS!$LIBOBJS$ac_delim
42693 FDLIBS!$FDLIBS$ac_delim
42694 DEBUG!$DEBUG$ac_delim
42695 DINCLUDE!$DINCLUDE$ac_delim
42696 DLIB!$DLIB$ac_delim
42697 DB_LIBS!$DB_LIBS$ac_delim
42698 WCFLAGS!$WCFLAGS$ac_delim
42699 WLDFLAGS!$WLDFLAGS$ac_delim
42700 WRAPLIBS!$WRAPLIBS$ac_delim
42701 OBJLIST!$OBJLIST$ac_delim
42702 hostname!$hostname$ac_delim
42703 TAPEDRIVE!$TAPEDRIVE$ac_delim
42704 PSCMD!$PSCMD$ac_delim
42705 WIN32!$WIN32$ac_delim
42706 MACOSX!$MACOSX$ac_delim
42707 DISTNAME!$DISTNAME$ac_delim
42708 DISTVER!$DISTVER$ac_delim
42709 LTLIBOBJS!$LTLIBOBJS$ac_delim
42710 _ACEOF
42711
42712   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42713     break
42714   elif $ac_last_try; then
42715     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42716 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42717    { (exit 1); exit 1; }; }
42718   else
42719     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42720   fi
42721 done
42722
42723 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42724 if test -n "$ac_eof"; then
42725   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42726   ac_eof=`expr $ac_eof + 1`
42727 fi
42728
42729 cat >>$CONFIG_STATUS <<_ACEOF
42730 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42732 _ACEOF
42733 sed '
42734 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42735 s/^/s,@/; s/!/@,|#_!!_#|/
42736 :n
42737 t n
42738 s/'"$ac_delim"'$/,g/; t
42739 s/$/\\/; p
42740 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42741 ' >>$CONFIG_STATUS <conf$$subs.sed
42742 rm -f conf$$subs.sed
42743 cat >>$CONFIG_STATUS <<_ACEOF
42744 :end
42745 s/|#_!!_#|//g
42746 CEOF$ac_eof
42747 _ACEOF
42748
42749
42750 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42751 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42752 # trailing colons and then remove the whole line if VPATH becomes empty
42753 # (actually we leave an empty line to preserve line numbers).
42754 if test "x$srcdir" = x.; then
42755   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42756 s/:*\$(srcdir):*/:/
42757 s/:*\${srcdir}:*/:/
42758 s/:*@srcdir@:*/:/
42759 s/^\([^=]*=[     ]*\):*/\1/
42760 s/:*$//
42761 s/^[^=]*=[       ]*$//
42762 }'
42763 fi
42764
42765 cat >>$CONFIG_STATUS <<\_ACEOF
42766 fi # test -n "$CONFIG_FILES"
42767
42768
42769 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
42770 do
42771   case $ac_tag in
42772   :[FHLC]) ac_mode=$ac_tag; continue;;
42773   esac
42774   case $ac_mode$ac_tag in
42775   :[FHL]*:*);;
42776   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42777 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42778    { (exit 1); exit 1; }; };;
42779   :[FH]-) ac_tag=-:-;;
42780   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42781   esac
42782   ac_save_IFS=$IFS
42783   IFS=:
42784   set x $ac_tag
42785   IFS=$ac_save_IFS
42786   shift
42787   ac_file=$1
42788   shift
42789
42790   case $ac_mode in
42791   :L) ac_source=$1;;
42792   :[FH])
42793     ac_file_inputs=
42794     for ac_f
42795     do
42796       case $ac_f in
42797       -) ac_f="$tmp/stdin";;
42798       *) # Look for the file first in the build tree, then in the source tree
42799          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42800          # because $ac_f cannot contain `:'.
42801          test -f "$ac_f" ||
42802            case $ac_f in
42803            [\\/$]*) false;;
42804            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42805            esac ||
42806            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42807 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42808    { (exit 1); exit 1; }; };;
42809       esac
42810       ac_file_inputs="$ac_file_inputs $ac_f"
42811     done
42812
42813     # Let's still pretend it is `configure' which instantiates (i.e., don't
42814     # use $as_me), people would be surprised to read:
42815     #    /* config.h.  Generated by config.status.  */
42816     configure_input="Generated from "`IFS=:
42817           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42818     if test x"$ac_file" != x-; then
42819       configure_input="$ac_file.  $configure_input"
42820       { echo "$as_me:$LINENO: creating $ac_file" >&5
42821 echo "$as_me: creating $ac_file" >&6;}
42822     fi
42823
42824     case $ac_tag in
42825     *:-:* | *:-) cat >"$tmp/stdin";;
42826     esac
42827     ;;
42828   esac
42829
42830   ac_dir=`$as_dirname -- "$ac_file" ||
42831 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42832          X"$ac_file" : 'X\(//\)[^/]' \| \
42833          X"$ac_file" : 'X\(//\)$' \| \
42834          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42835 echo X"$ac_file" |
42836     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42837             s//\1/
42838             q
42839           }
42840           /^X\(\/\/\)[^/].*/{
42841             s//\1/
42842             q
42843           }
42844           /^X\(\/\/\)$/{
42845             s//\1/
42846             q
42847           }
42848           /^X\(\/\).*/{
42849             s//\1/
42850             q
42851           }
42852           s/.*/./; q'`
42853   { as_dir="$ac_dir"
42854   case $as_dir in #(
42855   -*) as_dir=./$as_dir;;
42856   esac
42857   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42858     as_dirs=
42859     while :; do
42860       case $as_dir in #(
42861       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42862       *) as_qdir=$as_dir;;
42863       esac
42864       as_dirs="'$as_qdir' $as_dirs"
42865       as_dir=`$as_dirname -- "$as_dir" ||
42866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42867          X"$as_dir" : 'X\(//\)[^/]' \| \
42868          X"$as_dir" : 'X\(//\)$' \| \
42869          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42870 echo X"$as_dir" |
42871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42872             s//\1/
42873             q
42874           }
42875           /^X\(\/\/\)[^/].*/{
42876             s//\1/
42877             q
42878           }
42879           /^X\(\/\/\)$/{
42880             s//\1/
42881             q
42882           }
42883           /^X\(\/\).*/{
42884             s//\1/
42885             q
42886           }
42887           s/.*/./; q'`
42888       test -d "$as_dir" && break
42889     done
42890     test -z "$as_dirs" || eval "mkdir $as_dirs"
42891   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42892 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42893    { (exit 1); exit 1; }; }; }
42894   ac_builddir=.
42895
42896 case "$ac_dir" in
42897 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42898 *)
42899   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42900   # A ".." for each directory in $ac_dir_suffix.
42901   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42902   case $ac_top_builddir_sub in
42903   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42904   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42905   esac ;;
42906 esac
42907 ac_abs_top_builddir=$ac_pwd
42908 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42909 # for backward compatibility:
42910 ac_top_builddir=$ac_top_build_prefix
42911
42912 case $srcdir in
42913   .)  # We are building in place.
42914     ac_srcdir=.
42915     ac_top_srcdir=$ac_top_builddir_sub
42916     ac_abs_top_srcdir=$ac_pwd ;;
42917   [\\/]* | ?:[\\/]* )  # Absolute name.
42918     ac_srcdir=$srcdir$ac_dir_suffix;
42919     ac_top_srcdir=$srcdir
42920     ac_abs_top_srcdir=$srcdir ;;
42921   *) # Relative name.
42922     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42923     ac_top_srcdir=$ac_top_build_prefix$srcdir
42924     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42925 esac
42926 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42927
42928
42929   case $ac_mode in
42930   :F)
42931   #
42932   # CONFIG_FILE
42933   #
42934
42935   case $INSTALL in
42936   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42937   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42938   esac
42939 _ACEOF
42940
42941 cat >>$CONFIG_STATUS <<\_ACEOF
42942 # If the template does not know about datarootdir, expand it.
42943 # FIXME: This hack should be removed a few years after 2.60.
42944 ac_datarootdir_hack=; ac_datarootdir_seen=
42945
42946 case `sed -n '/datarootdir/ {
42947   p
42948   q
42949 }
42950 /@datadir@/p
42951 /@docdir@/p
42952 /@infodir@/p
42953 /@localedir@/p
42954 /@mandir@/p
42955 ' $ac_file_inputs` in
42956 *datarootdir*) ac_datarootdir_seen=yes;;
42957 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42958   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42959 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42960 _ACEOF
42961 cat >>$CONFIG_STATUS <<_ACEOF
42962   ac_datarootdir_hack='
42963   s&@datadir@&$datadir&g
42964   s&@docdir@&$docdir&g
42965   s&@infodir@&$infodir&g
42966   s&@localedir@&$localedir&g
42967   s&@mandir@&$mandir&g
42968     s&\\\${datarootdir}&$datarootdir&g' ;;
42969 esac
42970 _ACEOF
42971
42972 # Neutralize VPATH when `$srcdir' = `.'.
42973 # Shell code in configure.ac might set extrasub.
42974 # FIXME: do we really want to maintain this feature?
42975 cat >>$CONFIG_STATUS <<_ACEOF
42976   sed "$ac_vpsub
42977 $extrasub
42978 _ACEOF
42979 cat >>$CONFIG_STATUS <<\_ACEOF
42980 :t
42981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42982 s&@configure_input@&$configure_input&;t t
42983 s&@top_builddir@&$ac_top_builddir_sub&;t t
42984 s&@srcdir@&$ac_srcdir&;t t
42985 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42986 s&@top_srcdir@&$ac_top_srcdir&;t t
42987 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42988 s&@builddir@&$ac_builddir&;t t
42989 s&@abs_builddir@&$ac_abs_builddir&;t t
42990 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42991 s&@INSTALL@&$ac_INSTALL&;t t
42992 $ac_datarootdir_hack
42993 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42994
42995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42996   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42997   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42998   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42999 which seems to be undefined.  Please make sure it is defined." >&5
43000 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43001 which seems to be undefined.  Please make sure it is defined." >&2;}
43002
43003   rm -f "$tmp/stdin"
43004   case $ac_file in
43005   -) cat "$tmp/out"; rm -f "$tmp/out";;
43006   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43007   esac
43008  ;;
43009   :H)
43010   #
43011   # CONFIG_HEADER
43012   #
43013 _ACEOF
43014
43015 # Transform confdefs.h into a sed script `conftest.defines', that
43016 # substitutes the proper values into config.h.in to produce config.h.
43017 rm -f conftest.defines conftest.tail
43018 # First, append a space to every undef/define line, to ease matching.
43019 echo 's/$/ /' >conftest.defines
43020 # Then, protect against being on the right side of a sed subst, or in
43021 # an unquoted here document, in config.status.  If some macros were
43022 # called several times there might be several #defines for the same
43023 # symbol, which is useless.  But do not sort them, since the last
43024 # AC_DEFINE must be honored.
43025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43026 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43027 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43028 # PARAMS is the parameter list in the macro definition--in most cases, it's
43029 # just an empty string.
43030 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43031 ac_dB='\\)[      (].*,\\1define\\2'
43032 ac_dC=' '
43033 ac_dD=' ,'
43034
43035 uniq confdefs.h |
43036   sed -n '
43037         t rset
43038         :rset
43039         s/^[     ]*#[    ]*define[       ][      ]*//
43040         t ok
43041         d
43042         :ok
43043         s/[\\&,]/\\&/g
43044         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43045         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43046   ' >>conftest.defines
43047
43048 # Remove the space that was appended to ease matching.
43049 # Then replace #undef with comments.  This is necessary, for
43050 # example, in the case of _POSIX_SOURCE, which is predefined and required
43051 # on some systems where configure will not decide to define it.
43052 # (The regexp can be short, since the line contains either #define or #undef.)
43053 echo 's/ $//
43054 s,^[     #]*u.*,/* & */,' >>conftest.defines
43055
43056 # Break up conftest.defines:
43057 ac_max_sed_lines=50
43058
43059 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43060 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43061 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43062 # et cetera.
43063 ac_in='$ac_file_inputs'
43064 ac_out='"$tmp/out1"'
43065 ac_nxt='"$tmp/out2"'
43066
43067 while :
43068 do
43069   # Write a here document:
43070     cat >>$CONFIG_STATUS <<_ACEOF
43071     # First, check the format of the line:
43072     cat >"\$tmp/defines.sed" <<\\CEOF
43073 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43074 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43075 b
43076 :def
43077 _ACEOF
43078   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43079   echo 'CEOF
43080     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43081   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43082   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43083   grep . conftest.tail >/dev/null || break
43084   rm -f conftest.defines
43085   mv conftest.tail conftest.defines
43086 done
43087 rm -f conftest.defines conftest.tail
43088
43089 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43090 cat >>$CONFIG_STATUS <<\_ACEOF
43091   if test x"$ac_file" != x-; then
43092     echo "/* $configure_input  */" >"$tmp/config.h"
43093     cat "$ac_result" >>"$tmp/config.h"
43094     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43095       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43096 echo "$as_me: $ac_file is unchanged" >&6;}
43097     else
43098       rm -f $ac_file
43099       mv "$tmp/config.h" $ac_file
43100     fi
43101   else
43102     echo "/* $configure_input  */"
43103     cat "$ac_result"
43104   fi
43105   rm -f "$tmp/out12"
43106  ;;
43107
43108   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43109 echo "$as_me: executing $ac_file commands" >&6;}
43110  ;;
43111   esac
43112
43113
43114   case $ac_file$ac_mode in
43115     "libtool":C)
43116
43117     # See if we are running on zsh, and set the options which allow our
43118     # commands through without removal of \ escapes.
43119     if test -n "${ZSH_VERSION+set}" ; then
43120       setopt NO_GLOB_SUBST
43121     fi
43122
43123     cfgfile="${ofile}T"
43124     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43125     $RM "$cfgfile"
43126
43127     cat <<_LT_EOF >> "$cfgfile"
43128 #! $SHELL
43129
43130 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43131 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43133 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43134 #
43135 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43136 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43137 #   Written by Gordon Matzigkeit, 1996
43138 #
43139 #   This file is part of GNU Libtool.
43140 #
43141 # GNU Libtool is free software; you can redistribute it and/or
43142 # modify it under the terms of the GNU General Public License as
43143 # published by the Free Software Foundation; either version 2 of
43144 # the License, or (at your option) any later version.
43145 #
43146 # As a special exception to the GNU General Public License,
43147 # if you distribute this file as part of a program or library that
43148 # is built using GNU Libtool, you may include this file under the
43149 # same distribution terms that you use for the rest of that program.
43150 #
43151 # GNU Libtool is distributed in the hope that it will be useful,
43152 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43153 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43154 # GNU General Public License for more details.
43155 #
43156 # You should have received a copy of the GNU General Public License
43157 # along with GNU Libtool; see the file COPYING.  If not, a copy
43158 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43159 # obtained by writing to the Free Software Foundation, Inc.,
43160 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43161
43162
43163 # The names of the tagged configurations supported by this script.
43164 available_tags="CXX "
43165
43166 # ### BEGIN LIBTOOL CONFIG
43167
43168 # Which release of libtool.m4 was used?
43169 macro_version=$macro_version
43170 macro_revision=$macro_revision
43171
43172 # Whether or not to build shared libraries.
43173 build_libtool_libs=$enable_shared
43174
43175 # Whether or not to build static libraries.
43176 build_old_libs=$enable_static
43177
43178 # What type of objects to build.
43179 pic_mode=$pic_mode
43180
43181 # Whether or not to optimize for fast installation.
43182 fast_install=$enable_fast_install
43183
43184 # The host system.
43185 host_alias=$host_alias
43186 host=$host
43187 host_os=$host_os
43188
43189 # The build system.
43190 build_alias=$build_alias
43191 build=$build
43192 build_os=$build_os
43193
43194 # A sed program that does not truncate output.
43195 SED=$lt_SED
43196
43197 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43198 Xsed="\$SED -e 1s/^X//"
43199
43200 # A grep program that handles long lines.
43201 GREP=$lt_GREP
43202
43203 # An ERE matcher.
43204 EGREP=$lt_EGREP
43205
43206 # A literal string matcher.
43207 FGREP=$lt_FGREP
43208
43209 # A BSD- or MS-compatible name lister.
43210 NM=$lt_NM
43211
43212 # Whether we need soft or hard links.
43213 LN_S=$lt_LN_S
43214
43215 # What is the maximum length of a command?
43216 max_cmd_len=$max_cmd_len
43217
43218 # Object file suffix (normally "o").
43219 objext=$ac_objext
43220
43221 # Executable file suffix (normally "").
43222 exeext=$exeext
43223
43224 # whether the shell understands "unset".
43225 lt_unset=$lt_unset
43226
43227 # turn spaces into newlines.
43228 SP2NL=$lt_lt_SP2NL
43229
43230 # turn newlines into spaces.
43231 NL2SP=$lt_lt_NL2SP
43232
43233 # How to create reloadable object files.
43234 reload_flag=$lt_reload_flag
43235 reload_cmds=$lt_reload_cmds
43236
43237 # An object symbol dumper.
43238 OBJDUMP=$lt_OBJDUMP
43239
43240 # Method to check whether dependent libraries are shared objects.
43241 deplibs_check_method=$lt_deplibs_check_method
43242
43243 # Command to use when deplibs_check_method == "file_magic".
43244 file_magic_cmd=$lt_file_magic_cmd
43245
43246 # The archiver.
43247 AR=$lt_AR
43248 AR_FLAGS=$lt_AR_FLAGS
43249
43250 # A symbol stripping program.
43251 STRIP=$lt_STRIP
43252
43253 # Commands used to install an old-style archive.
43254 RANLIB=$lt_RANLIB
43255 old_postinstall_cmds=$lt_old_postinstall_cmds
43256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43257
43258 # A C compiler.
43259 LTCC=$lt_CC
43260
43261 # LTCC compiler flags.
43262 LTCFLAGS=$lt_CFLAGS
43263
43264 # Take the output of nm and produce a listing of raw symbols and C names.
43265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43266
43267 # Transform the output of nm in a proper C declaration.
43268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43269
43270 # Transform the output of nm in a C name address pair.
43271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43272
43273 # Transform the output of nm in a C name address pair when lib prefix is needed.
43274 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43275
43276 # The name of the directory that contains temporary libtool files.
43277 objdir=$objdir
43278
43279 # Shell to use when invoking shell scripts.
43280 SHELL=$lt_SHELL
43281
43282 # An echo program that does not interpret backslashes.
43283 ECHO=$lt_ECHO
43284
43285 # Used to examine libraries when file_magic_cmd begins with "file".
43286 MAGIC_CMD=$MAGIC_CMD
43287
43288 # Must we lock files when doing compilation?
43289 need_locks=$lt_need_locks
43290
43291 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43292 DSYMUTIL=$lt_DSYMUTIL
43293
43294 # Tool to change global to local symbols on Mac OS X.
43295 NMEDIT=$lt_NMEDIT
43296
43297 # Tool to manipulate fat objects and archives on Mac OS X.
43298 LIPO=$lt_LIPO
43299
43300 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43301 OTOOL=$lt_OTOOL
43302
43303 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43304 OTOOL64=$lt_OTOOL64
43305
43306 # Old archive suffix (normally "a").
43307 libext=$libext
43308
43309 # Shared library suffix (normally ".so").
43310 shrext_cmds=$lt_shrext_cmds
43311
43312 # The commands to extract the exported symbol list from a shared archive.
43313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43314
43315 # Variables whose values should be saved in libtool wrapper scripts and
43316 # restored at link time.
43317 variables_saved_for_relink=$lt_variables_saved_for_relink
43318
43319 # Do we need the "lib" prefix for modules?
43320 need_lib_prefix=$need_lib_prefix
43321
43322 # Do we need a version for libraries?
43323 need_version=$need_version
43324
43325 # Library versioning type.
43326 version_type=$version_type
43327
43328 # Shared library runtime path variable.
43329 runpath_var=$runpath_var
43330
43331 # Shared library path variable.
43332 shlibpath_var=$shlibpath_var
43333
43334 # Is shlibpath searched before the hard-coded library search path?
43335 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43336
43337 # Format of library name prefix.
43338 libname_spec=$lt_libname_spec
43339
43340 # List of archive names.  First name is the real one, the rest are links.
43341 # The last name is the one that the linker finds with -lNAME
43342 library_names_spec=$lt_library_names_spec
43343
43344 # The coded name of the library, if different from the real name.
43345 soname_spec=$lt_soname_spec
43346
43347 # Command to use after installation of a shared archive.
43348 postinstall_cmds=$lt_postinstall_cmds
43349
43350 # Command to use after uninstallation of a shared archive.
43351 postuninstall_cmds=$lt_postuninstall_cmds
43352
43353 # Commands used to finish a libtool library installation in a directory.
43354 finish_cmds=$lt_finish_cmds
43355
43356 # As "finish_cmds", except a single script fragment to be evaled but
43357 # not shown.
43358 finish_eval=$lt_finish_eval
43359
43360 # Whether we should hardcode library paths into libraries.
43361 hardcode_into_libs=$hardcode_into_libs
43362
43363 # Compile-time system search path for libraries.
43364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43365
43366 # Run-time system search path for libraries.
43367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43368
43369 # Whether dlopen is supported.
43370 dlopen_support=$enable_dlopen
43371
43372 # Whether dlopen of programs is supported.
43373 dlopen_self=$enable_dlopen_self
43374
43375 # Whether dlopen of statically linked programs is supported.
43376 dlopen_self_static=$enable_dlopen_self_static
43377
43378 # Commands to strip libraries.
43379 old_striplib=$lt_old_striplib
43380 striplib=$lt_striplib
43381
43382
43383 # The linker used to build libraries.
43384 LD=$lt_LD
43385
43386 # Commands used to build an old-style archive.
43387 old_archive_cmds=$lt_old_archive_cmds
43388
43389 # A language specific compiler.
43390 CC=$lt_compiler
43391
43392 # Is the compiler the GNU compiler?
43393 with_gcc=$GCC
43394
43395 # Compiler flag to turn off builtin functions.
43396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43397
43398 # How to pass a linker flag through the compiler.
43399 wl=$lt_lt_prog_compiler_wl
43400
43401 # Additional compiler flags for building library objects.
43402 pic_flag=$lt_lt_prog_compiler_pic
43403
43404 # Compiler flag to prevent dynamic linking.
43405 link_static_flag=$lt_lt_prog_compiler_static
43406
43407 # Does compiler simultaneously support -c and -o options?
43408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43409
43410 # Whether or not to add -lc for building shared libraries.
43411 build_libtool_need_lc=$archive_cmds_need_lc
43412
43413 # Whether or not to disallow shared libs when runtime libs are static.
43414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43415
43416 # Compiler flag to allow reflexive dlopens.
43417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43418
43419 # Compiler flag to generate shared objects directly from archives.
43420 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43421
43422 # Whether the compiler copes with passing no objects directly.
43423 compiler_needs_object=$lt_compiler_needs_object
43424
43425 # Create an old-style archive from a shared archive.
43426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43427
43428 # Create a temporary old-style archive to link instead of a shared archive.
43429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43430
43431 # Commands used to build a shared archive.
43432 archive_cmds=$lt_archive_cmds
43433 archive_expsym_cmds=$lt_archive_expsym_cmds
43434
43435 # Commands used to build a loadable module if different from building
43436 # a shared archive.
43437 module_cmds=$lt_module_cmds
43438 module_expsym_cmds=$lt_module_expsym_cmds
43439
43440 # Whether we are building with GNU ld or not.
43441 with_gnu_ld=$lt_with_gnu_ld
43442
43443 # Flag that allows shared libraries with undefined symbols to be built.
43444 allow_undefined_flag=$lt_allow_undefined_flag
43445
43446 # Flag that enforces no undefined symbols.
43447 no_undefined_flag=$lt_no_undefined_flag
43448
43449 # Flag to hardcode \$libdir into a binary during linking.
43450 # This must work even if \$libdir does not exist
43451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43452
43453 # If ld is used when linking, flag to hardcode \$libdir into a binary
43454 # during linking.  This must work even if \$libdir does not exist.
43455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43456
43457 # Whether we need a single "-rpath" flag with a separated argument.
43458 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43459
43460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43461 # DIR into the resulting binary.
43462 hardcode_direct=$hardcode_direct
43463
43464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43465 # DIR into the resulting binary and the resulting library dependency is
43466 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43467 # library is relocated.
43468 hardcode_direct_absolute=$hardcode_direct_absolute
43469
43470 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43471 # into the resulting binary.
43472 hardcode_minus_L=$hardcode_minus_L
43473
43474 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43475 # into the resulting binary.
43476 hardcode_shlibpath_var=$hardcode_shlibpath_var
43477
43478 # Set to "yes" if building a shared library automatically hardcodes DIR
43479 # into the library and all subsequent libraries and executables linked
43480 # against it.
43481 hardcode_automatic=$hardcode_automatic
43482
43483 # Set to yes if linker adds runtime paths of dependent libraries
43484 # to runtime path list.
43485 inherit_rpath=$inherit_rpath
43486
43487 # Whether libtool must link a program against all its dependency libraries.
43488 link_all_deplibs=$link_all_deplibs
43489
43490 # Fix the shell variable \$srcfile for the compiler.
43491 fix_srcfile_path=$lt_fix_srcfile_path
43492
43493 # Set to "yes" if exported symbols are required.
43494 always_export_symbols=$always_export_symbols
43495
43496 # The commands to list exported symbols.
43497 export_symbols_cmds=$lt_export_symbols_cmds
43498
43499 # Symbols that should not be listed in the preloaded symbols.
43500 exclude_expsyms=$lt_exclude_expsyms
43501
43502 # Symbols that must always be exported.
43503 include_expsyms=$lt_include_expsyms
43504
43505 # Commands necessary for linking programs (against libraries) with templates.
43506 prelink_cmds=$lt_prelink_cmds
43507
43508 # Specify filename containing input files.
43509 file_list_spec=$lt_file_list_spec
43510
43511 # How to hardcode a shared library path into an executable.
43512 hardcode_action=$hardcode_action
43513
43514 # The directories searched by this compiler when creating a shared library.
43515 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43516
43517 # Dependencies to place before and after the objects being linked to
43518 # create a shared library.
43519 predep_objects=$lt_predep_objects
43520 postdep_objects=$lt_postdep_objects
43521 predeps=$lt_predeps
43522 postdeps=$lt_postdeps
43523
43524 # The library search path used internally by the compiler when linking
43525 # a shared library.
43526 compiler_lib_search_path=$lt_compiler_lib_search_path
43527
43528 # ### END LIBTOOL CONFIG
43529
43530 _LT_EOF
43531
43532   case $host_os in
43533   aix3*)
43534     cat <<\_LT_EOF >> "$cfgfile"
43535 # AIX sometimes has problems with the GCC collect2 program.  For some
43536 # reason, if we set the COLLECT_NAMES environment variable, the problems
43537 # vanish in a puff of smoke.
43538 if test "X${COLLECT_NAMES+set}" != Xset; then
43539   COLLECT_NAMES=
43540   export COLLECT_NAMES
43541 fi
43542 _LT_EOF
43543     ;;
43544   esac
43545
43546
43547 ltmain="$ac_aux_dir/ltmain.sh"
43548
43549
43550   # We use sed instead of cat because bash on DJGPP gets confused if
43551   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43552   # text mode, it properly converts lines to CR/LF.  This bash problem
43553   # is reportedly fixed, but why not run on old versions too?
43554   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43555     || (rm -f "$cfgfile"; exit 1)
43556
43557   case $xsi_shell in
43558   yes)
43559     cat << \_LT_EOF >> "$cfgfile"
43560
43561 # func_dirname file append nondir_replacement
43562 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43563 # otherwise set result to NONDIR_REPLACEMENT.
43564 func_dirname ()
43565 {
43566   case ${1} in
43567     */*) func_dirname_result="${1%/*}${2}" ;;
43568     *  ) func_dirname_result="${3}" ;;
43569   esac
43570 }
43571
43572 # func_basename file
43573 func_basename ()
43574 {
43575   func_basename_result="${1##*/}"
43576 }
43577
43578 # func_dirname_and_basename file append nondir_replacement
43579 # perform func_basename and func_dirname in a single function
43580 # call:
43581 #   dirname:  Compute the dirname of FILE.  If nonempty,
43582 #             add APPEND to the result, otherwise set result
43583 #             to NONDIR_REPLACEMENT.
43584 #             value returned in "$func_dirname_result"
43585 #   basename: Compute filename of FILE.
43586 #             value retuned in "$func_basename_result"
43587 # Implementation must be kept synchronized with func_dirname
43588 # and func_basename. For efficiency, we do not delegate to
43589 # those functions but instead duplicate the functionality here.
43590 func_dirname_and_basename ()
43591 {
43592   case ${1} in
43593     */*) func_dirname_result="${1%/*}${2}" ;;
43594     *  ) func_dirname_result="${3}" ;;
43595   esac
43596   func_basename_result="${1##*/}"
43597 }
43598
43599 # func_stripname prefix suffix name
43600 # strip PREFIX and SUFFIX off of NAME.
43601 # PREFIX and SUFFIX must not contain globbing or regex special
43602 # characters, hashes, percent signs, but SUFFIX may contain a leading
43603 # dot (in which case that matches only a dot).
43604 func_stripname ()
43605 {
43606   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43607   # positional parameters, so assign one to ordinary parameter first.
43608   func_stripname_result=${3}
43609   func_stripname_result=${func_stripname_result#"${1}"}
43610   func_stripname_result=${func_stripname_result%"${2}"}
43611 }
43612
43613 # func_opt_split
43614 func_opt_split ()
43615 {
43616   func_opt_split_opt=${1%%=*}
43617   func_opt_split_arg=${1#*=}
43618 }
43619
43620 # func_lo2o object
43621 func_lo2o ()
43622 {
43623   case ${1} in
43624     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43625     *)    func_lo2o_result=${1} ;;
43626   esac
43627 }
43628
43629 # func_xform libobj-or-source
43630 func_xform ()
43631 {
43632   func_xform_result=${1%.*}.lo
43633 }
43634
43635 # func_arith arithmetic-term...
43636 func_arith ()
43637 {
43638   func_arith_result=$(( $* ))
43639 }
43640
43641 # func_len string
43642 # STRING may not start with a hyphen.
43643 func_len ()
43644 {
43645   func_len_result=${#1}
43646 }
43647
43648 _LT_EOF
43649     ;;
43650   *) # Bourne compatible functions.
43651     cat << \_LT_EOF >> "$cfgfile"
43652
43653 # func_dirname file append nondir_replacement
43654 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43655 # otherwise set result to NONDIR_REPLACEMENT.
43656 func_dirname ()
43657 {
43658   # Extract subdirectory from the argument.
43659   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43660   if test "X$func_dirname_result" = "X${1}"; then
43661     func_dirname_result="${3}"
43662   else
43663     func_dirname_result="$func_dirname_result${2}"
43664   fi
43665 }
43666
43667 # func_basename file
43668 func_basename ()
43669 {
43670   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43671 }
43672
43673
43674 # func_stripname prefix suffix name
43675 # strip PREFIX and SUFFIX off of NAME.
43676 # PREFIX and SUFFIX must not contain globbing or regex special
43677 # characters, hashes, percent signs, but SUFFIX may contain a leading
43678 # dot (in which case that matches only a dot).
43679 # func_strip_suffix prefix name
43680 func_stripname ()
43681 {
43682   case ${2} in
43683     .*) func_stripname_result=`$ECHO "X${3}" \
43684            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43685     *)  func_stripname_result=`$ECHO "X${3}" \
43686            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43687   esac
43688 }
43689
43690 # sed scripts:
43691 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43692 my_sed_long_arg='1s/^-[^=]*=//'
43693
43694 # func_opt_split
43695 func_opt_split ()
43696 {
43697   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43698   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43699 }
43700
43701 # func_lo2o object
43702 func_lo2o ()
43703 {
43704   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43705 }
43706
43707 # func_xform libobj-or-source
43708 func_xform ()
43709 {
43710   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43711 }
43712
43713 # func_arith arithmetic-term...
43714 func_arith ()
43715 {
43716   func_arith_result=`expr "$@"`
43717 }
43718
43719 # func_len string
43720 # STRING may not start with a hyphen.
43721 func_len ()
43722 {
43723   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43724 }
43725
43726 _LT_EOF
43727 esac
43728
43729 case $lt_shell_append in
43730   yes)
43731     cat << \_LT_EOF >> "$cfgfile"
43732
43733 # func_append var value
43734 # Append VALUE to the end of shell variable VAR.
43735 func_append ()
43736 {
43737   eval "$1+=\$2"
43738 }
43739 _LT_EOF
43740     ;;
43741   *)
43742     cat << \_LT_EOF >> "$cfgfile"
43743
43744 # func_append var value
43745 # Append VALUE to the end of shell variable VAR.
43746 func_append ()
43747 {
43748   eval "$1=\$$1\$2"
43749 }
43750
43751 _LT_EOF
43752     ;;
43753   esac
43754
43755
43756   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43757     || (rm -f "$cfgfile"; exit 1)
43758
43759   mv -f "$cfgfile" "$ofile" ||
43760     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43761   chmod +x "$ofile"
43762
43763
43764     cat <<_LT_EOF >> "$ofile"
43765
43766 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43767
43768 # The linker used to build libraries.
43769 LD=$lt_LD_CXX
43770
43771 # Commands used to build an old-style archive.
43772 old_archive_cmds=$lt_old_archive_cmds_CXX
43773
43774 # A language specific compiler.
43775 CC=$lt_compiler_CXX
43776
43777 # Is the compiler the GNU compiler?
43778 with_gcc=$GCC_CXX
43779
43780 # Compiler flag to turn off builtin functions.
43781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43782
43783 # How to pass a linker flag through the compiler.
43784 wl=$lt_lt_prog_compiler_wl_CXX
43785
43786 # Additional compiler flags for building library objects.
43787 pic_flag=$lt_lt_prog_compiler_pic_CXX
43788
43789 # Compiler flag to prevent dynamic linking.
43790 link_static_flag=$lt_lt_prog_compiler_static_CXX
43791
43792 # Does compiler simultaneously support -c and -o options?
43793 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43794
43795 # Whether or not to add -lc for building shared libraries.
43796 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43797
43798 # Whether or not to disallow shared libs when runtime libs are static.
43799 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43800
43801 # Compiler flag to allow reflexive dlopens.
43802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43803
43804 # Compiler flag to generate shared objects directly from archives.
43805 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43806
43807 # Whether the compiler copes with passing no objects directly.
43808 compiler_needs_object=$lt_compiler_needs_object_CXX
43809
43810 # Create an old-style archive from a shared archive.
43811 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43812
43813 # Create a temporary old-style archive to link instead of a shared archive.
43814 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43815
43816 # Commands used to build a shared archive.
43817 archive_cmds=$lt_archive_cmds_CXX
43818 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43819
43820 # Commands used to build a loadable module if different from building
43821 # a shared archive.
43822 module_cmds=$lt_module_cmds_CXX
43823 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43824
43825 # Whether we are building with GNU ld or not.
43826 with_gnu_ld=$lt_with_gnu_ld_CXX
43827
43828 # Flag that allows shared libraries with undefined symbols to be built.
43829 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43830
43831 # Flag that enforces no undefined symbols.
43832 no_undefined_flag=$lt_no_undefined_flag_CXX
43833
43834 # Flag to hardcode \$libdir into a binary during linking.
43835 # This must work even if \$libdir does not exist
43836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43837
43838 # If ld is used when linking, flag to hardcode \$libdir into a binary
43839 # during linking.  This must work even if \$libdir does not exist.
43840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43841
43842 # Whether we need a single "-rpath" flag with a separated argument.
43843 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43844
43845 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43846 # DIR into the resulting binary.
43847 hardcode_direct=$hardcode_direct_CXX
43848
43849 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43850 # DIR into the resulting binary and the resulting library dependency is
43851 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43852 # library is relocated.
43853 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43854
43855 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43856 # into the resulting binary.
43857 hardcode_minus_L=$hardcode_minus_L_CXX
43858
43859 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43860 # into the resulting binary.
43861 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43862
43863 # Set to "yes" if building a shared library automatically hardcodes DIR
43864 # into the library and all subsequent libraries and executables linked
43865 # against it.
43866 hardcode_automatic=$hardcode_automatic_CXX
43867
43868 # Set to yes if linker adds runtime paths of dependent libraries
43869 # to runtime path list.
43870 inherit_rpath=$inherit_rpath_CXX
43871
43872 # Whether libtool must link a program against all its dependency libraries.
43873 link_all_deplibs=$link_all_deplibs_CXX
43874
43875 # Fix the shell variable \$srcfile for the compiler.
43876 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43877
43878 # Set to "yes" if exported symbols are required.
43879 always_export_symbols=$always_export_symbols_CXX
43880
43881 # The commands to list exported symbols.
43882 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43883
43884 # Symbols that should not be listed in the preloaded symbols.
43885 exclude_expsyms=$lt_exclude_expsyms_CXX
43886
43887 # Symbols that must always be exported.
43888 include_expsyms=$lt_include_expsyms_CXX
43889
43890 # Commands necessary for linking programs (against libraries) with templates.
43891 prelink_cmds=$lt_prelink_cmds_CXX
43892
43893 # Specify filename containing input files.
43894 file_list_spec=$lt_file_list_spec_CXX
43895
43896 # How to hardcode a shared library path into an executable.
43897 hardcode_action=$hardcode_action_CXX
43898
43899 # The directories searched by this compiler when creating a shared library.
43900 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43901
43902 # Dependencies to place before and after the objects being linked to
43903 # create a shared library.
43904 predep_objects=$lt_predep_objects_CXX
43905 postdep_objects=$lt_postdep_objects_CXX
43906 predeps=$lt_predeps_CXX
43907 postdeps=$lt_postdeps_CXX
43908
43909 # The library search path used internally by the compiler when linking
43910 # a shared library.
43911 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43912
43913 # ### END LIBTOOL TAG CONFIG: CXX
43914 _LT_EOF
43915
43916  ;;
43917     "default-1":C)
43918     for ac_file in $CONFIG_FILES; do
43919       # Support "outfile[:infile[:infile...]]"
43920       case "$ac_file" in
43921         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43922       esac
43923       # PO directories have a Makefile.in generated from Makefile.in.in.
43924       case "$ac_file" in */Makefile.in)
43925         # Adjust a relative srcdir.
43926         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43927         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43928         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43929         # In autoconf-2.13 it is called $ac_given_srcdir.
43930         # In autoconf-2.50 it is called $srcdir.
43931         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43932         case "$ac_given_srcdir" in
43933           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43934           /*) top_srcdir="$ac_given_srcdir" ;;
43935           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
43936         esac
43937         # Treat a directory as a PO directory if and only if it has a
43938         # POTFILES.in file. This allows packages to have multiple PO
43939         # directories under different names or in different locations.
43940         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43941           rm -f "$ac_dir/POTFILES"
43942           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43943           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43944           POMAKEFILEDEPS="POTFILES.in"
43945           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43946           # on $ac_dir but don't depend on user-specified configuration
43947           # parameters.
43948           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43949             # The LINGUAS file contains the set of available languages.
43950             if test -n "$OBSOLETE_ALL_LINGUAS"; then
43951               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43952             fi
43953             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43954             # Hide the ALL_LINGUAS assigment from automake.
43955             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43956             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43957           else
43958             # The set of available languages was given in configure.in.
43959             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43960           fi
43961           # Compute POFILES
43962           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43963           # Compute UPDATEPOFILES
43964           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43965           # Compute DUMMYPOFILES
43966           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43967           # Compute GMOFILES
43968           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43969           case "$ac_given_srcdir" in
43970             .) srcdirpre= ;;
43971             *) srcdirpre='$(srcdir)/' ;;
43972           esac
43973           POFILES=
43974           UPDATEPOFILES=
43975           DUMMYPOFILES=
43976           GMOFILES=
43977           for lang in $ALL_LINGUAS; do
43978             POFILES="$POFILES $srcdirpre$lang.po"
43979             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43980             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43981             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43982           done
43983           # CATALOGS depends on both $ac_dir and the user's LINGUAS
43984           # environment variable.
43985           INST_LINGUAS=
43986           if test -n "$ALL_LINGUAS"; then
43987             for presentlang in $ALL_LINGUAS; do
43988               useit=no
43989               if test "%UNSET%" != "$LINGUAS"; then
43990                 desiredlanguages="$LINGUAS"
43991               else
43992                 desiredlanguages="$ALL_LINGUAS"
43993               fi
43994               for desiredlang in $desiredlanguages; do
43995                 # Use the presentlang catalog if desiredlang is
43996                 #   a. equal to presentlang, or
43997                 #   b. a variant of presentlang (because in this case,
43998                 #      presentlang can be used as a fallback for messages
43999                 #      which are not translated in the desiredlang catalog).
44000                 case "$desiredlang" in
44001                   "$presentlang"*) useit=yes;;
44002                 esac
44003               done
44004               if test $useit = yes; then
44005                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44006               fi
44007             done
44008           fi
44009           CATALOGS=
44010           if test -n "$INST_LINGUAS"; then
44011             for lang in $INST_LINGUAS; do
44012               CATALOGS="$CATALOGS $lang.gmo"
44013             done
44014           fi
44015           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44016           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"
44017           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44018             if test -f "$f"; then
44019               case "$f" in
44020                 *.orig | *.bak | *~) ;;
44021                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44022               esac
44023             fi
44024           done
44025         fi
44026         ;;
44027       esac
44028     done ;;
44029     "default":C)
44030  ;;
44031
44032   esac
44033 done # for ac_tag
44034
44035
44036 { (exit 0); exit 0; }
44037 _ACEOF
44038 chmod +x $CONFIG_STATUS
44039 ac_clean_files=$ac_clean_files_save
44040
44041
44042 # configure is writing to config.log, and then calls config.status.
44043 # config.status does its own redirection, appending to config.log.
44044 # Unfortunately, on DOS this fails, as config.log is still kept open
44045 # by configure, so config.status won't be able to write to it; its
44046 # output is simply discarded.  So we exec the FD to /dev/null,
44047 # effectively closing config.log, so it can be properly (re)opened and
44048 # appended to by config.status.  When coming back to configure, we
44049 # need to make the FD available again.
44050 if test "$no_create" != yes; then
44051   ac_cs_success=:
44052   ac_config_status_args=
44053   test "$silent" = yes &&
44054     ac_config_status_args="$ac_config_status_args --quiet"
44055   exec 5>/dev/null
44056   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44057   exec 5>>config.log
44058   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44059   # would make configure fail if this is the last instruction.
44060   $ac_cs_success || { (exit 1); exit 1; }
44061 fi
44062
44063
44064 if test "${support_bat}" = "yes" ; then
44065    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44066       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44067       exit 1
44068    fi
44069
44070    QMAKEBIN="qmake"
44071
44072    if test "x$QMAKEQT4" != "xnone"; then
44073        QMAKEBIN=qmake-qt4
44074    fi
44075
44076    cd src/qt-console
44077    chmod 755 install_conf_file build-depkgs-qt-console
44078    echo "Creating bat Makefile"
44079    $QMAKEBIN
44080    make clean
44081    cd ${BUILD_DIR}
44082 fi
44083
44084 if test X"$GCC" = "Xyes" ; then
44085   echo "Doing make of dependencies"
44086   ${MAKE:-make} depend
44087 fi
44088
44089 cd scripts
44090 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44091 chmod 755 dvd-handler dvd-simulator
44092 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44093 cd ..
44094
44095 c=updatedb
44096 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44097 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44098
44099 c=src/cats
44100
44101 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44102 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44103
44104 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44105 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44106
44107 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44108 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44109
44110 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44111 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44112
44113 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44114 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44115
44116 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44117 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44118
44119 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44120 chmod 755 $c/sqlite
44121 chmod 755 $c/mysql
44122
44123 chmod 755 src/win32/build-depkgs-mingw32
44124
44125 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44126    largefile_support="yes"
44127 fi
44128
44129 if test X"$GCC" = "Xyes" ; then
44130                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44131    if test "x${CCVERSION}" = "x" ; then
44132       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44133    fi
44134    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44135    if test x"${CXXVERSION}" = x ; then
44136       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44137    fi
44138 fi
44139
44140 if test "x${db_type}" = "xInternal" ; then
44141    echo " "
44142    echo " "
44143    echo "You have not specified either --enable-client-only or one of the"
44144    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44145    echo "  This is not permitted. Please reconfigure."
44146    echo " "
44147    echo "Aborting the configuration ..."
44148    echo " "
44149    echo " "
44150    exit 1
44151 fi
44152
44153 echo "
44154 Configuration on `date`:
44155
44156    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44157    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44158    Source code location:    ${srcdir}
44159    Install binaries:        ${sbindir}
44160    Install libraries:       ${libdir}
44161    Install config files:    ${sysconfdir}
44162    Scripts directory:       ${scriptdir}
44163    Archive directory:       ${archivedir}
44164    Working directory:       ${working_dir}
44165    PID directory:           ${piddir}
44166    Subsys directory:        ${subsysdir}
44167    Man directory:           ${mandir}
44168    Data directory:          ${datarootdir}
44169    C Compiler:              ${CC} ${CCVERSION}
44170    C++ Compiler:            ${CXX} ${CXXVERSION}
44171    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44172    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44173    Libraries:               ${LIBS}
44174    Statically Linked Tools: ${support_static_tools}
44175    Statically Linked FD:    ${support_static_fd}
44176    Statically Linked SD:    ${support_static_sd}
44177    Statically Linked DIR:   ${support_static_dir}
44178    Statically Linked CONS:  ${support_static_cons}
44179    Database type:           ${db_type}
44180    Database port:           ${db_port}
44181    Database lib:            ${DB_LIBS}
44182    Database name:           ${db_name}
44183    Database user:           ${db_user}
44184
44185    Job Output Email:        ${job_email}
44186    Traceback Email:         ${dump_email}
44187    SMTP Host Address:       ${smtp_host}
44188
44189    Director Port:           ${dir_port}
44190    File daemon Port:        ${fd_port}
44191    Storage daemon Port:     ${sd_port}
44192
44193    Director User:           ${dir_user}
44194    Director Group:          ${dir_group}
44195    Storage Daemon User:     ${sd_user}
44196    Storage DaemonGroup:     ${sd_group}
44197    File Daemon User:        ${fd_user}
44198    File Daemon Group:       ${fd_group}
44199
44200    SQL binaries Directory   ${SQL_BINDIR}
44201
44202    Large file support:      $largefile_support
44203    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44204    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44205    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44206    TLS support:             ${support_tls}
44207    Encryption support:      ${support_crypto}
44208    ZLIB support:            ${have_zlib}
44209    enable-smartalloc:       ${support_smartalloc}
44210    bat support:             ${support_bat} ${QWT_LDFLAGS}
44211    enable-gnome:            ${support_gnome} ${gnome_version}
44212    enable-bwx-console:      ${support_wx_console} ${wx_version}
44213    enable-tray-monitor:     ${support_tray_monitor}
44214    client-only:             ${build_client_only}
44215    build-dird:              ${build_dird}
44216    build-stored:            ${build_stored}
44217    ACL support:             ${have_acl}
44218    Python support:          ${support_python} ${PYTHON_LIBS}
44219    Batch insert enabled:    ${support_batch_insert}
44220
44221   " > config.out
44222
44223 cat config.out