]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
ebl Add a new lock manager that can detect deadlock situation
[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=no]
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-lockmgr        enable lock manager support [default=no]
1654   --enable-static-tools   enable static tape tools [default=no]
1655   --enable-static-fd      enable static File daemon [default=no]
1656   --enable-static-sd      enable static Storage daemon [default=no]
1657   --enable-static-dir     enable static Director [default=no]
1658   --enable-static-cons    enable static Console [default=no]
1659   --enable-client-only    build client (File daemon) only [default=no]
1660   --enable-build-dird     enable building of dird (Director) [default=yes]
1661   --enable-build-stored   enable building of stored (Storage daemon)
1662                           [default=yes]
1663   --disable-conio         disable conio support [default=no]
1664   --enable-ipv6           enable ipv6 support [default=yes]
1665   --disable-readline      disable readline support [default=yes]
1666   --enable-batch-insert   enable the DB batch insert code [default=no]
1667   --disable-largefile     omit support for large files
1668   --disable-acl           disable acl support [default=auto]
1669   --disable-xattr         disable xattr support [default=auto]
1670
1671 Optional Packages:
1672   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1673   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1674   --with-pic              try to use only PIC/non-PIC objects [default=use
1675                           both]
1676   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1677   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1678   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1679   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1680   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1681   --without-libintl-prefix     don't search for libintl in includedir and libdir
1682   --with-included-gettext use the GNU gettext library included here
1683   --with-qwt[=DIR]        specify qwt library directory
1684   --with-readline[=DIR]   specify readline library directory
1685   --with-python[=DIR]     Include Python support. DIR is the Python base
1686                           install directory, default is to search through a
1687                           number of common places for the Python files.
1688   --with-tcp-wrappers[=DIR]
1689                           enable tcpwrappers support
1690   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1691   --with-working-dir=PATH specify path of Bacula working directory
1692   --with-archivedir=PATH  specify path of SD archive directory
1693   --with-scriptdir=PATH   specify path of Bacula scripts directory
1694   --with-plugindir=PATH   specify path of Bacula plugins directory
1695   --with-dump-email=EMAIL dump email address
1696   --with-job-email=EMAIL  job output email address
1697   --with-smtp-host=HOST   SMTP mail host address
1698   --with-pid-dir=PATH     specify location of Bacula pid files
1699   --with-subsys-dir=PATH  specify location of Bacula subsys file
1700   --with-baseport=PORT    specify base port address for daemons
1701   --with-dir-password=PASSWORD
1702                           specify Director's password
1703   --with-fd-password=PASSWORD
1704                           specify Client's password
1705   --with-sd-password=PASSWORD
1706                           specify Storage daemon's password
1707   --with-mon-dir-password=PASSWORD
1708                           specify Director's password used by the monitor
1709   --with-mon-fd-password=PASSWORD
1710                           specify Client's password used by the monitor
1711   --with-mon-sd-password=PASSWORD
1712                           specify Storage daemon's password used by the
1713                           monitor
1714   --with-db-name=DBNAME   specify database name [default=bacula]
1715   --with-db-user=UNAME    specify database user [default=bacula]
1716   --with-db-password=PWD  specify database password [default=*none*]
1717   --with-db-port=DBPORT   specify a database port [default=null]
1718   --with-dir-user=USER    specify user for Director daemon
1719   --with-dir-group=GROUP  specify group for Director daemon
1720   --with-sd-user=USER     specify user for Storage daemon
1721   --with-sd-group=GROUP   specify group for Storage daemon
1722   --with-fd-user=USER     specify user for File daemon
1723   --with-fd-group=GROUP   specify group for File daemon
1724   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1725   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1726                           base install directory, [default=/usr/local/pgsql]
1727   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1728                           directory, default is to search through a number of
1729                           common places for the MySQL files.
1730   --with-embedded-mysql[=DIR]
1731                           Include MySQL support. DIR is the MySQL base install
1732                           directory, default is to search through a number of
1733                           common places for the MySQL files.
1734   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1735                           install directory, default is to search through a
1736                           number of common places for the SQLite3 files.
1737   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1738                           install directory, default is to search through a
1739                           number of common places for the SQLite files.
1740   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1741                           directory, default is to search through a number of
1742                           common places for the DBI files.
1743   --with-dbi-driver[=DRIVER]
1744                           Suport for DBI driver. DRIVER is the one DBI driver
1745                           like Mysql, Postgresql, others. Default is to not
1746                           configure any driver.
1747   --with-x                use the X Window System
1748
1749 Some influential environment variables:
1750   CC          C compiler command
1751   CFLAGS      C compiler flags
1752   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1753               nonstandard directory <lib dir>
1754   LIBS        libraries to pass to the linker, e.g. -l<library>
1755   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1756               you have headers in a nonstandard directory <include dir>
1757   CXX         C++ compiler command
1758   CXXFLAGS    C++ compiler flags
1759   CPP         C preprocessor
1760   WXCONFIG    wx-config command. On some systems, you must set it to
1761               wx-config-2.6 to use wxWidgets 2.6.
1762   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1763   CXXCPP      C++ preprocessor
1764   XMKMF       Path to xmkmf, Makefile generator for X Window System
1765
1766 Use these variables to override the choices made by `configure' or to help
1767 it to find libraries and programs with nonstandard names/locations.
1768
1769 _ACEOF
1770 ac_status=$?
1771 fi
1772
1773 if test "$ac_init_help" = "recursive"; then
1774   # If there are subdirs, report their specific --help.
1775   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776     test -d "$ac_dir" || continue
1777     ac_builddir=.
1778
1779 case "$ac_dir" in
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 *)
1782   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1783   # A ".." for each directory in $ac_dir_suffix.
1784   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1785   case $ac_top_builddir_sub in
1786   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788   esac ;;
1789 esac
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1794
1795 case $srcdir in
1796   .)  # We are building in place.
1797     ac_srcdir=.
1798     ac_top_srcdir=$ac_top_builddir_sub
1799     ac_abs_top_srcdir=$ac_pwd ;;
1800   [\\/]* | ?:[\\/]* )  # Absolute name.
1801     ac_srcdir=$srcdir$ac_dir_suffix;
1802     ac_top_srcdir=$srcdir
1803     ac_abs_top_srcdir=$srcdir ;;
1804   *) # Relative name.
1805     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806     ac_top_srcdir=$ac_top_build_prefix$srcdir
1807     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808 esac
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810
1811     cd "$ac_dir" || { ac_status=$?; continue; }
1812     # Check for guested configure.
1813     if test -f "$ac_srcdir/configure.gnu"; then
1814       echo &&
1815       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816     elif test -f "$ac_srcdir/configure"; then
1817       echo &&
1818       $SHELL "$ac_srcdir/configure" --help=recursive
1819     else
1820       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821     fi || ac_status=$?
1822     cd "$ac_pwd" || { ac_status=$?; break; }
1823   done
1824 fi
1825
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1828   cat <<\_ACEOF
1829 configure
1830 generated by GNU Autoconf 2.61
1831
1832 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1833 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1834 This configure script is free software; the Free Software Foundation
1835 gives unlimited permission to copy, distribute and modify it.
1836 _ACEOF
1837   exit
1838 fi
1839 cat >config.log <<_ACEOF
1840 This file contains any messages produced by compilers while
1841 running configure, to aid debugging if configure makes a mistake.
1842
1843 It was created by $as_me, which was
1844 generated by GNU Autoconf 2.61.  Invocation command line was
1845
1846   $ $0 $@
1847
1848 _ACEOF
1849 exec 5>>config.log
1850 {
1851 cat <<_ASUNAME
1852 ## --------- ##
1853 ## Platform. ##
1854 ## --------- ##
1855
1856 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861
1862 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1864
1865 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1866 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1867 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1869 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1870 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1871 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1872
1873 _ASUNAME
1874
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1877 do
1878   IFS=$as_save_IFS
1879   test -z "$as_dir" && as_dir=.
1880   echo "PATH: $as_dir"
1881 done
1882 IFS=$as_save_IFS
1883
1884 } >&5
1885
1886 cat >&5 <<_ACEOF
1887
1888
1889 ## ----------- ##
1890 ## Core tests. ##
1891 ## ----------- ##
1892
1893 _ACEOF
1894
1895
1896 # Keep a trace of the command line.
1897 # Strip out --no-create and --no-recursion so they do not pile up.
1898 # Strip out --silent because we don't want to record it for future runs.
1899 # Also quote any args containing shell meta-characters.
1900 # Make two passes to allow for proper duplicate-argument suppression.
1901 ac_configure_args=
1902 ac_configure_args0=
1903 ac_configure_args1=
1904 ac_must_keep_next=false
1905 for ac_pass in 1 2
1906 do
1907   for ac_arg
1908   do
1909     case $ac_arg in
1910     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1911     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1912     | -silent | --silent | --silen | --sile | --sil)
1913       continue ;;
1914     *\'*)
1915       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916     esac
1917     case $ac_pass in
1918     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1919     2)
1920       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1921       if test $ac_must_keep_next = true; then
1922         ac_must_keep_next=false # Got value, back to normal.
1923       else
1924         case $ac_arg in
1925           *=* | --config-cache | -C | -disable-* | --disable-* \
1926           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1927           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1928           | -with-* | --with-* | -without-* | --without-* | --x)
1929             case "$ac_configure_args0 " in
1930               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931             esac
1932             ;;
1933           -* ) ac_must_keep_next=true ;;
1934         esac
1935       fi
1936       ac_configure_args="$ac_configure_args '$ac_arg'"
1937       ;;
1938     esac
1939   done
1940 done
1941 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1942 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1943
1944 # When interrupted or exit'd, cleanup temporary files, and complete
1945 # config.log.  We remove comments because anyway the quotes in there
1946 # would cause problems or look ugly.
1947 # WARNING: Use '\'' to represent an apostrophe within the trap.
1948 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949 trap 'exit_status=$?
1950   # Save into config.log some information that might help in debugging.
1951   {
1952     echo
1953
1954     cat <<\_ASBOX
1955 ## ---------------- ##
1956 ## Cache variables. ##
1957 ## ---------------- ##
1958 _ASBOX
1959     echo
1960     # The following way of writing the cache mishandles newlines in values,
1961 (
1962   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963     eval ac_val=\$$ac_var
1964     case $ac_val in #(
1965     *${as_nl}*)
1966       case $ac_var in #(
1967       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1968 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1969       esac
1970       case $ac_var in #(
1971       _ | IFS | as_nl) ;; #(
1972       *) $as_unset $ac_var ;;
1973       esac ;;
1974     esac
1975   done
1976   (set) 2>&1 |
1977     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1978     *${as_nl}ac_space=\ *)
1979       sed -n \
1980         "s/'\''/'\''\\\\'\'''\''/g;
1981           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982       ;; #(
1983     *)
1984       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1985       ;;
1986     esac |
1987     sort
1988 )
1989     echo
1990
1991     cat <<\_ASBOX
1992 ## ----------------- ##
1993 ## Output variables. ##
1994 ## ----------------- ##
1995 _ASBOX
1996     echo
1997     for ac_var in $ac_subst_vars
1998     do
1999       eval ac_val=\$$ac_var
2000       case $ac_val in
2001       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002       esac
2003       echo "$ac_var='\''$ac_val'\''"
2004     done | sort
2005     echo
2006
2007     if test -n "$ac_subst_files"; then
2008       cat <<\_ASBOX
2009 ## ------------------- ##
2010 ## File substitutions. ##
2011 ## ------------------- ##
2012 _ASBOX
2013       echo
2014       for ac_var in $ac_subst_files
2015       do
2016         eval ac_val=\$$ac_var
2017         case $ac_val in
2018         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019         esac
2020         echo "$ac_var='\''$ac_val'\''"
2021       done | sort
2022       echo
2023     fi
2024
2025     if test -s confdefs.h; then
2026       cat <<\_ASBOX
2027 ## ----------- ##
2028 ## confdefs.h. ##
2029 ## ----------- ##
2030 _ASBOX
2031       echo
2032       cat confdefs.h
2033       echo
2034     fi
2035     test "$ac_signal" != 0 &&
2036       echo "$as_me: caught signal $ac_signal"
2037     echo "$as_me: exit $exit_status"
2038   } >&5
2039   rm -f core *.core core.conftest.* &&
2040     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2041     exit $exit_status
2042 ' 0
2043 for ac_signal in 1 2 13 15; do
2044   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2045 done
2046 ac_signal=0
2047
2048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2049 rm -f -r conftest* confdefs.h
2050
2051 # Predefined preprocessor variables.
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_NAME "$PACKAGE_NAME"
2055 _ACEOF
2056
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060 _ACEOF
2061
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2065 _ACEOF
2066
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 _ACEOF
2071
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2075 _ACEOF
2076
2077
2078 # Let the site file select an alternate cache file if it wants to.
2079 # Prefer explicitly selected file to automatically selected ones.
2080 if test -n "$CONFIG_SITE"; then
2081   set x "$CONFIG_SITE"
2082 elif test "x$prefix" != xNONE; then
2083   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2084 else
2085   set x "$ac_default_prefix/share/config.site" \
2086         "$ac_default_prefix/etc/config.site"
2087 fi
2088 shift
2089 for ac_site_file
2090 do
2091   if test -r "$ac_site_file"; then
2092     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2093 echo "$as_me: loading site script $ac_site_file" >&6;}
2094     sed 's/^/| /' "$ac_site_file" >&5
2095     . "$ac_site_file"
2096   fi
2097 done
2098
2099 if test -r "$cache_file"; then
2100   # Some versions of bash will fail to source /dev/null (special
2101   # files actually), so we avoid doing that.
2102   if test -f "$cache_file"; then
2103     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2104 echo "$as_me: loading cache $cache_file" >&6;}
2105     case $cache_file in
2106       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2107       *)                      . "./$cache_file";;
2108     esac
2109   fi
2110 else
2111   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2112 echo "$as_me: creating cache $cache_file" >&6;}
2113   >$cache_file
2114 fi
2115
2116 # Check that the precious variables saved in the cache have kept the same
2117 # value.
2118 ac_cache_corrupted=false
2119 for ac_var in $ac_precious_vars; do
2120   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2121   eval ac_new_set=\$ac_env_${ac_var}_set
2122   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2123   eval ac_new_val=\$ac_env_${ac_var}_value
2124   case $ac_old_set,$ac_new_set in
2125     set,)
2126       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2127 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2128       ac_cache_corrupted=: ;;
2129     ,set)
2130       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2131 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2132       ac_cache_corrupted=: ;;
2133     ,);;
2134     *)
2135       if test "x$ac_old_val" != "x$ac_new_val"; then
2136         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2137 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2138         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2139 echo "$as_me:   former value:  $ac_old_val" >&2;}
2140         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2141 echo "$as_me:   current value: $ac_new_val" >&2;}
2142         ac_cache_corrupted=:
2143       fi;;
2144   esac
2145   # Pass precious variables to config.status.
2146   if test "$ac_new_set" = set; then
2147     case $ac_new_val in
2148     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2149     *) ac_arg=$ac_var=$ac_new_val ;;
2150     esac
2151     case " $ac_configure_args " in
2152       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2153       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2154     esac
2155   fi
2156 done
2157 if $ac_cache_corrupted; then
2158   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2159 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2161 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2162    { (exit 1); exit 1; }; }
2163 fi
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181 ac_ext=c
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186
2187
2188 BUILD_DIR=`pwd`
2189 cd ..
2190 TOP_DIR=`pwd`
2191 cd ${BUILD_DIR}
2192
2193
2194 ac_aux_dir=
2195 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2196   if test -f "$ac_dir/install-sh"; then
2197     ac_aux_dir=$ac_dir
2198     ac_install_sh="$ac_aux_dir/install-sh -c"
2199     break
2200   elif test -f "$ac_dir/install.sh"; then
2201     ac_aux_dir=$ac_dir
2202     ac_install_sh="$ac_aux_dir/install.sh -c"
2203     break
2204   elif test -f "$ac_dir/shtool"; then
2205     ac_aux_dir=$ac_dir
2206     ac_install_sh="$ac_aux_dir/shtool install -c"
2207     break
2208   fi
2209 done
2210 if test -z "$ac_aux_dir"; then
2211   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2212 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2213    { (exit 1); exit 1; }; }
2214 fi
2215
2216 # These three variables are undocumented and unsupported,
2217 # and are intended to be withdrawn in a future Autoconf release.
2218 # They can cause serious problems if a builder's source tree is in a directory
2219 # whose full name contains unusual characters.
2220 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2221 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2222 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2223
2224
2225 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2226
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
2325 post_host=
2326 if test "x$BACULA" != x; then
2327    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2328 fi
2329 BACULA=${BACULA-Bacula}
2330 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2331 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2332 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2333 echo "configuring for ${BACULA} $VERSION ($DATE)"
2334
2335
2336 ac_ext=c
2337 ac_cpp='$CPP $CPPFLAGS'
2338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2343 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   if test -n "$CC"; then
2350   ac_cv_prog_CC="$CC" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355   IFS=$as_save_IFS
2356   test -z "$as_dir" && as_dir=.
2357   for ac_exec_ext in '' $ac_executable_extensions; do
2358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361     break 2
2362   fi
2363 done
2364 done
2365 IFS=$as_save_IFS
2366
2367 fi
2368 fi
2369 CC=$ac_cv_prog_CC
2370 if test -n "$CC"; then
2371   { echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6; }
2373 else
2374   { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2376 fi
2377
2378
2379 fi
2380 if test -z "$ac_cv_prog_CC"; then
2381   ac_ct_CC=$CC
2382   # Extract the first word of "gcc", so it can be a program name with args.
2383 set dummy gcc; ac_word=$2
2384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   if test -n "$ac_ct_CC"; then
2390   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395   IFS=$as_save_IFS
2396   test -z "$as_dir" && as_dir=.
2397   for ac_exec_ext in '' $ac_executable_extensions; do
2398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399     ac_cv_prog_ac_ct_CC="gcc"
2400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401     break 2
2402   fi
2403 done
2404 done
2405 IFS=$as_save_IFS
2406
2407 fi
2408 fi
2409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410 if test -n "$ac_ct_CC"; then
2411   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2412 echo "${ECHO_T}$ac_ct_CC" >&6; }
2413 else
2414   { echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6; }
2416 fi
2417
2418   if test "x$ac_ct_CC" = x; then
2419     CC=""
2420   else
2421     case $cross_compiling:$ac_tool_warned in
2422 yes:)
2423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet.  If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&5
2426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet.  If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2429 ac_tool_warned=yes ;;
2430 esac
2431     CC=$ac_ct_CC
2432   fi
2433 else
2434   CC="$ac_cv_prog_CC"
2435 fi
2436
2437 if test -z "$CC"; then
2438           if test -n "$ac_tool_prefix"; then
2439     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}cc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   if test -n "$CC"; then
2447   ac_cv_prog_CC="$CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454   for ac_exec_ext in '' $ac_executable_extensions; do
2455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456     ac_cv_prog_CC="${ac_tool_prefix}cc"
2457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461 done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 CC=$ac_cv_prog_CC
2467 if test -n "$CC"; then
2468   { echo "$as_me:$LINENO: result: $CC" >&5
2469 echo "${ECHO_T}$CC" >&6; }
2470 else
2471   { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2473 fi
2474
2475
2476   fi
2477 fi
2478 if test -z "$CC"; then
2479   # Extract the first word of "cc", so it can be a program name with args.
2480 set dummy cc; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_CC+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   if test -n "$CC"; then
2487   ac_cv_prog_CC="$CC" # Let the user override the test.
2488 else
2489   ac_prog_rejected=no
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2498        ac_prog_rejected=yes
2499        continue
2500      fi
2501     ac_cv_prog_CC="cc"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 if test $ac_prog_rejected = yes; then
2510   # We found a bogon in the path, so make sure we never use it.
2511   set dummy $ac_cv_prog_CC
2512   shift
2513   if test $# != 0; then
2514     # We chose a different compiler from the bogus one.
2515     # However, it has the same basename, so the bogon will be chosen
2516     # first if we set CC to just the basename; use the full file name.
2517     shift
2518     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2519   fi
2520 fi
2521 fi
2522 fi
2523 CC=$ac_cv_prog_CC
2524 if test -n "$CC"; then
2525   { echo "$as_me:$LINENO: result: $CC" >&5
2526 echo "${ECHO_T}$CC" >&6; }
2527 else
2528   { echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6; }
2530 fi
2531
2532
2533 fi
2534 if test -z "$CC"; then
2535   if test -n "$ac_tool_prefix"; then
2536   for ac_prog in cl.exe
2537   do
2538     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   if test -n "$CC"; then
2546   ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553   for ac_exec_ext in '' $ac_executable_extensions; do
2554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557     break 2
2558   fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567   { echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6; }
2569 else
2570   { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2572 fi
2573
2574
2575     test -n "$CC" && break
2576   done
2577 fi
2578 if test -z "$CC"; then
2579   ac_ct_CC=$CC
2580   for ac_prog in cl.exe
2581 do
2582   # Extract the first word of "$ac_prog", so it can be a program name with args.
2583 set dummy $ac_prog; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   if test -n "$ac_ct_CC"; then
2590   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599     ac_cv_prog_ac_ct_CC="$ac_prog"
2600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 echo "${ECHO_T}$ac_ct_CC" >&6; }
2613 else
2614   { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2616 fi
2617
2618
2619   test -n "$ac_ct_CC" && break
2620 done
2621
2622   if test "x$ac_ct_CC" = x; then
2623     CC=""
2624   else
2625     case $cross_compiling:$ac_tool_warned in
2626 yes:)
2627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet.  If you think this
2629 configuration is useful to you, please write to autoconf@gnu.org." >&5
2630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2631 whose name does not start with the host triplet.  If you think this
2632 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2633 ac_tool_warned=yes ;;
2634 esac
2635     CC=$ac_ct_CC
2636   fi
2637 fi
2638
2639 fi
2640
2641
2642 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2643 See \`config.log' for more details." >&5
2644 echo "$as_me: error: no acceptable C compiler found in \$PATH
2645 See \`config.log' for more details." >&2;}
2646    { (exit 1); exit 1; }; }
2647
2648 # Provide some information about the compiler.
2649 echo "$as_me:$LINENO: checking for C compiler version" >&5
2650 ac_compiler=`set X $ac_compile; echo $2`
2651 { (ac_try="$ac_compiler --version >&5"
2652 case "(($ac_try" in
2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654   *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657   (eval "$ac_compiler --version >&5") 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }
2661 { (ac_try="$ac_compiler -v >&5"
2662 case "(($ac_try" in
2663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664   *) ac_try_echo=$ac_try;;
2665 esac
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667   (eval "$ac_compiler -v >&5") 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }
2671 { (ac_try="$ac_compiler -V >&5"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_compiler -V >&5") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }
2681
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 ac_clean_files_save=$ac_clean_files
2698 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2699 # Try to create an executable without -o first, disregard a.out.
2700 # It will help us diagnose broken compilers, and finding out an intuition
2701 # of exeext.
2702 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2703 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2704 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2705 #
2706 # List of possible output files, starting from the most likely.
2707 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2708 # only as a last resort.  b.out is created by i960 compilers.
2709 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2710 #
2711 # The IRIX 6 linker writes into existing files which may not be
2712 # executable, retaining their permissions.  Remove them first so a
2713 # subsequent execution test works.
2714 ac_rmfiles=
2715 for ac_file in $ac_files
2716 do
2717   case $ac_file in
2718     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2719     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2720   esac
2721 done
2722 rm -f $ac_rmfiles
2723
2724 if { (ac_try="$ac_link_default"
2725 case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_link_default") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; then
2734   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2735 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2736 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2737 # so that the user can short-circuit this test for compilers unknown to
2738 # Autoconf.
2739 for ac_file in $ac_files ''
2740 do
2741   test -f "$ac_file" || continue
2742   case $ac_file in
2743     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2744         ;;
2745     [ab].out )
2746         # We found the default executable, but exeext='' is most
2747         # certainly right.
2748         break;;
2749     *.* )
2750         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2751         then :; else
2752            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2753         fi
2754         # We set ac_cv_exeext here because the later test for it is not
2755         # safe: cross compilers may not add the suffix if given an `-o'
2756         # argument, so we may need to know it at that point already.
2757         # Even if this section looks crufty: it has the advantage of
2758         # actually working.
2759         break;;
2760     * )
2761         break;;
2762   esac
2763 done
2764 test "$ac_cv_exeext" = no && ac_cv_exeext=
2765
2766 else
2767   ac_file=''
2768 fi
2769
2770 { echo "$as_me:$LINENO: result: $ac_file" >&5
2771 echo "${ECHO_T}$ac_file" >&6; }
2772 if test -z "$ac_file"; then
2773   echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2777 See \`config.log' for more details." >&5
2778 echo "$as_me: error: C compiler cannot create executables
2779 See \`config.log' for more details." >&2;}
2780    { (exit 77); exit 77; }; }
2781 fi
2782
2783 ac_exeext=$ac_cv_exeext
2784
2785 # Check that the compiler produces executables we can run.  If not, either
2786 # the compiler is broken, or we cross compile.
2787 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2788 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2789 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2790 # If not cross compiling, check that we can run a simple program.
2791 if test "$cross_compiling" != yes; then
2792   if { ac_try='./$ac_file'
2793   { (case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_try") 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; }; then
2802     cross_compiling=no
2803   else
2804     if test "$cross_compiling" = maybe; then
2805         cross_compiling=yes
2806     else
2807         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2808 If you meant to cross compile, use \`--host'.
2809 See \`config.log' for more details." >&5
2810 echo "$as_me: error: cannot run C compiled programs.
2811 If you meant to cross compile, use \`--host'.
2812 See \`config.log' for more details." >&2;}
2813    { (exit 1); exit 1; }; }
2814     fi
2815   fi
2816 fi
2817 { echo "$as_me:$LINENO: result: yes" >&5
2818 echo "${ECHO_T}yes" >&6; }
2819
2820 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2821 ac_clean_files=$ac_clean_files_save
2822 # Check that the compiler produces executables we can run.  If not, either
2823 # the compiler is broken, or we cross compile.
2824 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2825 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2826 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2827 echo "${ECHO_T}$cross_compiling" >&6; }
2828
2829 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2830 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2831 if { (ac_try="$ac_link"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837   (eval "$ac_link") 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; then
2841   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2842 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2843 # work properly (i.e., refer to `conftest.exe'), while it won't with
2844 # `rm'.
2845 for ac_file in conftest.exe conftest conftest.*; do
2846   test -f "$ac_file" || continue
2847   case $ac_file in
2848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2849     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850           break;;
2851     * ) break;;
2852   esac
2853 done
2854 else
2855   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2858 See \`config.log' for more details." >&2;}
2859    { (exit 1); exit 1; }; }
2860 fi
2861
2862 rm -f conftest$ac_cv_exeext
2863 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2864 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2865
2866 rm -f conftest.$ac_ext
2867 EXEEXT=$ac_cv_exeext
2868 ac_exeext=$EXEEXT
2869 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2870 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2871 if test "${ac_cv_objext+set}" = set; then
2872   echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874   cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h.  */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h.  */
2880
2881 int
2882 main ()
2883 {
2884
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 rm -f conftest.o conftest.obj
2890 if { (ac_try="$ac_compile"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_compile") 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; then
2900   for ac_file in conftest.o conftest.obj conftest.*; do
2901   test -f "$ac_file" || continue;
2902   case $ac_file in
2903     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2904     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2905        break;;
2906   esac
2907 done
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2915 See \`config.log' for more details." >&2;}
2916    { (exit 1); exit 1; }; }
2917 fi
2918
2919 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2920 fi
2921 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2922 echo "${ECHO_T}$ac_cv_objext" >&6; }
2923 OBJEXT=$ac_cv_objext
2924 ac_objext=$OBJEXT
2925 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2926 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2927 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930   cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h.  */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h.  */
2936
2937 int
2938 main ()
2939 {
2940 #ifndef __GNUC__
2941        choke me
2942 #endif
2943
2944   ;
2945   return 0;
2946 }
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (ac_try="$ac_compile"
2950 case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_compile") 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } && {
2962          test -z "$ac_c_werror_flag" ||
2963          test ! -s conftest.err
2964        } && test -s conftest.$ac_objext; then
2965   ac_compiler_gnu=yes
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970         ac_compiler_gnu=no
2971 fi
2972
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2975
2976 fi
2977 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2978 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2979 GCC=`test $ac_compiler_gnu = yes && echo yes`
2980 ac_test_CFLAGS=${CFLAGS+set}
2981 ac_save_CFLAGS=$CFLAGS
2982 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2983 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_cc_g+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   ac_save_c_werror_flag=$ac_c_werror_flag
2988    ac_c_werror_flag=yes
2989    ac_cv_prog_cc_g=no
2990    CFLAGS="-g"
2991    cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h.  */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h.  */
2997
2998 int
2999 main ()
3000 {
3001
3002   ;
3003   return 0;
3004 }
3005 _ACEOF
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3008 case "(($ac_try" in
3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010   *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013   (eval "$ac_compile") 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } && {
3020          test -z "$ac_c_werror_flag" ||
3021          test ! -s conftest.err
3022        } && test -s conftest.$ac_objext; then
3023   ac_cv_prog_cc_g=yes
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028         CFLAGS=""
3029       cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } && {
3058          test -z "$ac_c_werror_flag" ||
3059          test ! -s conftest.err
3060        } && test -s conftest.$ac_objext; then
3061   :
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066         ac_c_werror_flag=$ac_save_c_werror_flag
3067          CFLAGS="-g"
3068          cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074
3075 int
3076 main ()
3077 {
3078
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_compile") 2>conftest.er1
3091   ac_status=$?
3092   grep -v '^ *+' conftest.er1 >conftest.err
3093   rm -f conftest.er1
3094   cat conftest.err >&5
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); } && {
3097          test -z "$ac_c_werror_flag" ||
3098          test ! -s conftest.err
3099        } && test -s conftest.$ac_objext; then
3100   ac_cv_prog_cc_g=yes
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 fi
3110
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 fi
3113
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115    ac_c_werror_flag=$ac_save_c_werror_flag
3116 fi
3117 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3118 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3119 if test "$ac_test_CFLAGS" = set; then
3120   CFLAGS=$ac_save_CFLAGS
3121 elif test $ac_cv_prog_cc_g = yes; then
3122   if test "$GCC" = yes; then
3123     CFLAGS="-g -O2"
3124   else
3125     CFLAGS="-g"
3126   fi
3127 else
3128   if test "$GCC" = yes; then
3129     CFLAGS="-O2"
3130   else
3131     CFLAGS=
3132   fi
3133 fi
3134 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3135 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_cc_c89+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   ac_cv_prog_cc_c89=no
3140 ac_save_CC=$CC
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147 #include <stdarg.h>
3148 #include <stdio.h>
3149 #include <sys/types.h>
3150 #include <sys/stat.h>
3151 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3152 struct buf { int x; };
3153 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3154 static char *e (p, i)
3155      char **p;
3156      int i;
3157 {
3158   return p[i];
3159 }
3160 static char *f (char * (*g) (char **, int), char **p, ...)
3161 {
3162   char *s;
3163   va_list v;
3164   va_start (v,p);
3165   s = g (p, va_arg (v,int));
3166   va_end (v);
3167   return s;
3168 }
3169
3170 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3171    function prototypes and stuff, but not '\xHH' hex character constants.
3172    These don't provoke an error unfortunately, instead are silently treated
3173    as 'x'.  The following induces an error, until -std is added to get
3174    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3175    array size at least.  It's necessary to write '\x00'==0 to get something
3176    that's true only with -std.  */
3177 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3178
3179 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3180    inside strings and character constants.  */
3181 #define FOO(x) 'x'
3182 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3183
3184 int test (int i, double x);
3185 struct s1 {int (*f) (int a);};
3186 struct s2 {int (*f) (double a);};
3187 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3188 int argc;
3189 char **argv;
3190 int
3191 main ()
3192 {
3193 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3199         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3200 do
3201   CC="$ac_save_CC $ac_arg"
3202   rm -f conftest.$ac_objext
3203 if { (ac_try="$ac_compile"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209   (eval "$ac_compile") 2>conftest.er1
3210   ac_status=$?
3211   grep -v '^ *+' conftest.er1 >conftest.err
3212   rm -f conftest.er1
3213   cat conftest.err >&5
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); } && {
3216          test -z "$ac_c_werror_flag" ||
3217          test ! -s conftest.err
3218        } && test -s conftest.$ac_objext; then
3219   ac_cv_prog_cc_c89=$ac_arg
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext
3228   test "x$ac_cv_prog_cc_c89" != "xno" && break
3229 done
3230 rm -f conftest.$ac_ext
3231 CC=$ac_save_CC
3232
3233 fi
3234 # AC_CACHE_VAL
3235 case "x$ac_cv_prog_cc_c89" in
3236   x)
3237     { echo "$as_me:$LINENO: result: none needed" >&5
3238 echo "${ECHO_T}none needed" >&6; } ;;
3239   xno)
3240     { echo "$as_me:$LINENO: result: unsupported" >&5
3241 echo "${ECHO_T}unsupported" >&6; } ;;
3242   *)
3243     CC="$CC $ac_cv_prog_cc_c89"
3244     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3245 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3246 esac
3247
3248
3249 ac_ext=c
3250 ac_cpp='$CPP $CPPFLAGS'
3251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254
3255 ac_ext=cpp
3256 ac_cpp='$CXXCPP $CPPFLAGS'
3257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3260 if test -z "$CXX"; then
3261   if test -n "$CCC"; then
3262     CXX=$CCC
3263   else
3264     if test -n "$ac_tool_prefix"; then
3265   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3266   do
3267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3271 if test "${ac_cv_prog_CXX+set}" = set; then
3272   echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274   if test -n "$CXX"; then
3275   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282   for ac_exec_ext in '' $ac_executable_extensions; do
3283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286     break 2
3287   fi
3288 done
3289 done
3290 IFS=$as_save_IFS
3291
3292 fi
3293 fi
3294 CXX=$ac_cv_prog_CXX
3295 if test -n "$CXX"; then
3296   { echo "$as_me:$LINENO: result: $CXX" >&5
3297 echo "${ECHO_T}$CXX" >&6; }
3298 else
3299   { echo "$as_me:$LINENO: result: no" >&5
3300 echo "${ECHO_T}no" >&6; }
3301 fi
3302
3303
3304     test -n "$CXX" && break
3305   done
3306 fi
3307 if test -z "$CXX"; then
3308   ac_ct_CXX=$CXX
3309   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3310 do
3311   # Extract the first word of "$ac_prog", so it can be a program name with args.
3312 set dummy $ac_prog; ac_word=$2
3313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3316   echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318   if test -n "$ac_ct_CXX"; then
3319   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326   for ac_exec_ext in '' $ac_executable_extensions; do
3327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328     ac_cv_prog_ac_ct_CXX="$ac_prog"
3329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3339 if test -n "$ac_ct_CXX"; then
3340   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3341 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3342 else
3343   { echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6; }
3345 fi
3346
3347
3348   test -n "$ac_ct_CXX" && break
3349 done
3350
3351   if test "x$ac_ct_CXX" = x; then
3352     CXX="g++"
3353   else
3354     case $cross_compiling:$ac_tool_warned in
3355 yes:)
3356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3357 whose name does not start with the host triplet.  If you think this
3358 configuration is useful to you, please write to autoconf@gnu.org." >&5
3359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3360 whose name does not start with the host triplet.  If you think this
3361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3362 ac_tool_warned=yes ;;
3363 esac
3364     CXX=$ac_ct_CXX
3365   fi
3366 fi
3367
3368   fi
3369 fi
3370 # Provide some information about the compiler.
3371 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3372 ac_compiler=`set X $ac_compile; echo $2`
3373 { (ac_try="$ac_compiler --version >&5"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379   (eval "$ac_compiler --version >&5") 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }
3383 { (ac_try="$ac_compiler -v >&5"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389   (eval "$ac_compiler -v >&5") 2>&5
3390   ac_status=$?
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }
3393 { (ac_try="$ac_compiler -V >&5"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_compiler -V >&5") 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }
3403
3404 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3405 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3406 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3407   echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409   cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415
3416 int
3417 main ()
3418 {
3419 #ifndef __GNUC__
3420        choke me
3421 #endif
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.$ac_objext
3428 if { (ac_try="$ac_compile"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434   (eval "$ac_compile") 2>conftest.er1
3435   ac_status=$?
3436   grep -v '^ *+' conftest.er1 >conftest.err
3437   rm -f conftest.er1
3438   cat conftest.err >&5
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } && {
3441          test -z "$ac_cxx_werror_flag" ||
3442          test ! -s conftest.err
3443        } && test -s conftest.$ac_objext; then
3444   ac_compiler_gnu=yes
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449         ac_compiler_gnu=no
3450 fi
3451
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3454
3455 fi
3456 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3457 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3458 GXX=`test $ac_compiler_gnu = yes && echo yes`
3459 ac_test_CXXFLAGS=${CXXFLAGS+set}
3460 ac_save_CXXFLAGS=$CXXFLAGS
3461 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3462 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3463 if test "${ac_cv_prog_cxx_g+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3467    ac_cxx_werror_flag=yes
3468    ac_cv_prog_cxx_g=no
3469    CXXFLAGS="-g"
3470    cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h.  */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h.  */
3476
3477 int
3478 main ()
3479 {
3480
3481   ;
3482   return 0;
3483 }
3484 _ACEOF
3485 rm -f conftest.$ac_objext
3486 if { (ac_try="$ac_compile"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492   (eval "$ac_compile") 2>conftest.er1
3493   ac_status=$?
3494   grep -v '^ *+' conftest.er1 >conftest.err
3495   rm -f conftest.er1
3496   cat conftest.err >&5
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); } && {
3499          test -z "$ac_cxx_werror_flag" ||
3500          test ! -s conftest.err
3501        } && test -s conftest.$ac_objext; then
3502   ac_cv_prog_cxx_g=yes
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507         CXXFLAGS=""
3508       cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514
3515 int
3516 main ()
3517 {
3518
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (ac_try="$ac_compile"
3525 case "(($ac_try" in
3526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527   *) ac_try_echo=$ac_try;;
3528 esac
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530   (eval "$ac_compile") 2>conftest.er1
3531   ac_status=$?
3532   grep -v '^ *+' conftest.er1 >conftest.err
3533   rm -f conftest.er1
3534   cat conftest.err >&5
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); } && {
3537          test -z "$ac_cxx_werror_flag" ||
3538          test ! -s conftest.err
3539        } && test -s conftest.$ac_objext; then
3540   :
3541 else
3542   echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3546          CXXFLAGS="-g"
3547          cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h.  */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h.  */
3553
3554 int
3555 main ()
3556 {
3557
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (ac_try="$ac_compile"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569   (eval "$ac_compile") 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } && {
3576          test -z "$ac_cxx_werror_flag" ||
3577          test ! -s conftest.err
3578        } && test -s conftest.$ac_objext; then
3579   ac_cv_prog_cxx_g=yes
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584
3585 fi
3586
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 fi
3592
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3595 fi
3596 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3597 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3598 if test "$ac_test_CXXFLAGS" = set; then
3599   CXXFLAGS=$ac_save_CXXFLAGS
3600 elif test $ac_cv_prog_cxx_g = yes; then
3601   if test "$GXX" = yes; then
3602     CXXFLAGS="-g -O2"
3603   else
3604     CXXFLAGS="-g"
3605   fi
3606 else
3607   if test "$GXX" = yes; then
3608     CXXFLAGS="-O2"
3609   else
3610     CXXFLAGS=
3611   fi
3612 fi
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619 if test "x$CC" != xcc; then
3620   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3621 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3622 else
3623   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3624 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3625 fi
3626 set dummy $CC; ac_cc=`echo $2 |
3627                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3628 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 # Make sure it works both with $CC and with simple cc.
3647 # We do the test twice because some compilers refuse to overwrite an
3648 # existing .o file with -o, though they will create one.
3649 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3650 rm -f conftest2.*
3651 if { (case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656   (eval "$ac_try") 2>&5
3657   ac_status=$?
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } &&
3660    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662   *) ac_try_echo=$ac_try;;
3663 esac
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665   (eval "$ac_try") 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); };
3669 then
3670   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3671   if test "x$CC" != xcc; then
3672     # Test first that cc exists at all.
3673     if { ac_try='cc -c conftest.$ac_ext >&5'
3674   { (case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_try") 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); }; }; then
3683       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3684       rm -f conftest2.*
3685       if { (case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_try") 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); } &&
3694          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699   (eval "$ac_try") 2>&5
3700   ac_status=$?
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); };
3703       then
3704         # cc works too.
3705         :
3706       else
3707         # cc exists but doesn't like -o.
3708         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3709       fi
3710     fi
3711   fi
3712 else
3713   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3714 fi
3715 rm -f core conftest*
3716
3717 fi
3718 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3719   { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3721 else
3722   { echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6; }
3724
3725 cat >>confdefs.h <<\_ACEOF
3726 #define NO_MINUS_C_MINUS_O 1
3727 _ACEOF
3728
3729 fi
3730
3731 ac_ext=c
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3737 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3738 # On Suns, sometimes $CPP names a directory.
3739 if test -n "$CPP" && test -d "$CPP"; then
3740   CPP=
3741 fi
3742 if test -z "$CPP"; then
3743   if test "${ac_cv_prog_CPP+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746       # Double quotes because CPP needs to be expanded
3747     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3748     do
3749       ac_preproc_ok=false
3750 for ac_c_preproc_warn_flag in '' yes
3751 do
3752   # Use a header file that comes with gcc, so configuring glibc
3753   # with a fresh cross-compiler works.
3754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755   # <limits.h> exists even on freestanding compilers.
3756   # On the NeXT, cc -E runs the code through the compiler's parser,
3757   # not just through cpp. "Syntax error" is here to catch this case.
3758   cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 #ifdef __STDC__
3765 # include <limits.h>
3766 #else
3767 # include <assert.h>
3768 #endif
3769                      Syntax error
3770 _ACEOF
3771 if { (ac_try="$ac_cpp conftest.$ac_ext"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3778   ac_status=$?
3779   grep -v '^ *+' conftest.er1 >conftest.err
3780   rm -f conftest.er1
3781   cat conftest.err >&5
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } >/dev/null && {
3784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3785          test ! -s conftest.err
3786        }; then
3787   :
3788 else
3789   echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792   # Broken: fails on valid input.
3793 continue
3794 fi
3795
3796 rm -f conftest.err conftest.$ac_ext
3797
3798   # OK, works on sane cases.  Now check whether nonexistent headers
3799   # can be detected and how.
3800   cat >conftest.$ac_ext <<_ACEOF
3801 /* confdefs.h.  */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h.  */
3806 #include <ac_nonexistent.h>
3807 _ACEOF
3808 if { (ac_try="$ac_cpp conftest.$ac_ext"
3809 case "(($ac_try" in
3810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811   *) ac_try_echo=$ac_try;;
3812 esac
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815   ac_status=$?
3816   grep -v '^ *+' conftest.er1 >conftest.err
3817   rm -f conftest.er1
3818   cat conftest.err >&5
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); } >/dev/null && {
3821          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822          test ! -s conftest.err
3823        }; then
3824   # Broken: success on invalid input.
3825 continue
3826 else
3827   echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830   # Passes both tests.
3831 ac_preproc_ok=:
3832 break
3833 fi
3834
3835 rm -f conftest.err conftest.$ac_ext
3836
3837 done
3838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839 rm -f conftest.err conftest.$ac_ext
3840 if $ac_preproc_ok; then
3841   break
3842 fi
3843
3844     done
3845     ac_cv_prog_CPP=$CPP
3846
3847 fi
3848   CPP=$ac_cv_prog_CPP
3849 else
3850   ac_cv_prog_CPP=$CPP
3851 fi
3852 { echo "$as_me:$LINENO: result: $CPP" >&5
3853 echo "${ECHO_T}$CPP" >&6; }
3854 ac_preproc_ok=false
3855 for ac_c_preproc_warn_flag in '' yes
3856 do
3857   # Use a header file that comes with gcc, so configuring glibc
3858   # with a fresh cross-compiler works.
3859   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860   # <limits.h> exists even on freestanding compilers.
3861   # On the NeXT, cc -E runs the code through the compiler's parser,
3862   # not just through cpp. "Syntax error" is here to catch this case.
3863   cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h.  */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h.  */
3869 #ifdef __STDC__
3870 # include <limits.h>
3871 #else
3872 # include <assert.h>
3873 #endif
3874                      Syntax error
3875 _ACEOF
3876 if { (ac_try="$ac_cpp conftest.$ac_ext"
3877 case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3883   ac_status=$?
3884   grep -v '^ *+' conftest.er1 >conftest.err
3885   rm -f conftest.er1
3886   cat conftest.err >&5
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); } >/dev/null && {
3889          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3890          test ! -s conftest.err
3891        }; then
3892   :
3893 else
3894   echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3896
3897   # Broken: fails on valid input.
3898 continue
3899 fi
3900
3901 rm -f conftest.err conftest.$ac_ext
3902
3903   # OK, works on sane cases.  Now check whether nonexistent headers
3904   # can be detected and how.
3905   cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911 #include <ac_nonexistent.h>
3912 _ACEOF
3913 if { (ac_try="$ac_cpp conftest.$ac_ext"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920   ac_status=$?
3921   grep -v '^ *+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } >/dev/null && {
3926          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927          test ! -s conftest.err
3928        }; then
3929   # Broken: success on invalid input.
3930 continue
3931 else
3932   echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935   # Passes both tests.
3936 ac_preproc_ok=:
3937 break
3938 fi
3939
3940 rm -f conftest.err conftest.$ac_ext
3941
3942 done
3943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3944 rm -f conftest.err conftest.$ac_ext
3945 if $ac_preproc_ok; then
3946   :
3947 else
3948   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3949 See \`config.log' for more details." >&5
3950 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3951 See \`config.log' for more details." >&2;}
3952    { (exit 1); exit 1; }; }
3953 fi
3954
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961
3962 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3963 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_GREP+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   # Extract the first word of "grep ggrep" to use in msg output
3968 if test -z "$GREP"; then
3969 set dummy grep ggrep; ac_prog_name=$2
3970 if test "${ac_cv_path_GREP+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   ac_path_GREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_prog in grep ggrep; do
3981   for ac_exec_ext in '' $ac_executable_extensions; do
3982     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3983     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3984     # Check for GNU ac_path_GREP and select it if it is found.
3985   # Check for GNU $ac_path_GREP
3986 case `"$ac_path_GREP" --version 2>&1` in
3987 *GNU*)
3988   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3989 *)
3990   ac_count=0
3991   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3992   while :
3993   do
3994     cat "conftest.in" "conftest.in" >"conftest.tmp"
3995     mv "conftest.tmp" "conftest.in"
3996     cp "conftest.in" "conftest.nl"
3997     echo 'GREP' >> "conftest.nl"
3998     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000     ac_count=`expr $ac_count + 1`
4001     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002       # Best one so far, save it but keep looking for a better one
4003       ac_cv_path_GREP="$ac_path_GREP"
4004       ac_path_GREP_max=$ac_count
4005     fi
4006     # 10*(2^10) chars as input seems more than enough
4007     test $ac_count -gt 10 && break
4008   done
4009   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 esac
4011
4012
4013     $ac_path_GREP_found && break 3
4014   done
4015 done
4016
4017 done
4018 IFS=$as_save_IFS
4019
4020
4021 fi
4022
4023 GREP="$ac_cv_path_GREP"
4024 if test -z "$GREP"; then
4025   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027    { (exit 1); exit 1; }; }
4028 fi
4029
4030 else
4031   ac_cv_path_GREP=$GREP
4032 fi
4033
4034
4035 fi
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4038  GREP="$ac_cv_path_GREP"
4039
4040
4041 { echo "$as_me:$LINENO: checking for egrep" >&5
4042 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4043 if test "${ac_cv_path_EGREP+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4047    then ac_cv_path_EGREP="$GREP -E"
4048    else
4049      # Extract the first word of "egrep" to use in msg output
4050 if test -z "$EGREP"; then
4051 set dummy egrep; ac_prog_name=$2
4052 if test "${ac_cv_path_EGREP+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   ac_path_EGREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059 do
4060   IFS=$as_save_IFS
4061   test -z "$as_dir" && as_dir=.
4062   for ac_prog in egrep; do
4063   for ac_exec_ext in '' $ac_executable_extensions; do
4064     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4066     # Check for GNU ac_path_EGREP and select it if it is found.
4067   # Check for GNU $ac_path_EGREP
4068 case `"$ac_path_EGREP" --version 2>&1` in
4069 *GNU*)
4070   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4071 *)
4072   ac_count=0
4073   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4074   while :
4075   do
4076     cat "conftest.in" "conftest.in" >"conftest.tmp"
4077     mv "conftest.tmp" "conftest.in"
4078     cp "conftest.in" "conftest.nl"
4079     echo 'EGREP' >> "conftest.nl"
4080     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082     ac_count=`expr $ac_count + 1`
4083     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084       # Best one so far, save it but keep looking for a better one
4085       ac_cv_path_EGREP="$ac_path_EGREP"
4086       ac_path_EGREP_max=$ac_count
4087     fi
4088     # 10*(2^10) chars as input seems more than enough
4089     test $ac_count -gt 10 && break
4090   done
4091   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 esac
4093
4094
4095     $ac_path_EGREP_found && break 3
4096   done
4097 done
4098
4099 done
4100 IFS=$as_save_IFS
4101
4102
4103 fi
4104
4105 EGREP="$ac_cv_path_EGREP"
4106 if test -z "$EGREP"; then
4107   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4108 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4109    { (exit 1); exit 1; }; }
4110 fi
4111
4112 else
4113   ac_cv_path_EGREP=$EGREP
4114 fi
4115
4116
4117    fi
4118 fi
4119 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4121  EGREP="$ac_cv_path_EGREP"
4122
4123
4124 if test $ac_cv_c_compiler_gnu = yes; then
4125     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4126 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4127 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130     ac_pattern="Autoconf.*'x'"
4131   cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 #include <sgtty.h>
4138 Autoconf TIOCGETP
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4142   ac_cv_prog_gcc_traditional=yes
4143 else
4144   ac_cv_prog_gcc_traditional=no
4145 fi
4146 rm -f conftest*
4147
4148
4149   if test $ac_cv_prog_gcc_traditional = no; then
4150     cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 #include <termio.h>
4157 Autoconf TCGETA
4158 _ACEOF
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4161   ac_cv_prog_gcc_traditional=yes
4162 fi
4163 rm -f conftest*
4164
4165   fi
4166 fi
4167 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4168 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4169   if test $ac_cv_prog_gcc_traditional = yes; then
4170     CC="$CC -traditional"
4171   fi
4172 fi
4173
4174 BASECC=`basename $CC`
4175 have_gcc=no
4176 if test "x$BASECC" = xgcc; then
4177    cat >>confdefs.h <<\_ACEOF
4178 #define HAVE_GCC 1
4179 _ACEOF
4180
4181    have_gcc=yes
4182 fi
4183 # Extract the first word of "$CXX", so it can be a program name with args.
4184 set dummy $CXX; ac_word=$2
4185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4187 if test "${ac_cv_path_CXX+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   case $CXX in
4191   [\\/]* | ?:[\\/]*)
4192   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4193   ;;
4194   *)
4195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198   IFS=$as_save_IFS
4199   test -z "$as_dir" && as_dir=.
4200   for ac_exec_ext in '' $ac_executable_extensions; do
4201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204     break 2
4205   fi
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4211   ;;
4212 esac
4213 fi
4214 CXX=$ac_cv_path_CXX
4215 if test -n "$CXX"; then
4216   { echo "$as_me:$LINENO: result: $CXX" >&5
4217 echo "${ECHO_T}$CXX" >&6; }
4218 else
4219   { echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6; }
4221 fi
4222
4223
4224 if test ! -e $CXX; then
4225    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4226 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4227    { (exit 1); exit 1; }; }
4228 fi
4229
4230 # Find a good install program.  We prefer a C program (faster),
4231 # so one script is as good as another.  But avoid the broken or
4232 # incompatible versions:
4233 # SysV /etc/install, /usr/sbin/install
4234 # SunOS /usr/etc/install
4235 # IRIX /sbin/install
4236 # AIX /bin/install
4237 # AmigaOS /C/install, which installs bootblocks on floppy discs
4238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4241 # OS/2's system install, which has a completely different semantic
4242 # ./install, which can be erroneously created by make from ./install.sh.
4243 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4244 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4245 if test -z "$INSTALL"; then
4246 if test "${ac_cv_path_install+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254   # Account for people who put trailing slashes in PATH elements.
4255 case $as_dir/ in
4256   ./ | .// | /cC/* | \
4257   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4258   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4259   /usr/ucb/* ) ;;
4260   *)
4261     # OSF1 and SCO ODT 3.0 have their own names for install.
4262     # Don't use installbsd from OSF since it installs stuff as root
4263     # by default.
4264     for ac_prog in ginstall scoinst install; do
4265       for ac_exec_ext in '' $ac_executable_extensions; do
4266         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4267           if test $ac_prog = install &&
4268             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4269             # AIX install.  It has an incompatible calling convention.
4270             :
4271           elif test $ac_prog = install &&
4272             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4273             # program-specific install script used by HP pwplus--don't use.
4274             :
4275           else
4276             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4277             break 3
4278           fi
4279         fi
4280       done
4281     done
4282     ;;
4283 esac
4284 done
4285 IFS=$as_save_IFS
4286
4287
4288 fi
4289   if test "${ac_cv_path_install+set}" = set; then
4290     INSTALL=$ac_cv_path_install
4291   else
4292     # As a last resort, use the slow shell script.  Don't cache a
4293     # value for INSTALL within a source directory, because that will
4294     # break other packages using the cache if that directory is
4295     # removed, or if the value is a relative name.
4296     INSTALL=$ac_install_sh
4297   fi
4298 fi
4299 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4300 echo "${ECHO_T}$INSTALL" >&6; }
4301
4302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4303 # It thinks the first close brace ends the variable substitution.
4304 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4305
4306 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4307
4308 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4309
4310 # Extract the first word of "mv", so it can be a program name with args.
4311 set dummy mv; ac_word=$2
4312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4314 if test "${ac_cv_path_MV+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317   case $MV in
4318   [\\/]* | ?:[\\/]*)
4319   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4320   ;;
4321   *)
4322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327   for ac_exec_ext in '' $ac_executable_extensions; do
4328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331     break 2
4332   fi
4333 done
4334 done
4335 IFS=$as_save_IFS
4336
4337   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4338   ;;
4339 esac
4340 fi
4341 MV=$ac_cv_path_MV
4342 if test -n "$MV"; then
4343   { echo "$as_me:$LINENO: result: $MV" >&5
4344 echo "${ECHO_T}$MV" >&6; }
4345 else
4346   { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4348 fi
4349
4350
4351 # Extract the first word of "rm", so it can be a program name with args.
4352 set dummy rm; ac_word=$2
4353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4355 if test "${ac_cv_path_REMOVE+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358   case $REMOVE in
4359   [\\/]* | ?:[\\/]*)
4360   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4361   ;;
4362   *)
4363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368   for ac_exec_ext in '' $ac_executable_extensions; do
4369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375 done
4376 IFS=$as_save_IFS
4377
4378   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4379   ;;
4380 esac
4381 fi
4382 REMOVE=$ac_cv_path_REMOVE
4383 if test -n "$REMOVE"; then
4384   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4385 echo "${ECHO_T}$REMOVE" >&6; }
4386 else
4387   { echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6; }
4389 fi
4390
4391
4392 # Extract the first word of "cp", so it can be a program name with args.
4393 set dummy cp; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_path_CP+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   case $CP in
4400   [\\/]* | ?:[\\/]*)
4401   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4402   ;;
4403   *)
4404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409   for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416 done
4417 IFS=$as_save_IFS
4418
4419   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4420   ;;
4421 esac
4422 fi
4423 CP=$ac_cv_path_CP
4424 if test -n "$CP"; then
4425   { echo "$as_me:$LINENO: result: $CP" >&5
4426 echo "${ECHO_T}$CP" >&6; }
4427 else
4428   { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4430 fi
4431
4432
4433 # Extract the first word of "sed", so it can be a program name with args.
4434 set dummy sed; ac_word=$2
4435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437 if test "${ac_cv_path_SED+set}" = set; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440   case $SED in
4441   [\\/]* | ?:[\\/]*)
4442   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4443   ;;
4444   *)
4445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4461   ;;
4462 esac
4463 fi
4464 SED=$ac_cv_path_SED
4465 if test -n "$SED"; then
4466   { echo "$as_me:$LINENO: result: $SED" >&5
4467 echo "${ECHO_T}$SED" >&6; }
4468 else
4469   { echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6; }
4471 fi
4472
4473
4474 # Extract the first word of "echo", so it can be a program name with args.
4475 set dummy echo; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_path_ECHO+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   case $ECHO in
4482   [\\/]* | ?:[\\/]*)
4483   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4484   ;;
4485   *)
4486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4502   ;;
4503 esac
4504 fi
4505 ECHO=$ac_cv_path_ECHO
4506 if test -n "$ECHO"; then
4507   { echo "$as_me:$LINENO: result: $ECHO" >&5
4508 echo "${ECHO_T}$ECHO" >&6; }
4509 else
4510   { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4512 fi
4513
4514
4515 # Extract the first word of "cmp", so it can be a program name with args.
4516 set dummy cmp; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_path_CMP+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   case $CMP in
4523   [\\/]* | ?:[\\/]*)
4524   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4525   ;;
4526   *)
4527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530   IFS=$as_save_IFS
4531   test -z "$as_dir" && as_dir=.
4532   for ac_exec_ext in '' $ac_executable_extensions; do
4533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536     break 2
4537   fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4543   ;;
4544 esac
4545 fi
4546 CMP=$ac_cv_path_CMP
4547 if test -n "$CMP"; then
4548   { echo "$as_me:$LINENO: result: $CMP" >&5
4549 echo "${ECHO_T}$CMP" >&6; }
4550 else
4551   { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4553 fi
4554
4555
4556 # Extract the first word of "tbl", so it can be a program name with args.
4557 set dummy tbl; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_path_TBL+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   case $TBL in
4564   [\\/]* | ?:[\\/]*)
4565   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4566   ;;
4567   *)
4568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573   for ac_exec_ext in '' $ac_executable_extensions; do
4574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577     break 2
4578   fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4584   ;;
4585 esac
4586 fi
4587 TBL=$ac_cv_path_TBL
4588 if test -n "$TBL"; then
4589   { echo "$as_me:$LINENO: result: $TBL" >&5
4590 echo "${ECHO_T}$TBL" >&6; }
4591 else
4592   { echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6; }
4594 fi
4595
4596
4597 # Extract the first word of "ar", so it can be a program name with args.
4598 set dummy ar; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_path_AR+set}" = set; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   case $AR in
4605   [\\/]* | ?:[\\/]*)
4606   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4607   ;;
4608   *)
4609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612   IFS=$as_save_IFS
4613   test -z "$as_dir" && as_dir=.
4614   for ac_exec_ext in '' $ac_executable_extensions; do
4615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618     break 2
4619   fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4625   ;;
4626 esac
4627 fi
4628 AR=$ac_cv_path_AR
4629 if test -n "$AR"; then
4630   { echo "$as_me:$LINENO: result: $AR" >&5
4631 echo "${ECHO_T}$AR" >&6; }
4632 else
4633   { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4635 fi
4636
4637
4638 # Extract the first word of "openssl", so it can be a program name with args.
4639 set dummy openssl; ac_word=$2
4640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4642 if test "${ac_cv_path_OPENSSL+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   case $OPENSSL in
4646   [\\/]* | ?:[\\/]*)
4647   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4648   ;;
4649   *)
4650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655   for ac_exec_ext in '' $ac_executable_extensions; do
4656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4666   ;;
4667 esac
4668 fi
4669 OPENSSL=$ac_cv_path_OPENSSL
4670 if test -n "$OPENSSL"; then
4671   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4672 echo "${ECHO_T}$OPENSSL" >&6; }
4673 else
4674   { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4676 fi
4677
4678
4679 # Extract the first word of "mtx", so it can be a program name with args.
4680 set dummy mtx; ac_word=$2
4681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683 if test "${ac_cv_path_MTX+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   case $MTX in
4687   [\\/]* | ?:[\\/]*)
4688   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4689   ;;
4690   *)
4691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694   IFS=$as_save_IFS
4695   test -z "$as_dir" && as_dir=.
4696   for ac_exec_ext in '' $ac_executable_extensions; do
4697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700     break 2
4701   fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4707   ;;
4708 esac
4709 fi
4710 MTX=$ac_cv_path_MTX
4711 if test -n "$MTX"; then
4712   { echo "$as_me:$LINENO: result: $MTX" >&5
4713 echo "${ECHO_T}$MTX" >&6; }
4714 else
4715   { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4717 fi
4718
4719
4720 # Extract the first word of "dd", so it can be a program name with args.
4721 set dummy dd; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_path_DD+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   case $DD in
4728   [\\/]* | ?:[\\/]*)
4729   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4730   ;;
4731   *)
4732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737   for ac_exec_ext in '' $ac_executable_extensions; do
4738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741     break 2
4742   fi
4743 done
4744 done
4745 IFS=$as_save_IFS
4746
4747   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4748   ;;
4749 esac
4750 fi
4751 DD=$ac_cv_path_DD
4752 if test -n "$DD"; then
4753   { echo "$as_me:$LINENO: result: $DD" >&5
4754 echo "${ECHO_T}$DD" >&6; }
4755 else
4756   { echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6; }
4758 fi
4759
4760
4761 # Extract the first word of "mkisofs", so it can be a program name with args.
4762 set dummy mkisofs; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_path_MKISOFS+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768   case $MKISOFS in
4769   [\\/]* | ?:[\\/]*)
4770   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4771   ;;
4772   *)
4773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776   IFS=$as_save_IFS
4777   test -z "$as_dir" && as_dir=.
4778   for ac_exec_ext in '' $ac_executable_extensions; do
4779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782     break 2
4783   fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4789   ;;
4790 esac
4791 fi
4792 MKISOFS=$ac_cv_path_MKISOFS
4793 if test -n "$MKISOFS"; then
4794   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4795 echo "${ECHO_T}$MKISOFS" >&6; }
4796 else
4797   { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4799 fi
4800
4801
4802 # Extract the first word of "python", so it can be a program name with args.
4803 set dummy python; ac_word=$2
4804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4806 if test "${ac_cv_path_PYTHON+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   case $PYTHON in
4810   [\\/]* | ?:[\\/]*)
4811   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4812   ;;
4813   *)
4814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819   for ac_exec_ext in '' $ac_executable_extensions; do
4820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826 done
4827 IFS=$as_save_IFS
4828
4829   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4830   ;;
4831 esac
4832 fi
4833 PYTHON=$ac_cv_path_PYTHON
4834 if test -n "$PYTHON"; then
4835   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4836 echo "${ECHO_T}$PYTHON" >&6; }
4837 else
4838   { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4840 fi
4841
4842
4843 # Extract the first word of "growisofs", so it can be a program name with args.
4844 set dummy growisofs; ac_word=$2
4845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4847 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850   case $GROWISOFS in
4851   [\\/]* | ?:[\\/]*)
4852   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4853   ;;
4854   *)
4855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860   for ac_exec_ext in '' $ac_executable_extensions; do
4861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864     break 2
4865   fi
4866 done
4867 done
4868 IFS=$as_save_IFS
4869
4870   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4871   ;;
4872 esac
4873 fi
4874 GROWISOFS=$ac_cv_path_GROWISOFS
4875 if test -n "$GROWISOFS"; then
4876   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4877 echo "${ECHO_T}$GROWISOFS" >&6; }
4878 else
4879   { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4881 fi
4882
4883
4884 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4885 set dummy dvd+rw-mediainfo; ac_word=$2
4886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4888 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   case $DVDRWMEDIAINFO in
4892   [\\/]* | ?:[\\/]*)
4893   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4894   ;;
4895   *)
4896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901   for ac_exec_ext in '' $ac_executable_extensions; do
4902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908 done
4909 IFS=$as_save_IFS
4910
4911   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4912   ;;
4913 esac
4914 fi
4915 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4916 if test -n "$DVDRWMEDIAINFO"; then
4917   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4918 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4919 else
4920   { echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6; }
4922 fi
4923
4924
4925 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4926 set dummy dvd+rw-format; ac_word=$2
4927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4929 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   case $DVDRWFORMAT in
4933   [\\/]* | ?:[\\/]*)
4934   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4935   ;;
4936   *)
4937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940   IFS=$as_save_IFS
4941   test -z "$as_dir" && as_dir=.
4942   for ac_exec_ext in '' $ac_executable_extensions; do
4943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946     break 2
4947   fi
4948 done
4949 done
4950 IFS=$as_save_IFS
4951
4952   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4953   ;;
4954 esac
4955 fi
4956 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4957 if test -n "$DVDRWFORMAT"; then
4958   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4959 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4960 else
4961   { echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6; }
4963 fi
4964
4965
4966 # Extract the first word of "pkg-config", so it can be a program name with args.
4967 set dummy pkg-config; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   case $PKGCONFIG in
4974   [\\/]* | ?:[\\/]*)
4975   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4976   ;;
4977   *)
4978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983   for ac_exec_ext in '' $ac_executable_extensions; do
4984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4994   ;;
4995 esac
4996 fi
4997 PKGCONFIG=$ac_cv_path_PKGCONFIG
4998 if test -n "$PKGCONFIG"; then
4999   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5000 echo "${ECHO_T}$PKGCONFIG" >&6; }
5001 else
5002   { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5004 fi
5005
5006
5007 # Extract the first word of "qmake", so it can be a program name with args.
5008 set dummy qmake; ac_word=$2
5009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5011 if test "${ac_cv_path_QMAKE+set}" = set; then
5012   echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014   case $QMAKE in
5015   [\\/]* | ?:[\\/]*)
5016   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5017   ;;
5018   *)
5019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024   for ac_exec_ext in '' $ac_executable_extensions; do
5025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031 done
5032 IFS=$as_save_IFS
5033
5034   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5035   ;;
5036 esac
5037 fi
5038 QMAKE=$ac_cv_path_QMAKE
5039 if test -n "$QMAKE"; then
5040   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5041 echo "${ECHO_T}$QMAKE" >&6; }
5042 else
5043   { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5045 fi
5046
5047
5048 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5049 set dummy qmake-qt4; ac_word=$2
5050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5052 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5053   echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055   case $QMAKEQT4 in
5056   [\\/]* | ?:[\\/]*)
5057   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5058   ;;
5059   *)
5060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065   for ac_exec_ext in '' $ac_executable_extensions; do
5066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069     break 2
5070   fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5076   ;;
5077 esac
5078 fi
5079 QMAKEQT4=$ac_cv_path_QMAKEQT4
5080 if test -n "$QMAKEQT4"; then
5081   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5082 echo "${ECHO_T}$QMAKEQT4" >&6; }
5083 else
5084   { echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6; }
5086 fi
5087
5088
5089
5090 if test "x$WXCONFIG" = x; then
5091    WXCONFIG=wx-config
5092 fi
5093 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5094 set dummy ${WXCONFIG}; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100   case $WXCONFIG in
5101   [\\/]* | ?:[\\/]*)
5102   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5103   ;;
5104   *)
5105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108   IFS=$as_save_IFS
5109   test -z "$as_dir" && as_dir=.
5110   for ac_exec_ext in '' $ac_executable_extensions; do
5111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114     break 2
5115   fi
5116 done
5117 done
5118 IFS=$as_save_IFS
5119
5120   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5121   ;;
5122 esac
5123 fi
5124 WXCONFIG=$ac_cv_path_WXCONFIG
5125 if test -n "$WXCONFIG"; then
5126   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5127 echo "${ECHO_T}$WXCONFIG" >&6; }
5128 else
5129   { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5131 fi
5132
5133
5134
5135 # Extract the first word of "cdrecord", so it can be a program name with args.
5136 set dummy cdrecord; ac_word=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_path_CDRECORD+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   case $CDRECORD in
5143   [\\/]* | ?:[\\/]*)
5144   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5145   ;;
5146   *)
5147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160 IFS=$as_save_IFS
5161
5162   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5163   ;;
5164 esac
5165 fi
5166 CDRECORD=$ac_cv_path_CDRECORD
5167 if test -n "$CDRECORD"; then
5168   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5169 echo "${ECHO_T}$CDRECORD" >&6; }
5170 else
5171   { echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6; }
5173 fi
5174
5175
5176 # Extract the first word of "pidof", so it can be a program name with args.
5177 set dummy pidof; ac_word=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_path_PIDOF+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   case $PIDOF in
5184   [\\/]* | ?:[\\/]*)
5185   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5186   ;;
5187   *)
5188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193   for ac_exec_ext in '' $ac_executable_extensions; do
5194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5204   ;;
5205 esac
5206 fi
5207 PIDOF=$ac_cv_path_PIDOF
5208 if test -n "$PIDOF"; then
5209   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5210 echo "${ECHO_T}$PIDOF" >&6; }
5211 else
5212   { echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6; }
5214 fi
5215
5216
5217 for ac_prog in gawk mawk nawk awk
5218 do
5219   # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_prog_AWK+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   if test -n "$AWK"; then
5227   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234   for ac_exec_ext in '' $ac_executable_extensions; do
5235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236     ac_cv_prog_AWK="$ac_prog"
5237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238     break 2
5239   fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 AWK=$ac_cv_prog_AWK
5247 if test -n "$AWK"; then
5248   { echo "$as_me:$LINENO: result: $AWK" >&5
5249 echo "${ECHO_T}$AWK" >&6; }
5250 else
5251   { echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6; }
5253 fi
5254
5255
5256   test -n "$AWK" && break
5257 done
5258
5259 # Some AWK programs fail, so test it and warn the user
5260 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5261       { if ((prog == $2) || (("(" prog ")") == $2) ||
5262       (("" prog "") == $2) ||
5263       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5264 else
5265   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5266    The regex engine of $AWK is too broken to be used you
5267    might want to install GNU AWK.
5268    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5269 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5270    The regex engine of $AWK is too broken to be used you
5271    might want to install GNU AWK.
5272    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5273    { (exit 1); exit 1; }; }
5274 fi
5275 THE_AWK=$AWK
5276 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5277 set dummy $THE_AWK; ac_word=$2
5278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5280 if test "${ac_cv_path_AWK+set}" = set; then
5281   echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283   case $AWK in
5284   [\\/]* | ?:[\\/]*)
5285   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5286   ;;
5287   *)
5288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291   IFS=$as_save_IFS
5292   test -z "$as_dir" && as_dir=.
5293   for ac_exec_ext in '' $ac_executable_extensions; do
5294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297     break 2
5298   fi
5299 done
5300 done
5301 IFS=$as_save_IFS
5302
5303   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5304   ;;
5305 esac
5306 fi
5307 AWK=$ac_cv_path_AWK
5308 if test -n "$AWK"; then
5309   { echo "$as_me:$LINENO: result: $AWK" >&5
5310 echo "${ECHO_T}$AWK" >&6; }
5311 else
5312   { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }
5314 fi
5315
5316
5317
5318
5319 test -n "$ARFLAG" || ARFLAGS="cr"
5320
5321
5322 MAKE_SHELL=/bin/sh
5323
5324
5325
5326
5327
5328
5329
5330 # Check whether --enable-libtool was given.
5331 if test "${enable_libtool+set}" = set; then
5332   enableval=$enable_libtool;
5333        if test x$enableval = xno; then
5334           use_libtool=no
5335        fi
5336
5337
5338 fi
5339
5340 case `pwd` in
5341   *\ * | *\     *)
5342     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5343 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5344 esac
5345
5346
5347
5348 macro_version='2.2.6'
5349 macro_revision='1.3012'
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 ltmain="$ac_aux_dir/ltmain.sh"
5364
5365 # Make sure we can run config.sub.
5366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5367   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5368 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5369    { (exit 1); exit 1; }; }
5370
5371 { echo "$as_me:$LINENO: checking build system type" >&5
5372 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5373 if test "${ac_cv_build+set}" = set; then
5374   echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376   ac_build_alias=$build_alias
5377 test "x$ac_build_alias" = x &&
5378   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5379 test "x$ac_build_alias" = x &&
5380   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5381 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5382    { (exit 1); exit 1; }; }
5383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5384   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5385 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5386    { (exit 1); exit 1; }; }
5387
5388 fi
5389 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5390 echo "${ECHO_T}$ac_cv_build" >&6; }
5391 case $ac_cv_build in
5392 *-*-*) ;;
5393 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5394 echo "$as_me: error: invalid value of canonical build" >&2;}
5395    { (exit 1); exit 1; }; };;
5396 esac
5397 build=$ac_cv_build
5398 ac_save_IFS=$IFS; IFS='-'
5399 set x $ac_cv_build
5400 shift
5401 build_cpu=$1
5402 build_vendor=$2
5403 shift; shift
5404 # Remember, the first character of IFS is used to create $*,
5405 # except with old shells:
5406 build_os=$*
5407 IFS=$ac_save_IFS
5408 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5409
5410
5411 { echo "$as_me:$LINENO: checking host system type" >&5
5412 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5413 if test "${ac_cv_host+set}" = set; then
5414   echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416   if test "x$host_alias" = x; then
5417   ac_cv_host=$ac_cv_build
5418 else
5419   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5420     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5421 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5422    { (exit 1); exit 1; }; }
5423 fi
5424
5425 fi
5426 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5427 echo "${ECHO_T}$ac_cv_host" >&6; }
5428 case $ac_cv_host in
5429 *-*-*) ;;
5430 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5431 echo "$as_me: error: invalid value of canonical host" >&2;}
5432    { (exit 1); exit 1; }; };;
5433 esac
5434 host=$ac_cv_host
5435 ac_save_IFS=$IFS; IFS='-'
5436 set x $ac_cv_host
5437 shift
5438 host_cpu=$1
5439 host_vendor=$2
5440 shift; shift
5441 # Remember, the first character of IFS is used to create $*,
5442 # except with old shells:
5443 host_os=$*
5444 IFS=$ac_save_IFS
5445 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5446
5447
5448 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5449 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5450 if test "${ac_cv_path_SED+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5454      for ac_i in 1 2 3 4 5 6 7; do
5455        ac_script="$ac_script$as_nl$ac_script"
5456      done
5457      echo "$ac_script" | sed 99q >conftest.sed
5458      $as_unset ac_script || ac_script=
5459      # Extract the first word of "sed gsed" to use in msg output
5460 if test -z "$SED"; then
5461 set dummy sed gsed; ac_prog_name=$2
5462 if test "${ac_cv_path_SED+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   ac_path_SED_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472   for ac_prog in sed gsed; do
5473   for ac_exec_ext in '' $ac_executable_extensions; do
5474     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5475     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5476     # Check for GNU ac_path_SED and select it if it is found.
5477   # Check for GNU $ac_path_SED
5478 case `"$ac_path_SED" --version 2>&1` in
5479 *GNU*)
5480   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5481 *)
5482   ac_count=0
5483   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5484   while :
5485   do
5486     cat "conftest.in" "conftest.in" >"conftest.tmp"
5487     mv "conftest.tmp" "conftest.in"
5488     cp "conftest.in" "conftest.nl"
5489     echo '' >> "conftest.nl"
5490     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492     ac_count=`expr $ac_count + 1`
5493     if test $ac_count -gt ${ac_path_SED_max-0}; then
5494       # Best one so far, save it but keep looking for a better one
5495       ac_cv_path_SED="$ac_path_SED"
5496       ac_path_SED_max=$ac_count
5497     fi
5498     # 10*(2^10) chars as input seems more than enough
5499     test $ac_count -gt 10 && break
5500   done
5501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 esac
5503
5504
5505     $ac_path_SED_found && break 3
5506   done
5507 done
5508
5509 done
5510 IFS=$as_save_IFS
5511
5512
5513 fi
5514
5515 SED="$ac_cv_path_SED"
5516 if test -z "$SED"; then
5517   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5518 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5519    { (exit 1); exit 1; }; }
5520 fi
5521
5522 else
5523   ac_cv_path_SED=$SED
5524 fi
5525
5526 fi
5527 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5528 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5529  SED="$ac_cv_path_SED"
5530   rm -f conftest.sed
5531
5532 test -z "$SED" && SED=sed
5533 Xsed="$SED -e 1s/^X//"
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 { echo "$as_me:$LINENO: checking for fgrep" >&5
5546 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5547 if test "${ac_cv_path_FGREP+set}" = set; then
5548   echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5551    then ac_cv_path_FGREP="$GREP -F"
5552    else
5553      # Extract the first word of "fgrep" to use in msg output
5554 if test -z "$FGREP"; then
5555 set dummy fgrep; ac_prog_name=$2
5556 if test "${ac_cv_path_FGREP+set}" = set; then
5557   echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559   ac_path_FGREP_found=false
5560 # Loop through the user's path and test for each of PROGNAME-LIST
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5563 do
5564   IFS=$as_save_IFS
5565   test -z "$as_dir" && as_dir=.
5566   for ac_prog in fgrep; do
5567   for ac_exec_ext in '' $ac_executable_extensions; do
5568     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5569     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5570     # Check for GNU ac_path_FGREP and select it if it is found.
5571   # Check for GNU $ac_path_FGREP
5572 case `"$ac_path_FGREP" --version 2>&1` in
5573 *GNU*)
5574   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5575 *)
5576   ac_count=0
5577   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5578   while :
5579   do
5580     cat "conftest.in" "conftest.in" >"conftest.tmp"
5581     mv "conftest.tmp" "conftest.in"
5582     cp "conftest.in" "conftest.nl"
5583     echo 'FGREP' >> "conftest.nl"
5584     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586     ac_count=`expr $ac_count + 1`
5587     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5588       # Best one so far, save it but keep looking for a better one
5589       ac_cv_path_FGREP="$ac_path_FGREP"
5590       ac_path_FGREP_max=$ac_count
5591     fi
5592     # 10*(2^10) chars as input seems more than enough
5593     test $ac_count -gt 10 && break
5594   done
5595   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596 esac
5597
5598
5599     $ac_path_FGREP_found && break 3
5600   done
5601 done
5602
5603 done
5604 IFS=$as_save_IFS
5605
5606
5607 fi
5608
5609 FGREP="$ac_cv_path_FGREP"
5610 if test -z "$FGREP"; then
5611   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5612 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5613    { (exit 1); exit 1; }; }
5614 fi
5615
5616 else
5617   ac_cv_path_FGREP=$FGREP
5618 fi
5619
5620
5621    fi
5622 fi
5623 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5624 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5625  FGREP="$ac_cv_path_FGREP"
5626
5627
5628 test -z "$GREP" && GREP=grep
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648 # Check whether --with-gnu-ld was given.
5649 if test "${with_gnu_ld+set}" = set; then
5650   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5651 else
5652   with_gnu_ld=no
5653 fi
5654
5655 ac_prog=ld
5656 if test "$GCC" = yes; then
5657   # Check if gcc -print-prog-name=ld gives a path.
5658   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5659 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5660   case $host in
5661   *-*-mingw*)
5662     # gcc leaves a trailing carriage return which upsets mingw
5663     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5664   *)
5665     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5666   esac
5667   case $ac_prog in
5668     # Accept absolute paths.
5669     [\\/]* | ?:[\\/]*)
5670       re_direlt='/[^/][^/]*/\.\./'
5671       # Canonicalize the pathname of ld
5672       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5673       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5674         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5675       done
5676       test -z "$LD" && LD="$ac_prog"
5677       ;;
5678   "")
5679     # If it fails, then pretend we aren't using GCC.
5680     ac_prog=ld
5681     ;;
5682   *)
5683     # If it is relative, then search for the first ld in PATH.
5684     with_gnu_ld=unknown
5685     ;;
5686   esac
5687 elif test "$with_gnu_ld" = yes; then
5688   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5689 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5690 else
5691   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5692 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5693 fi
5694 if test "${lt_cv_path_LD+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   if test -z "$LD"; then
5698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5699   for ac_dir in $PATH; do
5700     IFS="$lt_save_ifs"
5701     test -z "$ac_dir" && ac_dir=.
5702     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5703       lt_cv_path_LD="$ac_dir/$ac_prog"
5704       # Check to see if the program is GNU ld.  I'd rather use --version,
5705       # but apparently some variants of GNU ld only accept -v.
5706       # Break only if it was the GNU/non-GNU ld that we prefer.
5707       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5708       *GNU* | *'with BFD'*)
5709         test "$with_gnu_ld" != no && break
5710         ;;
5711       *)
5712         test "$with_gnu_ld" != yes && break
5713         ;;
5714       esac
5715     fi
5716   done
5717   IFS="$lt_save_ifs"
5718 else
5719   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5720 fi
5721 fi
5722
5723 LD="$lt_cv_path_LD"
5724 if test -n "$LD"; then
5725   { echo "$as_me:$LINENO: result: $LD" >&5
5726 echo "${ECHO_T}$LD" >&6; }
5727 else
5728   { echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6; }
5730 fi
5731 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5732 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5733    { (exit 1); exit 1; }; }
5734 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5735 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5736 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5740 case `$LD -v 2>&1 </dev/null` in
5741 *GNU* | *'with BFD'*)
5742   lt_cv_prog_gnu_ld=yes
5743   ;;
5744 *)
5745   lt_cv_prog_gnu_ld=no
5746   ;;
5747 esac
5748 fi
5749 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5750 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5751 with_gnu_ld=$lt_cv_prog_gnu_ld
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5762 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5763 if test "${lt_cv_path_NM+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   if test -n "$NM"; then
5767   # Let the user override the test.
5768   lt_cv_path_NM="$NM"
5769 else
5770   lt_nm_to_check="${ac_tool_prefix}nm"
5771   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5772     lt_nm_to_check="$lt_nm_to_check nm"
5773   fi
5774   for lt_tmp_nm in $lt_nm_to_check; do
5775     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5776     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5777       IFS="$lt_save_ifs"
5778       test -z "$ac_dir" && ac_dir=.
5779       tmp_nm="$ac_dir/$lt_tmp_nm"
5780       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5781         # Check to see if the nm accepts a BSD-compat flag.
5782         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5783         #   nm: unknown option "B" ignored
5784         # Tru64's nm complains that /dev/null is an invalid object file
5785         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5786         */dev/null* | *'Invalid file or object type'*)
5787           lt_cv_path_NM="$tmp_nm -B"
5788           break
5789           ;;
5790         *)
5791           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5792           */dev/null*)
5793             lt_cv_path_NM="$tmp_nm -p"
5794             break
5795             ;;
5796           *)
5797             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5798             continue # so that we can try to find one that supports BSD flags
5799             ;;
5800           esac
5801           ;;
5802         esac
5803       fi
5804     done
5805     IFS="$lt_save_ifs"
5806   done
5807   : ${lt_cv_path_NM=no}
5808 fi
5809 fi
5810 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5811 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5812 if test "$lt_cv_path_NM" != "no"; then
5813   NM="$lt_cv_path_NM"
5814 else
5815   # Didn't find any BSD compatible name lister, look for dumpbin.
5816   if test -n "$ac_tool_prefix"; then
5817   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5818   do
5819     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   if test -n "$DUMPBIN"; then
5827   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834   for ac_exec_ext in '' $ac_executable_extensions; do
5835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 DUMPBIN=$ac_cv_prog_DUMPBIN
5847 if test -n "$DUMPBIN"; then
5848   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5849 echo "${ECHO_T}$DUMPBIN" >&6; }
5850 else
5851   { echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6; }
5853 fi
5854
5855
5856     test -n "$DUMPBIN" && break
5857   done
5858 fi
5859 if test -z "$DUMPBIN"; then
5860   ac_ct_DUMPBIN=$DUMPBIN
5861   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5862 do
5863   # Extract the first word of "$ac_prog", so it can be a program name with args.
5864 set dummy $ac_prog; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   if test -n "$ac_ct_DUMPBIN"; then
5871   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5891 if test -n "$ac_ct_DUMPBIN"; then
5892   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5893 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5894 else
5895   { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5897 fi
5898
5899
5900   test -n "$ac_ct_DUMPBIN" && break
5901 done
5902
5903   if test "x$ac_ct_DUMPBIN" = x; then
5904     DUMPBIN=":"
5905   else
5906     case $cross_compiling:$ac_tool_warned in
5907 yes:)
5908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5909 whose name does not start with the host triplet.  If you think this
5910 configuration is useful to you, please write to autoconf@gnu.org." >&5
5911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5912 whose name does not start with the host triplet.  If you think this
5913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5914 ac_tool_warned=yes ;;
5915 esac
5916     DUMPBIN=$ac_ct_DUMPBIN
5917   fi
5918 fi
5919
5920
5921   if test "$DUMPBIN" != ":"; then
5922     NM="$DUMPBIN"
5923   fi
5924 fi
5925 test -z "$NM" && NM=nm
5926
5927
5928
5929
5930
5931
5932 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5933 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5934 if test "${lt_cv_nm_interface+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   lt_cv_nm_interface="BSD nm"
5938   echo "int some_variable = 0;" > conftest.$ac_ext
5939   (eval echo "\"\$as_me:5939: $ac_compile\"" >&5)
5940   (eval "$ac_compile" 2>conftest.err)
5941   cat conftest.err >&5
5942   (eval echo "\"\$as_me:5942: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5943   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5944   cat conftest.err >&5
5945   (eval echo "\"\$as_me:5945: output\"" >&5)
5946   cat conftest.out >&5
5947   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5948     lt_cv_nm_interface="MS dumpbin"
5949   fi
5950   rm -f conftest*
5951 fi
5952 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5953 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5954
5955 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5957 LN_S=$as_ln_s
5958 if test "$LN_S" = "ln -s"; then
5959   { echo "$as_me:$LINENO: result: yes" >&5
5960 echo "${ECHO_T}yes" >&6; }
5961 else
5962   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5963 echo "${ECHO_T}no, using $LN_S" >&6; }
5964 fi
5965
5966 # find the maximum length of command line arguments
5967 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5968 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5969 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972     i=0
5973   teststring="ABCD"
5974
5975   case $build_os in
5976   msdosdjgpp*)
5977     # On DJGPP, this test can blow up pretty badly due to problems in libc
5978     # (any single argument exceeding 2000 bytes causes a buffer overrun
5979     # during glob expansion).  Even if it were fixed, the result of this
5980     # check would be larger than it should be.
5981     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5982     ;;
5983
5984   gnu*)
5985     # Under GNU Hurd, this test is not required because there is
5986     # no limit to the length of command line arguments.
5987     # Libtool will interpret -1 as no limit whatsoever
5988     lt_cv_sys_max_cmd_len=-1;
5989     ;;
5990
5991   cygwin* | mingw* | cegcc*)
5992     # On Win9x/ME, this test blows up -- it succeeds, but takes
5993     # about 5 minutes as the teststring grows exponentially.
5994     # Worse, since 9x/ME are not pre-emptively multitasking,
5995     # you end up with a "frozen" computer, even though with patience
5996     # the test eventually succeeds (with a max line length of 256k).
5997     # Instead, let's just punt: use the minimum linelength reported by
5998     # all of the supported platforms: 8192 (on NT/2K/XP).
5999     lt_cv_sys_max_cmd_len=8192;
6000     ;;
6001
6002   amigaos*)
6003     # On AmigaOS with pdksh, this test takes hours, literally.
6004     # So we just punt and use a minimum line length of 8192.
6005     lt_cv_sys_max_cmd_len=8192;
6006     ;;
6007
6008   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6009     # This has been around since 386BSD, at least.  Likely further.
6010     if test -x /sbin/sysctl; then
6011       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6012     elif test -x /usr/sbin/sysctl; then
6013       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6014     else
6015       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6016     fi
6017     # And add a safety zone
6018     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6019     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6020     ;;
6021
6022   interix*)
6023     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6024     lt_cv_sys_max_cmd_len=196608
6025     ;;
6026
6027   osf*)
6028     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6029     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6030     # nice to cause kernel panics so lets avoid the loop below.
6031     # First set a reasonable default.
6032     lt_cv_sys_max_cmd_len=16384
6033     #
6034     if test -x /sbin/sysconfig; then
6035       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6036         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6037       esac
6038     fi
6039     ;;
6040   sco3.2v5*)
6041     lt_cv_sys_max_cmd_len=102400
6042     ;;
6043   sysv5* | sco5v6* | sysv4.2uw2*)
6044     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6045     if test -n "$kargmax"; then
6046       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6047     else
6048       lt_cv_sys_max_cmd_len=32768
6049     fi
6050     ;;
6051   *)
6052     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6053     if test -n "$lt_cv_sys_max_cmd_len"; then
6054       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6055       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6056     else
6057       # Make teststring a little bigger before we do anything with it.
6058       # a 1K string should be a reasonable start.
6059       for i in 1 2 3 4 5 6 7 8 ; do
6060         teststring=$teststring$teststring
6061       done
6062       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6063       # If test is not a shell built-in, we'll probably end up computing a
6064       # maximum length that is only half of the actual maximum length, but
6065       # we can't tell.
6066       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6067                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6068               test $i != 17 # 1/2 MB should be enough
6069       do
6070         i=`expr $i + 1`
6071         teststring=$teststring$teststring
6072       done
6073       # Only check the string length outside the loop.
6074       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6075       teststring=
6076       # Add a significant safety factor because C++ compilers can tack on
6077       # massive amounts of additional arguments before passing them to the
6078       # linker.  It appears as though 1/2 is a usable value.
6079       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6080     fi
6081     ;;
6082   esac
6083
6084 fi
6085
6086 if test -n $lt_cv_sys_max_cmd_len ; then
6087   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6088 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6089 else
6090   { echo "$as_me:$LINENO: result: none" >&5
6091 echo "${ECHO_T}none" >&6; }
6092 fi
6093 max_cmd_len=$lt_cv_sys_max_cmd_len
6094
6095
6096
6097
6098
6099
6100 : ${CP="cp -f"}
6101 : ${MV="mv -f"}
6102 : ${RM="rm -f"}
6103
6104 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6105 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6106 # Try some XSI features
6107 xsi_shell=no
6108 ( _lt_dummy="a/b/c"
6109   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6110       = c,a/b,, \
6111     && eval 'test $(( 1 + 1 )) -eq 2 \
6112     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6113   && xsi_shell=yes
6114 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6115 echo "${ECHO_T}$xsi_shell" >&6; }
6116
6117
6118 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6119 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6120 lt_shell_append=no
6121 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6122     >/dev/null 2>&1 \
6123   && lt_shell_append=yes
6124 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6125 echo "${ECHO_T}$lt_shell_append" >&6; }
6126
6127
6128 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6129   lt_unset=unset
6130 else
6131   lt_unset=false
6132 fi
6133
6134
6135
6136
6137
6138 # test EBCDIC or ASCII
6139 case `echo X|tr X '\101'` in
6140  A) # ASCII based system
6141     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6142   lt_SP2NL='tr \040 \012'
6143   lt_NL2SP='tr \015\012 \040\040'
6144   ;;
6145  *) # EBCDIC based system
6146   lt_SP2NL='tr \100 \n'
6147   lt_NL2SP='tr \r\n \100\100'
6148   ;;
6149 esac
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6160 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6161 if test "${lt_cv_ld_reload_flag+set}" = set; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   lt_cv_ld_reload_flag='-r'
6165 fi
6166 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6167 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6168 reload_flag=$lt_cv_ld_reload_flag
6169 case $reload_flag in
6170 "" | " "*) ;;
6171 *) reload_flag=" $reload_flag" ;;
6172 esac
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6174 case $host_os in
6175   darwin*)
6176     if test "$GCC" = yes; then
6177       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6178     else
6179       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6180     fi
6181     ;;
6182 esac
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192 if test -n "$ac_tool_prefix"; then
6193   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   if test -n "$OBJDUMP"; then
6201   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206   IFS=$as_save_IFS
6207   test -z "$as_dir" && as_dir=.
6208   for ac_exec_ext in '' $ac_executable_extensions; do
6209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212     break 2
6213   fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 OBJDUMP=$ac_cv_prog_OBJDUMP
6221 if test -n "$OBJDUMP"; then
6222   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6223 echo "${ECHO_T}$OBJDUMP" >&6; }
6224 else
6225   { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6227 fi
6228
6229
6230 fi
6231 if test -z "$ac_cv_prog_OBJDUMP"; then
6232   ac_ct_OBJDUMP=$OBJDUMP
6233   # Extract the first word of "objdump", so it can be a program name with args.
6234 set dummy objdump; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   if test -n "$ac_ct_OBJDUMP"; then
6241   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248   for ac_exec_ext in '' $ac_executable_extensions; do
6249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6261 if test -n "$ac_ct_OBJDUMP"; then
6262   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6263 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6264 else
6265   { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6268
6269   if test "x$ac_ct_OBJDUMP" = x; then
6270     OBJDUMP="false"
6271   else
6272     case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet.  If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&5
6277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6278 whose name does not start with the host triplet.  If you think this
6279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6280 ac_tool_warned=yes ;;
6281 esac
6282     OBJDUMP=$ac_ct_OBJDUMP
6283   fi
6284 else
6285   OBJDUMP="$ac_cv_prog_OBJDUMP"
6286 fi
6287
6288 test -z "$OBJDUMP" && OBJDUMP=objdump
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6299 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6300 if test "${lt_cv_deplibs_check_method+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   lt_cv_file_magic_cmd='$MAGIC_CMD'
6304 lt_cv_file_magic_test_file=
6305 lt_cv_deplibs_check_method='unknown'
6306 # Need to set the preceding variable on all platforms that support
6307 # interlibrary dependencies.
6308 # 'none' -- dependencies not supported.
6309 # `unknown' -- same as none, but documents that we really don't know.
6310 # 'pass_all' -- all dependencies passed with no checks.
6311 # 'test_compile' -- check by making test program.
6312 # 'file_magic [[regex]]' -- check by looking for files in library path
6313 # which responds to the $file_magic_cmd with a given extended regex.
6314 # If you have `file' or equivalent on your system and you're not sure
6315 # whether `pass_all' will *always* work, you probably want this one.
6316
6317 case $host_os in
6318 aix[4-9]*)
6319   lt_cv_deplibs_check_method=pass_all
6320   ;;
6321
6322 beos*)
6323   lt_cv_deplibs_check_method=pass_all
6324   ;;
6325
6326 bsdi[45]*)
6327   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6328   lt_cv_file_magic_cmd='/usr/bin/file -L'
6329   lt_cv_file_magic_test_file=/shlib/libc.so
6330   ;;
6331
6332 cygwin*)
6333   # func_win32_libid is a shell function defined in ltmain.sh
6334   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6335   lt_cv_file_magic_cmd='func_win32_libid'
6336   ;;
6337
6338 mingw* | pw32*)
6339   # Base MSYS/MinGW do not provide the 'file' command needed by
6340   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6341   # unless we find 'file', for example because we are cross-compiling.
6342   if ( file / ) >/dev/null 2>&1; then
6343     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6344     lt_cv_file_magic_cmd='func_win32_libid'
6345   else
6346     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6347     lt_cv_file_magic_cmd='$OBJDUMP -f'
6348   fi
6349   ;;
6350
6351 cegcc)
6352   # use the weaker test based on 'objdump'. See mingw*.
6353   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6354   lt_cv_file_magic_cmd='$OBJDUMP -f'
6355   ;;
6356
6357 darwin* | rhapsody*)
6358   lt_cv_deplibs_check_method=pass_all
6359   ;;
6360
6361 freebsd* | dragonfly*)
6362   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6363     case $host_cpu in
6364     i*86 )
6365       # Not sure whether the presence of OpenBSD here was a mistake.
6366       # Let's accept both of them until this is cleared up.
6367       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6368       lt_cv_file_magic_cmd=/usr/bin/file
6369       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6370       ;;
6371     esac
6372   else
6373     lt_cv_deplibs_check_method=pass_all
6374   fi
6375   ;;
6376
6377 gnu*)
6378   lt_cv_deplibs_check_method=pass_all
6379   ;;
6380
6381 hpux10.20* | hpux11*)
6382   lt_cv_file_magic_cmd=/usr/bin/file
6383   case $host_cpu in
6384   ia64*)
6385     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6386     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6387     ;;
6388   hppa*64*)
6389     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]'
6390     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6391     ;;
6392   *)
6393     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6394     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6395     ;;
6396   esac
6397   ;;
6398
6399 interix[3-9]*)
6400   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6401   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6402   ;;
6403
6404 irix5* | irix6* | nonstopux*)
6405   case $LD in
6406   *-32|*"-32 ") libmagic=32-bit;;
6407   *-n32|*"-n32 ") libmagic=N32;;
6408   *-64|*"-64 ") libmagic=64-bit;;
6409   *) libmagic=never-match;;
6410   esac
6411   lt_cv_deplibs_check_method=pass_all
6412   ;;
6413
6414 # This must be Linux ELF.
6415 linux* | k*bsd*-gnu)
6416   lt_cv_deplibs_check_method=pass_all
6417   ;;
6418
6419 netbsd*)
6420   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6421     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6422   else
6423     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6424   fi
6425   ;;
6426
6427 newos6*)
6428   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6429   lt_cv_file_magic_cmd=/usr/bin/file
6430   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6431   ;;
6432
6433 *nto* | *qnx*)
6434   lt_cv_deplibs_check_method=pass_all
6435   ;;
6436
6437 openbsd*)
6438   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6439     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6440   else
6441     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6442   fi
6443   ;;
6444
6445 osf3* | osf4* | osf5*)
6446   lt_cv_deplibs_check_method=pass_all
6447   ;;
6448
6449 rdos*)
6450   lt_cv_deplibs_check_method=pass_all
6451   ;;
6452
6453 solaris*)
6454   lt_cv_deplibs_check_method=pass_all
6455   ;;
6456
6457 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6458   lt_cv_deplibs_check_method=pass_all
6459   ;;
6460
6461 sysv4 | sysv4.3*)
6462   case $host_vendor in
6463   motorola)
6464     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]'
6465     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6466     ;;
6467   ncr)
6468     lt_cv_deplibs_check_method=pass_all
6469     ;;
6470   sequent)
6471     lt_cv_file_magic_cmd='/bin/file'
6472     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6473     ;;
6474   sni)
6475     lt_cv_file_magic_cmd='/bin/file'
6476     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6477     lt_cv_file_magic_test_file=/lib/libc.so
6478     ;;
6479   siemens)
6480     lt_cv_deplibs_check_method=pass_all
6481     ;;
6482   pc)
6483     lt_cv_deplibs_check_method=pass_all
6484     ;;
6485   esac
6486   ;;
6487
6488 tpf*)
6489   lt_cv_deplibs_check_method=pass_all
6490   ;;
6491 esac
6492
6493 fi
6494 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6495 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6496 file_magic_cmd=$lt_cv_file_magic_cmd
6497 deplibs_check_method=$lt_cv_deplibs_check_method
6498 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511 if test -n "$ac_tool_prefix"; then
6512   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}ar; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_prog_AR+set}" = set; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519   if test -n "$AR"; then
6520   ac_cv_prog_AR="$AR" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527   for ac_exec_ext in '' $ac_executable_extensions; do
6528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529     ac_cv_prog_AR="${ac_tool_prefix}ar"
6530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534 done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 AR=$ac_cv_prog_AR
6540 if test -n "$AR"; then
6541   { echo "$as_me:$LINENO: result: $AR" >&5
6542 echo "${ECHO_T}$AR" >&6; }
6543 else
6544   { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6546 fi
6547
6548
6549 fi
6550 if test -z "$ac_cv_prog_AR"; then
6551   ac_ct_AR=$AR
6552   # Extract the first word of "ar", so it can be a program name with args.
6553 set dummy ar; ac_word=$2
6554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6556 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   if test -n "$ac_ct_AR"; then
6560   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567   for ac_exec_ext in '' $ac_executable_extensions; do
6568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569     ac_cv_prog_ac_ct_AR="ar"
6570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571     break 2
6572   fi
6573 done
6574 done
6575 IFS=$as_save_IFS
6576
6577 fi
6578 fi
6579 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6580 if test -n "$ac_ct_AR"; then
6581   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6582 echo "${ECHO_T}$ac_ct_AR" >&6; }
6583 else
6584   { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6586 fi
6587
6588   if test "x$ac_ct_AR" = x; then
6589     AR="false"
6590   else
6591     case $cross_compiling:$ac_tool_warned in
6592 yes:)
6593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet.  If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&5
6596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet.  If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6599 ac_tool_warned=yes ;;
6600 esac
6601     AR=$ac_ct_AR
6602   fi
6603 else
6604   AR="$ac_cv_prog_AR"
6605 fi
6606
6607 test -z "$AR" && AR=ar
6608 test -z "$AR_FLAGS" && AR_FLAGS=cru
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620 if test -n "$ac_tool_prefix"; then
6621   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}strip; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_prog_STRIP+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   if test -n "$STRIP"; then
6629   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_exec_ext in '' $ac_executable_extensions; do
6637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi
6647 fi
6648 STRIP=$ac_cv_prog_STRIP
6649 if test -n "$STRIP"; then
6650   { echo "$as_me:$LINENO: result: $STRIP" >&5
6651 echo "${ECHO_T}$STRIP" >&6; }
6652 else
6653   { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 fi
6656
6657
6658 fi
6659 if test -z "$ac_cv_prog_STRIP"; then
6660   ac_ct_STRIP=$STRIP
6661   # Extract the first word of "strip", so it can be a program name with args.
6662 set dummy strip; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   if test -n "$ac_ct_STRIP"; then
6669   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676   for ac_exec_ext in '' $ac_executable_extensions; do
6677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678     ac_cv_prog_ac_ct_STRIP="strip"
6679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6689 if test -n "$ac_ct_STRIP"; then
6690   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6691 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6692 else
6693   { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697   if test "x$ac_ct_STRIP" = x; then
6698     STRIP=":"
6699   else
6700     case $cross_compiling:$ac_tool_warned in
6701 yes:)
6702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet.  If you think this
6704 configuration is useful to you, please write to autoconf@gnu.org." >&5
6705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet.  If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710     STRIP=$ac_ct_STRIP
6711   fi
6712 else
6713   STRIP="$ac_cv_prog_STRIP"
6714 fi
6715
6716 test -z "$STRIP" && STRIP=:
6717
6718
6719
6720
6721
6722
6723 if test -n "$ac_tool_prefix"; then
6724   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_prog_RANLIB+set}" = set; then
6729   echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731   if test -n "$RANLIB"; then
6732   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737   IFS=$as_save_IFS
6738   test -z "$as_dir" && as_dir=.
6739   for ac_exec_ext in '' $ac_executable_extensions; do
6740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743     break 2
6744   fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749 fi
6750 fi
6751 RANLIB=$ac_cv_prog_RANLIB
6752 if test -n "$RANLIB"; then
6753   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6754 echo "${ECHO_T}$RANLIB" >&6; }
6755 else
6756   { echo "$as_me:$LINENO: result: no" >&5
6757 echo "${ECHO_T}no" >&6; }
6758 fi
6759
6760
6761 fi
6762 if test -z "$ac_cv_prog_RANLIB"; then
6763   ac_ct_RANLIB=$RANLIB
6764   # Extract the first word of "ranlib", so it can be a program name with args.
6765 set dummy ranlib; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   if test -n "$ac_ct_RANLIB"; then
6772   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777   IFS=$as_save_IFS
6778   test -z "$as_dir" && as_dir=.
6779   for ac_exec_ext in '' $ac_executable_extensions; do
6780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781     ac_cv_prog_ac_ct_RANLIB="ranlib"
6782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789 fi
6790 fi
6791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6792 if test -n "$ac_ct_RANLIB"; then
6793   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6794 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6795 else
6796   { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6798 fi
6799
6800   if test "x$ac_ct_RANLIB" = x; then
6801     RANLIB=":"
6802   else
6803     case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6806 whose name does not start with the host triplet.  If you think this
6807 configuration is useful to you, please write to autoconf@gnu.org." >&5
6808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6809 whose name does not start with the host triplet.  If you think this
6810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6811 ac_tool_warned=yes ;;
6812 esac
6813     RANLIB=$ac_ct_RANLIB
6814   fi
6815 else
6816   RANLIB="$ac_cv_prog_RANLIB"
6817 fi
6818
6819 test -z "$RANLIB" && RANLIB=:
6820
6821
6822
6823
6824
6825
6826 # Determine commands to create old-style static archives.
6827 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6828 old_postinstall_cmds='chmod 644 $oldlib'
6829 old_postuninstall_cmds=
6830
6831 if test -n "$RANLIB"; then
6832   case $host_os in
6833   openbsd*)
6834     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6835     ;;
6836   *)
6837     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6838     ;;
6839   esac
6840   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6841 fi
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
6876 # If no C compiler was specified, use CC.
6877 LTCC=${LTCC-"$CC"}
6878
6879 # If no C compiler flags were specified, use CFLAGS.
6880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6881
6882 # Allow CC to be a program name with arguments.
6883 compiler=$CC
6884
6885
6886 # Check for command to grab the raw symbol name followed by C symbol from nm.
6887 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6888 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6889 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6890   echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892
6893 # These are sane defaults that work on at least a few old systems.
6894 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6895
6896 # Character class describing NM global symbol codes.
6897 symcode='[BCDEGRST]'
6898
6899 # Regexp to match symbols that can be accessed directly from C.
6900 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6901
6902 # Define system-specific variables.
6903 case $host_os in
6904 aix*)
6905   symcode='[BCDT]'
6906   ;;
6907 cygwin* | mingw* | pw32* | cegcc*)
6908   symcode='[ABCDGISTW]'
6909   ;;
6910 hpux*)
6911   if test "$host_cpu" = ia64; then
6912     symcode='[ABCDEGRST]'
6913   fi
6914   ;;
6915 irix* | nonstopux*)
6916   symcode='[BCDEGRST]'
6917   ;;
6918 osf*)
6919   symcode='[BCDEGQRST]'
6920   ;;
6921 solaris*)
6922   symcode='[BDRT]'
6923   ;;
6924 sco3.2v5*)
6925   symcode='[DT]'
6926   ;;
6927 sysv4.2uw2*)
6928   symcode='[DT]'
6929   ;;
6930 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6931   symcode='[ABDT]'
6932   ;;
6933 sysv4)
6934   symcode='[DFNSTU]'
6935   ;;
6936 esac
6937
6938 # If we're using GNU nm, then use its standard symbol codes.
6939 case `$NM -V 2>&1` in
6940 *GNU* | *'with BFD'*)
6941   symcode='[ABCDGIRSTW]' ;;
6942 esac
6943
6944 # Transform an extracted symbol line into a proper C declaration.
6945 # Some systems (esp. on ia64) link data and code symbols differently,
6946 # so use this general approach.
6947 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6948
6949 # Transform an extracted symbol line into symbol name and symbol address
6950 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6951 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'"
6952
6953 # Handle CRLF in mingw tool chain
6954 opt_cr=
6955 case $build_os in
6956 mingw*)
6957   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6958   ;;
6959 esac
6960
6961 # Try without a prefix underscore, then with it.
6962 for ac_symprfx in "" "_"; do
6963
6964   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6965   symxfrm="\\1 $ac_symprfx\\2 \\2"
6966
6967   # Write the raw and C identifiers.
6968   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6969     # Fake it for dumpbin and say T for any non-static function
6970     # and D for any global variable.
6971     # Also find C++ and __fastcall symbols from MSVC++,
6972     # which start with @ or ?.
6973     lt_cv_sys_global_symbol_pipe="$AWK '"\
6974 "     {last_section=section; section=\$ 3};"\
6975 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6976 "     \$ 0!~/External *\|/{next};"\
6977 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6978 "     {if(hide[section]) next};"\
6979 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6980 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6981 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6982 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6983 "     ' prfx=^$ac_symprfx"
6984   else
6985     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6986   fi
6987
6988   # Check to see that the pipe works correctly.
6989   pipe_works=no
6990
6991   rm -f conftest*
6992   cat > conftest.$ac_ext <<_LT_EOF
6993 #ifdef __cplusplus
6994 extern "C" {
6995 #endif
6996 char nm_test_var;
6997 void nm_test_func(void);
6998 void nm_test_func(void){}
6999 #ifdef __cplusplus
7000 }
7001 #endif
7002 int main(){nm_test_var='a';nm_test_func();return(0);}
7003 _LT_EOF
7004
7005   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006   (eval $ac_compile) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; then
7010     # Now try to grab the symbols.
7011     nlist=conftest.nm
7012     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7013   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } && test -s "$nlist"; then
7017       # Try sorting and uniquifying the output.
7018       if sort "$nlist" | uniq > "$nlist"T; then
7019         mv -f "$nlist"T "$nlist"
7020       else
7021         rm -f "$nlist"T
7022       fi
7023
7024       # Make sure that we snagged all the symbols we need.
7025       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7026         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7027           cat <<_LT_EOF > conftest.$ac_ext
7028 #ifdef __cplusplus
7029 extern "C" {
7030 #endif
7031
7032 _LT_EOF
7033           # Now generate the symbol file.
7034           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7035
7036           cat <<_LT_EOF >> conftest.$ac_ext
7037
7038 /* The mapping between symbol names and symbols.  */
7039 const struct {
7040   const char *name;
7041   void       *address;
7042 }
7043 lt__PROGRAM__LTX_preloaded_symbols[] =
7044 {
7045   { "@PROGRAM@", (void *) 0 },
7046 _LT_EOF
7047           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7048           cat <<\_LT_EOF >> conftest.$ac_ext
7049   {0, (void *) 0}
7050 };
7051
7052 /* This works around a problem in FreeBSD linker */
7053 #ifdef FREEBSD_WORKAROUND
7054 static const void *lt_preloaded_setup() {
7055   return lt__PROGRAM__LTX_preloaded_symbols;
7056 }
7057 #endif
7058
7059 #ifdef __cplusplus
7060 }
7061 #endif
7062 _LT_EOF
7063           # Now try linking the two files.
7064           mv conftest.$ac_objext conftstm.$ac_objext
7065           lt_save_LIBS="$LIBS"
7066           lt_save_CFLAGS="$CFLAGS"
7067           LIBS="conftstm.$ac_objext"
7068           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7069           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070   (eval $ac_link) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7074             pipe_works=yes
7075           fi
7076           LIBS="$lt_save_LIBS"
7077           CFLAGS="$lt_save_CFLAGS"
7078         else
7079           echo "cannot find nm_test_func in $nlist" >&5
7080         fi
7081       else
7082         echo "cannot find nm_test_var in $nlist" >&5
7083       fi
7084     else
7085       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7086     fi
7087   else
7088     echo "$progname: failed program was:" >&5
7089     cat conftest.$ac_ext >&5
7090   fi
7091   rm -rf conftest* conftst*
7092
7093   # Do not use the global_symbol_pipe unless it works.
7094   if test "$pipe_works" = yes; then
7095     break
7096   else
7097     lt_cv_sys_global_symbol_pipe=
7098   fi
7099 done
7100
7101 fi
7102
7103 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7104   lt_cv_sys_global_symbol_to_cdecl=
7105 fi
7106 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7107   { echo "$as_me:$LINENO: result: failed" >&5
7108 echo "${ECHO_T}failed" >&6; }
7109 else
7110   { echo "$as_me:$LINENO: result: ok" >&5
7111 echo "${ECHO_T}ok" >&6; }
7112 fi
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135 # Check whether --enable-libtool-lock was given.
7136 if test "${enable_libtool_lock+set}" = set; then
7137   enableval=$enable_libtool_lock;
7138 fi
7139
7140 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7141
7142 # Some flags need to be propagated to the compiler or linker for good
7143 # libtool support.
7144 case $host in
7145 ia64-*-hpux*)
7146   # Find out which ABI we are using.
7147   echo 'int i;' > conftest.$ac_ext
7148   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149   (eval $ac_compile) 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; then
7153     case `/usr/bin/file conftest.$ac_objext` in
7154       *ELF-32*)
7155         HPUX_IA64_MODE="32"
7156         ;;
7157       *ELF-64*)
7158         HPUX_IA64_MODE="64"
7159         ;;
7160     esac
7161   fi
7162   rm -rf conftest*
7163   ;;
7164 *-*-irix6*)
7165   # Find out which ABI we are using.
7166   echo '#line 7166 "configure"' > conftest.$ac_ext
7167   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168   (eval $ac_compile) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); }; then
7172     if test "$lt_cv_prog_gnu_ld" = yes; then
7173       case `/usr/bin/file conftest.$ac_objext` in
7174         *32-bit*)
7175           LD="${LD-ld} -melf32bsmip"
7176           ;;
7177         *N32*)
7178           LD="${LD-ld} -melf32bmipn32"
7179           ;;
7180         *64-bit*)
7181           LD="${LD-ld} -melf64bmip"
7182         ;;
7183       esac
7184     else
7185       case `/usr/bin/file conftest.$ac_objext` in
7186         *32-bit*)
7187           LD="${LD-ld} -32"
7188           ;;
7189         *N32*)
7190           LD="${LD-ld} -n32"
7191           ;;
7192         *64-bit*)
7193           LD="${LD-ld} -64"
7194           ;;
7195       esac
7196     fi
7197   fi
7198   rm -rf conftest*
7199   ;;
7200
7201 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7202 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7203   # Find out which ABI we are using.
7204   echo 'int i;' > conftest.$ac_ext
7205   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206   (eval $ac_compile) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }; then
7210     case `/usr/bin/file conftest.o` in
7211       *32-bit*)
7212         case $host in
7213           x86_64-*kfreebsd*-gnu)
7214             LD="${LD-ld} -m elf_i386_fbsd"
7215             ;;
7216           x86_64-*linux*)
7217             LD="${LD-ld} -m elf_i386"
7218             ;;
7219           ppc64-*linux*|powerpc64-*linux*)
7220             LD="${LD-ld} -m elf32ppclinux"
7221             ;;
7222           s390x-*linux*)
7223             LD="${LD-ld} -m elf_s390"
7224             ;;
7225           sparc64-*linux*)
7226             LD="${LD-ld} -m elf32_sparc"
7227             ;;
7228         esac
7229         ;;
7230       *64-bit*)
7231         case $host in
7232           x86_64-*kfreebsd*-gnu)
7233             LD="${LD-ld} -m elf_x86_64_fbsd"
7234             ;;
7235           x86_64-*linux*)
7236             LD="${LD-ld} -m elf_x86_64"
7237             ;;
7238           ppc*-*linux*|powerpc*-*linux*)
7239             LD="${LD-ld} -m elf64ppc"
7240             ;;
7241           s390*-*linux*|s390*-*tpf*)
7242             LD="${LD-ld} -m elf64_s390"
7243             ;;
7244           sparc*-*linux*)
7245             LD="${LD-ld} -m elf64_sparc"
7246             ;;
7247         esac
7248         ;;
7249     esac
7250   fi
7251   rm -rf conftest*
7252   ;;
7253
7254 *-*-sco3.2v5*)
7255   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7256   SAVE_CFLAGS="$CFLAGS"
7257   CFLAGS="$CFLAGS -belf"
7258   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7259 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7260 if test "${lt_cv_cc_needs_belf+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   ac_ext=c
7264 ac_cpp='$CPP $CPPFLAGS'
7265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268
7269      cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h.  */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h.  */
7275
7276 int
7277 main ()
7278 {
7279
7280   ;
7281   return 0;
7282 }
7283 _ACEOF
7284 rm -f conftest.$ac_objext conftest$ac_exeext
7285 if { (ac_try="$ac_link"
7286 case "(($ac_try" in
7287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288   *) ac_try_echo=$ac_try;;
7289 esac
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291   (eval "$ac_link") 2>conftest.er1
7292   ac_status=$?
7293   grep -v '^ *+' conftest.er1 >conftest.err
7294   rm -f conftest.er1
7295   cat conftest.err >&5
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); } && {
7298          test -z "$ac_c_werror_flag" ||
7299          test ! -s conftest.err
7300        } && test -s conftest$ac_exeext &&
7301        $as_test_x conftest$ac_exeext; then
7302   lt_cv_cc_needs_belf=yes
7303 else
7304   echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307         lt_cv_cc_needs_belf=no
7308 fi
7309
7310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7311       conftest$ac_exeext conftest.$ac_ext
7312      ac_ext=c
7313 ac_cpp='$CPP $CPPFLAGS'
7314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7317
7318 fi
7319 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7320 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7321   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7322     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7323     CFLAGS="$SAVE_CFLAGS"
7324   fi
7325   ;;
7326 sparc*-*solaris*)
7327   # Find out which ABI we are using.
7328   echo 'int i;' > conftest.$ac_ext
7329   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330   (eval $ac_compile) 2>&5
7331   ac_status=$?
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); }; then
7334     case `/usr/bin/file conftest.o` in
7335     *64-bit*)
7336       case $lt_cv_prog_gnu_ld in
7337       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7338       *)
7339         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7340           LD="${LD-ld} -64"
7341         fi
7342         ;;
7343       esac
7344       ;;
7345     esac
7346   fi
7347   rm -rf conftest*
7348   ;;
7349 esac
7350
7351 need_locks="$enable_libtool_lock"
7352
7353
7354   case $host_os in
7355     rhapsody* | darwin*)
7356     if test -n "$ac_tool_prefix"; then
7357   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   if test -n "$DSYMUTIL"; then
7365   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370   IFS=$as_save_IFS
7371   test -z "$as_dir" && as_dir=.
7372   for ac_exec_ext in '' $ac_executable_extensions; do
7373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376     break 2
7377   fi
7378 done
7379 done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7385 if test -n "$DSYMUTIL"; then
7386   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7387 echo "${ECHO_T}$DSYMUTIL" >&6; }
7388 else
7389   { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7391 fi
7392
7393
7394 fi
7395 if test -z "$ac_cv_prog_DSYMUTIL"; then
7396   ac_ct_DSYMUTIL=$DSYMUTIL
7397   # Extract the first word of "dsymutil", so it can be a program name with args.
7398 set dummy dsymutil; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   if test -n "$ac_ct_DSYMUTIL"; then
7405   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410   IFS=$as_save_IFS
7411   test -z "$as_dir" && as_dir=.
7412   for ac_exec_ext in '' $ac_executable_extensions; do
7413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417   fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7425 if test -n "$ac_ct_DSYMUTIL"; then
7426   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7427 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7428 else
7429   { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7431 fi
7432
7433   if test "x$ac_ct_DSYMUTIL" = x; then
7434     DSYMUTIL=":"
7435   else
7436     case $cross_compiling:$ac_tool_warned in
7437 yes:)
7438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7439 whose name does not start with the host triplet.  If you think this
7440 configuration is useful to you, please write to autoconf@gnu.org." >&5
7441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7442 whose name does not start with the host triplet.  If you think this
7443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446     DSYMUTIL=$ac_ct_DSYMUTIL
7447   fi
7448 else
7449   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7450 fi
7451
7452     if test -n "$ac_tool_prefix"; then
7453   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7454 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   if test -n "$NMEDIT"; then
7461   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 NMEDIT=$ac_cv_prog_NMEDIT
7481 if test -n "$NMEDIT"; then
7482   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7483 echo "${ECHO_T}$NMEDIT" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489
7490 fi
7491 if test -z "$ac_cv_prog_NMEDIT"; then
7492   ac_ct_NMEDIT=$NMEDIT
7493   # Extract the first word of "nmedit", so it can be a program name with args.
7494 set dummy nmedit; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   if test -n "$ac_ct_NMEDIT"; then
7501   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508   for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7521 if test -n "$ac_ct_NMEDIT"; then
7522   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7523 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7524 else
7525   { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7527 fi
7528
7529   if test "x$ac_ct_NMEDIT" = x; then
7530     NMEDIT=":"
7531   else
7532     case $cross_compiling:$ac_tool_warned in
7533 yes:)
7534 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7535 whose name does not start with the host triplet.  If you think this
7536 configuration is useful to you, please write to autoconf@gnu.org." >&5
7537 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7538 whose name does not start with the host triplet.  If you think this
7539 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7540 ac_tool_warned=yes ;;
7541 esac
7542     NMEDIT=$ac_ct_NMEDIT
7543   fi
7544 else
7545   NMEDIT="$ac_cv_prog_NMEDIT"
7546 fi
7547
7548     if test -n "$ac_tool_prefix"; then
7549   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7550 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_LIPO+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   if test -n "$LIPO"; then
7557   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 LIPO=$ac_cv_prog_LIPO
7577 if test -n "$LIPO"; then
7578   { echo "$as_me:$LINENO: result: $LIPO" >&5
7579 echo "${ECHO_T}$LIPO" >&6; }
7580 else
7581   { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7583 fi
7584
7585
7586 fi
7587 if test -z "$ac_cv_prog_LIPO"; then
7588   ac_ct_LIPO=$LIPO
7589   # Extract the first word of "lipo", so it can be a program name with args.
7590 set dummy lipo; ac_word=$2
7591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7593 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7594   echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596   if test -n "$ac_ct_LIPO"; then
7597   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604   for ac_exec_ext in '' $ac_executable_extensions; do
7605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606     ac_cv_prog_ac_ct_LIPO="lipo"
7607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611 done
7612 IFS=$as_save_IFS
7613
7614 fi
7615 fi
7616 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7617 if test -n "$ac_ct_LIPO"; then
7618   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7619 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7620 else
7621   { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7623 fi
7624
7625   if test "x$ac_ct_LIPO" = x; then
7626     LIPO=":"
7627   else
7628     case $cross_compiling:$ac_tool_warned in
7629 yes:)
7630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7631 whose name does not start with the host triplet.  If you think this
7632 configuration is useful to you, please write to autoconf@gnu.org." >&5
7633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7634 whose name does not start with the host triplet.  If you think this
7635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638     LIPO=$ac_ct_LIPO
7639   fi
7640 else
7641   LIPO="$ac_cv_prog_LIPO"
7642 fi
7643
7644     if test -n "$ac_tool_prefix"; then
7645   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7646 set dummy ${ac_tool_prefix}otool; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_prog_OTOOL+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   if test -n "$OTOOL"; then
7653   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658   IFS=$as_save_IFS
7659   test -z "$as_dir" && as_dir=.
7660   for ac_exec_ext in '' $ac_executable_extensions; do
7661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664     break 2
7665   fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 OTOOL=$ac_cv_prog_OTOOL
7673 if test -n "$OTOOL"; then
7674   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7675 echo "${ECHO_T}$OTOOL" >&6; }
7676 else
7677   { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7679 fi
7680
7681
7682 fi
7683 if test -z "$ac_cv_prog_OTOOL"; then
7684   ac_ct_OTOOL=$OTOOL
7685   # Extract the first word of "otool", so it can be a program name with args.
7686 set dummy otool; ac_word=$2
7687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7689 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7690   echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692   if test -n "$ac_ct_OTOOL"; then
7693   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698   IFS=$as_save_IFS
7699   test -z "$as_dir" && as_dir=.
7700   for ac_exec_ext in '' $ac_executable_extensions; do
7701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702     ac_cv_prog_ac_ct_OTOOL="otool"
7703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704     break 2
7705   fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710 fi
7711 fi
7712 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7713 if test -n "$ac_ct_OTOOL"; then
7714   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7715 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7716 else
7717   { echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6; }
7719 fi
7720
7721   if test "x$ac_ct_OTOOL" = x; then
7722     OTOOL=":"
7723   else
7724     case $cross_compiling:$ac_tool_warned in
7725 yes:)
7726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7727 whose name does not start with the host triplet.  If you think this
7728 configuration is useful to you, please write to autoconf@gnu.org." >&5
7729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7730 whose name does not start with the host triplet.  If you think this
7731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7732 ac_tool_warned=yes ;;
7733 esac
7734     OTOOL=$ac_ct_OTOOL
7735   fi
7736 else
7737   OTOOL="$ac_cv_prog_OTOOL"
7738 fi
7739
7740     if test -n "$ac_tool_prefix"; then
7741   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7742 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   if test -n "$OTOOL64"; then
7749   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754   IFS=$as_save_IFS
7755   test -z "$as_dir" && as_dir=.
7756   for ac_exec_ext in '' $ac_executable_extensions; do
7757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7758     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760     break 2
7761   fi
7762 done
7763 done
7764 IFS=$as_save_IFS
7765
7766 fi
7767 fi
7768 OTOOL64=$ac_cv_prog_OTOOL64
7769 if test -n "$OTOOL64"; then
7770   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7771 echo "${ECHO_T}$OTOOL64" >&6; }
7772 else
7773   { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7775 fi
7776
7777
7778 fi
7779 if test -z "$ac_cv_prog_OTOOL64"; then
7780   ac_ct_OTOOL64=$OTOOL64
7781   # Extract the first word of "otool64", so it can be a program name with args.
7782 set dummy otool64; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   if test -n "$ac_ct_OTOOL64"; then
7789   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7790 else
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7793 do
7794   IFS=$as_save_IFS
7795   test -z "$as_dir" && as_dir=.
7796   for ac_exec_ext in '' $ac_executable_extensions; do
7797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798     ac_cv_prog_ac_ct_OTOOL64="otool64"
7799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800     break 2
7801   fi
7802 done
7803 done
7804 IFS=$as_save_IFS
7805
7806 fi
7807 fi
7808 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7809 if test -n "$ac_ct_OTOOL64"; then
7810   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7811 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7812 else
7813   { echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6; }
7815 fi
7816
7817   if test "x$ac_ct_OTOOL64" = x; then
7818     OTOOL64=":"
7819   else
7820     case $cross_compiling:$ac_tool_warned in
7821 yes:)
7822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7823 whose name does not start with the host triplet.  If you think this
7824 configuration is useful to you, please write to autoconf@gnu.org." >&5
7825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7826 whose name does not start with the host triplet.  If you think this
7827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7828 ac_tool_warned=yes ;;
7829 esac
7830     OTOOL64=$ac_ct_OTOOL64
7831   fi
7832 else
7833   OTOOL64="$ac_cv_prog_OTOOL64"
7834 fi
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
7862     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7863 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7864 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7865   echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867   lt_cv_apple_cc_single_mod=no
7868       if test -z "${LT_MULTI_MODULE}"; then
7869         # By default we will add the -single_module flag. You can override
7870         # by either setting the environment variable LT_MULTI_MODULE
7871         # non-empty at configure time, or by adding -multi_module to the
7872         # link flags.
7873         rm -rf libconftest.dylib*
7874         echo "int foo(void){return 1;}" > conftest.c
7875         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7876 -dynamiclib -Wl,-single_module conftest.c" >&5
7877         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7878           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7879         _lt_result=$?
7880         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7881           lt_cv_apple_cc_single_mod=yes
7882         else
7883           cat conftest.err >&5
7884         fi
7885         rm -rf libconftest.dylib*
7886         rm -f conftest.*
7887       fi
7888 fi
7889 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7890 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7891     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7892 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7893 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896   lt_cv_ld_exported_symbols_list=no
7897       save_LDFLAGS=$LDFLAGS
7898       echo "_main" > conftest.sym
7899       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7900       cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h.  */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h.  */
7906
7907 int
7908 main ()
7909 {
7910
7911   ;
7912   return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext conftest$ac_exeext
7916 if { (ac_try="$ac_link"
7917 case "(($ac_try" in
7918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919   *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922   (eval "$ac_link") 2>conftest.er1
7923   ac_status=$?
7924   grep -v '^ *+' conftest.er1 >conftest.err
7925   rm -f conftest.er1
7926   cat conftest.err >&5
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); } && {
7929          test -z "$ac_c_werror_flag" ||
7930          test ! -s conftest.err
7931        } && test -s conftest$ac_exeext &&
7932        $as_test_x conftest$ac_exeext; then
7933   lt_cv_ld_exported_symbols_list=yes
7934 else
7935   echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938         lt_cv_ld_exported_symbols_list=no
7939 fi
7940
7941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7942       conftest$ac_exeext conftest.$ac_ext
7943         LDFLAGS="$save_LDFLAGS"
7944
7945 fi
7946 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7947 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7948     case $host_os in
7949     rhapsody* | darwin1.[012])
7950       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7951     darwin1.*)
7952       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7953     darwin*) # darwin 5.x on
7954       # if running on 10.5 or later, the deployment target defaults
7955       # to the OS version, if on x86, and 10.4, the deployment
7956       # target defaults to 10.4. Don't you love it?
7957       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7958         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7959           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7960         10.[012]*)
7961           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7962         10.*)
7963           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7964       esac
7965     ;;
7966   esac
7967     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7968       _lt_dar_single_mod='$single_module'
7969     fi
7970     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7971       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7972     else
7973       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7974     fi
7975     if test "$DSYMUTIL" != ":"; then
7976       _lt_dsymutil='~$DSYMUTIL $lib || :'
7977     else
7978       _lt_dsymutil=
7979     fi
7980     ;;
7981   esac
7982
7983 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7984 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7985 if test "${ac_cv_header_stdc+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h.  */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h.  */
7994 #include <stdlib.h>
7995 #include <stdarg.h>
7996 #include <string.h>
7997 #include <float.h>
7998
7999 int
8000 main ()
8001 {
8002
8003   ;
8004   return 0;
8005 }
8006 _ACEOF
8007 rm -f conftest.$ac_objext
8008 if { (ac_try="$ac_compile"
8009 case "(($ac_try" in
8010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011   *) ac_try_echo=$ac_try;;
8012 esac
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014   (eval "$ac_compile") 2>conftest.er1
8015   ac_status=$?
8016   grep -v '^ *+' conftest.er1 >conftest.err
8017   rm -f conftest.er1
8018   cat conftest.err >&5
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); } && {
8021          test -z "$ac_c_werror_flag" ||
8022          test ! -s conftest.err
8023        } && test -s conftest.$ac_objext; then
8024   ac_cv_header_stdc=yes
8025 else
8026   echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029         ac_cv_header_stdc=no
8030 fi
8031
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033
8034 if test $ac_cv_header_stdc = yes; then
8035   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8036   cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h.  */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h.  */
8042 #include <string.h>
8043
8044 _ACEOF
8045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8046   $EGREP "memchr" >/dev/null 2>&1; then
8047   :
8048 else
8049   ac_cv_header_stdc=no
8050 fi
8051 rm -f conftest*
8052
8053 fi
8054
8055 if test $ac_cv_header_stdc = yes; then
8056   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8057   cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063 #include <stdlib.h>
8064
8065 _ACEOF
8066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8067   $EGREP "free" >/dev/null 2>&1; then
8068   :
8069 else
8070   ac_cv_header_stdc=no
8071 fi
8072 rm -f conftest*
8073
8074 fi
8075
8076 if test $ac_cv_header_stdc = yes; then
8077   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8078   if test "$cross_compiling" = yes; then
8079   :
8080 else
8081   cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h.  */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h.  */
8087 #include <ctype.h>
8088 #include <stdlib.h>
8089 #if ((' ' & 0x0FF) == 0x020)
8090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8092 #else
8093 # define ISLOWER(c) \
8094                    (('a' <= (c) && (c) <= 'i') \
8095                      || ('j' <= (c) && (c) <= 'r') \
8096                      || ('s' <= (c) && (c) <= 'z'))
8097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8098 #endif
8099
8100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8101 int
8102 main ()
8103 {
8104   int i;
8105   for (i = 0; i < 256; i++)
8106     if (XOR (islower (i), ISLOWER (i))
8107         || toupper (i) != TOUPPER (i))
8108       return 2;
8109   return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest$ac_exeext
8113 if { (ac_try="$ac_link"
8114 case "(($ac_try" in
8115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116   *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119   (eval "$ac_link") 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8123   { (case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128   (eval "$ac_try") 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; }; then
8132   :
8133 else
8134   echo "$as_me: program exited with status $ac_status" >&5
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138 ( exit $ac_status )
8139 ac_cv_header_stdc=no
8140 fi
8141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8142 fi
8143
8144
8145 fi
8146 fi
8147 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8148 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8149 if test $ac_cv_header_stdc = yes; then
8150
8151 cat >>confdefs.h <<\_ACEOF
8152 #define STDC_HEADERS 1
8153 _ACEOF
8154
8155 fi
8156
8157 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8168                   inttypes.h stdint.h unistd.h
8169 do
8170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174   echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176   cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182 $ac_includes_default
8183
8184 #include <$ac_header>
8185 _ACEOF
8186 rm -f conftest.$ac_objext
8187 if { (ac_try="$ac_compile"
8188 case "(($ac_try" in
8189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190   *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193   (eval "$ac_compile") 2>conftest.er1
8194   ac_status=$?
8195   grep -v '^ *+' conftest.er1 >conftest.err
8196   rm -f conftest.er1
8197   cat conftest.err >&5
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); } && {
8200          test -z "$ac_c_werror_flag" ||
8201          test ! -s conftest.err
8202        } && test -s conftest.$ac_objext; then
8203   eval "$as_ac_Header=yes"
8204 else
8205   echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208         eval "$as_ac_Header=no"
8209 fi
8210
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 fi
8213 ac_res=`eval echo '${'$as_ac_Header'}'`
8214                { echo "$as_me:$LINENO: result: $ac_res" >&5
8215 echo "${ECHO_T}$ac_res" >&6; }
8216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8217   cat >>confdefs.h <<_ACEOF
8218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8219 _ACEOF
8220
8221 fi
8222
8223 done
8224
8225
8226
8227 for ac_header in dlfcn.h
8228 do
8229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241 $ac_includes_default
8242
8243 #include <$ac_header>
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8247 case "(($ac_try" in
8248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249   *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252   (eval "$ac_compile") 2>conftest.er1
8253   ac_status=$?
8254   grep -v '^ *+' conftest.er1 >conftest.err
8255   rm -f conftest.er1
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } && {
8259          test -z "$ac_c_werror_flag" ||
8260          test ! -s conftest.err
8261        } && test -s conftest.$ac_objext; then
8262   eval "$as_ac_Header=yes"
8263 else
8264   echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267         eval "$as_ac_Header=no"
8268 fi
8269
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 fi
8272 ac_res=`eval echo '${'$as_ac_Header'}'`
8273                { echo "$as_me:$LINENO: result: $ac_res" >&5
8274 echo "${ECHO_T}$ac_res" >&6; }
8275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8276   cat >>confdefs.h <<_ACEOF
8277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8278 _ACEOF
8279
8280 fi
8281
8282 done
8283
8284
8285
8286 ac_ext=cpp
8287 ac_cpp='$CXXCPP $CPPFLAGS'
8288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8291 if test -z "$CXX"; then
8292   if test -n "$CCC"; then
8293     CXX=$CCC
8294   else
8295     if test -n "$ac_tool_prefix"; then
8296   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8297   do
8298     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8302 if test "${ac_cv_prog_CXX+set}" = set; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   if test -n "$CXX"; then
8306   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311   IFS=$as_save_IFS
8312   test -z "$as_dir" && as_dir=.
8313   for ac_exec_ext in '' $ac_executable_extensions; do
8314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317     break 2
8318   fi
8319 done
8320 done
8321 IFS=$as_save_IFS
8322
8323 fi
8324 fi
8325 CXX=$ac_cv_prog_CXX
8326 if test -n "$CXX"; then
8327   { echo "$as_me:$LINENO: result: $CXX" >&5
8328 echo "${ECHO_T}$CXX" >&6; }
8329 else
8330   { echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6; }
8332 fi
8333
8334
8335     test -n "$CXX" && break
8336   done
8337 fi
8338 if test -z "$CXX"; then
8339   ac_ct_CXX=$CXX
8340   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8341 do
8342   # Extract the first word of "$ac_prog", so it can be a program name with args.
8343 set dummy $ac_prog; ac_word=$2
8344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   if test -n "$ac_ct_CXX"; then
8350   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355   IFS=$as_save_IFS
8356   test -z "$as_dir" && as_dir=.
8357   for ac_exec_ext in '' $ac_executable_extensions; do
8358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359     ac_cv_prog_ac_ct_CXX="$ac_prog"
8360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8361     break 2
8362   fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8370 if test -n "$ac_ct_CXX"; then
8371   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8372 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8373 else
8374   { echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6; }
8376 fi
8377
8378
8379   test -n "$ac_ct_CXX" && break
8380 done
8381
8382   if test "x$ac_ct_CXX" = x; then
8383     CXX="g++"
8384   else
8385     case $cross_compiling:$ac_tool_warned in
8386 yes:)
8387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8388 whose name does not start with the host triplet.  If you think this
8389 configuration is useful to you, please write to autoconf@gnu.org." >&5
8390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8391 whose name does not start with the host triplet.  If you think this
8392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8393 ac_tool_warned=yes ;;
8394 esac
8395     CXX=$ac_ct_CXX
8396   fi
8397 fi
8398
8399   fi
8400 fi
8401 # Provide some information about the compiler.
8402 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8403 ac_compiler=`set X $ac_compile; echo $2`
8404 { (ac_try="$ac_compiler --version >&5"
8405 case "(($ac_try" in
8406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407   *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410   (eval "$ac_compiler --version >&5") 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }
8414 { (ac_try="$ac_compiler -v >&5"
8415 case "(($ac_try" in
8416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417   *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420   (eval "$ac_compiler -v >&5") 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }
8424 { (ac_try="$ac_compiler -V >&5"
8425 case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430   (eval "$ac_compiler -V >&5") 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }
8434
8435 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8436 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8437 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440   cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446
8447 int
8448 main ()
8449 {
8450 #ifndef __GNUC__
8451        choke me
8452 #endif
8453
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465   (eval "$ac_compile") 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } && {
8472          test -z "$ac_cxx_werror_flag" ||
8473          test ! -s conftest.err
8474        } && test -s conftest.$ac_objext; then
8475   ac_compiler_gnu=yes
8476 else
8477   echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480         ac_compiler_gnu=no
8481 fi
8482
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8485
8486 fi
8487 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8488 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8489 GXX=`test $ac_compiler_gnu = yes && echo yes`
8490 ac_test_CXXFLAGS=${CXXFLAGS+set}
8491 ac_save_CXXFLAGS=$CXXFLAGS
8492 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8493 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8494 if test "${ac_cv_prog_cxx_g+set}" = set; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8498    ac_cxx_werror_flag=yes
8499    ac_cv_prog_cxx_g=no
8500    CXXFLAGS="-g"
8501    cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h.  */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h.  */
8507
8508 int
8509 main ()
8510 {
8511
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8518 case "(($ac_try" in
8519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520   *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523   (eval "$ac_compile") 2>conftest.er1
8524   ac_status=$?
8525   grep -v '^ *+' conftest.er1 >conftest.err
8526   rm -f conftest.er1
8527   cat conftest.err >&5
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); } && {
8530          test -z "$ac_cxx_werror_flag" ||
8531          test ! -s conftest.err
8532        } && test -s conftest.$ac_objext; then
8533   ac_cv_prog_cxx_g=yes
8534 else
8535   echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538         CXXFLAGS=""
8539       cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h.  */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h.  */
8545
8546 int
8547 main ()
8548 {
8549
8550   ;
8551   return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8556 case "(($ac_try" in
8557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558   *) ac_try_echo=$ac_try;;
8559 esac
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561   (eval "$ac_compile") 2>conftest.er1
8562   ac_status=$?
8563   grep -v '^ *+' conftest.er1 >conftest.err
8564   rm -f conftest.er1
8565   cat conftest.err >&5
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); } && {
8568          test -z "$ac_cxx_werror_flag" ||
8569          test ! -s conftest.err
8570        } && test -s conftest.$ac_objext; then
8571   :
8572 else
8573   echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8577          CXXFLAGS="-g"
8578          cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584
8585 int
8586 main ()
8587 {
8588
8589   ;
8590   return 0;
8591 }
8592 _ACEOF
8593 rm -f conftest.$ac_objext
8594 if { (ac_try="$ac_compile"
8595 case "(($ac_try" in
8596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597   *) ac_try_echo=$ac_try;;
8598 esac
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600   (eval "$ac_compile") 2>conftest.er1
8601   ac_status=$?
8602   grep -v '^ *+' conftest.er1 >conftest.err
8603   rm -f conftest.er1
8604   cat conftest.err >&5
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); } && {
8607          test -z "$ac_cxx_werror_flag" ||
8608          test ! -s conftest.err
8609        } && test -s conftest.$ac_objext; then
8610   ac_cv_prog_cxx_g=yes
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615
8616 fi
8617
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 fi
8623
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8626 fi
8627 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8628 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8629 if test "$ac_test_CXXFLAGS" = set; then
8630   CXXFLAGS=$ac_save_CXXFLAGS
8631 elif test $ac_cv_prog_cxx_g = yes; then
8632   if test "$GXX" = yes; then
8633     CXXFLAGS="-g -O2"
8634   else
8635     CXXFLAGS="-g"
8636   fi
8637 else
8638   if test "$GXX" = yes; then
8639     CXXFLAGS="-O2"
8640   else
8641     CXXFLAGS=
8642   fi
8643 fi
8644 ac_ext=c
8645 ac_cpp='$CPP $CPPFLAGS'
8646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8649
8650 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8651     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8652     (test "X$CXX" != "Xg++"))) ; then
8653   ac_ext=cpp
8654 ac_cpp='$CXXCPP $CPPFLAGS'
8655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8658 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8659 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8660 if test -z "$CXXCPP"; then
8661   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664       # Double quotes because CXXCPP needs to be expanded
8665     for CXXCPP in "$CXX -E" "/lib/cpp"
8666     do
8667       ac_preproc_ok=false
8668 for ac_cxx_preproc_warn_flag in '' yes
8669 do
8670   # Use a header file that comes with gcc, so configuring glibc
8671   # with a fresh cross-compiler works.
8672   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673   # <limits.h> exists even on freestanding compilers.
8674   # On the NeXT, cc -E runs the code through the compiler's parser,
8675   # not just through cpp. "Syntax error" is here to catch this case.
8676   cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h.  */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h.  */
8682 #ifdef __STDC__
8683 # include <limits.h>
8684 #else
8685 # include <assert.h>
8686 #endif
8687                      Syntax error
8688 _ACEOF
8689 if { (ac_try="$ac_cpp conftest.$ac_ext"
8690 case "(($ac_try" in
8691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692   *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8696   ac_status=$?
8697   grep -v '^ *+' conftest.er1 >conftest.err
8698   rm -f conftest.er1
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } >/dev/null && {
8702          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8703          test ! -s conftest.err
8704        }; then
8705   :
8706 else
8707   echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710   # Broken: fails on valid input.
8711 continue
8712 fi
8713
8714 rm -f conftest.err conftest.$ac_ext
8715
8716   # OK, works on sane cases.  Now check whether nonexistent headers
8717   # can be detected and how.
8718   cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h.  */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h.  */
8724 #include <ac_nonexistent.h>
8725 _ACEOF
8726 if { (ac_try="$ac_cpp conftest.$ac_ext"
8727 case "(($ac_try" in
8728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729   *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8733   ac_status=$?
8734   grep -v '^ *+' conftest.er1 >conftest.err
8735   rm -f conftest.er1
8736   cat conftest.err >&5
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } >/dev/null && {
8739          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8740          test ! -s conftest.err
8741        }; then
8742   # Broken: success on invalid input.
8743 continue
8744 else
8745   echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8747
8748   # Passes both tests.
8749 ac_preproc_ok=:
8750 break
8751 fi
8752
8753 rm -f conftest.err conftest.$ac_ext
8754
8755 done
8756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8757 rm -f conftest.err conftest.$ac_ext
8758 if $ac_preproc_ok; then
8759   break
8760 fi
8761
8762     done
8763     ac_cv_prog_CXXCPP=$CXXCPP
8764
8765 fi
8766   CXXCPP=$ac_cv_prog_CXXCPP
8767 else
8768   ac_cv_prog_CXXCPP=$CXXCPP
8769 fi
8770 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8771 echo "${ECHO_T}$CXXCPP" >&6; }
8772 ac_preproc_ok=false
8773 for ac_cxx_preproc_warn_flag in '' yes
8774 do
8775   # Use a header file that comes with gcc, so configuring glibc
8776   # with a fresh cross-compiler works.
8777   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8778   # <limits.h> exists even on freestanding compilers.
8779   # On the NeXT, cc -E runs the code through the compiler's parser,
8780   # not just through cpp. "Syntax error" is here to catch this case.
8781   cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h.  */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h.  */
8787 #ifdef __STDC__
8788 # include <limits.h>
8789 #else
8790 # include <assert.h>
8791 #endif
8792                      Syntax error
8793 _ACEOF
8794 if { (ac_try="$ac_cpp conftest.$ac_ext"
8795 case "(($ac_try" in
8796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797   *) ac_try_echo=$ac_try;;
8798 esac
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8801   ac_status=$?
8802   grep -v '^ *+' conftest.er1 >conftest.err
8803   rm -f conftest.er1
8804   cat conftest.err >&5
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } >/dev/null && {
8807          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8808          test ! -s conftest.err
8809        }; then
8810   :
8811 else
8812   echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815   # Broken: fails on valid input.
8816 continue
8817 fi
8818
8819 rm -f conftest.err conftest.$ac_ext
8820
8821   # OK, works on sane cases.  Now check whether nonexistent headers
8822   # can be detected and how.
8823   cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h.  */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h.  */
8829 #include <ac_nonexistent.h>
8830 _ACEOF
8831 if { (ac_try="$ac_cpp conftest.$ac_ext"
8832 case "(($ac_try" in
8833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834   *) ac_try_echo=$ac_try;;
8835 esac
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8838   ac_status=$?
8839   grep -v '^ *+' conftest.er1 >conftest.err
8840   rm -f conftest.er1
8841   cat conftest.err >&5
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } >/dev/null && {
8844          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8845          test ! -s conftest.err
8846        }; then
8847   # Broken: success on invalid input.
8848 continue
8849 else
8850   echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853   # Passes both tests.
8854 ac_preproc_ok=:
8855 break
8856 fi
8857
8858 rm -f conftest.err conftest.$ac_ext
8859
8860 done
8861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8862 rm -f conftest.err conftest.$ac_ext
8863 if $ac_preproc_ok; then
8864   :
8865 else
8866   _lt_caught_CXX_error=yes
8867 fi
8868
8869 ac_ext=c
8870 ac_cpp='$CPP $CPPFLAGS'
8871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8874
8875 else
8876   _lt_caught_CXX_error=yes
8877 fi
8878
8879
8880
8881
8882
8883 # Set options
8884 # Check whether --enable-shared was given.
8885 if test "${enable_shared+set}" = set; then
8886   enableval=$enable_shared; p=${PACKAGE-default}
8887     case $enableval in
8888     yes) enable_shared=yes ;;
8889     no) enable_shared=no ;;
8890     *)
8891       enable_shared=no
8892       # Look at the argument we got.  We use all the common list separators.
8893       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8894       for pkg in $enableval; do
8895         IFS="$lt_save_ifs"
8896         if test "X$pkg" = "X$p"; then
8897           enable_shared=yes
8898         fi
8899       done
8900       IFS="$lt_save_ifs"
8901       ;;
8902     esac
8903 else
8904   enable_shared=yes
8905 fi
8906
8907
8908
8909
8910
8911
8912
8913 # Check whether --enable-static was given.
8914 if test "${enable_static+set}" = set; then
8915   enableval=$enable_static; p=${PACKAGE-default}
8916     case $enableval in
8917     yes) enable_static=yes ;;
8918     no) enable_static=no ;;
8919     *)
8920      enable_static=no
8921       # Look at the argument we got.  We use all the common list separators.
8922       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8923       for pkg in $enableval; do
8924         IFS="$lt_save_ifs"
8925         if test "X$pkg" = "X$p"; then
8926           enable_static=yes
8927         fi
8928       done
8929       IFS="$lt_save_ifs"
8930       ;;
8931     esac
8932 else
8933   enable_static=no
8934 fi
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945         enable_dlopen=no
8946
8947
8948   enable_win32_dll=no
8949
8950
8951
8952
8953
8954 # Check whether --with-pic was given.
8955 if test "${with_pic+set}" = set; then
8956   withval=$with_pic; pic_mode="$withval"
8957 else
8958   pic_mode=default
8959 fi
8960
8961
8962 test -z "$pic_mode" && pic_mode=default
8963
8964
8965
8966
8967
8968
8969
8970   # Check whether --enable-fast-install was given.
8971 if test "${enable_fast_install+set}" = set; then
8972   enableval=$enable_fast_install; p=${PACKAGE-default}
8973     case $enableval in
8974     yes) enable_fast_install=yes ;;
8975     no) enable_fast_install=no ;;
8976     *)
8977       enable_fast_install=no
8978       # Look at the argument we got.  We use all the common list separators.
8979       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8980       for pkg in $enableval; do
8981         IFS="$lt_save_ifs"
8982         if test "X$pkg" = "X$p"; then
8983           enable_fast_install=yes
8984         fi
8985       done
8986       IFS="$lt_save_ifs"
8987       ;;
8988     esac
8989 else
8990   enable_fast_install=yes
8991 fi
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003 # This can be used to rebuild libtool when needed
9004 LIBTOOL_DEPS="$ltmain"
9005
9006 # Always use our own libtool.
9007 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
9033 test -z "$LN_S" && LN_S="ln -s"
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048 if test -n "${ZSH_VERSION+set}" ; then
9049    setopt NO_GLOB_SUBST
9050 fi
9051
9052 { echo "$as_me:$LINENO: checking for objdir" >&5
9053 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9054 if test "${lt_cv_objdir+set}" = set; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057   rm -f .libs 2>/dev/null
9058 mkdir .libs 2>/dev/null
9059 if test -d .libs; then
9060   lt_cv_objdir=.libs
9061 else
9062   # MS-DOS does not allow filenames that begin with a dot.
9063   lt_cv_objdir=_libs
9064 fi
9065 rmdir .libs 2>/dev/null
9066 fi
9067 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9068 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9069 objdir=$lt_cv_objdir
9070
9071
9072
9073
9074
9075 cat >>confdefs.h <<_ACEOF
9076 #define LT_OBJDIR "$lt_cv_objdir/"
9077 _ACEOF
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 case $host_os in
9096 aix3*)
9097   # AIX sometimes has problems with the GCC collect2 program.  For some
9098   # reason, if we set the COLLECT_NAMES environment variable, the problems
9099   # vanish in a puff of smoke.
9100   if test "X${COLLECT_NAMES+set}" != Xset; then
9101     COLLECT_NAMES=
9102     export COLLECT_NAMES
9103   fi
9104   ;;
9105 esac
9106
9107 # Sed substitution that helps us do robust quoting.  It backslashifies
9108 # metacharacters that are still active within double-quoted strings.
9109 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9110
9111 # Same as above, but do not quote variable references.
9112 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9113
9114 # Sed substitution to delay expansion of an escaped shell variable in a
9115 # double_quote_subst'ed string.
9116 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9117
9118 # Sed substitution to delay expansion of an escaped single quote.
9119 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9120
9121 # Sed substitution to avoid accidental globbing in evaled expressions
9122 no_glob_subst='s/\*/\\\*/g'
9123
9124 # Global variables:
9125 ofile=libtool
9126 can_build_shared=yes
9127
9128 # All known linkers require a `.a' archive for static linking (except MSVC,
9129 # which needs '.lib').
9130 libext=a
9131
9132 with_gnu_ld="$lt_cv_prog_gnu_ld"
9133
9134 old_CC="$CC"
9135 old_CFLAGS="$CFLAGS"
9136
9137 # Set sane defaults for various variables
9138 test -z "$CC" && CC=cc
9139 test -z "$LTCC" && LTCC=$CC
9140 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9141 test -z "$LD" && LD=ld
9142 test -z "$ac_objext" && ac_objext=o
9143
9144 for cc_temp in $compiler""; do
9145   case $cc_temp in
9146     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9147     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9148     \-*) ;;
9149     *) break;;
9150   esac
9151 done
9152 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9153
9154
9155 # Only perform the check for file, if the check method requires it
9156 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9157 case $deplibs_check_method in
9158 file_magic*)
9159   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9160     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9161 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   case $MAGIC_CMD in
9166 [\\/*] |  ?:[\\/]*)
9167   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9168   ;;
9169 *)
9170   lt_save_MAGIC_CMD="$MAGIC_CMD"
9171   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9172   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9173   for ac_dir in $ac_dummy; do
9174     IFS="$lt_save_ifs"
9175     test -z "$ac_dir" && ac_dir=.
9176     if test -f $ac_dir/${ac_tool_prefix}file; then
9177       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9178       if test -n "$file_magic_test_file"; then
9179         case $deplibs_check_method in
9180         "file_magic "*)
9181           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9182           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9183           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9184             $EGREP "$file_magic_regex" > /dev/null; then
9185             :
9186           else
9187             cat <<_LT_EOF 1>&2
9188
9189 *** Warning: the command libtool uses to detect shared libraries,
9190 *** $file_magic_cmd, produces output that libtool cannot recognize.
9191 *** The result is that libtool may fail to recognize shared libraries
9192 *** as such.  This will affect the creation of libtool libraries that
9193 *** depend on shared libraries, but programs linked with such libtool
9194 *** libraries will work regardless of this problem.  Nevertheless, you
9195 *** may want to report the problem to your system manager and/or to
9196 *** bug-libtool@gnu.org
9197
9198 _LT_EOF
9199           fi ;;
9200         esac
9201       fi
9202       break
9203     fi
9204   done
9205   IFS="$lt_save_ifs"
9206   MAGIC_CMD="$lt_save_MAGIC_CMD"
9207   ;;
9208 esac
9209 fi
9210
9211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9212 if test -n "$MAGIC_CMD"; then
9213   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9214 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9215 else
9216   { echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6; }
9218 fi
9219
9220
9221
9222
9223
9224 if test -z "$lt_cv_path_MAGIC_CMD"; then
9225   if test -n "$ac_tool_prefix"; then
9226     { echo "$as_me:$LINENO: checking for file" >&5
9227 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9228 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9229   echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231   case $MAGIC_CMD in
9232 [\\/*] |  ?:[\\/]*)
9233   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9234   ;;
9235 *)
9236   lt_save_MAGIC_CMD="$MAGIC_CMD"
9237   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9238   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9239   for ac_dir in $ac_dummy; do
9240     IFS="$lt_save_ifs"
9241     test -z "$ac_dir" && ac_dir=.
9242     if test -f $ac_dir/file; then
9243       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9244       if test -n "$file_magic_test_file"; then
9245         case $deplibs_check_method in
9246         "file_magic "*)
9247           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9248           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9249           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9250             $EGREP "$file_magic_regex" > /dev/null; then
9251             :
9252           else
9253             cat <<_LT_EOF 1>&2
9254
9255 *** Warning: the command libtool uses to detect shared libraries,
9256 *** $file_magic_cmd, produces output that libtool cannot recognize.
9257 *** The result is that libtool may fail to recognize shared libraries
9258 *** as such.  This will affect the creation of libtool libraries that
9259 *** depend on shared libraries, but programs linked with such libtool
9260 *** libraries will work regardless of this problem.  Nevertheless, you
9261 *** may want to report the problem to your system manager and/or to
9262 *** bug-libtool@gnu.org
9263
9264 _LT_EOF
9265           fi ;;
9266         esac
9267       fi
9268       break
9269     fi
9270   done
9271   IFS="$lt_save_ifs"
9272   MAGIC_CMD="$lt_save_MAGIC_CMD"
9273   ;;
9274 esac
9275 fi
9276
9277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9278 if test -n "$MAGIC_CMD"; then
9279   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9280 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9281 else
9282   { echo "$as_me:$LINENO: result: no" >&5
9283 echo "${ECHO_T}no" >&6; }
9284 fi
9285
9286
9287   else
9288     MAGIC_CMD=:
9289   fi
9290 fi
9291
9292   fi
9293   ;;
9294 esac
9295
9296 # Use C for the default configuration in the libtool script
9297
9298 lt_save_CC="$CC"
9299 ac_ext=c
9300 ac_cpp='$CPP $CPPFLAGS'
9301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9304
9305
9306 # Source file extension for C test sources.
9307 ac_ext=c
9308
9309 # Object file extension for compiled C test sources.
9310 objext=o
9311 objext=$objext
9312
9313 # Code to be used in simple compile tests
9314 lt_simple_compile_test_code="int some_variable = 0;"
9315
9316 # Code to be used in simple link tests
9317 lt_simple_link_test_code='int main(){return(0);}'
9318
9319
9320
9321
9322
9323
9324
9325 # If no C compiler was specified, use CC.
9326 LTCC=${LTCC-"$CC"}
9327
9328 # If no C compiler flags were specified, use CFLAGS.
9329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9330
9331 # Allow CC to be a program name with arguments.
9332 compiler=$CC
9333
9334 # Save the default compiler, since it gets overwritten when the other
9335 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9336 compiler_DEFAULT=$CC
9337
9338 # save warnings/boilerplate of simple test code
9339 ac_outfile=conftest.$ac_objext
9340 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9341 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9342 _lt_compiler_boilerplate=`cat conftest.err`
9343 $RM conftest*
9344
9345 ac_outfile=conftest.$ac_objext
9346 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9347 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9348 _lt_linker_boilerplate=`cat conftest.err`
9349 $RM -r conftest*
9350
9351
9352 ## CAVEAT EMPTOR:
9353 ## There is no encapsulation within the following macros, do not change
9354 ## the running order or otherwise move them around unless you know exactly
9355 ## what you are doing...
9356 if test -n "$compiler"; then
9357
9358 lt_prog_compiler_no_builtin_flag=
9359
9360 if test "$GCC" = yes; then
9361   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9362
9363   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9364 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9365 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   lt_cv_prog_compiler_rtti_exceptions=no
9369    ac_outfile=conftest.$ac_objext
9370    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9371    lt_compiler_flag="-fno-rtti -fno-exceptions"
9372    # Insert the option either (1) after the last *FLAGS variable, or
9373    # (2) before a word containing "conftest.", or (3) at the end.
9374    # Note that $ac_compile itself does not contain backslashes and begins
9375    # with a dollar sign (not a hyphen), so the echo should work correctly.
9376    # The option is referenced via a variable to avoid confusing sed.
9377    lt_compile=`echo "$ac_compile" | $SED \
9378    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9379    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9380    -e 's:$: $lt_compiler_flag:'`
9381    (eval echo "\"\$as_me:9381: $lt_compile\"" >&5)
9382    (eval "$lt_compile" 2>conftest.err)
9383    ac_status=$?
9384    cat conftest.err >&5
9385    echo "$as_me:9385: \$? = $ac_status" >&5
9386    if (exit $ac_status) && test -s "$ac_outfile"; then
9387      # The compiler can only warn and ignore the option if not recognized
9388      # So say no if there are warnings other than the usual output.
9389      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9390      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9391      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9392        lt_cv_prog_compiler_rtti_exceptions=yes
9393      fi
9394    fi
9395    $RM conftest*
9396
9397 fi
9398 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9399 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9400
9401 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9402     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9403 else
9404     :
9405 fi
9406
9407 fi
9408
9409
9410
9411
9412
9413
9414   lt_prog_compiler_wl=
9415 lt_prog_compiler_pic=
9416 lt_prog_compiler_static=
9417
9418 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9419 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9420
9421   if test "$GCC" = yes; then
9422     lt_prog_compiler_wl='-Wl,'
9423     lt_prog_compiler_static='-static'
9424
9425     case $host_os in
9426       aix*)
9427       # All AIX code is PIC.
9428       if test "$host_cpu" = ia64; then
9429         # AIX 5 now supports IA64 processor
9430         lt_prog_compiler_static='-Bstatic'
9431       fi
9432       ;;
9433
9434     amigaos*)
9435       case $host_cpu in
9436       powerpc)
9437             # see comment about AmigaOS4 .so support
9438             lt_prog_compiler_pic='-fPIC'
9439         ;;
9440       m68k)
9441             # FIXME: we need at least 68020 code to build shared libraries, but
9442             # adding the `-m68020' flag to GCC prevents building anything better,
9443             # like `-m68040'.
9444             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9445         ;;
9446       esac
9447       ;;
9448
9449     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9450       # PIC is the default for these OSes.
9451       ;;
9452
9453     mingw* | cygwin* | pw32* | os2* | cegcc*)
9454       # This hack is so that the source file can tell whether it is being
9455       # built for inclusion in a dll (and should export symbols for example).
9456       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9457       # (--disable-auto-import) libraries
9458       lt_prog_compiler_pic='-DDLL_EXPORT'
9459       ;;
9460
9461     darwin* | rhapsody*)
9462       # PIC is the default on this platform
9463       # Common symbols not allowed in MH_DYLIB files
9464       lt_prog_compiler_pic='-fno-common'
9465       ;;
9466
9467     hpux*)
9468       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9469       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9470       # sets the default TLS model and affects inlining.
9471       case $host_cpu in
9472       hppa*64*)
9473         # +Z the default
9474         ;;
9475       *)
9476         lt_prog_compiler_pic='-fPIC'
9477         ;;
9478       esac
9479       ;;
9480
9481     interix[3-9]*)
9482       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9483       # Instead, we relocate shared libraries at runtime.
9484       ;;
9485
9486     msdosdjgpp*)
9487       # Just because we use GCC doesn't mean we suddenly get shared libraries
9488       # on systems that don't support them.
9489       lt_prog_compiler_can_build_shared=no
9490       enable_shared=no
9491       ;;
9492
9493     *nto* | *qnx*)
9494       # QNX uses GNU C++, but need to define -shared option too, otherwise
9495       # it will coredump.
9496       lt_prog_compiler_pic='-fPIC -shared'
9497       ;;
9498
9499     sysv4*MP*)
9500       if test -d /usr/nec; then
9501         lt_prog_compiler_pic=-Kconform_pic
9502       fi
9503       ;;
9504
9505     *)
9506       lt_prog_compiler_pic='-fPIC'
9507       ;;
9508     esac
9509   else
9510     # PORTME Check for flag to pass linker flags through the system compiler.
9511     case $host_os in
9512     aix*)
9513       lt_prog_compiler_wl='-Wl,'
9514       if test "$host_cpu" = ia64; then
9515         # AIX 5 now supports IA64 processor
9516         lt_prog_compiler_static='-Bstatic'
9517       else
9518         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9519       fi
9520       ;;
9521
9522     mingw* | cygwin* | pw32* | os2* | cegcc*)
9523       # This hack is so that the source file can tell whether it is being
9524       # built for inclusion in a dll (and should export symbols for example).
9525       lt_prog_compiler_pic='-DDLL_EXPORT'
9526       ;;
9527
9528     hpux9* | hpux10* | hpux11*)
9529       lt_prog_compiler_wl='-Wl,'
9530       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9531       # not for PA HP-UX.
9532       case $host_cpu in
9533       hppa*64*|ia64*)
9534         # +Z the default
9535         ;;
9536       *)
9537         lt_prog_compiler_pic='+Z'
9538         ;;
9539       esac
9540       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9541       lt_prog_compiler_static='${wl}-a ${wl}archive'
9542       ;;
9543
9544     irix5* | irix6* | nonstopux*)
9545       lt_prog_compiler_wl='-Wl,'
9546       # PIC (with -KPIC) is the default.
9547       lt_prog_compiler_static='-non_shared'
9548       ;;
9549
9550     linux* | k*bsd*-gnu)
9551       case $cc_basename in
9552       # old Intel for x86_64 which still supported -KPIC.
9553       ecc*)
9554         lt_prog_compiler_wl='-Wl,'
9555         lt_prog_compiler_pic='-KPIC'
9556         lt_prog_compiler_static='-static'
9557         ;;
9558       # icc used to be incompatible with GCC.
9559       # ICC 10 doesn't accept -KPIC any more.
9560       icc* | ifort*)
9561         lt_prog_compiler_wl='-Wl,'
9562         lt_prog_compiler_pic='-fPIC'
9563         lt_prog_compiler_static='-static'
9564         ;;
9565       # Lahey Fortran 8.1.
9566       lf95*)
9567         lt_prog_compiler_wl='-Wl,'
9568         lt_prog_compiler_pic='--shared'
9569         lt_prog_compiler_static='--static'
9570         ;;
9571       pgcc* | pgf77* | pgf90* | pgf95*)
9572         # Portland Group compilers (*not* the Pentium gcc compiler,
9573         # which looks to be a dead project)
9574         lt_prog_compiler_wl='-Wl,'
9575         lt_prog_compiler_pic='-fpic'
9576         lt_prog_compiler_static='-Bstatic'
9577         ;;
9578       ccc*)
9579         lt_prog_compiler_wl='-Wl,'
9580         # All Alpha code is PIC.
9581         lt_prog_compiler_static='-non_shared'
9582         ;;
9583       xl*)
9584         # IBM XL C 8.0/Fortran 10.1 on PPC
9585         lt_prog_compiler_wl='-Wl,'
9586         lt_prog_compiler_pic='-qpic'
9587         lt_prog_compiler_static='-qstaticlink'
9588         ;;
9589       *)
9590         case `$CC -V 2>&1 | sed 5q` in
9591         *Sun\ C*)
9592           # Sun C 5.9
9593           lt_prog_compiler_pic='-KPIC'
9594           lt_prog_compiler_static='-Bstatic'
9595           lt_prog_compiler_wl='-Wl,'
9596           ;;
9597         *Sun\ F*)
9598           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9599           lt_prog_compiler_pic='-KPIC'
9600           lt_prog_compiler_static='-Bstatic'
9601           lt_prog_compiler_wl=''
9602           ;;
9603         esac
9604         ;;
9605       esac
9606       ;;
9607
9608     newsos6)
9609       lt_prog_compiler_pic='-KPIC'
9610       lt_prog_compiler_static='-Bstatic'
9611       ;;
9612
9613     *nto* | *qnx*)
9614       # QNX uses GNU C++, but need to define -shared option too, otherwise
9615       # it will coredump.
9616       lt_prog_compiler_pic='-fPIC -shared'
9617       ;;
9618
9619     osf3* | osf4* | osf5*)
9620       lt_prog_compiler_wl='-Wl,'
9621       # All OSF/1 code is PIC.
9622       lt_prog_compiler_static='-non_shared'
9623       ;;
9624
9625     rdos*)
9626       lt_prog_compiler_static='-non_shared'
9627       ;;
9628
9629     solaris*)
9630       lt_prog_compiler_pic='-KPIC'
9631       lt_prog_compiler_static='-Bstatic'
9632       case $cc_basename in
9633       f77* | f90* | f95*)
9634         lt_prog_compiler_wl='-Qoption ld ';;
9635       *)
9636         lt_prog_compiler_wl='-Wl,';;
9637       esac
9638       ;;
9639
9640     sunos4*)
9641       lt_prog_compiler_wl='-Qoption ld '
9642       lt_prog_compiler_pic='-PIC'
9643       lt_prog_compiler_static='-Bstatic'
9644       ;;
9645
9646     sysv4 | sysv4.2uw2* | sysv4.3*)
9647       lt_prog_compiler_wl='-Wl,'
9648       lt_prog_compiler_pic='-KPIC'
9649       lt_prog_compiler_static='-Bstatic'
9650       ;;
9651
9652     sysv4*MP*)
9653       if test -d /usr/nec ;then
9654         lt_prog_compiler_pic='-Kconform_pic'
9655         lt_prog_compiler_static='-Bstatic'
9656       fi
9657       ;;
9658
9659     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9660       lt_prog_compiler_wl='-Wl,'
9661       lt_prog_compiler_pic='-KPIC'
9662       lt_prog_compiler_static='-Bstatic'
9663       ;;
9664
9665     unicos*)
9666       lt_prog_compiler_wl='-Wl,'
9667       lt_prog_compiler_can_build_shared=no
9668       ;;
9669
9670     uts4*)
9671       lt_prog_compiler_pic='-pic'
9672       lt_prog_compiler_static='-Bstatic'
9673       ;;
9674
9675     *)
9676       lt_prog_compiler_can_build_shared=no
9677       ;;
9678     esac
9679   fi
9680
9681 case $host_os in
9682   # For platforms which do not support PIC, -DPIC is meaningless:
9683   *djgpp*)
9684     lt_prog_compiler_pic=
9685     ;;
9686   *)
9687     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9688     ;;
9689 esac
9690 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9691 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9692
9693
9694
9695
9696
9697
9698 #
9699 # Check to make sure the PIC flag actually works.
9700 #
9701 if test -n "$lt_prog_compiler_pic"; then
9702   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9703 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9704 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9705   echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707   lt_cv_prog_compiler_pic_works=no
9708    ac_outfile=conftest.$ac_objext
9709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9710    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9711    # Insert the option either (1) after the last *FLAGS variable, or
9712    # (2) before a word containing "conftest.", or (3) at the end.
9713    # Note that $ac_compile itself does not contain backslashes and begins
9714    # with a dollar sign (not a hyphen), so the echo should work correctly.
9715    # The option is referenced via a variable to avoid confusing sed.
9716    lt_compile=`echo "$ac_compile" | $SED \
9717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9719    -e 's:$: $lt_compiler_flag:'`
9720    (eval echo "\"\$as_me:9720: $lt_compile\"" >&5)
9721    (eval "$lt_compile" 2>conftest.err)
9722    ac_status=$?
9723    cat conftest.err >&5
9724    echo "$as_me:9724: \$? = $ac_status" >&5
9725    if (exit $ac_status) && test -s "$ac_outfile"; then
9726      # The compiler can only warn and ignore the option if not recognized
9727      # So say no if there are warnings other than the usual output.
9728      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9729      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9730      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9731        lt_cv_prog_compiler_pic_works=yes
9732      fi
9733    fi
9734    $RM conftest*
9735
9736 fi
9737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9738 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9739
9740 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9741     case $lt_prog_compiler_pic in
9742      "" | " "*) ;;
9743      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9744      esac
9745 else
9746     lt_prog_compiler_pic=
9747      lt_prog_compiler_can_build_shared=no
9748 fi
9749
9750 fi
9751
9752
9753
9754
9755
9756
9757 #
9758 # Check to make sure the static flag actually works.
9759 #
9760 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9761 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9762 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9763 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9764   echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766   lt_cv_prog_compiler_static_works=no
9767    save_LDFLAGS="$LDFLAGS"
9768    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9769    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9770    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9771      # The linker can only warn and ignore the option if not recognized
9772      # So say no if there are warnings
9773      if test -s conftest.err; then
9774        # Append any errors to the config.log.
9775        cat conftest.err 1>&5
9776        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9777        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9778        if diff conftest.exp conftest.er2 >/dev/null; then
9779          lt_cv_prog_compiler_static_works=yes
9780        fi
9781      else
9782        lt_cv_prog_compiler_static_works=yes
9783      fi
9784    fi
9785    $RM -r conftest*
9786    LDFLAGS="$save_LDFLAGS"
9787
9788 fi
9789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9790 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9791
9792 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9793     :
9794 else
9795     lt_prog_compiler_static=
9796 fi
9797
9798
9799
9800
9801
9802
9803
9804   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9805 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9806 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9807   echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809   lt_cv_prog_compiler_c_o=no
9810    $RM -r conftest 2>/dev/null
9811    mkdir conftest
9812    cd conftest
9813    mkdir out
9814    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815
9816    lt_compiler_flag="-o out/conftest2.$ac_objext"
9817    # Insert the option either (1) after the last *FLAGS variable, or
9818    # (2) before a word containing "conftest.", or (3) at the end.
9819    # Note that $ac_compile itself does not contain backslashes and begins
9820    # with a dollar sign (not a hyphen), so the echo should work correctly.
9821    lt_compile=`echo "$ac_compile" | $SED \
9822    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9823    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9824    -e 's:$: $lt_compiler_flag:'`
9825    (eval echo "\"\$as_me:9825: $lt_compile\"" >&5)
9826    (eval "$lt_compile" 2>out/conftest.err)
9827    ac_status=$?
9828    cat out/conftest.err >&5
9829    echo "$as_me:9829: \$? = $ac_status" >&5
9830    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9831    then
9832      # The compiler can only warn and ignore the option if not recognized
9833      # So say no if there are warnings
9834      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9835      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9836      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9837        lt_cv_prog_compiler_c_o=yes
9838      fi
9839    fi
9840    chmod u+w . 2>&5
9841    $RM conftest*
9842    # SGI C++ compiler will create directory out/ii_files/ for
9843    # template instantiation
9844    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9845    $RM out/* && rmdir out
9846    cd ..
9847    $RM -r conftest
9848    $RM conftest*
9849
9850 fi
9851 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9852 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9853
9854
9855
9856
9857
9858
9859   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9860 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9861 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   lt_cv_prog_compiler_c_o=no
9865    $RM -r conftest 2>/dev/null
9866    mkdir conftest
9867    cd conftest
9868    mkdir out
9869    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9870
9871    lt_compiler_flag="-o out/conftest2.$ac_objext"
9872    # Insert the option either (1) after the last *FLAGS variable, or
9873    # (2) before a word containing "conftest.", or (3) at the end.
9874    # Note that $ac_compile itself does not contain backslashes and begins
9875    # with a dollar sign (not a hyphen), so the echo should work correctly.
9876    lt_compile=`echo "$ac_compile" | $SED \
9877    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879    -e 's:$: $lt_compiler_flag:'`
9880    (eval echo "\"\$as_me:9880: $lt_compile\"" >&5)
9881    (eval "$lt_compile" 2>out/conftest.err)
9882    ac_status=$?
9883    cat out/conftest.err >&5
9884    echo "$as_me:9884: \$? = $ac_status" >&5
9885    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9886    then
9887      # The compiler can only warn and ignore the option if not recognized
9888      # So say no if there are warnings
9889      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9890      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9891      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9892        lt_cv_prog_compiler_c_o=yes
9893      fi
9894    fi
9895    chmod u+w . 2>&5
9896    $RM conftest*
9897    # SGI C++ compiler will create directory out/ii_files/ for
9898    # template instantiation
9899    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9900    $RM out/* && rmdir out
9901    cd ..
9902    $RM -r conftest
9903    $RM conftest*
9904
9905 fi
9906 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9907 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9908
9909
9910
9911
9912 hard_links="nottested"
9913 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9914   # do not overwrite the value of need_locks provided by the user
9915   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9916 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9917   hard_links=yes
9918   $RM conftest*
9919   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9920   touch conftest.a
9921   ln conftest.a conftest.b 2>&5 || hard_links=no
9922   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9923   { echo "$as_me:$LINENO: result: $hard_links" >&5
9924 echo "${ECHO_T}$hard_links" >&6; }
9925   if test "$hard_links" = no; then
9926     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9927 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9928     need_locks=warn
9929   fi
9930 else
9931   need_locks=no
9932 fi
9933
9934
9935
9936
9937
9938
9939   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9940 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9941
9942   runpath_var=
9943   allow_undefined_flag=
9944   always_export_symbols=no
9945   archive_cmds=
9946   archive_expsym_cmds=
9947   compiler_needs_object=no
9948   enable_shared_with_static_runtimes=no
9949   export_dynamic_flag_spec=
9950   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9951   hardcode_automatic=no
9952   hardcode_direct=no
9953   hardcode_direct_absolute=no
9954   hardcode_libdir_flag_spec=
9955   hardcode_libdir_flag_spec_ld=
9956   hardcode_libdir_separator=
9957   hardcode_minus_L=no
9958   hardcode_shlibpath_var=unsupported
9959   inherit_rpath=no
9960   link_all_deplibs=unknown
9961   module_cmds=
9962   module_expsym_cmds=
9963   old_archive_from_new_cmds=
9964   old_archive_from_expsyms_cmds=
9965   thread_safe_flag_spec=
9966   whole_archive_flag_spec=
9967   # include_expsyms should be a list of space-separated symbols to be *always*
9968   # included in the symbol list
9969   include_expsyms=
9970   # exclude_expsyms can be an extended regexp of symbols to exclude
9971   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9972   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9973   # as well as any symbol that contains `d'.
9974   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9975   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9976   # platforms (ab)use it in PIC code, but their linkers get confused if
9977   # the symbol is explicitly referenced.  Since portable code cannot
9978   # rely on this symbol name, it's probably fine to never include it in
9979   # preloaded symbol tables.
9980   # Exclude shared library initialization/finalization symbols.
9981   extract_expsyms_cmds=
9982
9983   case $host_os in
9984   cygwin* | mingw* | pw32* | cegcc*)
9985     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9986     # When not using gcc, we currently assume that we are using
9987     # Microsoft Visual C++.
9988     if test "$GCC" != yes; then
9989       with_gnu_ld=no
9990     fi
9991     ;;
9992   interix*)
9993     # we just hope/assume this is gcc and not c89 (= MSVC++)
9994     with_gnu_ld=yes
9995     ;;
9996   openbsd*)
9997     with_gnu_ld=no
9998     ;;
9999   esac
10000
10001   ld_shlibs=yes
10002   if test "$with_gnu_ld" = yes; then
10003     # If archive_cmds runs LD, not CC, wlarc should be empty
10004     wlarc='${wl}'
10005
10006     # Set some defaults for GNU ld with shared library support. These
10007     # are reset later if shared libraries are not supported. Putting them
10008     # here allows them to be overridden if necessary.
10009     runpath_var=LD_RUN_PATH
10010     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10011     export_dynamic_flag_spec='${wl}--export-dynamic'
10012     # ancient GNU ld didn't support --whole-archive et. al.
10013     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10014       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10015     else
10016       whole_archive_flag_spec=
10017     fi
10018     supports_anon_versioning=no
10019     case `$LD -v 2>&1` in
10020       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10021       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10022       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10023       *\ 2.11.*) ;; # other 2.11 versions
10024       *) supports_anon_versioning=yes ;;
10025     esac
10026
10027     # See if GNU ld supports shared libraries.
10028     case $host_os in
10029     aix[3-9]*)
10030       # On AIX/PPC, the GNU linker is very broken
10031       if test "$host_cpu" != ia64; then
10032         ld_shlibs=no
10033         cat <<_LT_EOF 1>&2
10034
10035 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10036 *** to be unable to reliably create shared libraries on AIX.
10037 *** Therefore, libtool is disabling shared libraries support.  If you
10038 *** really care for shared libraries, you may want to modify your PATH
10039 *** so that a non-GNU linker is found, and then restart.
10040
10041 _LT_EOF
10042       fi
10043       ;;
10044
10045     amigaos*)
10046       case $host_cpu in
10047       powerpc)
10048             # see comment about AmigaOS4 .so support
10049             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050             archive_expsym_cmds=''
10051         ;;
10052       m68k)
10053             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)'
10054             hardcode_libdir_flag_spec='-L$libdir'
10055             hardcode_minus_L=yes
10056         ;;
10057       esac
10058       ;;
10059
10060     beos*)
10061       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10062         allow_undefined_flag=unsupported
10063         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10064         # support --undefined.  This deserves some investigation.  FIXME
10065         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066       else
10067         ld_shlibs=no
10068       fi
10069       ;;
10070
10071     cygwin* | mingw* | pw32* | cegcc*)
10072       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10073       # as there is no search path for DLLs.
10074       hardcode_libdir_flag_spec='-L$libdir'
10075       allow_undefined_flag=unsupported
10076       always_export_symbols=no
10077       enable_shared_with_static_runtimes=yes
10078       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10079
10080       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10081         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10082         # If the export-symbols file already is a .def file (1st line
10083         # is EXPORTS), use it as is; otherwise, prepend...
10084         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10085           cp $export_symbols $output_objdir/$soname.def;
10086         else
10087           echo EXPORTS > $output_objdir/$soname.def;
10088           cat $export_symbols >> $output_objdir/$soname.def;
10089         fi~
10090         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10091       else
10092         ld_shlibs=no
10093       fi
10094       ;;
10095
10096     interix[3-9]*)
10097       hardcode_direct=no
10098       hardcode_shlibpath_var=no
10099       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10100       export_dynamic_flag_spec='${wl}-E'
10101       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10102       # Instead, shared libraries are loaded at an image base (0x10000000 by
10103       # default) and relocated if they conflict, which is a slow very memory
10104       # consuming and fragmenting process.  To avoid this, we pick a random,
10105       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10106       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10107       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10108       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'
10109       ;;
10110
10111     gnu* | linux* | tpf* | k*bsd*-gnu)
10112       tmp_diet=no
10113       if test "$host_os" = linux-dietlibc; then
10114         case $cc_basename in
10115           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10116         esac
10117       fi
10118       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10119          && test "$tmp_diet" = no
10120       then
10121         tmp_addflag=
10122         tmp_sharedflag='-shared'
10123         case $cc_basename,$host_cpu in
10124         pgcc*)                          # Portland Group C compiler
10125           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'
10126           tmp_addflag=' $pic_flag'
10127           ;;
10128         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10129           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'
10130           tmp_addflag=' $pic_flag -Mnomain' ;;
10131         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10132           tmp_addflag=' -i_dynamic' ;;
10133         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10134           tmp_addflag=' -i_dynamic -nofor_main' ;;
10135         ifc* | ifort*)                  # Intel Fortran compiler
10136           tmp_addflag=' -nofor_main' ;;
10137         lf95*)                          # Lahey Fortran 8.1
10138           whole_archive_flag_spec=
10139           tmp_sharedflag='--shared' ;;
10140         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10141           tmp_sharedflag='-qmkshrobj'
10142           tmp_addflag= ;;
10143         esac
10144         case `$CC -V 2>&1 | sed 5q` in
10145         *Sun\ C*)                       # Sun C 5.9
10146           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'
10147           compiler_needs_object=yes
10148           tmp_sharedflag='-G' ;;
10149         *Sun\ F*)                       # Sun Fortran 8.3
10150           tmp_sharedflag='-G' ;;
10151         esac
10152         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10153
10154         if test "x$supports_anon_versioning" = xyes; then
10155           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10156             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10157             echo "local: *; };" >> $output_objdir/$libname.ver~
10158             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10159         fi
10160
10161         case $cc_basename in
10162         xlf*)
10163           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10164           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10165           hardcode_libdir_flag_spec=
10166           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10167           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10168           if test "x$supports_anon_versioning" = xyes; then
10169             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10170               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10171               echo "local: *; };" >> $output_objdir/$libname.ver~
10172               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10173           fi
10174           ;;
10175         esac
10176       else
10177         ld_shlibs=no
10178       fi
10179       ;;
10180
10181     netbsd*)
10182       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10183         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10184         wlarc=
10185       else
10186         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10188       fi
10189       ;;
10190
10191     solaris*)
10192       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10193         ld_shlibs=no
10194         cat <<_LT_EOF 1>&2
10195
10196 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10197 *** create shared libraries on Solaris systems.  Therefore, libtool
10198 *** is disabling shared libraries support.  We urge you to upgrade GNU
10199 *** binutils to release 2.9.1 or newer.  Another option is to modify
10200 *** your PATH or compiler configuration so that the native linker is
10201 *** used, and then restart.
10202
10203 _LT_EOF
10204       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10205         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207       else
10208         ld_shlibs=no
10209       fi
10210       ;;
10211
10212     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10213       case `$LD -v 2>&1` in
10214         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10215         ld_shlibs=no
10216         cat <<_LT_EOF 1>&2
10217
10218 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10219 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10220 *** is disabling shared libraries support.  We urge you to upgrade GNU
10221 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10222 *** your PATH or compiler configuration so that the native linker is
10223 *** used, and then restart.
10224
10225 _LT_EOF
10226         ;;
10227         *)
10228           # For security reasons, it is highly recommended that you always
10229           # use absolute paths for naming shared libraries, and exclude the
10230           # DT_RUNPATH tag from executables and libraries.  But doing so
10231           # requires that you compile everything twice, which is a pain.
10232           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10233             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10235             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10236           else
10237             ld_shlibs=no
10238           fi
10239         ;;
10240       esac
10241       ;;
10242
10243     sunos4*)
10244       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10245       wlarc=
10246       hardcode_direct=yes
10247       hardcode_shlibpath_var=no
10248       ;;
10249
10250     *)
10251       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10254       else
10255         ld_shlibs=no
10256       fi
10257       ;;
10258     esac
10259
10260     if test "$ld_shlibs" = no; then
10261       runpath_var=
10262       hardcode_libdir_flag_spec=
10263       export_dynamic_flag_spec=
10264       whole_archive_flag_spec=
10265     fi
10266   else
10267     # PORTME fill in a description of your system's linker (not GNU ld)
10268     case $host_os in
10269     aix3*)
10270       allow_undefined_flag=unsupported
10271       always_export_symbols=yes
10272       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'
10273       # Note: this linker hardcodes the directories in LIBPATH if there
10274       # are no directories specified by -L.
10275       hardcode_minus_L=yes
10276       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10277         # Neither direct hardcoding nor static linking is supported with a
10278         # broken collect2.
10279         hardcode_direct=unsupported
10280       fi
10281       ;;
10282
10283     aix[4-9]*)
10284       if test "$host_cpu" = ia64; then
10285         # On IA64, the linker does run time linking by default, so we don't
10286         # have to do anything special.
10287         aix_use_runtimelinking=no
10288         exp_sym_flag='-Bexport'
10289         no_entry_flag=""
10290       else
10291         # If we're using GNU nm, then we don't want the "-C" option.
10292         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10293         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10294           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'
10295         else
10296           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'
10297         fi
10298         aix_use_runtimelinking=no
10299
10300         # Test if we are trying to use run time linking or normal
10301         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10302         # need to do runtime linking.
10303         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10304           for ld_flag in $LDFLAGS; do
10305           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10306             aix_use_runtimelinking=yes
10307             break
10308           fi
10309           done
10310           ;;
10311         esac
10312
10313         exp_sym_flag='-bexport'
10314         no_entry_flag='-bnoentry'
10315       fi
10316
10317       # When large executables or shared objects are built, AIX ld can
10318       # have problems creating the table of contents.  If linking a library
10319       # or program results in "error TOC overflow" add -mminimal-toc to
10320       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10321       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10322
10323       archive_cmds=''
10324       hardcode_direct=yes
10325       hardcode_direct_absolute=yes
10326       hardcode_libdir_separator=':'
10327       link_all_deplibs=yes
10328       file_list_spec='${wl}-f,'
10329
10330       if test "$GCC" = yes; then
10331         case $host_os in aix4.[012]|aix4.[012].*)
10332         # We only want to do this on AIX 4.2 and lower, the check
10333         # below for broken collect2 doesn't work under 4.3+
10334           collect2name=`${CC} -print-prog-name=collect2`
10335           if test -f "$collect2name" &&
10336            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10337           then
10338           # We have reworked collect2
10339           :
10340           else
10341           # We have old collect2
10342           hardcode_direct=unsupported
10343           # It fails to find uninstalled libraries when the uninstalled
10344           # path is not listed in the libpath.  Setting hardcode_minus_L
10345           # to unsupported forces relinking
10346           hardcode_minus_L=yes
10347           hardcode_libdir_flag_spec='-L$libdir'
10348           hardcode_libdir_separator=
10349           fi
10350           ;;
10351         esac
10352         shared_flag='-shared'
10353         if test "$aix_use_runtimelinking" = yes; then
10354           shared_flag="$shared_flag "'${wl}-G'
10355         fi
10356       else
10357         # not using gcc
10358         if test "$host_cpu" = ia64; then
10359         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10360         # chokes on -Wl,-G. The following line is correct:
10361           shared_flag='-G'
10362         else
10363           if test "$aix_use_runtimelinking" = yes; then
10364             shared_flag='${wl}-G'
10365           else
10366             shared_flag='${wl}-bM:SRE'
10367           fi
10368         fi
10369       fi
10370
10371       export_dynamic_flag_spec='${wl}-bexpall'
10372       # It seems that -bexpall does not export symbols beginning with
10373       # underscore (_), so it is better to generate a list of symbols to export.
10374       always_export_symbols=yes
10375       if test "$aix_use_runtimelinking" = yes; then
10376         # Warning - without using the other runtime loading flags (-brtl),
10377         # -berok will link without error, but may produce a broken library.
10378         allow_undefined_flag='-berok'
10379         # Determine the default libpath from the value encoded in an
10380         # empty executable.
10381         cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h.  */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h.  */
10387
10388 int
10389 main ()
10390 {
10391
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400   *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403   (eval "$ac_link") 2>conftest.er1
10404   ac_status=$?
10405   grep -v '^ *+' conftest.er1 >conftest.err
10406   rm -f conftest.er1
10407   cat conftest.err >&5
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); } && {
10410          test -z "$ac_c_werror_flag" ||
10411          test ! -s conftest.err
10412        } && test -s conftest$ac_exeext &&
10413        $as_test_x conftest$ac_exeext; then
10414
10415 lt_aix_libpath_sed='
10416     /Import File Strings/,/^$/ {
10417         /^0/ {
10418             s/^0  *\(.*\)$/\1/
10419             p
10420         }
10421     }'
10422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423 # Check for a 64-bit object if we didn't find anything.
10424 if test -z "$aix_libpath"; then
10425   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10426 fi
10427 else
10428   echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10430
10431
10432 fi
10433
10434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10435       conftest$ac_exeext conftest.$ac_ext
10436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10437
10438         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10439         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"
10440       else
10441         if test "$host_cpu" = ia64; then
10442           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10443           allow_undefined_flag="-z nodefs"
10444           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"
10445         else
10446          # Determine the default libpath from the value encoded in an
10447          # empty executable.
10448          cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h.  */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h.  */
10454
10455 int
10456 main ()
10457 {
10458
10459   ;
10460   return 0;
10461 }
10462 _ACEOF
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467   *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470   (eval "$ac_link") 2>conftest.er1
10471   ac_status=$?
10472   grep -v '^ *+' conftest.er1 >conftest.err
10473   rm -f conftest.er1
10474   cat conftest.err >&5
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } && {
10477          test -z "$ac_c_werror_flag" ||
10478          test ! -s conftest.err
10479        } && test -s conftest$ac_exeext &&
10480        $as_test_x conftest$ac_exeext; then
10481
10482 lt_aix_libpath_sed='
10483     /Import File Strings/,/^$/ {
10484         /^0/ {
10485             s/^0  *\(.*\)$/\1/
10486             p
10487         }
10488     }'
10489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 # Check for a 64-bit object if we didn't find anything.
10491 if test -z "$aix_libpath"; then
10492   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10493 fi
10494 else
10495   echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10497
10498
10499 fi
10500
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502       conftest$ac_exeext conftest.$ac_ext
10503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10504
10505          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10506           # Warning - without using the other run time loading flags,
10507           # -berok will link without error, but may produce a broken library.
10508           no_undefined_flag=' ${wl}-bernotok'
10509           allow_undefined_flag=' ${wl}-berok'
10510           # Exported symbols can be pulled into shared objects from archives
10511           whole_archive_flag_spec='$convenience'
10512           archive_cmds_need_lc=yes
10513           # This is similar to how AIX traditionally builds its shared libraries.
10514           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'
10515         fi
10516       fi
10517       ;;
10518
10519     amigaos*)
10520       case $host_cpu in
10521       powerpc)
10522             # see comment about AmigaOS4 .so support
10523             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10524             archive_expsym_cmds=''
10525         ;;
10526       m68k)
10527             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)'
10528             hardcode_libdir_flag_spec='-L$libdir'
10529             hardcode_minus_L=yes
10530         ;;
10531       esac
10532       ;;
10533
10534     bsdi[45]*)
10535       export_dynamic_flag_spec=-rdynamic
10536       ;;
10537
10538     cygwin* | mingw* | pw32* | cegcc*)
10539       # When not using gcc, we currently assume that we are using
10540       # Microsoft Visual C++.
10541       # hardcode_libdir_flag_spec is actually meaningless, as there is
10542       # no search path for DLLs.
10543       hardcode_libdir_flag_spec=' '
10544       allow_undefined_flag=unsupported
10545       # Tell ltmain to make .lib files, not .a files.
10546       libext=lib
10547       # Tell ltmain to make .dll files, not .so files.
10548       shrext_cmds=".dll"
10549       # FIXME: Setting linknames here is a bad hack.
10550       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10551       # The linker will automatically build a .lib file if we build a DLL.
10552       old_archive_from_new_cmds='true'
10553       # FIXME: Should let the user specify the lib program.
10554       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10555       fix_srcfile_path='`cygpath -w "$srcfile"`'
10556       enable_shared_with_static_runtimes=yes
10557       ;;
10558
10559     darwin* | rhapsody*)
10560
10561
10562   archive_cmds_need_lc=no
10563   hardcode_direct=no
10564   hardcode_automatic=yes
10565   hardcode_shlibpath_var=unsupported
10566   whole_archive_flag_spec=''
10567   link_all_deplibs=yes
10568   allow_undefined_flag="$_lt_dar_allow_undefined"
10569   case $cc_basename in
10570      ifort*) _lt_dar_can_shared=yes ;;
10571      *) _lt_dar_can_shared=$GCC ;;
10572   esac
10573   if test "$_lt_dar_can_shared" = "yes"; then
10574     output_verbose_link_cmd=echo
10575     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10576     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10577     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}"
10578     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}"
10579
10580   else
10581   ld_shlibs=no
10582   fi
10583
10584       ;;
10585
10586     dgux*)
10587       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10588       hardcode_libdir_flag_spec='-L$libdir'
10589       hardcode_shlibpath_var=no
10590       ;;
10591
10592     freebsd1*)
10593       ld_shlibs=no
10594       ;;
10595
10596     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10597     # support.  Future versions do this automatically, but an explicit c++rt0.o
10598     # does not break anything, and helps significantly (at the cost of a little
10599     # extra space).
10600     freebsd2.2*)
10601       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10602       hardcode_libdir_flag_spec='-R$libdir'
10603       hardcode_direct=yes
10604       hardcode_shlibpath_var=no
10605       ;;
10606
10607     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10608     freebsd2*)
10609       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10610       hardcode_direct=yes
10611       hardcode_minus_L=yes
10612       hardcode_shlibpath_var=no
10613       ;;
10614
10615     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10616     freebsd* | dragonfly*)
10617       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10618       hardcode_libdir_flag_spec='-R$libdir'
10619       hardcode_direct=yes
10620       hardcode_shlibpath_var=no
10621       ;;
10622
10623     hpux9*)
10624       if test "$GCC" = yes; then
10625         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'
10626       else
10627         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'
10628       fi
10629       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10630       hardcode_libdir_separator=:
10631       hardcode_direct=yes
10632
10633       # hardcode_minus_L: Not really in the search PATH,
10634       # but as the default location of the library.
10635       hardcode_minus_L=yes
10636       export_dynamic_flag_spec='${wl}-E'
10637       ;;
10638
10639     hpux10*)
10640       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10641         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10642       else
10643         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10644       fi
10645       if test "$with_gnu_ld" = no; then
10646         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10647         hardcode_libdir_flag_spec_ld='+b $libdir'
10648         hardcode_libdir_separator=:
10649         hardcode_direct=yes
10650         hardcode_direct_absolute=yes
10651         export_dynamic_flag_spec='${wl}-E'
10652         # hardcode_minus_L: Not really in the search PATH,
10653         # but as the default location of the library.
10654         hardcode_minus_L=yes
10655       fi
10656       ;;
10657
10658     hpux11*)
10659       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10660         case $host_cpu in
10661         hppa*64*)
10662           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10663           ;;
10664         ia64*)
10665           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10666           ;;
10667         *)
10668           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10669           ;;
10670         esac
10671       else
10672         case $host_cpu in
10673         hppa*64*)
10674           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10675           ;;
10676         ia64*)
10677           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10678           ;;
10679         *)
10680           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10681           ;;
10682         esac
10683       fi
10684       if test "$with_gnu_ld" = no; then
10685         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686         hardcode_libdir_separator=:
10687
10688         case $host_cpu in
10689         hppa*64*|ia64*)
10690           hardcode_direct=no
10691           hardcode_shlibpath_var=no
10692           ;;
10693         *)
10694           hardcode_direct=yes
10695           hardcode_direct_absolute=yes
10696           export_dynamic_flag_spec='${wl}-E'
10697
10698           # hardcode_minus_L: Not really in the search PATH,
10699           # but as the default location of the library.
10700           hardcode_minus_L=yes
10701           ;;
10702         esac
10703       fi
10704       ;;
10705
10706     irix5* | irix6* | nonstopux*)
10707       if test "$GCC" = yes; then
10708         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'
10709         # Try to use the -exported_symbol ld option, if it does not
10710         # work, assume that -exports_file does not work either and
10711         # implicitly export all symbols.
10712         save_LDFLAGS="$LDFLAGS"
10713         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10714         cat >conftest.$ac_ext <<_ACEOF
10715 int foo(void) {}
10716 _ACEOF
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724   (eval "$ac_link") 2>conftest.er1
10725   ac_status=$?
10726   grep -v '^ *+' conftest.er1 >conftest.err
10727   rm -f conftest.er1
10728   cat conftest.err >&5
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } && {
10731          test -z "$ac_c_werror_flag" ||
10732          test ! -s conftest.err
10733        } && test -s conftest$ac_exeext &&
10734        $as_test_x conftest$ac_exeext; then
10735   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'
10736
10737 else
10738   echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741
10742 fi
10743
10744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10745       conftest$ac_exeext conftest.$ac_ext
10746         LDFLAGS="$save_LDFLAGS"
10747       else
10748         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'
10749         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'
10750       fi
10751       archive_cmds_need_lc='no'
10752       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10753       hardcode_libdir_separator=:
10754       inherit_rpath=yes
10755       link_all_deplibs=yes
10756       ;;
10757
10758     netbsd*)
10759       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10760         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10761       else
10762         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10763       fi
10764       hardcode_libdir_flag_spec='-R$libdir'
10765       hardcode_direct=yes
10766       hardcode_shlibpath_var=no
10767       ;;
10768
10769     newsos6)
10770       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10771       hardcode_direct=yes
10772       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10773       hardcode_libdir_separator=:
10774       hardcode_shlibpath_var=no
10775       ;;
10776
10777     *nto* | *qnx*)
10778       ;;
10779
10780     openbsd*)
10781       if test -f /usr/libexec/ld.so; then
10782         hardcode_direct=yes
10783         hardcode_shlibpath_var=no
10784         hardcode_direct_absolute=yes
10785         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10786           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10787           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10788           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10789           export_dynamic_flag_spec='${wl}-E'
10790         else
10791           case $host_os in
10792            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10793              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10794              hardcode_libdir_flag_spec='-R$libdir'
10795              ;;
10796            *)
10797              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10798              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10799              ;;
10800           esac
10801         fi
10802       else
10803         ld_shlibs=no
10804       fi
10805       ;;
10806
10807     os2*)
10808       hardcode_libdir_flag_spec='-L$libdir'
10809       hardcode_minus_L=yes
10810       allow_undefined_flag=unsupported
10811       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'
10812       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10813       ;;
10814
10815     osf3*)
10816       if test "$GCC" = yes; then
10817         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10818         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'
10819       else
10820         allow_undefined_flag=' -expect_unresolved \*'
10821         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'
10822       fi
10823       archive_cmds_need_lc='no'
10824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825       hardcode_libdir_separator=:
10826       ;;
10827
10828     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10829       if test "$GCC" = yes; then
10830         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10831         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'
10832         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10833       else
10834         allow_undefined_flag=' -expect_unresolved \*'
10835         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'
10836         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~
10837         $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'
10838
10839         # Both c and cxx compiler support -rpath directly
10840         hardcode_libdir_flag_spec='-rpath $libdir'
10841       fi
10842       archive_cmds_need_lc='no'
10843       hardcode_libdir_separator=:
10844       ;;
10845
10846     solaris*)
10847       no_undefined_flag=' -z defs'
10848       if test "$GCC" = yes; then
10849         wlarc='${wl}'
10850         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10851         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10852           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10853       else
10854         case `$CC -V 2>&1` in
10855         *"Compilers 5.0"*)
10856           wlarc=''
10857           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10858           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10859           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10860           ;;
10861         *)
10862           wlarc='${wl}'
10863           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10864           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10865           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10866           ;;
10867         esac
10868       fi
10869       hardcode_libdir_flag_spec='-R$libdir'
10870       hardcode_shlibpath_var=no
10871       case $host_os in
10872       solaris2.[0-5] | solaris2.[0-5].*) ;;
10873       *)
10874         # The compiler driver will combine and reorder linker options,
10875         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10876         # but is careful enough not to reorder.
10877         # Supported since Solaris 2.6 (maybe 2.5.1?)
10878         if test "$GCC" = yes; then
10879           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10880         else
10881           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10882         fi
10883         ;;
10884       esac
10885       link_all_deplibs=yes
10886       ;;
10887
10888     sunos4*)
10889       if test "x$host_vendor" = xsequent; then
10890         # Use $CC to link under sequent, because it throws in some extra .o
10891         # files that make .init and .fini sections work.
10892         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10893       else
10894         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10895       fi
10896       hardcode_libdir_flag_spec='-L$libdir'
10897       hardcode_direct=yes
10898       hardcode_minus_L=yes
10899       hardcode_shlibpath_var=no
10900       ;;
10901
10902     sysv4)
10903       case $host_vendor in
10904         sni)
10905           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906           hardcode_direct=yes # is this really true???
10907         ;;
10908         siemens)
10909           ## LD is ld it makes a PLAMLIB
10910           ## CC just makes a GrossModule.
10911           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10912           reload_cmds='$CC -r -o $output$reload_objs'
10913           hardcode_direct=no
10914         ;;
10915         motorola)
10916           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10918         ;;
10919       esac
10920       runpath_var='LD_RUN_PATH'
10921       hardcode_shlibpath_var=no
10922       ;;
10923
10924     sysv4.3*)
10925       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10926       hardcode_shlibpath_var=no
10927       export_dynamic_flag_spec='-Bexport'
10928       ;;
10929
10930     sysv4*MP*)
10931       if test -d /usr/nec; then
10932         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933         hardcode_shlibpath_var=no
10934         runpath_var=LD_RUN_PATH
10935         hardcode_runpath_var=yes
10936         ld_shlibs=yes
10937       fi
10938       ;;
10939
10940     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10941       no_undefined_flag='${wl}-z,text'
10942       archive_cmds_need_lc=no
10943       hardcode_shlibpath_var=no
10944       runpath_var='LD_RUN_PATH'
10945
10946       if test "$GCC" = yes; then
10947         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949       else
10950         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952       fi
10953       ;;
10954
10955     sysv5* | sco3.2v5* | sco5v6*)
10956       # Note: We can NOT use -z defs as we might desire, because we do not
10957       # link with -lc, and that would cause any symbols used from libc to
10958       # always be unresolved, which means just about no library would
10959       # ever link correctly.  If we're not using GNU ld we use -z text
10960       # though, which does catch some bad symbols but isn't as heavy-handed
10961       # as -z defs.
10962       no_undefined_flag='${wl}-z,text'
10963       allow_undefined_flag='${wl}-z,nodefs'
10964       archive_cmds_need_lc=no
10965       hardcode_shlibpath_var=no
10966       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10967       hardcode_libdir_separator=':'
10968       link_all_deplibs=yes
10969       export_dynamic_flag_spec='${wl}-Bexport'
10970       runpath_var='LD_RUN_PATH'
10971
10972       if test "$GCC" = yes; then
10973         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975       else
10976         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10978       fi
10979       ;;
10980
10981     uts4*)
10982       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983       hardcode_libdir_flag_spec='-L$libdir'
10984       hardcode_shlibpath_var=no
10985       ;;
10986
10987     *)
10988       ld_shlibs=no
10989       ;;
10990     esac
10991
10992     if test x$host_vendor = xsni; then
10993       case $host in
10994       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10995         export_dynamic_flag_spec='${wl}-Blargedynsym'
10996         ;;
10997       esac
10998     fi
10999   fi
11000
11001 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11002 echo "${ECHO_T}$ld_shlibs" >&6; }
11003 test "$ld_shlibs" = no && can_build_shared=no
11004
11005 with_gnu_ld=$with_gnu_ld
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021 #
11022 # Do we need to explicitly link libc?
11023 #
11024 case "x$archive_cmds_need_lc" in
11025 x|xyes)
11026   # Assume -lc should be added
11027   archive_cmds_need_lc=yes
11028
11029   if test "$enable_shared" = yes && test "$GCC" = yes; then
11030     case $archive_cmds in
11031     *'~'*)
11032       # FIXME: we may have to deal with multi-command sequences.
11033       ;;
11034     '$CC '*)
11035       # Test whether the compiler implicitly links with -lc since on some
11036       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11037       # to ld, don't add -lc before -lgcc.
11038       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11039 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11040       $RM conftest*
11041       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11042
11043       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044   (eval $ac_compile) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } 2>conftest.err; then
11048         soname=conftest
11049         lib=conftest
11050         libobjs=conftest.$ac_objext
11051         deplibs=
11052         wl=$lt_prog_compiler_wl
11053         pic_flag=$lt_prog_compiler_pic
11054         compiler_flags=-v
11055         linker_flags=-v
11056         verstring=
11057         output_objdir=.
11058         libname=conftest
11059         lt_save_allow_undefined_flag=$allow_undefined_flag
11060         allow_undefined_flag=
11061         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11062   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11063   ac_status=$?
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); }
11066         then
11067           archive_cmds_need_lc=no
11068         else
11069           archive_cmds_need_lc=yes
11070         fi
11071         allow_undefined_flag=$lt_save_allow_undefined_flag
11072       else
11073         cat conftest.err 1>&5
11074       fi
11075       $RM conftest*
11076       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11077 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11078       ;;
11079     esac
11080   fi
11081   ;;
11082 esac
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
11240   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11241 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11242
11243 if test "$GCC" = yes; then
11244   case $host_os in
11245     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11246     *) lt_awk_arg="/^libraries:/" ;;
11247   esac
11248   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11249   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11250     # if the path contains ";" then we assume it to be the separator
11251     # otherwise default to the standard path separator (i.e. ":") - it is
11252     # assumed that no part of a normal pathname contains ";" but that should
11253     # okay in the real world where ";" in dirpaths is itself problematic.
11254     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11255   else
11256     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11257   fi
11258   # Ok, now we have the path, separated by spaces, we can step through it
11259   # and add multilib dir if necessary.
11260   lt_tmp_lt_search_path_spec=
11261   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11262   for lt_sys_path in $lt_search_path_spec; do
11263     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11264       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11265     else
11266       test -d "$lt_sys_path" && \
11267         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11268     fi
11269   done
11270   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11271 BEGIN {RS=" "; FS="/|\n";} {
11272   lt_foo="";
11273   lt_count=0;
11274   for (lt_i = NF; lt_i > 0; lt_i--) {
11275     if ($lt_i != "" && $lt_i != ".") {
11276       if ($lt_i == "..") {
11277         lt_count++;
11278       } else {
11279         if (lt_count == 0) {
11280           lt_foo="/" $lt_i lt_foo;
11281         } else {
11282           lt_count--;
11283         }
11284       }
11285     }
11286   }
11287   if (lt_foo != "") { lt_freq[lt_foo]++; }
11288   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11289 }'`
11290   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11291 else
11292   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11293 fi
11294 library_names_spec=
11295 libname_spec='lib$name'
11296 soname_spec=
11297 shrext_cmds=".so"
11298 postinstall_cmds=
11299 postuninstall_cmds=
11300 finish_cmds=
11301 finish_eval=
11302 shlibpath_var=
11303 shlibpath_overrides_runpath=unknown
11304 version_type=none
11305 dynamic_linker="$host_os ld.so"
11306 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11307 need_lib_prefix=unknown
11308 hardcode_into_libs=no
11309
11310 # when you set need_version to no, make sure it does not cause -set_version
11311 # flags to be left without arguments
11312 need_version=unknown
11313
11314 case $host_os in
11315 aix3*)
11316   version_type=linux
11317   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11318   shlibpath_var=LIBPATH
11319
11320   # AIX 3 has no versioning support, so we append a major version to the name.
11321   soname_spec='${libname}${release}${shared_ext}$major'
11322   ;;
11323
11324 aix[4-9]*)
11325   version_type=linux
11326   need_lib_prefix=no
11327   need_version=no
11328   hardcode_into_libs=yes
11329   if test "$host_cpu" = ia64; then
11330     # AIX 5 supports IA64
11331     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11332     shlibpath_var=LD_LIBRARY_PATH
11333   else
11334     # With GCC up to 2.95.x, collect2 would create an import file
11335     # for dependence libraries.  The import file would start with
11336     # the line `#! .'.  This would cause the generated library to
11337     # depend on `.', always an invalid library.  This was fixed in
11338     # development snapshots of GCC prior to 3.0.
11339     case $host_os in
11340       aix4 | aix4.[01] | aix4.[01].*)
11341       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11342            echo ' yes '
11343            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11344         :
11345       else
11346         can_build_shared=no
11347       fi
11348       ;;
11349     esac
11350     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11351     # soname into executable. Probably we can add versioning support to
11352     # collect2, so additional links can be useful in future.
11353     if test "$aix_use_runtimelinking" = yes; then
11354       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11355       # instead of lib<name>.a to let people know that these are not
11356       # typical AIX shared libraries.
11357       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358     else
11359       # We preserve .a as extension for shared libraries through AIX4.2
11360       # and later when we are not doing run time linking.
11361       library_names_spec='${libname}${release}.a $libname.a'
11362       soname_spec='${libname}${release}${shared_ext}$major'
11363     fi
11364     shlibpath_var=LIBPATH
11365   fi
11366   ;;
11367
11368 amigaos*)
11369   case $host_cpu in
11370   powerpc)
11371     # Since July 2007 AmigaOS4 officially supports .so libraries.
11372     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374     ;;
11375   m68k)
11376     library_names_spec='$libname.ixlibrary $libname.a'
11377     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11378     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'
11379     ;;
11380   esac
11381   ;;
11382
11383 beos*)
11384   library_names_spec='${libname}${shared_ext}'
11385   dynamic_linker="$host_os ld.so"
11386   shlibpath_var=LIBRARY_PATH
11387   ;;
11388
11389 bsdi[45]*)
11390   version_type=linux
11391   need_version=no
11392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393   soname_spec='${libname}${release}${shared_ext}$major'
11394   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11395   shlibpath_var=LD_LIBRARY_PATH
11396   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11397   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11398   # the default ld.so.conf also contains /usr/contrib/lib and
11399   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11400   # libtool to hard-code these into programs
11401   ;;
11402
11403 cygwin* | mingw* | pw32* | cegcc*)
11404   version_type=windows
11405   shrext_cmds=".dll"
11406   need_version=no
11407   need_lib_prefix=no
11408
11409   case $GCC,$host_os in
11410   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11411     library_names_spec='$libname.dll.a'
11412     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11413     postinstall_cmds='base_file=`basename \${file}`~
11414       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11415       dldir=$destdir/`dirname \$dlpath`~
11416       test -d \$dldir || mkdir -p \$dldir~
11417       $install_prog $dir/$dlname \$dldir/$dlname~
11418       chmod a+x \$dldir/$dlname~
11419       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11420         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11421       fi'
11422     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11423       dlpath=$dir/\$dldll~
11424        $RM \$dlpath'
11425     shlibpath_overrides_runpath=yes
11426
11427     case $host_os in
11428     cygwin*)
11429       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11430       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11432       ;;
11433     mingw* | cegcc*)
11434       # MinGW DLLs use traditional 'lib' prefix
11435       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11436       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11437       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11438         # It is most probably a Windows format PATH printed by
11439         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11440         # path with ; separators, and with drive letters. We can handle the
11441         # drive letters (cygwin fileutils understands them), so leave them,
11442         # especially as we might pass files found there to a mingw objdump,
11443         # which wouldn't understand a cygwinified path. Ahh.
11444         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11445       else
11446         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11447       fi
11448       ;;
11449     pw32*)
11450       # pw32 DLLs use 'pw' prefix rather than 'lib'
11451       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11452       ;;
11453     esac
11454     ;;
11455
11456   *)
11457     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11458     ;;
11459   esac
11460   dynamic_linker='Win32 ld.exe'
11461   # FIXME: first we should search . and the directory the executable is in
11462   shlibpath_var=PATH
11463   ;;
11464
11465 darwin* | rhapsody*)
11466   dynamic_linker="$host_os dyld"
11467   version_type=darwin
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11471   soname_spec='${libname}${release}${major}$shared_ext'
11472   shlibpath_overrides_runpath=yes
11473   shlibpath_var=DYLD_LIBRARY_PATH
11474   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11475
11476   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11477   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11478   ;;
11479
11480 dgux*)
11481   version_type=linux
11482   need_lib_prefix=no
11483   need_version=no
11484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11485   soname_spec='${libname}${release}${shared_ext}$major'
11486   shlibpath_var=LD_LIBRARY_PATH
11487   ;;
11488
11489 freebsd1*)
11490   dynamic_linker=no
11491   ;;
11492
11493 freebsd* | dragonfly*)
11494   # DragonFly does not have aout.  When/if they implement a new
11495   # versioning mechanism, adjust this.
11496   if test -x /usr/bin/objformat; then
11497     objformat=`/usr/bin/objformat`
11498   else
11499     case $host_os in
11500     freebsd[123]*) objformat=aout ;;
11501     *) objformat=elf ;;
11502     esac
11503   fi
11504   version_type=freebsd-$objformat
11505   case $version_type in
11506     freebsd-elf*)
11507       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11508       need_version=no
11509       need_lib_prefix=no
11510       ;;
11511     freebsd-*)
11512       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11513       need_version=yes
11514       ;;
11515   esac
11516   shlibpath_var=LD_LIBRARY_PATH
11517   case $host_os in
11518   freebsd2*)
11519     shlibpath_overrides_runpath=yes
11520     ;;
11521   freebsd3.[01]* | freebsdelf3.[01]*)
11522     shlibpath_overrides_runpath=yes
11523     hardcode_into_libs=yes
11524     ;;
11525   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11526   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11527     shlibpath_overrides_runpath=no
11528     hardcode_into_libs=yes
11529     ;;
11530   *) # from 4.6 on, and DragonFly
11531     shlibpath_overrides_runpath=yes
11532     hardcode_into_libs=yes
11533     ;;
11534   esac
11535   ;;
11536
11537 gnu*)
11538   version_type=linux
11539   need_lib_prefix=no
11540   need_version=no
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11542   soname_spec='${libname}${release}${shared_ext}$major'
11543   shlibpath_var=LD_LIBRARY_PATH
11544   hardcode_into_libs=yes
11545   ;;
11546
11547 hpux9* | hpux10* | hpux11*)
11548   # Give a soname corresponding to the major version so that dld.sl refuses to
11549   # link against other versions.
11550   version_type=sunos
11551   need_lib_prefix=no
11552   need_version=no
11553   case $host_cpu in
11554   ia64*)
11555     shrext_cmds='.so'
11556     hardcode_into_libs=yes
11557     dynamic_linker="$host_os dld.so"
11558     shlibpath_var=LD_LIBRARY_PATH
11559     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561     soname_spec='${libname}${release}${shared_ext}$major'
11562     if test "X$HPUX_IA64_MODE" = X32; then
11563       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11564     else
11565       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11566     fi
11567     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11568     ;;
11569   hppa*64*)
11570     shrext_cmds='.sl'
11571     hardcode_into_libs=yes
11572     dynamic_linker="$host_os dld.sl"
11573     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11574     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11575     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576     soname_spec='${libname}${release}${shared_ext}$major'
11577     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11578     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11579     ;;
11580   *)
11581     shrext_cmds='.sl'
11582     dynamic_linker="$host_os dld.sl"
11583     shlibpath_var=SHLIB_PATH
11584     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586     soname_spec='${libname}${release}${shared_ext}$major'
11587     ;;
11588   esac
11589   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11590   postinstall_cmds='chmod 555 $lib'
11591   ;;
11592
11593 interix[3-9]*)
11594   version_type=linux
11595   need_lib_prefix=no
11596   need_version=no
11597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11598   soname_spec='${libname}${release}${shared_ext}$major'
11599   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11600   shlibpath_var=LD_LIBRARY_PATH
11601   shlibpath_overrides_runpath=no
11602   hardcode_into_libs=yes
11603   ;;
11604
11605 irix5* | irix6* | nonstopux*)
11606   case $host_os in
11607     nonstopux*) version_type=nonstopux ;;
11608     *)
11609         if test "$lt_cv_prog_gnu_ld" = yes; then
11610                 version_type=linux
11611         else
11612                 version_type=irix
11613         fi ;;
11614   esac
11615   need_lib_prefix=no
11616   need_version=no
11617   soname_spec='${libname}${release}${shared_ext}$major'
11618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11619   case $host_os in
11620   irix5* | nonstopux*)
11621     libsuff= shlibsuff=
11622     ;;
11623   *)
11624     case $LD in # libtool.m4 will add one of these switches to LD
11625     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11626       libsuff= shlibsuff= libmagic=32-bit;;
11627     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11628       libsuff=32 shlibsuff=N32 libmagic=N32;;
11629     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11630       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11631     *) libsuff= shlibsuff= libmagic=never-match;;
11632     esac
11633     ;;
11634   esac
11635   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11636   shlibpath_overrides_runpath=no
11637   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11638   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11639   hardcode_into_libs=yes
11640   ;;
11641
11642 # No shared lib support for Linux oldld, aout, or coff.
11643 linux*oldld* | linux*aout* | linux*coff*)
11644   dynamic_linker=no
11645   ;;
11646
11647 # This must be Linux ELF.
11648 linux* | k*bsd*-gnu)
11649   version_type=linux
11650   need_lib_prefix=no
11651   need_version=no
11652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653   soname_spec='${libname}${release}${shared_ext}$major'
11654   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11655   shlibpath_var=LD_LIBRARY_PATH
11656   shlibpath_overrides_runpath=no
11657   # Some binutils ld are patched to set DT_RUNPATH
11658   save_LDFLAGS=$LDFLAGS
11659   save_libdir=$libdir
11660   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11661        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11662   cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h.  */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h.  */
11668
11669 int
11670 main ()
11671 {
11672
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684   (eval "$ac_link") 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } && {
11691          test -z "$ac_c_werror_flag" ||
11692          test ! -s conftest.err
11693        } && test -s conftest$ac_exeext &&
11694        $as_test_x conftest$ac_exeext; then
11695   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11696   shlibpath_overrides_runpath=yes
11697 fi
11698
11699 else
11700   echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703
11704 fi
11705
11706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11707       conftest$ac_exeext conftest.$ac_ext
11708   LDFLAGS=$save_LDFLAGS
11709   libdir=$save_libdir
11710
11711   # This implies no fast_install, which is unacceptable.
11712   # Some rework will be needed to allow for fast_install
11713   # before this can be enabled.
11714   hardcode_into_libs=yes
11715
11716   # Append ld.so.conf contents to the search path
11717   if test -f /etc/ld.so.conf; then
11718     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' ' '`
11719     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11720   fi
11721
11722   # We used to test for /lib/ld.so.1 and disable shared libraries on
11723   # powerpc, because MkLinux only supported shared libraries with the
11724   # GNU dynamic linker.  Since this was broken with cross compilers,
11725   # most powerpc-linux boxes support dynamic linking these days and
11726   # people can always --disable-shared, the test was removed, and we
11727   # assume the GNU/Linux dynamic linker is in use.
11728   dynamic_linker='GNU/Linux ld.so'
11729   ;;
11730
11731 netbsd*)
11732   version_type=sunos
11733   need_lib_prefix=no
11734   need_version=no
11735   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11737     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11738     dynamic_linker='NetBSD (a.out) ld.so'
11739   else
11740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11741     soname_spec='${libname}${release}${shared_ext}$major'
11742     dynamic_linker='NetBSD ld.elf_so'
11743   fi
11744   shlibpath_var=LD_LIBRARY_PATH
11745   shlibpath_overrides_runpath=yes
11746   hardcode_into_libs=yes
11747   ;;
11748
11749 newsos6)
11750   version_type=linux
11751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752   shlibpath_var=LD_LIBRARY_PATH
11753   shlibpath_overrides_runpath=yes
11754   ;;
11755
11756 *nto* | *qnx*)
11757   version_type=qnx
11758   need_lib_prefix=no
11759   need_version=no
11760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761   soname_spec='${libname}${release}${shared_ext}$major'
11762   shlibpath_var=LD_LIBRARY_PATH
11763   shlibpath_overrides_runpath=no
11764   hardcode_into_libs=yes
11765   dynamic_linker='ldqnx.so'
11766   ;;
11767
11768 openbsd*)
11769   version_type=sunos
11770   sys_lib_dlsearch_path_spec="/usr/lib"
11771   need_lib_prefix=no
11772   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11773   case $host_os in
11774     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11775     *)                          need_version=no  ;;
11776   esac
11777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11779   shlibpath_var=LD_LIBRARY_PATH
11780   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11781     case $host_os in
11782       openbsd2.[89] | openbsd2.[89].*)
11783         shlibpath_overrides_runpath=no
11784         ;;
11785       *)
11786         shlibpath_overrides_runpath=yes
11787         ;;
11788       esac
11789   else
11790     shlibpath_overrides_runpath=yes
11791   fi
11792   ;;
11793
11794 os2*)
11795   libname_spec='$name'
11796   shrext_cmds=".dll"
11797   need_lib_prefix=no
11798   library_names_spec='$libname${shared_ext} $libname.a'
11799   dynamic_linker='OS/2 ld.exe'
11800   shlibpath_var=LIBPATH
11801   ;;
11802
11803 osf3* | osf4* | osf5*)
11804   version_type=osf
11805   need_lib_prefix=no
11806   need_version=no
11807   soname_spec='${libname}${release}${shared_ext}$major'
11808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809   shlibpath_var=LD_LIBRARY_PATH
11810   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11811   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11812   ;;
11813
11814 rdos*)
11815   dynamic_linker=no
11816   ;;
11817
11818 solaris*)
11819   version_type=linux
11820   need_lib_prefix=no
11821   need_version=no
11822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823   soname_spec='${libname}${release}${shared_ext}$major'
11824   shlibpath_var=LD_LIBRARY_PATH
11825   shlibpath_overrides_runpath=yes
11826   hardcode_into_libs=yes
11827   # ldd complains unless libraries are executable
11828   postinstall_cmds='chmod +x $lib'
11829   ;;
11830
11831 sunos4*)
11832   version_type=sunos
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11834   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11835   shlibpath_var=LD_LIBRARY_PATH
11836   shlibpath_overrides_runpath=yes
11837   if test "$with_gnu_ld" = yes; then
11838     need_lib_prefix=no
11839   fi
11840   need_version=yes
11841   ;;
11842
11843 sysv4 | sysv4.3*)
11844   version_type=linux
11845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11846   soname_spec='${libname}${release}${shared_ext}$major'
11847   shlibpath_var=LD_LIBRARY_PATH
11848   case $host_vendor in
11849     sni)
11850       shlibpath_overrides_runpath=no
11851       need_lib_prefix=no
11852       runpath_var=LD_RUN_PATH
11853       ;;
11854     siemens)
11855       need_lib_prefix=no
11856       ;;
11857     motorola)
11858       need_lib_prefix=no
11859       need_version=no
11860       shlibpath_overrides_runpath=no
11861       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11862       ;;
11863   esac
11864   ;;
11865
11866 sysv4*MP*)
11867   if test -d /usr/nec ;then
11868     version_type=linux
11869     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11870     soname_spec='$libname${shared_ext}.$major'
11871     shlibpath_var=LD_LIBRARY_PATH
11872   fi
11873   ;;
11874
11875 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11876   version_type=freebsd-elf
11877   need_lib_prefix=no
11878   need_version=no
11879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11880   soname_spec='${libname}${release}${shared_ext}$major'
11881   shlibpath_var=LD_LIBRARY_PATH
11882   shlibpath_overrides_runpath=yes
11883   hardcode_into_libs=yes
11884   if test "$with_gnu_ld" = yes; then
11885     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11886   else
11887     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11888     case $host_os in
11889       sco3.2v5*)
11890         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11891         ;;
11892     esac
11893   fi
11894   sys_lib_dlsearch_path_spec='/usr/lib'
11895   ;;
11896
11897 tpf*)
11898   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11899   version_type=linux
11900   need_lib_prefix=no
11901   need_version=no
11902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11903   shlibpath_var=LD_LIBRARY_PATH
11904   shlibpath_overrides_runpath=no
11905   hardcode_into_libs=yes
11906   ;;
11907
11908 uts4*)
11909   version_type=linux
11910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911   soname_spec='${libname}${release}${shared_ext}$major'
11912   shlibpath_var=LD_LIBRARY_PATH
11913   ;;
11914
11915 *)
11916   dynamic_linker=no
11917   ;;
11918 esac
11919 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11920 echo "${ECHO_T}$dynamic_linker" >&6; }
11921 test "$dynamic_linker" = no && can_build_shared=no
11922
11923 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11924 if test "$GCC" = yes; then
11925   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11926 fi
11927
11928 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11929   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11930 fi
11931 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11932   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11933 fi
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
12021   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12022 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12023 hardcode_action=
12024 if test -n "$hardcode_libdir_flag_spec" ||
12025    test -n "$runpath_var" ||
12026    test "X$hardcode_automatic" = "Xyes" ; then
12027
12028   # We can hardcode non-existent directories.
12029   if test "$hardcode_direct" != no &&
12030      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12031      # have to relink, otherwise we might link with an installed library
12032      # when we should be linking with a yet-to-be-installed one
12033      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12034      test "$hardcode_minus_L" != no; then
12035     # Linking always hardcodes the temporary library directory.
12036     hardcode_action=relink
12037   else
12038     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12039     hardcode_action=immediate
12040   fi
12041 else
12042   # We cannot hardcode anything, or else we can only hardcode existing
12043   # directories.
12044   hardcode_action=unsupported
12045 fi
12046 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12047 echo "${ECHO_T}$hardcode_action" >&6; }
12048
12049 if test "$hardcode_action" = relink ||
12050    test "$inherit_rpath" = yes; then
12051   # Fast installation is not supported
12052   enable_fast_install=no
12053 elif test "$shlibpath_overrides_runpath" = yes ||
12054      test "$enable_shared" = no; then
12055   # Fast installation is not necessary
12056   enable_fast_install=needless
12057 fi
12058
12059
12060
12061
12062
12063
12064   if test "x$enable_dlopen" != xyes; then
12065   enable_dlopen=unknown
12066   enable_dlopen_self=unknown
12067   enable_dlopen_self_static=unknown
12068 else
12069   lt_cv_dlopen=no
12070   lt_cv_dlopen_libs=
12071
12072   case $host_os in
12073   beos*)
12074     lt_cv_dlopen="load_add_on"
12075     lt_cv_dlopen_libs=
12076     lt_cv_dlopen_self=yes
12077     ;;
12078
12079   mingw* | pw32* | cegcc*)
12080     lt_cv_dlopen="LoadLibrary"
12081     lt_cv_dlopen_libs=
12082     ;;
12083
12084   cygwin*)
12085     lt_cv_dlopen="dlopen"
12086     lt_cv_dlopen_libs=
12087     ;;
12088
12089   darwin*)
12090   # if libdl is installed we need to link against it
12091     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12092 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096   ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-ldl  $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106    Use char because int might match the return type of a GCC
12107    builtin and then its argument prototype would still apply.  */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char dlopen ();
12112 int
12113 main ()
12114 {
12115 return dlopen ();
12116   ;
12117   return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124   *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127   (eval "$ac_link") 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } && {
12134          test -z "$ac_c_werror_flag" ||
12135          test ! -s conftest.err
12136        } && test -s conftest$ac_exeext &&
12137        $as_test_x conftest$ac_exeext; then
12138   ac_cv_lib_dl_dlopen=yes
12139 else
12140   echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143         ac_cv_lib_dl_dlopen=no
12144 fi
12145
12146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12147       conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12149 fi
12150 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12151 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12152 if test $ac_cv_lib_dl_dlopen = yes; then
12153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12154 else
12155
12156     lt_cv_dlopen="dyld"
12157     lt_cv_dlopen_libs=
12158     lt_cv_dlopen_self=yes
12159
12160 fi
12161
12162     ;;
12163
12164   *)
12165     { echo "$as_me:$LINENO: checking for shl_load" >&5
12166 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12167 if test "${ac_cv_func_shl_load+set}" = set; then
12168   echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170   cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12178 #define shl_load innocuous_shl_load
12179
12180 /* System header to define __stub macros and hopefully few prototypes,
12181     which can conflict with char shl_load (); below.
12182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12183     <limits.h> exists even on freestanding compilers.  */
12184
12185 #ifdef __STDC__
12186 # include <limits.h>
12187 #else
12188 # include <assert.h>
12189 #endif
12190
12191 #undef shl_load
12192
12193 /* Override any GCC internal prototype to avoid an error.
12194    Use char because int might match the return type of a GCC
12195    builtin and then its argument prototype would still apply.  */
12196 #ifdef __cplusplus
12197 extern "C"
12198 #endif
12199 char shl_load ();
12200 /* The GNU C library defines this for functions which it implements
12201     to always fail with ENOSYS.  Some functions are actually named
12202     something starting with __ and the normal name is an alias.  */
12203 #if defined __stub_shl_load || defined __stub___shl_load
12204 choke me
12205 #endif
12206
12207 int
12208 main ()
12209 {
12210 return shl_load ();
12211   ;
12212   return 0;
12213 }
12214 _ACEOF
12215 rm -f conftest.$ac_objext conftest$ac_exeext
12216 if { (ac_try="$ac_link"
12217 case "(($ac_try" in
12218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219   *) ac_try_echo=$ac_try;;
12220 esac
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222   (eval "$ac_link") 2>conftest.er1
12223   ac_status=$?
12224   grep -v '^ *+' conftest.er1 >conftest.err
12225   rm -f conftest.er1
12226   cat conftest.err >&5
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } && {
12229          test -z "$ac_c_werror_flag" ||
12230          test ! -s conftest.err
12231        } && test -s conftest$ac_exeext &&
12232        $as_test_x conftest$ac_exeext; then
12233   ac_cv_func_shl_load=yes
12234 else
12235   echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12237
12238         ac_cv_func_shl_load=no
12239 fi
12240
12241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12242       conftest$ac_exeext conftest.$ac_ext
12243 fi
12244 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12245 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12246 if test $ac_cv_func_shl_load = yes; then
12247   lt_cv_dlopen="shl_load"
12248 else
12249   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12250 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12251 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12252   echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254   ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-ldld  $LIBS"
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h.  */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h.  */
12262
12263 /* Override any GCC internal prototype to avoid an error.
12264    Use char because int might match the return type of a GCC
12265    builtin and then its argument prototype would still apply.  */
12266 #ifdef __cplusplus
12267 extern "C"
12268 #endif
12269 char shl_load ();
12270 int
12271 main ()
12272 {
12273 return shl_load ();
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 rm -f conftest.$ac_objext conftest$ac_exeext
12279 if { (ac_try="$ac_link"
12280 case "(($ac_try" in
12281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282   *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285   (eval "$ac_link") 2>conftest.er1
12286   ac_status=$?
12287   grep -v '^ *+' conftest.er1 >conftest.err
12288   rm -f conftest.er1
12289   cat conftest.err >&5
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); } && {
12292          test -z "$ac_c_werror_flag" ||
12293          test ! -s conftest.err
12294        } && test -s conftest$ac_exeext &&
12295        $as_test_x conftest$ac_exeext; then
12296   ac_cv_lib_dld_shl_load=yes
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301         ac_cv_lib_dld_shl_load=no
12302 fi
12303
12304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12305       conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12307 fi
12308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12309 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12310 if test $ac_cv_lib_dld_shl_load = yes; then
12311   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12312 else
12313   { echo "$as_me:$LINENO: checking for dlopen" >&5
12314 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12315 if test "${ac_cv_func_dlopen+set}" = set; then
12316   echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318   cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h.  */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h.  */
12324 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12326 #define dlopen innocuous_dlopen
12327
12328 /* System header to define __stub macros and hopefully few prototypes,
12329     which can conflict with char dlopen (); below.
12330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12331     <limits.h> exists even on freestanding compilers.  */
12332
12333 #ifdef __STDC__
12334 # include <limits.h>
12335 #else
12336 # include <assert.h>
12337 #endif
12338
12339 #undef dlopen
12340
12341 /* Override any GCC internal prototype to avoid an error.
12342    Use char because int might match the return type of a GCC
12343    builtin and then its argument prototype would still apply.  */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 char dlopen ();
12348 /* The GNU C library defines this for functions which it implements
12349     to always fail with ENOSYS.  Some functions are actually named
12350     something starting with __ and the normal name is an alias.  */
12351 #if defined __stub_dlopen || defined __stub___dlopen
12352 choke me
12353 #endif
12354
12355 int
12356 main ()
12357 {
12358 return dlopen ();
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext conftest$ac_exeext
12364 if { (ac_try="$ac_link"
12365 case "(($ac_try" in
12366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367   *) ac_try_echo=$ac_try;;
12368 esac
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370   (eval "$ac_link") 2>conftest.er1
12371   ac_status=$?
12372   grep -v '^ *+' conftest.er1 >conftest.err
12373   rm -f conftest.er1
12374   cat conftest.err >&5
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); } && {
12377          test -z "$ac_c_werror_flag" ||
12378          test ! -s conftest.err
12379        } && test -s conftest$ac_exeext &&
12380        $as_test_x conftest$ac_exeext; then
12381   ac_cv_func_dlopen=yes
12382 else
12383   echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12385
12386         ac_cv_func_dlopen=no
12387 fi
12388
12389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12390       conftest$ac_exeext conftest.$ac_ext
12391 fi
12392 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12393 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12394 if test $ac_cv_func_dlopen = yes; then
12395   lt_cv_dlopen="dlopen"
12396 else
12397   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12398 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12399 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   ac_check_lib_save_LIBS=$LIBS
12403 LIBS="-ldl  $LIBS"
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410
12411 /* Override any GCC internal prototype to avoid an error.
12412    Use char because int might match the return type of a GCC
12413    builtin and then its argument prototype would still apply.  */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 char dlopen ();
12418 int
12419 main ()
12420 {
12421 return dlopen ();
12422   ;
12423   return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (ac_try="$ac_link"
12428 case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433   (eval "$ac_link") 2>conftest.er1
12434   ac_status=$?
12435   grep -v '^ *+' conftest.er1 >conftest.err
12436   rm -f conftest.er1
12437   cat conftest.err >&5
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); } && {
12440          test -z "$ac_c_werror_flag" ||
12441          test ! -s conftest.err
12442        } && test -s conftest$ac_exeext &&
12443        $as_test_x conftest$ac_exeext; then
12444   ac_cv_lib_dl_dlopen=yes
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449         ac_cv_lib_dl_dlopen=no
12450 fi
12451
12452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12453       conftest$ac_exeext conftest.$ac_ext
12454 LIBS=$ac_check_lib_save_LIBS
12455 fi
12456 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12457 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12458 if test $ac_cv_lib_dl_dlopen = yes; then
12459   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12460 else
12461   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12462 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12463 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lsvld  $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h.  */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h.  */
12474
12475 /* Override any GCC internal prototype to avoid an error.
12476    Use char because int might match the return type of a GCC
12477    builtin and then its argument prototype would still apply.  */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 char dlopen ();
12482 int
12483 main ()
12484 {
12485 return dlopen ();
12486   ;
12487   return 0;
12488 }
12489 _ACEOF
12490 rm -f conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494   *) ac_try_echo=$ac_try;;
12495 esac
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497   (eval "$ac_link") 2>conftest.er1
12498   ac_status=$?
12499   grep -v '^ *+' conftest.er1 >conftest.err
12500   rm -f conftest.er1
12501   cat conftest.err >&5
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); } && {
12504          test -z "$ac_c_werror_flag" ||
12505          test ! -s conftest.err
12506        } && test -s conftest$ac_exeext &&
12507        $as_test_x conftest$ac_exeext; then
12508   ac_cv_lib_svld_dlopen=yes
12509 else
12510   echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513         ac_cv_lib_svld_dlopen=no
12514 fi
12515
12516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12517       conftest$ac_exeext conftest.$ac_ext
12518 LIBS=$ac_check_lib_save_LIBS
12519 fi
12520 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12521 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12522 if test $ac_cv_lib_svld_dlopen = yes; then
12523   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12524 else
12525   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12526 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12527 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12528   echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530   ac_check_lib_save_LIBS=$LIBS
12531 LIBS="-ldld  $LIBS"
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538
12539 /* Override any GCC internal prototype to avoid an error.
12540    Use char because int might match the return type of a GCC
12541    builtin and then its argument prototype would still apply.  */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 char dld_link ();
12546 int
12547 main ()
12548 {
12549 return dld_link ();
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558   *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561   (eval "$ac_link") 2>conftest.er1
12562   ac_status=$?
12563   grep -v '^ *+' conftest.er1 >conftest.err
12564   rm -f conftest.er1
12565   cat conftest.err >&5
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); } && {
12568          test -z "$ac_c_werror_flag" ||
12569          test ! -s conftest.err
12570        } && test -s conftest$ac_exeext &&
12571        $as_test_x conftest$ac_exeext; then
12572   ac_cv_lib_dld_dld_link=yes
12573 else
12574   echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12576
12577         ac_cv_lib_dld_dld_link=no
12578 fi
12579
12580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12581       conftest$ac_exeext conftest.$ac_ext
12582 LIBS=$ac_check_lib_save_LIBS
12583 fi
12584 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12585 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12586 if test $ac_cv_lib_dld_dld_link = yes; then
12587   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12588 fi
12589
12590
12591 fi
12592
12593
12594 fi
12595
12596
12597 fi
12598
12599
12600 fi
12601
12602
12603 fi
12604
12605     ;;
12606   esac
12607
12608   if test "x$lt_cv_dlopen" != xno; then
12609     enable_dlopen=yes
12610   else
12611     enable_dlopen=no
12612   fi
12613
12614   case $lt_cv_dlopen in
12615   dlopen)
12616     save_CPPFLAGS="$CPPFLAGS"
12617     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12618
12619     save_LDFLAGS="$LDFLAGS"
12620     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12621
12622     save_LIBS="$LIBS"
12623     LIBS="$lt_cv_dlopen_libs $LIBS"
12624
12625     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12626 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12627 if test "${lt_cv_dlopen_self+set}" = set; then
12628   echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630           if test "$cross_compiling" = yes; then :
12631   lt_cv_dlopen_self=cross
12632 else
12633   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12634   lt_status=$lt_dlunknown
12635   cat > conftest.$ac_ext <<_LT_EOF
12636 #line 12636 "configure"
12637 #include "confdefs.h"
12638
12639 #if HAVE_DLFCN_H
12640 #include <dlfcn.h>
12641 #endif
12642
12643 #include <stdio.h>
12644
12645 #ifdef RTLD_GLOBAL
12646 #  define LT_DLGLOBAL           RTLD_GLOBAL
12647 #else
12648 #  ifdef DL_GLOBAL
12649 #    define LT_DLGLOBAL         DL_GLOBAL
12650 #  else
12651 #    define LT_DLGLOBAL         0
12652 #  endif
12653 #endif
12654
12655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12656    find out it does not work in some platform. */
12657 #ifndef LT_DLLAZY_OR_NOW
12658 #  ifdef RTLD_LAZY
12659 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12660 #  else
12661 #    ifdef DL_LAZY
12662 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12663 #    else
12664 #      ifdef RTLD_NOW
12665 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12666 #      else
12667 #        ifdef DL_NOW
12668 #          define LT_DLLAZY_OR_NOW      DL_NOW
12669 #        else
12670 #          define LT_DLLAZY_OR_NOW      0
12671 #        endif
12672 #      endif
12673 #    endif
12674 #  endif
12675 #endif
12676
12677 void fnord() { int i=42;}
12678 int main ()
12679 {
12680   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12681   int status = $lt_dlunknown;
12682
12683   if (self)
12684     {
12685       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12686       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12687       /* dlclose (self); */
12688     }
12689   else
12690     puts (dlerror ());
12691
12692   return status;
12693 }
12694 _LT_EOF
12695   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696   (eval $ac_link) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12700     (./conftest; exit; ) >&5 2>/dev/null
12701     lt_status=$?
12702     case x$lt_status in
12703       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12704       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12705       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12706     esac
12707   else :
12708     # compilation failed
12709     lt_cv_dlopen_self=no
12710   fi
12711 fi
12712 rm -fr conftest*
12713
12714
12715 fi
12716 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12717 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12718
12719     if test "x$lt_cv_dlopen_self" = xyes; then
12720       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12721       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12722 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12723 if test "${lt_cv_dlopen_self_static+set}" = set; then
12724   echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726           if test "$cross_compiling" = yes; then :
12727   lt_cv_dlopen_self_static=cross
12728 else
12729   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12730   lt_status=$lt_dlunknown
12731   cat > conftest.$ac_ext <<_LT_EOF
12732 #line 12732 "configure"
12733 #include "confdefs.h"
12734
12735 #if HAVE_DLFCN_H
12736 #include <dlfcn.h>
12737 #endif
12738
12739 #include <stdio.h>
12740
12741 #ifdef RTLD_GLOBAL
12742 #  define LT_DLGLOBAL           RTLD_GLOBAL
12743 #else
12744 #  ifdef DL_GLOBAL
12745 #    define LT_DLGLOBAL         DL_GLOBAL
12746 #  else
12747 #    define LT_DLGLOBAL         0
12748 #  endif
12749 #endif
12750
12751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12752    find out it does not work in some platform. */
12753 #ifndef LT_DLLAZY_OR_NOW
12754 #  ifdef RTLD_LAZY
12755 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12756 #  else
12757 #    ifdef DL_LAZY
12758 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12759 #    else
12760 #      ifdef RTLD_NOW
12761 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12762 #      else
12763 #        ifdef DL_NOW
12764 #          define LT_DLLAZY_OR_NOW      DL_NOW
12765 #        else
12766 #          define LT_DLLAZY_OR_NOW      0
12767 #        endif
12768 #      endif
12769 #    endif
12770 #  endif
12771 #endif
12772
12773 void fnord() { int i=42;}
12774 int main ()
12775 {
12776   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12777   int status = $lt_dlunknown;
12778
12779   if (self)
12780     {
12781       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12782       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12783       /* dlclose (self); */
12784     }
12785   else
12786     puts (dlerror ());
12787
12788   return status;
12789 }
12790 _LT_EOF
12791   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792   (eval $ac_link) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12796     (./conftest; exit; ) >&5 2>/dev/null
12797     lt_status=$?
12798     case x$lt_status in
12799       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12800       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12801       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12802     esac
12803   else :
12804     # compilation failed
12805     lt_cv_dlopen_self_static=no
12806   fi
12807 fi
12808 rm -fr conftest*
12809
12810
12811 fi
12812 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12813 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12814     fi
12815
12816     CPPFLAGS="$save_CPPFLAGS"
12817     LDFLAGS="$save_LDFLAGS"
12818     LIBS="$save_LIBS"
12819     ;;
12820   esac
12821
12822   case $lt_cv_dlopen_self in
12823   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12824   *) enable_dlopen_self=unknown ;;
12825   esac
12826
12827   case $lt_cv_dlopen_self_static in
12828   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12829   *) enable_dlopen_self_static=unknown ;;
12830   esac
12831 fi
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849 striplib=
12850 old_striplib=
12851 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12852 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12853 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12854   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12855   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12856   { echo "$as_me:$LINENO: result: yes" >&5
12857 echo "${ECHO_T}yes" >&6; }
12858 else
12859 # FIXME - insert some real tests, host_os isn't really good enough
12860   case $host_os in
12861   darwin*)
12862     if test -n "$STRIP" ; then
12863       striplib="$STRIP -x"
12864       old_striplib="$STRIP -S"
12865       { echo "$as_me:$LINENO: result: yes" >&5
12866 echo "${ECHO_T}yes" >&6; }
12867     else
12868       { echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6; }
12870     fi
12871     ;;
12872   *)
12873     { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12875     ;;
12876   esac
12877 fi
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890   # Report which library types will actually be built
12891   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12892 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12893   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12894 echo "${ECHO_T}$can_build_shared" >&6; }
12895
12896   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12897 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12898   test "$can_build_shared" = "no" && enable_shared=no
12899
12900   # On AIX, shared libraries and static libraries use the same namespace, and
12901   # are all built from PIC.
12902   case $host_os in
12903   aix3*)
12904     test "$enable_shared" = yes && enable_static=no
12905     if test -n "$RANLIB"; then
12906       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12907       postinstall_cmds='$RANLIB $lib'
12908     fi
12909     ;;
12910
12911   aix[4-9]*)
12912     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12913       test "$enable_shared" = yes && enable_static=no
12914     fi
12915     ;;
12916   esac
12917   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12918 echo "${ECHO_T}$enable_shared" >&6; }
12919
12920   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12921 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12922   # Make sure either enable_shared or enable_static is yes.
12923   test "$enable_shared" = yes || enable_static=yes
12924   { echo "$as_me:$LINENO: result: $enable_static" >&5
12925 echo "${ECHO_T}$enable_static" >&6; }
12926
12927
12928
12929
12930 fi
12931 ac_ext=c
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937 CC="$lt_save_CC"
12938
12939
12940 ac_ext=cpp
12941 ac_cpp='$CXXCPP $CPPFLAGS'
12942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12945
12946 archive_cmds_need_lc_CXX=no
12947 allow_undefined_flag_CXX=
12948 always_export_symbols_CXX=no
12949 archive_expsym_cmds_CXX=
12950 compiler_needs_object_CXX=no
12951 export_dynamic_flag_spec_CXX=
12952 hardcode_direct_CXX=no
12953 hardcode_direct_absolute_CXX=no
12954 hardcode_libdir_flag_spec_CXX=
12955 hardcode_libdir_flag_spec_ld_CXX=
12956 hardcode_libdir_separator_CXX=
12957 hardcode_minus_L_CXX=no
12958 hardcode_shlibpath_var_CXX=unsupported
12959 hardcode_automatic_CXX=no
12960 inherit_rpath_CXX=no
12961 module_cmds_CXX=
12962 module_expsym_cmds_CXX=
12963 link_all_deplibs_CXX=unknown
12964 old_archive_cmds_CXX=$old_archive_cmds
12965 no_undefined_flag_CXX=
12966 whole_archive_flag_spec_CXX=
12967 enable_shared_with_static_runtimes_CXX=no
12968
12969 # Source file extension for C++ test sources.
12970 ac_ext=cpp
12971
12972 # Object file extension for compiled C++ test sources.
12973 objext=o
12974 objext_CXX=$objext
12975
12976 # No sense in running all these tests if we already determined that
12977 # the CXX compiler isn't working.  Some variables (like enable_shared)
12978 # are currently assumed to apply to all compilers on this platform,
12979 # and will be corrupted by setting them based on a non-working compiler.
12980 if test "$_lt_caught_CXX_error" != yes; then
12981   # Code to be used in simple compile tests
12982   lt_simple_compile_test_code="int some_variable = 0;"
12983
12984   # Code to be used in simple link tests
12985   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12986
12987   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12988
12989
12990
12991
12992
12993
12994 # If no C compiler was specified, use CC.
12995 LTCC=${LTCC-"$CC"}
12996
12997 # If no C compiler flags were specified, use CFLAGS.
12998 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12999
13000 # Allow CC to be a program name with arguments.
13001 compiler=$CC
13002
13003
13004   # save warnings/boilerplate of simple test code
13005   ac_outfile=conftest.$ac_objext
13006 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13007 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13008 _lt_compiler_boilerplate=`cat conftest.err`
13009 $RM conftest*
13010
13011   ac_outfile=conftest.$ac_objext
13012 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13013 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13014 _lt_linker_boilerplate=`cat conftest.err`
13015 $RM -r conftest*
13016
13017
13018   # Allow CC to be a program name with arguments.
13019   lt_save_CC=$CC
13020   lt_save_LD=$LD
13021   lt_save_GCC=$GCC
13022   GCC=$GXX
13023   lt_save_with_gnu_ld=$with_gnu_ld
13024   lt_save_path_LD=$lt_cv_path_LD
13025   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13026     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13027   else
13028     $as_unset lt_cv_prog_gnu_ld
13029   fi
13030   if test -n "${lt_cv_path_LDCXX+set}"; then
13031     lt_cv_path_LD=$lt_cv_path_LDCXX
13032   else
13033     $as_unset lt_cv_path_LD
13034   fi
13035   test -z "${LDCXX+set}" || LD=$LDCXX
13036   CC=${CXX-"c++"}
13037   compiler=$CC
13038   compiler_CXX=$CC
13039   for cc_temp in $compiler""; do
13040   case $cc_temp in
13041     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13042     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13043     \-*) ;;
13044     *) break;;
13045   esac
13046 done
13047 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13048
13049
13050   if test -n "$compiler"; then
13051     # We don't want -fno-exception when compiling C++ code, so set the
13052     # no_builtin_flag separately
13053     if test "$GXX" = yes; then
13054       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13055     else
13056       lt_prog_compiler_no_builtin_flag_CXX=
13057     fi
13058
13059     if test "$GXX" = yes; then
13060       # Set up default GNU C++ configuration
13061
13062
13063
13064 # Check whether --with-gnu-ld was given.
13065 if test "${with_gnu_ld+set}" = set; then
13066   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13067 else
13068   with_gnu_ld=no
13069 fi
13070
13071 ac_prog=ld
13072 if test "$GCC" = yes; then
13073   # Check if gcc -print-prog-name=ld gives a path.
13074   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13075 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13076   case $host in
13077   *-*-mingw*)
13078     # gcc leaves a trailing carriage return which upsets mingw
13079     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13080   *)
13081     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13082   esac
13083   case $ac_prog in
13084     # Accept absolute paths.
13085     [\\/]* | ?:[\\/]*)
13086       re_direlt='/[^/][^/]*/\.\./'
13087       # Canonicalize the pathname of ld
13088       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13089       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13090         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13091       done
13092       test -z "$LD" && LD="$ac_prog"
13093       ;;
13094   "")
13095     # If it fails, then pretend we aren't using GCC.
13096     ac_prog=ld
13097     ;;
13098   *)
13099     # If it is relative, then search for the first ld in PATH.
13100     with_gnu_ld=unknown
13101     ;;
13102   esac
13103 elif test "$with_gnu_ld" = yes; then
13104   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13105 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13106 else
13107   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13108 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13109 fi
13110 if test "${lt_cv_path_LD+set}" = set; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   if test -z "$LD"; then
13114   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13115   for ac_dir in $PATH; do
13116     IFS="$lt_save_ifs"
13117     test -z "$ac_dir" && ac_dir=.
13118     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13119       lt_cv_path_LD="$ac_dir/$ac_prog"
13120       # Check to see if the program is GNU ld.  I'd rather use --version,
13121       # but apparently some variants of GNU ld only accept -v.
13122       # Break only if it was the GNU/non-GNU ld that we prefer.
13123       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13124       *GNU* | *'with BFD'*)
13125         test "$with_gnu_ld" != no && break
13126         ;;
13127       *)
13128         test "$with_gnu_ld" != yes && break
13129         ;;
13130       esac
13131     fi
13132   done
13133   IFS="$lt_save_ifs"
13134 else
13135   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13136 fi
13137 fi
13138
13139 LD="$lt_cv_path_LD"
13140 if test -n "$LD"; then
13141   { echo "$as_me:$LINENO: result: $LD" >&5
13142 echo "${ECHO_T}$LD" >&6; }
13143 else
13144   { echo "$as_me:$LINENO: result: no" >&5
13145 echo "${ECHO_T}no" >&6; }
13146 fi
13147 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13148 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13149    { (exit 1); exit 1; }; }
13150 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13151 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13152 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13156 case `$LD -v 2>&1 </dev/null` in
13157 *GNU* | *'with BFD'*)
13158   lt_cv_prog_gnu_ld=yes
13159   ;;
13160 *)
13161   lt_cv_prog_gnu_ld=no
13162   ;;
13163 esac
13164 fi
13165 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13166 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13167 with_gnu_ld=$lt_cv_prog_gnu_ld
13168
13169
13170
13171
13172
13173
13174
13175       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13176       # archiving commands below assume that GNU ld is being used.
13177       if test "$with_gnu_ld" = yes; then
13178         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179         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'
13180
13181         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13182         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13183
13184         # If archive_cmds runs LD, not CC, wlarc should be empty
13185         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13186         #     investigate it a little bit more. (MM)
13187         wlarc='${wl}'
13188
13189         # ancient GNU ld didn't support --whole-archive et. al.
13190         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13191           $GREP 'no-whole-archive' > /dev/null; then
13192           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13193         else
13194           whole_archive_flag_spec_CXX=
13195         fi
13196       else
13197         with_gnu_ld=no
13198         wlarc=
13199
13200         # A generic and very simple default shared library creation
13201         # command for GNU C++ for the case where it uses the native
13202         # linker, instead of GNU ld.  If possible, this setting should
13203         # overridden to take advantage of the native linker features on
13204         # the platform it is being used on.
13205         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13206       fi
13207
13208       # Commands to make compiler produce verbose output that lists
13209       # what "hidden" libraries, object files and flags are used when
13210       # linking a shared library.
13211       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13212
13213     else
13214       GXX=no
13215       with_gnu_ld=no
13216       wlarc=
13217     fi
13218
13219     # PORTME: fill in a description of your system's C++ link characteristics
13220     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13222     ld_shlibs_CXX=yes
13223     case $host_os in
13224       aix3*)
13225         # FIXME: insert proper C++ library support
13226         ld_shlibs_CXX=no
13227         ;;
13228       aix[4-9]*)
13229         if test "$host_cpu" = ia64; then
13230           # On IA64, the linker does run time linking by default, so we don't
13231           # have to do anything special.
13232           aix_use_runtimelinking=no
13233           exp_sym_flag='-Bexport'
13234           no_entry_flag=""
13235         else
13236           aix_use_runtimelinking=no
13237
13238           # Test if we are trying to use run time linking or normal
13239           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13240           # need to do runtime linking.
13241           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13242             for ld_flag in $LDFLAGS; do
13243               case $ld_flag in
13244               *-brtl*)
13245                 aix_use_runtimelinking=yes
13246                 break
13247                 ;;
13248               esac
13249             done
13250             ;;
13251           esac
13252
13253           exp_sym_flag='-bexport'
13254           no_entry_flag='-bnoentry'
13255         fi
13256
13257         # When large executables or shared objects are built, AIX ld can
13258         # have problems creating the table of contents.  If linking a library
13259         # or program results in "error TOC overflow" add -mminimal-toc to
13260         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13261         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13262
13263         archive_cmds_CXX=''
13264         hardcode_direct_CXX=yes
13265         hardcode_direct_absolute_CXX=yes
13266         hardcode_libdir_separator_CXX=':'
13267         link_all_deplibs_CXX=yes
13268         file_list_spec_CXX='${wl}-f,'
13269
13270         if test "$GXX" = yes; then
13271           case $host_os in aix4.[012]|aix4.[012].*)
13272           # We only want to do this on AIX 4.2 and lower, the check
13273           # below for broken collect2 doesn't work under 4.3+
13274           collect2name=`${CC} -print-prog-name=collect2`
13275           if test -f "$collect2name" &&
13276              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13277           then
13278             # We have reworked collect2
13279             :
13280           else
13281             # We have old collect2
13282             hardcode_direct_CXX=unsupported
13283             # It fails to find uninstalled libraries when the uninstalled
13284             # path is not listed in the libpath.  Setting hardcode_minus_L
13285             # to unsupported forces relinking
13286             hardcode_minus_L_CXX=yes
13287             hardcode_libdir_flag_spec_CXX='-L$libdir'
13288             hardcode_libdir_separator_CXX=
13289           fi
13290           esac
13291           shared_flag='-shared'
13292           if test "$aix_use_runtimelinking" = yes; then
13293             shared_flag="$shared_flag "'${wl}-G'
13294           fi
13295         else
13296           # not using gcc
13297           if test "$host_cpu" = ia64; then
13298           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299           # chokes on -Wl,-G. The following line is correct:
13300           shared_flag='-G'
13301           else
13302             if test "$aix_use_runtimelinking" = yes; then
13303               shared_flag='${wl}-G'
13304             else
13305               shared_flag='${wl}-bM:SRE'
13306             fi
13307           fi
13308         fi
13309
13310         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13311         # It seems that -bexpall does not export symbols beginning with
13312         # underscore (_), so it is better to generate a list of symbols to
13313         # export.
13314         always_export_symbols_CXX=yes
13315         if test "$aix_use_runtimelinking" = yes; then
13316           # Warning - without using the other runtime loading flags (-brtl),
13317           # -berok will link without error, but may produce a broken library.
13318           allow_undefined_flag_CXX='-berok'
13319           # Determine the default libpath from the value encoded in an empty
13320           # executable.
13321           cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h.  */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h.  */
13327
13328 int
13329 main ()
13330 {
13331
13332   ;
13333   return 0;
13334 }
13335 _ACEOF
13336 rm -f conftest.$ac_objext conftest$ac_exeext
13337 if { (ac_try="$ac_link"
13338 case "(($ac_try" in
13339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340   *) ac_try_echo=$ac_try;;
13341 esac
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343   (eval "$ac_link") 2>conftest.er1
13344   ac_status=$?
13345   grep -v '^ *+' conftest.er1 >conftest.err
13346   rm -f conftest.er1
13347   cat conftest.err >&5
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); } && {
13350          test -z "$ac_cxx_werror_flag" ||
13351          test ! -s conftest.err
13352        } && test -s conftest$ac_exeext &&
13353        $as_test_x conftest$ac_exeext; then
13354
13355 lt_aix_libpath_sed='
13356     /Import File Strings/,/^$/ {
13357         /^0/ {
13358             s/^0  *\(.*\)$/\1/
13359             p
13360         }
13361     }'
13362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363 # Check for a 64-bit object if we didn't find anything.
13364 if test -z "$aix_libpath"; then
13365   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13366 fi
13367 else
13368   echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13370
13371
13372 fi
13373
13374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13375       conftest$ac_exeext conftest.$ac_ext
13376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13377
13378           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13379
13380           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"
13381         else
13382           if test "$host_cpu" = ia64; then
13383             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13384             allow_undefined_flag_CXX="-z nodefs"
13385             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"
13386           else
13387             # Determine the default libpath from the value encoded in an
13388             # empty executable.
13389             cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h.  */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h.  */
13395
13396 int
13397 main ()
13398 {
13399
13400   ;
13401   return 0;
13402 }
13403 _ACEOF
13404 rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (ac_try="$ac_link"
13406 case "(($ac_try" in
13407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408   *) ac_try_echo=$ac_try;;
13409 esac
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411   (eval "$ac_link") 2>conftest.er1
13412   ac_status=$?
13413   grep -v '^ *+' conftest.er1 >conftest.err
13414   rm -f conftest.er1
13415   cat conftest.err >&5
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } && {
13418          test -z "$ac_cxx_werror_flag" ||
13419          test ! -s conftest.err
13420        } && test -s conftest$ac_exeext &&
13421        $as_test_x conftest$ac_exeext; then
13422
13423 lt_aix_libpath_sed='
13424     /Import File Strings/,/^$/ {
13425         /^0/ {
13426             s/^0  *\(.*\)$/\1/
13427             p
13428         }
13429     }'
13430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13431 # Check for a 64-bit object if we didn't find anything.
13432 if test -z "$aix_libpath"; then
13433   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13434 fi
13435 else
13436   echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439
13440 fi
13441
13442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13443       conftest$ac_exeext conftest.$ac_ext
13444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13445
13446             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13447             # Warning - without using the other run time loading flags,
13448             # -berok will link without error, but may produce a broken library.
13449             no_undefined_flag_CXX=' ${wl}-bernotok'
13450             allow_undefined_flag_CXX=' ${wl}-berok'
13451             # Exported symbols can be pulled into shared objects from archives
13452             whole_archive_flag_spec_CXX='$convenience'
13453             archive_cmds_need_lc_CXX=yes
13454             # This is similar to how AIX traditionally builds its shared
13455             # libraries.
13456             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'
13457           fi
13458         fi
13459         ;;
13460
13461       beos*)
13462         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13463           allow_undefined_flag_CXX=unsupported
13464           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13465           # support --undefined.  This deserves some investigation.  FIXME
13466           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13467         else
13468           ld_shlibs_CXX=no
13469         fi
13470         ;;
13471
13472       chorus*)
13473         case $cc_basename in
13474           *)
13475           # FIXME: insert proper C++ library support
13476           ld_shlibs_CXX=no
13477           ;;
13478         esac
13479         ;;
13480
13481       cygwin* | mingw* | pw32* | cegcc*)
13482         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13483         # as there is no search path for DLLs.
13484         hardcode_libdir_flag_spec_CXX='-L$libdir'
13485         allow_undefined_flag_CXX=unsupported
13486         always_export_symbols_CXX=no
13487         enable_shared_with_static_runtimes_CXX=yes
13488
13489         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13490           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'
13491           # If the export-symbols file already is a .def file (1st line
13492           # is EXPORTS), use it as is; otherwise, prepend...
13493           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13494             cp $export_symbols $output_objdir/$soname.def;
13495           else
13496             echo EXPORTS > $output_objdir/$soname.def;
13497             cat $export_symbols >> $output_objdir/$soname.def;
13498           fi~
13499           $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'
13500         else
13501           ld_shlibs_CXX=no
13502         fi
13503         ;;
13504       darwin* | rhapsody*)
13505
13506
13507   archive_cmds_need_lc_CXX=no
13508   hardcode_direct_CXX=no
13509   hardcode_automatic_CXX=yes
13510   hardcode_shlibpath_var_CXX=unsupported
13511   whole_archive_flag_spec_CXX=''
13512   link_all_deplibs_CXX=yes
13513   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13514   case $cc_basename in
13515      ifort*) _lt_dar_can_shared=yes ;;
13516      *) _lt_dar_can_shared=$GCC ;;
13517   esac
13518   if test "$_lt_dar_can_shared" = "yes"; then
13519     output_verbose_link_cmd=echo
13520     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}"
13521     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13522     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}"
13523     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}"
13524        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13525       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}"
13526       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}"
13527     fi
13528
13529   else
13530   ld_shlibs_CXX=no
13531   fi
13532
13533         ;;
13534
13535       dgux*)
13536         case $cc_basename in
13537           ec++*)
13538             # FIXME: insert proper C++ library support
13539             ld_shlibs_CXX=no
13540             ;;
13541           ghcx*)
13542             # Green Hills C++ Compiler
13543             # FIXME: insert proper C++ library support
13544             ld_shlibs_CXX=no
13545             ;;
13546           *)
13547             # FIXME: insert proper C++ library support
13548             ld_shlibs_CXX=no
13549             ;;
13550         esac
13551         ;;
13552
13553       freebsd[12]*)
13554         # C++ shared libraries reported to be fairly broken before
13555         # switch to ELF
13556         ld_shlibs_CXX=no
13557         ;;
13558
13559       freebsd-elf*)
13560         archive_cmds_need_lc_CXX=no
13561         ;;
13562
13563       freebsd* | dragonfly*)
13564         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13565         # conventions
13566         ld_shlibs_CXX=yes
13567         ;;
13568
13569       gnu*)
13570         ;;
13571
13572       hpux9*)
13573         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13574         hardcode_libdir_separator_CXX=:
13575         export_dynamic_flag_spec_CXX='${wl}-E'
13576         hardcode_direct_CXX=yes
13577         hardcode_minus_L_CXX=yes # Not in the search PATH,
13578                                              # but as the default
13579                                              # location of the library.
13580
13581         case $cc_basename in
13582           CC*)
13583             # FIXME: insert proper C++ library support
13584             ld_shlibs_CXX=no
13585             ;;
13586           aCC*)
13587             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'
13588             # Commands to make compiler produce verbose output that lists
13589             # what "hidden" libraries, object files and flags are used when
13590             # linking a shared library.
13591             #
13592             # There doesn't appear to be a way to prevent this compiler from
13593             # explicitly linking system object files so we need to strip them
13594             # from the output so that they don't get included in the library
13595             # dependencies.
13596             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'
13597             ;;
13598           *)
13599             if test "$GXX" = yes; then
13600               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'
13601             else
13602               # FIXME: insert proper C++ library support
13603               ld_shlibs_CXX=no
13604             fi
13605             ;;
13606         esac
13607         ;;
13608
13609       hpux10*|hpux11*)
13610         if test $with_gnu_ld = no; then
13611           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13612           hardcode_libdir_separator_CXX=:
13613
13614           case $host_cpu in
13615             hppa*64*|ia64*)
13616               ;;
13617             *)
13618               export_dynamic_flag_spec_CXX='${wl}-E'
13619               ;;
13620           esac
13621         fi
13622         case $host_cpu in
13623           hppa*64*|ia64*)
13624             hardcode_direct_CXX=no
13625             hardcode_shlibpath_var_CXX=no
13626             ;;
13627           *)
13628             hardcode_direct_CXX=yes
13629             hardcode_direct_absolute_CXX=yes
13630             hardcode_minus_L_CXX=yes # Not in the search PATH,
13631                                                  # but as the default
13632                                                  # location of the library.
13633             ;;
13634         esac
13635
13636         case $cc_basename in
13637           CC*)
13638             # FIXME: insert proper C++ library support
13639             ld_shlibs_CXX=no
13640             ;;
13641           aCC*)
13642             case $host_cpu in
13643               hppa*64*)
13644                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13645                 ;;
13646               ia64*)
13647                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648                 ;;
13649               *)
13650                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13651                 ;;
13652             esac
13653             # Commands to make compiler produce verbose output that lists
13654             # what "hidden" libraries, object files and flags are used when
13655             # linking a shared library.
13656             #
13657             # There doesn't appear to be a way to prevent this compiler from
13658             # explicitly linking system object files so we need to strip them
13659             # from the output so that they don't get included in the library
13660             # dependencies.
13661             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'
13662             ;;
13663           *)
13664             if test "$GXX" = yes; then
13665               if test $with_gnu_ld = no; then
13666                 case $host_cpu in
13667                   hppa*64*)
13668                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13669                     ;;
13670                   ia64*)
13671                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13672                     ;;
13673                   *)
13674                     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'
13675                     ;;
13676                 esac
13677               fi
13678             else
13679               # FIXME: insert proper C++ library support
13680               ld_shlibs_CXX=no
13681             fi
13682             ;;
13683         esac
13684         ;;
13685
13686       interix[3-9]*)
13687         hardcode_direct_CXX=no
13688         hardcode_shlibpath_var_CXX=no
13689         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13690         export_dynamic_flag_spec_CXX='${wl}-E'
13691         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13692         # Instead, shared libraries are loaded at an image base (0x10000000 by
13693         # default) and relocated if they conflict, which is a slow very memory
13694         # consuming and fragmenting process.  To avoid this, we pick a random,
13695         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13696         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13697         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'
13698         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'
13699         ;;
13700       irix5* | irix6*)
13701         case $cc_basename in
13702           CC*)
13703             # SGI C++
13704             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'
13705
13706             # Archives containing C++ object files must be created using
13707             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13708             # necessary to make sure instantiated templates are included
13709             # in the archive.
13710             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13711             ;;
13712           *)
13713             if test "$GXX" = yes; then
13714               if test "$with_gnu_ld" = no; then
13715                 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'
13716               else
13717                 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'
13718               fi
13719             fi
13720             link_all_deplibs_CXX=yes
13721             ;;
13722         esac
13723         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13724         hardcode_libdir_separator_CXX=:
13725         inherit_rpath_CXX=yes
13726         ;;
13727
13728       linux* | k*bsd*-gnu)
13729         case $cc_basename in
13730           KCC*)
13731             # Kuck and Associates, Inc. (KAI) C++ Compiler
13732
13733             # KCC will only create a shared library if the output file
13734             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13735             # to its proper name (with version) after linking.
13736             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'
13737             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'
13738             # Commands to make compiler produce verbose output that lists
13739             # what "hidden" libraries, object files and flags are used when
13740             # linking a shared library.
13741             #
13742             # There doesn't appear to be a way to prevent this compiler from
13743             # explicitly linking system object files so we need to strip them
13744             # from the output so that they don't get included in the library
13745             # dependencies.
13746             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'
13747
13748             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13749             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13750
13751             # Archives containing C++ object files must be created using
13752             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13753             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13754             ;;
13755           icpc* | ecpc* )
13756             # Intel C++
13757             with_gnu_ld=yes
13758             # version 8.0 and above of icpc choke on multiply defined symbols
13759             # if we add $predep_objects and $postdep_objects, however 7.1 and
13760             # earlier do not add the objects themselves.
13761             case `$CC -V 2>&1` in
13762               *"Version 7."*)
13763                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13764                 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'
13765                 ;;
13766               *)  # Version 8.0 or newer
13767                 tmp_idyn=
13768                 case $host_cpu in
13769                   ia64*) tmp_idyn=' -i_dynamic';;
13770                 esac
13771                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13772                 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'
13773                 ;;
13774             esac
13775             archive_cmds_need_lc_CXX=no
13776             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13777             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13778             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13779             ;;
13780           pgCC* | pgcpp*)
13781             # Portland Group C++ compiler
13782             case `$CC -V` in
13783             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13784               prelink_cmds_CXX='tpldir=Template.dir~
13785                 rm -rf $tpldir~
13786                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13787                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13788               old_archive_cmds_CXX='tpldir=Template.dir~
13789                 rm -rf $tpldir~
13790                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13791                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13792                 $RANLIB $oldlib'
13793               archive_cmds_CXX='tpldir=Template.dir~
13794                 rm -rf $tpldir~
13795                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13796                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13797               archive_expsym_cmds_CXX='tpldir=Template.dir~
13798                 rm -rf $tpldir~
13799                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13800                 $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'
13801               ;;
13802             *) # Version 6 will use weak symbols
13803               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13804               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'
13805               ;;
13806             esac
13807
13808             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13809             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13810             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'
13811             ;;
13812           cxx*)
13813             # Compaq C++
13814             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13815             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'
13816
13817             runpath_var=LD_RUN_PATH
13818             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13819             hardcode_libdir_separator_CXX=:
13820
13821             # Commands to make compiler produce verbose output that lists
13822             # what "hidden" libraries, object files and flags are used when
13823             # linking a shared library.
13824             #
13825             # There doesn't appear to be a way to prevent this compiler from
13826             # explicitly linking system object files so we need to strip them
13827             # from the output so that they don't get included in the library
13828             # dependencies.
13829             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'
13830             ;;
13831           xl*)
13832             # IBM XL 8.0 on PPC, with GNU ld
13833             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13834             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13835             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13836             if test "x$supports_anon_versioning" = xyes; then
13837               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13838                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13839                 echo "local: *; };" >> $output_objdir/$libname.ver~
13840                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13841             fi
13842             ;;
13843           *)
13844             case `$CC -V 2>&1 | sed 5q` in
13845             *Sun\ C*)
13846               # Sun C++ 5.9
13847               no_undefined_flag_CXX=' -zdefs'
13848               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849               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'
13850               hardcode_libdir_flag_spec_CXX='-R$libdir'
13851               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'
13852               compiler_needs_object_CXX=yes
13853
13854               # Not sure whether something based on
13855               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13856               # would be better.
13857               output_verbose_link_cmd='echo'
13858
13859               # Archives containing C++ object files must be created using
13860               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13861               # necessary to make sure instantiated templates are included
13862               # in the archive.
13863               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13864               ;;
13865             esac
13866             ;;
13867         esac
13868         ;;
13869
13870       lynxos*)
13871         # FIXME: insert proper C++ library support
13872         ld_shlibs_CXX=no
13873         ;;
13874
13875       m88k*)
13876         # FIXME: insert proper C++ library support
13877         ld_shlibs_CXX=no
13878         ;;
13879
13880       mvs*)
13881         case $cc_basename in
13882           cxx*)
13883             # FIXME: insert proper C++ library support
13884             ld_shlibs_CXX=no
13885             ;;
13886           *)
13887             # FIXME: insert proper C++ library support
13888             ld_shlibs_CXX=no
13889             ;;
13890         esac
13891         ;;
13892
13893       netbsd*)
13894         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13895           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13896           wlarc=
13897           hardcode_libdir_flag_spec_CXX='-R$libdir'
13898           hardcode_direct_CXX=yes
13899           hardcode_shlibpath_var_CXX=no
13900         fi
13901         # Workaround some broken pre-1.5 toolchains
13902         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13903         ;;
13904
13905       *nto* | *qnx*)
13906         ld_shlibs_CXX=yes
13907         ;;
13908
13909       openbsd2*)
13910         # C++ shared libraries are fairly broken
13911         ld_shlibs_CXX=no
13912         ;;
13913
13914       openbsd*)
13915         if test -f /usr/libexec/ld.so; then
13916           hardcode_direct_CXX=yes
13917           hardcode_shlibpath_var_CXX=no
13918           hardcode_direct_absolute_CXX=yes
13919           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13920           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13921           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13922             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13923             export_dynamic_flag_spec_CXX='${wl}-E'
13924             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13925           fi
13926           output_verbose_link_cmd=echo
13927         else
13928           ld_shlibs_CXX=no
13929         fi
13930         ;;
13931
13932       osf3* | osf4* | osf5*)
13933         case $cc_basename in
13934           KCC*)
13935             # Kuck and Associates, Inc. (KAI) C++ Compiler
13936
13937             # KCC will only create a shared library if the output file
13938             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13939             # to its proper name (with version) after linking.
13940             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'
13941
13942             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13943             hardcode_libdir_separator_CXX=:
13944
13945             # Archives containing C++ object files must be created using
13946             # the KAI C++ compiler.
13947             case $host in
13948               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13949               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13950             esac
13951             ;;
13952           RCC*)
13953             # Rational C++ 2.4.1
13954             # FIXME: insert proper C++ library support
13955             ld_shlibs_CXX=no
13956             ;;
13957           cxx*)
13958             case $host in
13959               osf3*)
13960                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13961                 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'
13962                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13963                 ;;
13964               *)
13965                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13966                 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'
13967                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13968                   echo "-hidden">> $lib.exp~
13969                   $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~
13970                   $RM $lib.exp'
13971                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13972                 ;;
13973             esac
13974
13975             hardcode_libdir_separator_CXX=:
13976
13977             # Commands to make compiler produce verbose output that lists
13978             # what "hidden" libraries, object files and flags are used when
13979             # linking a shared library.
13980             #
13981             # There doesn't appear to be a way to prevent this compiler from
13982             # explicitly linking system object files so we need to strip them
13983             # from the output so that they don't get included in the library
13984             # dependencies.
13985             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'
13986             ;;
13987           *)
13988             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13989               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13990               case $host in
13991                 osf3*)
13992                   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'
13993                   ;;
13994                 *)
13995                   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'
13996                   ;;
13997               esac
13998
13999               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14000               hardcode_libdir_separator_CXX=:
14001
14002               # Commands to make compiler produce verbose output that lists
14003               # what "hidden" libraries, object files and flags are used when
14004               # linking a shared library.
14005               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14006
14007             else
14008               # FIXME: insert proper C++ library support
14009               ld_shlibs_CXX=no
14010             fi
14011             ;;
14012         esac
14013         ;;
14014
14015       psos*)
14016         # FIXME: insert proper C++ library support
14017         ld_shlibs_CXX=no
14018         ;;
14019
14020       sunos4*)
14021         case $cc_basename in
14022           CC*)
14023             # Sun C++ 4.x
14024             # FIXME: insert proper C++ library support
14025             ld_shlibs_CXX=no
14026             ;;
14027           lcc*)
14028             # Lucid
14029             # FIXME: insert proper C++ library support
14030             ld_shlibs_CXX=no
14031             ;;
14032           *)
14033             # FIXME: insert proper C++ library support
14034             ld_shlibs_CXX=no
14035             ;;
14036         esac
14037         ;;
14038
14039       solaris*)
14040         case $cc_basename in
14041           CC*)
14042             # Sun C++ 4.2, 5.x and Centerline C++
14043             archive_cmds_need_lc_CXX=yes
14044             no_undefined_flag_CXX=' -zdefs'
14045             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14046             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14047               $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'
14048
14049             hardcode_libdir_flag_spec_CXX='-R$libdir'
14050             hardcode_shlibpath_var_CXX=no
14051             case $host_os in
14052               solaris2.[0-5] | solaris2.[0-5].*) ;;
14053               *)
14054                 # The compiler driver will combine and reorder linker options,
14055                 # but understands `-z linker_flag'.
14056                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14057                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14058                 ;;
14059             esac
14060             link_all_deplibs_CXX=yes
14061
14062             output_verbose_link_cmd='echo'
14063
14064             # Archives containing C++ object files must be created using
14065             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14066             # necessary to make sure instantiated templates are included
14067             # in the archive.
14068             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14069             ;;
14070           gcx*)
14071             # Green Hills C++ Compiler
14072             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14073
14074             # The C++ compiler must be used to create the archive.
14075             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14076             ;;
14077           *)
14078             # GNU C++ compiler with Solaris linker
14079             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14080               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14081               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14082                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14083                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14084                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14085
14086                 # Commands to make compiler produce verbose output that lists
14087                 # what "hidden" libraries, object files and flags are used when
14088                 # linking a shared library.
14089                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14090               else
14091                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14092                 # platform.
14093                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14094                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14095                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14096
14097                 # Commands to make compiler produce verbose output that lists
14098                 # what "hidden" libraries, object files and flags are used when
14099                 # linking a shared library.
14100                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14101               fi
14102
14103               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14104               case $host_os in
14105                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14106                 *)
14107                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14108                   ;;
14109               esac
14110             fi
14111             ;;
14112         esac
14113         ;;
14114
14115     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14116       no_undefined_flag_CXX='${wl}-z,text'
14117       archive_cmds_need_lc_CXX=no
14118       hardcode_shlibpath_var_CXX=no
14119       runpath_var='LD_RUN_PATH'
14120
14121       case $cc_basename in
14122         CC*)
14123           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14125           ;;
14126         *)
14127           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14129           ;;
14130       esac
14131       ;;
14132
14133       sysv5* | sco3.2v5* | sco5v6*)
14134         # Note: We can NOT use -z defs as we might desire, because we do not
14135         # link with -lc, and that would cause any symbols used from libc to
14136         # always be unresolved, which means just about no library would
14137         # ever link correctly.  If we're not using GNU ld we use -z text
14138         # though, which does catch some bad symbols but isn't as heavy-handed
14139         # as -z defs.
14140         no_undefined_flag_CXX='${wl}-z,text'
14141         allow_undefined_flag_CXX='${wl}-z,nodefs'
14142         archive_cmds_need_lc_CXX=no
14143         hardcode_shlibpath_var_CXX=no
14144         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14145         hardcode_libdir_separator_CXX=':'
14146         link_all_deplibs_CXX=yes
14147         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14148         runpath_var='LD_RUN_PATH'
14149
14150         case $cc_basename in
14151           CC*)
14152             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14154             ;;
14155           *)
14156             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14157             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14158             ;;
14159         esac
14160       ;;
14161
14162       tandem*)
14163         case $cc_basename in
14164           NCC*)
14165             # NonStop-UX NCC 3.20
14166             # FIXME: insert proper C++ library support
14167             ld_shlibs_CXX=no
14168             ;;
14169           *)
14170             # FIXME: insert proper C++ library support
14171             ld_shlibs_CXX=no
14172             ;;
14173         esac
14174         ;;
14175
14176       vxworks*)
14177         # FIXME: insert proper C++ library support
14178         ld_shlibs_CXX=no
14179         ;;
14180
14181       *)
14182         # FIXME: insert proper C++ library support
14183         ld_shlibs_CXX=no
14184         ;;
14185     esac
14186
14187     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14188 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14189     test "$ld_shlibs_CXX" = no && can_build_shared=no
14190
14191     GCC_CXX="$GXX"
14192     LD_CXX="$LD"
14193
14194     ## CAVEAT EMPTOR:
14195     ## There is no encapsulation within the following macros, do not change
14196     ## the running order or otherwise move them around unless you know exactly
14197     ## what you are doing...
14198     # Dependencies to place before and after the object being linked:
14199 predep_objects_CXX=
14200 postdep_objects_CXX=
14201 predeps_CXX=
14202 postdeps_CXX=
14203 compiler_lib_search_path_CXX=
14204
14205 cat > conftest.$ac_ext <<_LT_EOF
14206 class Foo
14207 {
14208 public:
14209   Foo (void) { a = 0; }
14210 private:
14211   int a;
14212 };
14213 _LT_EOF
14214
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216   (eval $ac_compile) 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); }; then
14220   # Parse the compiler output and extract the necessary
14221   # objects, libraries and library flags.
14222
14223   # Sentinel used to keep track of whether or not we are before
14224   # the conftest object file.
14225   pre_test_object_deps_done=no
14226
14227   for p in `eval "$output_verbose_link_cmd"`; do
14228     case $p in
14229
14230     -L* | -R* | -l*)
14231        # Some compilers place space between "-{L,R}" and the path.
14232        # Remove the space.
14233        if test $p = "-L" ||
14234           test $p = "-R"; then
14235          prev=$p
14236          continue
14237        else
14238          prev=
14239        fi
14240
14241        if test "$pre_test_object_deps_done" = no; then
14242          case $p in
14243          -L* | -R*)
14244            # Internal compiler library paths should come after those
14245            # provided the user.  The postdeps already come after the
14246            # user supplied libs so there is no need to process them.
14247            if test -z "$compiler_lib_search_path_CXX"; then
14248              compiler_lib_search_path_CXX="${prev}${p}"
14249            else
14250              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14251            fi
14252            ;;
14253          # The "-l" case would never come before the object being
14254          # linked, so don't bother handling this case.
14255          esac
14256        else
14257          if test -z "$postdeps_CXX"; then
14258            postdeps_CXX="${prev}${p}"
14259          else
14260            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14261          fi
14262        fi
14263        ;;
14264
14265     *.$objext)
14266        # This assumes that the test object file only shows up
14267        # once in the compiler output.
14268        if test "$p" = "conftest.$objext"; then
14269          pre_test_object_deps_done=yes
14270          continue
14271        fi
14272
14273        if test "$pre_test_object_deps_done" = no; then
14274          if test -z "$predep_objects_CXX"; then
14275            predep_objects_CXX="$p"
14276          else
14277            predep_objects_CXX="$predep_objects_CXX $p"
14278          fi
14279        else
14280          if test -z "$postdep_objects_CXX"; then
14281            postdep_objects_CXX="$p"
14282          else
14283            postdep_objects_CXX="$postdep_objects_CXX $p"
14284          fi
14285        fi
14286        ;;
14287
14288     *) ;; # Ignore the rest.
14289
14290     esac
14291   done
14292
14293   # Clean up.
14294   rm -f a.out a.exe
14295 else
14296   echo "libtool.m4: error: problem compiling CXX test program"
14297 fi
14298
14299 $RM -f confest.$objext
14300
14301 # PORTME: override above test on systems where it is broken
14302 case $host_os in
14303 interix[3-9]*)
14304   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14305   # hack all around it, let's just trust "g++" to DTRT.
14306   predep_objects_CXX=
14307   postdep_objects_CXX=
14308   postdeps_CXX=
14309   ;;
14310
14311 linux*)
14312   case `$CC -V 2>&1 | sed 5q` in
14313   *Sun\ C*)
14314     # Sun C++ 5.9
14315
14316     # The more standards-conforming stlport4 library is
14317     # incompatible with the Cstd library. Avoid specifying
14318     # it if it's in CXXFLAGS. Ignore libCrun as
14319     # -library=stlport4 depends on it.
14320     case " $CXX $CXXFLAGS " in
14321     *" -library=stlport4 "*)
14322       solaris_use_stlport4=yes
14323       ;;
14324     esac
14325
14326     if test "$solaris_use_stlport4" != yes; then
14327       postdeps_CXX='-library=Cstd -library=Crun'
14328     fi
14329     ;;
14330   esac
14331   ;;
14332
14333 solaris*)
14334   case $cc_basename in
14335   CC*)
14336     # The more standards-conforming stlport4 library is
14337     # incompatible with the Cstd library. Avoid specifying
14338     # it if it's in CXXFLAGS. Ignore libCrun as
14339     # -library=stlport4 depends on it.
14340     case " $CXX $CXXFLAGS " in
14341     *" -library=stlport4 "*)
14342       solaris_use_stlport4=yes
14343       ;;
14344     esac
14345
14346     # Adding this requires a known-good setup of shared libraries for
14347     # Sun compiler versions before 5.6, else PIC objects from an old
14348     # archive will be linked into the output, leading to subtle bugs.
14349     if test "$solaris_use_stlport4" != yes; then
14350       postdeps_CXX='-library=Cstd -library=Crun'
14351     fi
14352     ;;
14353   esac
14354   ;;
14355 esac
14356
14357
14358 case " $postdeps_CXX " in
14359 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14360 esac
14361  compiler_lib_search_dirs_CXX=
14362 if test -n "${compiler_lib_search_path_CXX}"; then
14363  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14364 fi
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
14396     lt_prog_compiler_wl_CXX=
14397 lt_prog_compiler_pic_CXX=
14398 lt_prog_compiler_static_CXX=
14399
14400 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14401 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14402
14403   # C++ specific cases for pic, static, wl, etc.
14404   if test "$GXX" = yes; then
14405     lt_prog_compiler_wl_CXX='-Wl,'
14406     lt_prog_compiler_static_CXX='-static'
14407
14408     case $host_os in
14409     aix*)
14410       # All AIX code is PIC.
14411       if test "$host_cpu" = ia64; then
14412         # AIX 5 now supports IA64 processor
14413         lt_prog_compiler_static_CXX='-Bstatic'
14414       fi
14415       ;;
14416
14417     amigaos*)
14418       case $host_cpu in
14419       powerpc)
14420             # see comment about AmigaOS4 .so support
14421             lt_prog_compiler_pic_CXX='-fPIC'
14422         ;;
14423       m68k)
14424             # FIXME: we need at least 68020 code to build shared libraries, but
14425             # adding the `-m68020' flag to GCC prevents building anything better,
14426             # like `-m68040'.
14427             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14428         ;;
14429       esac
14430       ;;
14431
14432     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14433       # PIC is the default for these OSes.
14434       ;;
14435     mingw* | cygwin* | os2* | pw32* | cegcc*)
14436       # This hack is so that the source file can tell whether it is being
14437       # built for inclusion in a dll (and should export symbols for example).
14438       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14439       # (--disable-auto-import) libraries
14440       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14441       ;;
14442     darwin* | rhapsody*)
14443       # PIC is the default on this platform
14444       # Common symbols not allowed in MH_DYLIB files
14445       lt_prog_compiler_pic_CXX='-fno-common'
14446       ;;
14447     *djgpp*)
14448       # DJGPP does not support shared libraries at all
14449       lt_prog_compiler_pic_CXX=
14450       ;;
14451     interix[3-9]*)
14452       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14453       # Instead, we relocate shared libraries at runtime.
14454       ;;
14455     sysv4*MP*)
14456       if test -d /usr/nec; then
14457         lt_prog_compiler_pic_CXX=-Kconform_pic
14458       fi
14459       ;;
14460     hpux*)
14461       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14462       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14463       # sets the default TLS model and affects inlining.
14464       case $host_cpu in
14465       hppa*64*)
14466         ;;
14467       *)
14468         lt_prog_compiler_pic_CXX='-fPIC'
14469         ;;
14470       esac
14471       ;;
14472     *qnx* | *nto*)
14473       # QNX uses GNU C++, but need to define -shared option too, otherwise
14474       # it will coredump.
14475       lt_prog_compiler_pic_CXX='-fPIC -shared'
14476       ;;
14477     *)
14478       lt_prog_compiler_pic_CXX='-fPIC'
14479       ;;
14480     esac
14481   else
14482     case $host_os in
14483       aix[4-9]*)
14484         # All AIX code is PIC.
14485         if test "$host_cpu" = ia64; then
14486           # AIX 5 now supports IA64 processor
14487           lt_prog_compiler_static_CXX='-Bstatic'
14488         else
14489           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14490         fi
14491         ;;
14492       chorus*)
14493         case $cc_basename in
14494         cxch68*)
14495           # Green Hills C++ Compiler
14496           # _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"
14497           ;;
14498         esac
14499         ;;
14500       dgux*)
14501         case $cc_basename in
14502           ec++*)
14503             lt_prog_compiler_pic_CXX='-KPIC'
14504             ;;
14505           ghcx*)
14506             # Green Hills C++ Compiler
14507             lt_prog_compiler_pic_CXX='-pic'
14508             ;;
14509           *)
14510             ;;
14511         esac
14512         ;;
14513       freebsd* | dragonfly*)
14514         # FreeBSD uses GNU C++
14515         ;;
14516       hpux9* | hpux10* | hpux11*)
14517         case $cc_basename in
14518           CC*)
14519             lt_prog_compiler_wl_CXX='-Wl,'
14520             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14521             if test "$host_cpu" != ia64; then
14522               lt_prog_compiler_pic_CXX='+Z'
14523             fi
14524             ;;
14525           aCC*)
14526             lt_prog_compiler_wl_CXX='-Wl,'
14527             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14528             case $host_cpu in
14529             hppa*64*|ia64*)
14530               # +Z the default
14531               ;;
14532             *)
14533               lt_prog_compiler_pic_CXX='+Z'
14534               ;;
14535             esac
14536             ;;
14537           *)
14538             ;;
14539         esac
14540         ;;
14541       interix*)
14542         # This is c89, which is MS Visual C++ (no shared libs)
14543         # Anyone wants to do a port?
14544         ;;
14545       irix5* | irix6* | nonstopux*)
14546         case $cc_basename in
14547           CC*)
14548             lt_prog_compiler_wl_CXX='-Wl,'
14549             lt_prog_compiler_static_CXX='-non_shared'
14550             # CC pic flag -KPIC is the default.
14551             ;;
14552           *)
14553             ;;
14554         esac
14555         ;;
14556       linux* | k*bsd*-gnu)
14557         case $cc_basename in
14558           KCC*)
14559             # KAI C++ Compiler
14560             lt_prog_compiler_wl_CXX='--backend -Wl,'
14561             lt_prog_compiler_pic_CXX='-fPIC'
14562             ;;
14563           ecpc* )
14564             # old Intel C++ for x86_64 which still supported -KPIC.
14565             lt_prog_compiler_wl_CXX='-Wl,'
14566             lt_prog_compiler_pic_CXX='-KPIC'
14567             lt_prog_compiler_static_CXX='-static'
14568             ;;
14569           icpc* )
14570             # Intel C++, used to be incompatible with GCC.
14571             # ICC 10 doesn't accept -KPIC any more.
14572             lt_prog_compiler_wl_CXX='-Wl,'
14573             lt_prog_compiler_pic_CXX='-fPIC'
14574             lt_prog_compiler_static_CXX='-static'
14575             ;;
14576           pgCC* | pgcpp*)
14577             # Portland Group C++ compiler
14578             lt_prog_compiler_wl_CXX='-Wl,'
14579             lt_prog_compiler_pic_CXX='-fpic'
14580             lt_prog_compiler_static_CXX='-Bstatic'
14581             ;;
14582           cxx*)
14583             # Compaq C++
14584             # Make sure the PIC flag is empty.  It appears that all Alpha
14585             # Linux and Compaq Tru64 Unix objects are PIC.
14586             lt_prog_compiler_pic_CXX=
14587             lt_prog_compiler_static_CXX='-non_shared'
14588             ;;
14589           xlc* | xlC*)
14590             # IBM XL 8.0 on PPC
14591             lt_prog_compiler_wl_CXX='-Wl,'
14592             lt_prog_compiler_pic_CXX='-qpic'
14593             lt_prog_compiler_static_CXX='-qstaticlink'
14594             ;;
14595           *)
14596             case `$CC -V 2>&1 | sed 5q` in
14597             *Sun\ C*)
14598               # Sun C++ 5.9
14599               lt_prog_compiler_pic_CXX='-KPIC'
14600               lt_prog_compiler_static_CXX='-Bstatic'
14601               lt_prog_compiler_wl_CXX='-Qoption ld '
14602               ;;
14603             esac
14604             ;;
14605         esac
14606         ;;
14607       lynxos*)
14608         ;;
14609       m88k*)
14610         ;;
14611       mvs*)
14612         case $cc_basename in
14613           cxx*)
14614             lt_prog_compiler_pic_CXX='-W c,exportall'
14615             ;;
14616           *)
14617             ;;
14618         esac
14619         ;;
14620       netbsd*)
14621         ;;
14622       *qnx* | *nto*)
14623         # QNX uses GNU C++, but need to define -shared option too, otherwise
14624         # it will coredump.
14625         lt_prog_compiler_pic_CXX='-fPIC -shared'
14626         ;;
14627       osf3* | osf4* | osf5*)
14628         case $cc_basename in
14629           KCC*)
14630             lt_prog_compiler_wl_CXX='--backend -Wl,'
14631             ;;
14632           RCC*)
14633             # Rational C++ 2.4.1
14634             lt_prog_compiler_pic_CXX='-pic'
14635             ;;
14636           cxx*)
14637             # Digital/Compaq C++
14638             lt_prog_compiler_wl_CXX='-Wl,'
14639             # Make sure the PIC flag is empty.  It appears that all Alpha
14640             # Linux and Compaq Tru64 Unix objects are PIC.
14641             lt_prog_compiler_pic_CXX=
14642             lt_prog_compiler_static_CXX='-non_shared'
14643             ;;
14644           *)
14645             ;;
14646         esac
14647         ;;
14648       psos*)
14649         ;;
14650       solaris*)
14651         case $cc_basename in
14652           CC*)
14653             # Sun C++ 4.2, 5.x and Centerline C++
14654             lt_prog_compiler_pic_CXX='-KPIC'
14655             lt_prog_compiler_static_CXX='-Bstatic'
14656             lt_prog_compiler_wl_CXX='-Qoption ld '
14657             ;;
14658           gcx*)
14659             # Green Hills C++ Compiler
14660             lt_prog_compiler_pic_CXX='-PIC'
14661             ;;
14662           *)
14663             ;;
14664         esac
14665         ;;
14666       sunos4*)
14667         case $cc_basename in
14668           CC*)
14669             # Sun C++ 4.x
14670             lt_prog_compiler_pic_CXX='-pic'
14671             lt_prog_compiler_static_CXX='-Bstatic'
14672             ;;
14673           lcc*)
14674             # Lucid
14675             lt_prog_compiler_pic_CXX='-pic'
14676             ;;
14677           *)
14678             ;;
14679         esac
14680         ;;
14681       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14682         case $cc_basename in
14683           CC*)
14684             lt_prog_compiler_wl_CXX='-Wl,'
14685             lt_prog_compiler_pic_CXX='-KPIC'
14686             lt_prog_compiler_static_CXX='-Bstatic'
14687             ;;
14688         esac
14689         ;;
14690       tandem*)
14691         case $cc_basename in
14692           NCC*)
14693             # NonStop-UX NCC 3.20
14694             lt_prog_compiler_pic_CXX='-KPIC'
14695             ;;
14696           *)
14697             ;;
14698         esac
14699         ;;
14700       vxworks*)
14701         ;;
14702       *)
14703         lt_prog_compiler_can_build_shared_CXX=no
14704         ;;
14705     esac
14706   fi
14707
14708 case $host_os in
14709   # For platforms which do not support PIC, -DPIC is meaningless:
14710   *djgpp*)
14711     lt_prog_compiler_pic_CXX=
14712     ;;
14713   *)
14714     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14715     ;;
14716 esac
14717 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14718 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14719
14720
14721
14722 #
14723 # Check to make sure the PIC flag actually works.
14724 #
14725 if test -n "$lt_prog_compiler_pic_CXX"; then
14726   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14727 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14728 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14729   echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731   lt_cv_prog_compiler_pic_works_CXX=no
14732    ac_outfile=conftest.$ac_objext
14733    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14734    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14735    # Insert the option either (1) after the last *FLAGS variable, or
14736    # (2) before a word containing "conftest.", or (3) at the end.
14737    # Note that $ac_compile itself does not contain backslashes and begins
14738    # with a dollar sign (not a hyphen), so the echo should work correctly.
14739    # The option is referenced via a variable to avoid confusing sed.
14740    lt_compile=`echo "$ac_compile" | $SED \
14741    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14742    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14743    -e 's:$: $lt_compiler_flag:'`
14744    (eval echo "\"\$as_me:14744: $lt_compile\"" >&5)
14745    (eval "$lt_compile" 2>conftest.err)
14746    ac_status=$?
14747    cat conftest.err >&5
14748    echo "$as_me:14748: \$? = $ac_status" >&5
14749    if (exit $ac_status) && test -s "$ac_outfile"; then
14750      # The compiler can only warn and ignore the option if not recognized
14751      # So say no if there are warnings other than the usual output.
14752      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14753      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14754      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14755        lt_cv_prog_compiler_pic_works_CXX=yes
14756      fi
14757    fi
14758    $RM conftest*
14759
14760 fi
14761 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14762 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14763
14764 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14765     case $lt_prog_compiler_pic_CXX in
14766      "" | " "*) ;;
14767      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14768      esac
14769 else
14770     lt_prog_compiler_pic_CXX=
14771      lt_prog_compiler_can_build_shared_CXX=no
14772 fi
14773
14774 fi
14775
14776
14777
14778 #
14779 # Check to make sure the static flag actually works.
14780 #
14781 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   lt_cv_prog_compiler_static_works_CXX=no
14788    save_LDFLAGS="$LDFLAGS"
14789    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14790    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14791    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14792      # The linker can only warn and ignore the option if not recognized
14793      # So say no if there are warnings
14794      if test -s conftest.err; then
14795        # Append any errors to the config.log.
14796        cat conftest.err 1>&5
14797        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14798        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14799        if diff conftest.exp conftest.er2 >/dev/null; then
14800          lt_cv_prog_compiler_static_works_CXX=yes
14801        fi
14802      else
14803        lt_cv_prog_compiler_static_works_CXX=yes
14804      fi
14805    fi
14806    $RM -r conftest*
14807    LDFLAGS="$save_LDFLAGS"
14808
14809 fi
14810 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14811 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14812
14813 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14814     :
14815 else
14816     lt_prog_compiler_static_CXX=
14817 fi
14818
14819
14820
14821
14822     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14823 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14824 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14825   echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827   lt_cv_prog_compiler_c_o_CXX=no
14828    $RM -r conftest 2>/dev/null
14829    mkdir conftest
14830    cd conftest
14831    mkdir out
14832    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14833
14834    lt_compiler_flag="-o out/conftest2.$ac_objext"
14835    # Insert the option either (1) after the last *FLAGS variable, or
14836    # (2) before a word containing "conftest.", or (3) at the end.
14837    # Note that $ac_compile itself does not contain backslashes and begins
14838    # with a dollar sign (not a hyphen), so the echo should work correctly.
14839    lt_compile=`echo "$ac_compile" | $SED \
14840    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14841    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14842    -e 's:$: $lt_compiler_flag:'`
14843    (eval echo "\"\$as_me:14843: $lt_compile\"" >&5)
14844    (eval "$lt_compile" 2>out/conftest.err)
14845    ac_status=$?
14846    cat out/conftest.err >&5
14847    echo "$as_me:14847: \$? = $ac_status" >&5
14848    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14849    then
14850      # The compiler can only warn and ignore the option if not recognized
14851      # So say no if there are warnings
14852      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14853      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14854      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14855        lt_cv_prog_compiler_c_o_CXX=yes
14856      fi
14857    fi
14858    chmod u+w . 2>&5
14859    $RM conftest*
14860    # SGI C++ compiler will create directory out/ii_files/ for
14861    # template instantiation
14862    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14863    $RM out/* && rmdir out
14864    cd ..
14865    $RM -r conftest
14866    $RM conftest*
14867
14868 fi
14869 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14870 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14871
14872
14873
14874     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14875 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14876 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   lt_cv_prog_compiler_c_o_CXX=no
14880    $RM -r conftest 2>/dev/null
14881    mkdir conftest
14882    cd conftest
14883    mkdir out
14884    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14885
14886    lt_compiler_flag="-o out/conftest2.$ac_objext"
14887    # Insert the option either (1) after the last *FLAGS variable, or
14888    # (2) before a word containing "conftest.", or (3) at the end.
14889    # Note that $ac_compile itself does not contain backslashes and begins
14890    # with a dollar sign (not a hyphen), so the echo should work correctly.
14891    lt_compile=`echo "$ac_compile" | $SED \
14892    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894    -e 's:$: $lt_compiler_flag:'`
14895    (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896    (eval "$lt_compile" 2>out/conftest.err)
14897    ac_status=$?
14898    cat out/conftest.err >&5
14899    echo "$as_me:14899: \$? = $ac_status" >&5
14900    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14901    then
14902      # The compiler can only warn and ignore the option if not recognized
14903      # So say no if there are warnings
14904      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14905      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14906      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14907        lt_cv_prog_compiler_c_o_CXX=yes
14908      fi
14909    fi
14910    chmod u+w . 2>&5
14911    $RM conftest*
14912    # SGI C++ compiler will create directory out/ii_files/ for
14913    # template instantiation
14914    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14915    $RM out/* && rmdir out
14916    cd ..
14917    $RM -r conftest
14918    $RM conftest*
14919
14920 fi
14921 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14923
14924
14925
14926
14927 hard_links="nottested"
14928 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14929   # do not overwrite the value of need_locks provided by the user
14930   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14931 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14932   hard_links=yes
14933   $RM conftest*
14934   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14935   touch conftest.a
14936   ln conftest.a conftest.b 2>&5 || hard_links=no
14937   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14938   { echo "$as_me:$LINENO: result: $hard_links" >&5
14939 echo "${ECHO_T}$hard_links" >&6; }
14940   if test "$hard_links" = no; then
14941     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14942 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14943     need_locks=warn
14944   fi
14945 else
14946   need_locks=no
14947 fi
14948
14949
14950
14951     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14952 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14953
14954   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14955   case $host_os in
14956   aix[4-9]*)
14957     # If we're using GNU nm, then we don't want the "-C" option.
14958     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14959     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14960       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'
14961     else
14962       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'
14963     fi
14964     ;;
14965   pw32*)
14966     export_symbols_cmds_CXX="$ltdll_cmds"
14967   ;;
14968   cygwin* | mingw* | cegcc*)
14969     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'
14970   ;;
14971   *)
14972     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14973   ;;
14974   esac
14975   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14976
14977 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14978 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14979 test "$ld_shlibs_CXX" = no && can_build_shared=no
14980
14981 with_gnu_ld_CXX=$with_gnu_ld
14982
14983
14984
14985
14986
14987
14988 #
14989 # Do we need to explicitly link libc?
14990 #
14991 case "x$archive_cmds_need_lc_CXX" in
14992 x|xyes)
14993   # Assume -lc should be added
14994   archive_cmds_need_lc_CXX=yes
14995
14996   if test "$enable_shared" = yes && test "$GCC" = yes; then
14997     case $archive_cmds_CXX in
14998     *'~'*)
14999       # FIXME: we may have to deal with multi-command sequences.
15000       ;;
15001     '$CC '*)
15002       # Test whether the compiler implicitly links with -lc since on some
15003       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15004       # to ld, don't add -lc before -lgcc.
15005       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15006 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15007       $RM conftest*
15008       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15009
15010       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15011   (eval $ac_compile) 2>&5
15012   ac_status=$?
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); } 2>conftest.err; then
15015         soname=conftest
15016         lib=conftest
15017         libobjs=conftest.$ac_objext
15018         deplibs=
15019         wl=$lt_prog_compiler_wl_CXX
15020         pic_flag=$lt_prog_compiler_pic_CXX
15021         compiler_flags=-v
15022         linker_flags=-v
15023         verstring=
15024         output_objdir=.
15025         libname=conftest
15026         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15027         allow_undefined_flag_CXX=
15028         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15029   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }
15033         then
15034           archive_cmds_need_lc_CXX=no
15035         else
15036           archive_cmds_need_lc_CXX=yes
15037         fi
15038         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15039       else
15040         cat conftest.err 1>&5
15041       fi
15042       $RM conftest*
15043       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15044 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15045       ;;
15046     esac
15047   fi
15048   ;;
15049 esac
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
15114     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15115 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15116
15117 library_names_spec=
15118 libname_spec='lib$name'
15119 soname_spec=
15120 shrext_cmds=".so"
15121 postinstall_cmds=
15122 postuninstall_cmds=
15123 finish_cmds=
15124 finish_eval=
15125 shlibpath_var=
15126 shlibpath_overrides_runpath=unknown
15127 version_type=none
15128 dynamic_linker="$host_os ld.so"
15129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15130 need_lib_prefix=unknown
15131 hardcode_into_libs=no
15132
15133 # when you set need_version to no, make sure it does not cause -set_version
15134 # flags to be left without arguments
15135 need_version=unknown
15136
15137 case $host_os in
15138 aix3*)
15139   version_type=linux
15140   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15141   shlibpath_var=LIBPATH
15142
15143   # AIX 3 has no versioning support, so we append a major version to the name.
15144   soname_spec='${libname}${release}${shared_ext}$major'
15145   ;;
15146
15147 aix[4-9]*)
15148   version_type=linux
15149   need_lib_prefix=no
15150   need_version=no
15151   hardcode_into_libs=yes
15152   if test "$host_cpu" = ia64; then
15153     # AIX 5 supports IA64
15154     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15155     shlibpath_var=LD_LIBRARY_PATH
15156   else
15157     # With GCC up to 2.95.x, collect2 would create an import file
15158     # for dependence libraries.  The import file would start with
15159     # the line `#! .'.  This would cause the generated library to
15160     # depend on `.', always an invalid library.  This was fixed in
15161     # development snapshots of GCC prior to 3.0.
15162     case $host_os in
15163       aix4 | aix4.[01] | aix4.[01].*)
15164       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15165            echo ' yes '
15166            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15167         :
15168       else
15169         can_build_shared=no
15170       fi
15171       ;;
15172     esac
15173     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15174     # soname into executable. Probably we can add versioning support to
15175     # collect2, so additional links can be useful in future.
15176     if test "$aix_use_runtimelinking" = yes; then
15177       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15178       # instead of lib<name>.a to let people know that these are not
15179       # typical AIX shared libraries.
15180       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181     else
15182       # We preserve .a as extension for shared libraries through AIX4.2
15183       # and later when we are not doing run time linking.
15184       library_names_spec='${libname}${release}.a $libname.a'
15185       soname_spec='${libname}${release}${shared_ext}$major'
15186     fi
15187     shlibpath_var=LIBPATH
15188   fi
15189   ;;
15190
15191 amigaos*)
15192   case $host_cpu in
15193   powerpc)
15194     # Since July 2007 AmigaOS4 officially supports .so libraries.
15195     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197     ;;
15198   m68k)
15199     library_names_spec='$libname.ixlibrary $libname.a'
15200     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15201     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'
15202     ;;
15203   esac
15204   ;;
15205
15206 beos*)
15207   library_names_spec='${libname}${shared_ext}'
15208   dynamic_linker="$host_os ld.so"
15209   shlibpath_var=LIBRARY_PATH
15210   ;;
15211
15212 bsdi[45]*)
15213   version_type=linux
15214   need_version=no
15215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216   soname_spec='${libname}${release}${shared_ext}$major'
15217   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15218   shlibpath_var=LD_LIBRARY_PATH
15219   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15220   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15221   # the default ld.so.conf also contains /usr/contrib/lib and
15222   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15223   # libtool to hard-code these into programs
15224   ;;
15225
15226 cygwin* | mingw* | pw32* | cegcc*)
15227   version_type=windows
15228   shrext_cmds=".dll"
15229   need_version=no
15230   need_lib_prefix=no
15231
15232   case $GCC,$host_os in
15233   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15234     library_names_spec='$libname.dll.a'
15235     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15236     postinstall_cmds='base_file=`basename \${file}`~
15237       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15238       dldir=$destdir/`dirname \$dlpath`~
15239       test -d \$dldir || mkdir -p \$dldir~
15240       $install_prog $dir/$dlname \$dldir/$dlname~
15241       chmod a+x \$dldir/$dlname~
15242       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15243         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15244       fi'
15245     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15246       dlpath=$dir/\$dldll~
15247        $RM \$dlpath'
15248     shlibpath_overrides_runpath=yes
15249
15250     case $host_os in
15251     cygwin*)
15252       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15253       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15255       ;;
15256     mingw* | cegcc*)
15257       # MinGW DLLs use traditional 'lib' prefix
15258       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15259       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15260       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15261         # It is most probably a Windows format PATH printed by
15262         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15263         # path with ; separators, and with drive letters. We can handle the
15264         # drive letters (cygwin fileutils understands them), so leave them,
15265         # especially as we might pass files found there to a mingw objdump,
15266         # which wouldn't understand a cygwinified path. Ahh.
15267         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15268       else
15269         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15270       fi
15271       ;;
15272     pw32*)
15273       # pw32 DLLs use 'pw' prefix rather than 'lib'
15274       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15275       ;;
15276     esac
15277     ;;
15278
15279   *)
15280     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15281     ;;
15282   esac
15283   dynamic_linker='Win32 ld.exe'
15284   # FIXME: first we should search . and the directory the executable is in
15285   shlibpath_var=PATH
15286   ;;
15287
15288 darwin* | rhapsody*)
15289   dynamic_linker="$host_os dyld"
15290   version_type=darwin
15291   need_lib_prefix=no
15292   need_version=no
15293   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15294   soname_spec='${libname}${release}${major}$shared_ext'
15295   shlibpath_overrides_runpath=yes
15296   shlibpath_var=DYLD_LIBRARY_PATH
15297   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15298
15299   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15300   ;;
15301
15302 dgux*)
15303   version_type=linux
15304   need_lib_prefix=no
15305   need_version=no
15306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15307   soname_spec='${libname}${release}${shared_ext}$major'
15308   shlibpath_var=LD_LIBRARY_PATH
15309   ;;
15310
15311 freebsd1*)
15312   dynamic_linker=no
15313   ;;
15314
15315 freebsd* | dragonfly*)
15316   # DragonFly does not have aout.  When/if they implement a new
15317   # versioning mechanism, adjust this.
15318   if test -x /usr/bin/objformat; then
15319     objformat=`/usr/bin/objformat`
15320   else
15321     case $host_os in
15322     freebsd[123]*) objformat=aout ;;
15323     *) objformat=elf ;;
15324     esac
15325   fi
15326   version_type=freebsd-$objformat
15327   case $version_type in
15328     freebsd-elf*)
15329       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15330       need_version=no
15331       need_lib_prefix=no
15332       ;;
15333     freebsd-*)
15334       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15335       need_version=yes
15336       ;;
15337   esac
15338   shlibpath_var=LD_LIBRARY_PATH
15339   case $host_os in
15340   freebsd2*)
15341     shlibpath_overrides_runpath=yes
15342     ;;
15343   freebsd3.[01]* | freebsdelf3.[01]*)
15344     shlibpath_overrides_runpath=yes
15345     hardcode_into_libs=yes
15346     ;;
15347   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15348   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15349     shlibpath_overrides_runpath=no
15350     hardcode_into_libs=yes
15351     ;;
15352   *) # from 4.6 on, and DragonFly
15353     shlibpath_overrides_runpath=yes
15354     hardcode_into_libs=yes
15355     ;;
15356   esac
15357   ;;
15358
15359 gnu*)
15360   version_type=linux
15361   need_lib_prefix=no
15362   need_version=no
15363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15364   soname_spec='${libname}${release}${shared_ext}$major'
15365   shlibpath_var=LD_LIBRARY_PATH
15366   hardcode_into_libs=yes
15367   ;;
15368
15369 hpux9* | hpux10* | hpux11*)
15370   # Give a soname corresponding to the major version so that dld.sl refuses to
15371   # link against other versions.
15372   version_type=sunos
15373   need_lib_prefix=no
15374   need_version=no
15375   case $host_cpu in
15376   ia64*)
15377     shrext_cmds='.so'
15378     hardcode_into_libs=yes
15379     dynamic_linker="$host_os dld.so"
15380     shlibpath_var=LD_LIBRARY_PATH
15381     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383     soname_spec='${libname}${release}${shared_ext}$major'
15384     if test "X$HPUX_IA64_MODE" = X32; then
15385       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15386     else
15387       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15388     fi
15389     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15390     ;;
15391   hppa*64*)
15392     shrext_cmds='.sl'
15393     hardcode_into_libs=yes
15394     dynamic_linker="$host_os dld.sl"
15395     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15396     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398     soname_spec='${libname}${release}${shared_ext}$major'
15399     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15400     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15401     ;;
15402   *)
15403     shrext_cmds='.sl'
15404     dynamic_linker="$host_os dld.sl"
15405     shlibpath_var=SHLIB_PATH
15406     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408     soname_spec='${libname}${release}${shared_ext}$major'
15409     ;;
15410   esac
15411   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15412   postinstall_cmds='chmod 555 $lib'
15413   ;;
15414
15415 interix[3-9]*)
15416   version_type=linux
15417   need_lib_prefix=no
15418   need_version=no
15419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15420   soname_spec='${libname}${release}${shared_ext}$major'
15421   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15422   shlibpath_var=LD_LIBRARY_PATH
15423   shlibpath_overrides_runpath=no
15424   hardcode_into_libs=yes
15425   ;;
15426
15427 irix5* | irix6* | nonstopux*)
15428   case $host_os in
15429     nonstopux*) version_type=nonstopux ;;
15430     *)
15431         if test "$lt_cv_prog_gnu_ld" = yes; then
15432                 version_type=linux
15433         else
15434                 version_type=irix
15435         fi ;;
15436   esac
15437   need_lib_prefix=no
15438   need_version=no
15439   soname_spec='${libname}${release}${shared_ext}$major'
15440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15441   case $host_os in
15442   irix5* | nonstopux*)
15443     libsuff= shlibsuff=
15444     ;;
15445   *)
15446     case $LD in # libtool.m4 will add one of these switches to LD
15447     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15448       libsuff= shlibsuff= libmagic=32-bit;;
15449     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15450       libsuff=32 shlibsuff=N32 libmagic=N32;;
15451     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15452       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15453     *) libsuff= shlibsuff= libmagic=never-match;;
15454     esac
15455     ;;
15456   esac
15457   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15458   shlibpath_overrides_runpath=no
15459   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15460   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15461   hardcode_into_libs=yes
15462   ;;
15463
15464 # No shared lib support for Linux oldld, aout, or coff.
15465 linux*oldld* | linux*aout* | linux*coff*)
15466   dynamic_linker=no
15467   ;;
15468
15469 # This must be Linux ELF.
15470 linux* | k*bsd*-gnu)
15471   version_type=linux
15472   need_lib_prefix=no
15473   need_version=no
15474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475   soname_spec='${libname}${release}${shared_ext}$major'
15476   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15477   shlibpath_var=LD_LIBRARY_PATH
15478   shlibpath_overrides_runpath=no
15479   # Some binutils ld are patched to set DT_RUNPATH
15480   save_LDFLAGS=$LDFLAGS
15481   save_libdir=$libdir
15482   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15483        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15484   cat >conftest.$ac_ext <<_ACEOF
15485 /* confdefs.h.  */
15486 _ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h.  */
15490
15491 int
15492 main ()
15493 {
15494
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 rm -f conftest.$ac_objext conftest$ac_exeext
15500 if { (ac_try="$ac_link"
15501 case "(($ac_try" in
15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503   *) ac_try_echo=$ac_try;;
15504 esac
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506   (eval "$ac_link") 2>conftest.er1
15507   ac_status=$?
15508   grep -v '^ *+' conftest.er1 >conftest.err
15509   rm -f conftest.er1
15510   cat conftest.err >&5
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); } && {
15513          test -z "$ac_cxx_werror_flag" ||
15514          test ! -s conftest.err
15515        } && test -s conftest$ac_exeext &&
15516        $as_test_x conftest$ac_exeext; then
15517   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15518   shlibpath_overrides_runpath=yes
15519 fi
15520
15521 else
15522   echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525
15526 fi
15527
15528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15529       conftest$ac_exeext conftest.$ac_ext
15530   LDFLAGS=$save_LDFLAGS
15531   libdir=$save_libdir
15532
15533   # This implies no fast_install, which is unacceptable.
15534   # Some rework will be needed to allow for fast_install
15535   # before this can be enabled.
15536   hardcode_into_libs=yes
15537
15538   # Append ld.so.conf contents to the search path
15539   if test -f /etc/ld.so.conf; then
15540     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' ' '`
15541     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15542   fi
15543
15544   # We used to test for /lib/ld.so.1 and disable shared libraries on
15545   # powerpc, because MkLinux only supported shared libraries with the
15546   # GNU dynamic linker.  Since this was broken with cross compilers,
15547   # most powerpc-linux boxes support dynamic linking these days and
15548   # people can always --disable-shared, the test was removed, and we
15549   # assume the GNU/Linux dynamic linker is in use.
15550   dynamic_linker='GNU/Linux ld.so'
15551   ;;
15552
15553 netbsd*)
15554   version_type=sunos
15555   need_lib_prefix=no
15556   need_version=no
15557   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15558     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15559     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15560     dynamic_linker='NetBSD (a.out) ld.so'
15561   else
15562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15563     soname_spec='${libname}${release}${shared_ext}$major'
15564     dynamic_linker='NetBSD ld.elf_so'
15565   fi
15566   shlibpath_var=LD_LIBRARY_PATH
15567   shlibpath_overrides_runpath=yes
15568   hardcode_into_libs=yes
15569   ;;
15570
15571 newsos6)
15572   version_type=linux
15573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15574   shlibpath_var=LD_LIBRARY_PATH
15575   shlibpath_overrides_runpath=yes
15576   ;;
15577
15578 *nto* | *qnx*)
15579   version_type=qnx
15580   need_lib_prefix=no
15581   need_version=no
15582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583   soname_spec='${libname}${release}${shared_ext}$major'
15584   shlibpath_var=LD_LIBRARY_PATH
15585   shlibpath_overrides_runpath=no
15586   hardcode_into_libs=yes
15587   dynamic_linker='ldqnx.so'
15588   ;;
15589
15590 openbsd*)
15591   version_type=sunos
15592   sys_lib_dlsearch_path_spec="/usr/lib"
15593   need_lib_prefix=no
15594   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15595   case $host_os in
15596     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15597     *)                          need_version=no  ;;
15598   esac
15599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15600   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15601   shlibpath_var=LD_LIBRARY_PATH
15602   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15603     case $host_os in
15604       openbsd2.[89] | openbsd2.[89].*)
15605         shlibpath_overrides_runpath=no
15606         ;;
15607       *)
15608         shlibpath_overrides_runpath=yes
15609         ;;
15610       esac
15611   else
15612     shlibpath_overrides_runpath=yes
15613   fi
15614   ;;
15615
15616 os2*)
15617   libname_spec='$name'
15618   shrext_cmds=".dll"
15619   need_lib_prefix=no
15620   library_names_spec='$libname${shared_ext} $libname.a'
15621   dynamic_linker='OS/2 ld.exe'
15622   shlibpath_var=LIBPATH
15623   ;;
15624
15625 osf3* | osf4* | osf5*)
15626   version_type=osf
15627   need_lib_prefix=no
15628   need_version=no
15629   soname_spec='${libname}${release}${shared_ext}$major'
15630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631   shlibpath_var=LD_LIBRARY_PATH
15632   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15633   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15634   ;;
15635
15636 rdos*)
15637   dynamic_linker=no
15638   ;;
15639
15640 solaris*)
15641   version_type=linux
15642   need_lib_prefix=no
15643   need_version=no
15644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645   soname_spec='${libname}${release}${shared_ext}$major'
15646   shlibpath_var=LD_LIBRARY_PATH
15647   shlibpath_overrides_runpath=yes
15648   hardcode_into_libs=yes
15649   # ldd complains unless libraries are executable
15650   postinstall_cmds='chmod +x $lib'
15651   ;;
15652
15653 sunos4*)
15654   version_type=sunos
15655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15656   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15657   shlibpath_var=LD_LIBRARY_PATH
15658   shlibpath_overrides_runpath=yes
15659   if test "$with_gnu_ld" = yes; then
15660     need_lib_prefix=no
15661   fi
15662   need_version=yes
15663   ;;
15664
15665 sysv4 | sysv4.3*)
15666   version_type=linux
15667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668   soname_spec='${libname}${release}${shared_ext}$major'
15669   shlibpath_var=LD_LIBRARY_PATH
15670   case $host_vendor in
15671     sni)
15672       shlibpath_overrides_runpath=no
15673       need_lib_prefix=no
15674       runpath_var=LD_RUN_PATH
15675       ;;
15676     siemens)
15677       need_lib_prefix=no
15678       ;;
15679     motorola)
15680       need_lib_prefix=no
15681       need_version=no
15682       shlibpath_overrides_runpath=no
15683       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15684       ;;
15685   esac
15686   ;;
15687
15688 sysv4*MP*)
15689   if test -d /usr/nec ;then
15690     version_type=linux
15691     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15692     soname_spec='$libname${shared_ext}.$major'
15693     shlibpath_var=LD_LIBRARY_PATH
15694   fi
15695   ;;
15696
15697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15698   version_type=freebsd-elf
15699   need_lib_prefix=no
15700   need_version=no
15701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15702   soname_spec='${libname}${release}${shared_ext}$major'
15703   shlibpath_var=LD_LIBRARY_PATH
15704   shlibpath_overrides_runpath=yes
15705   hardcode_into_libs=yes
15706   if test "$with_gnu_ld" = yes; then
15707     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15708   else
15709     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15710     case $host_os in
15711       sco3.2v5*)
15712         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15713         ;;
15714     esac
15715   fi
15716   sys_lib_dlsearch_path_spec='/usr/lib'
15717   ;;
15718
15719 tpf*)
15720   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15721   version_type=linux
15722   need_lib_prefix=no
15723   need_version=no
15724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   shlibpath_overrides_runpath=no
15727   hardcode_into_libs=yes
15728   ;;
15729
15730 uts4*)
15731   version_type=linux
15732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733   soname_spec='${libname}${release}${shared_ext}$major'
15734   shlibpath_var=LD_LIBRARY_PATH
15735   ;;
15736
15737 *)
15738   dynamic_linker=no
15739   ;;
15740 esac
15741 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15742 echo "${ECHO_T}$dynamic_linker" >&6; }
15743 test "$dynamic_linker" = no && can_build_shared=no
15744
15745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15746 if test "$GCC" = yes; then
15747   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15748 fi
15749
15750 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15751   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15752 fi
15753 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15754   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15755 fi
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
15792     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15793 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15794 hardcode_action_CXX=
15795 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15796    test -n "$runpath_var_CXX" ||
15797    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15798
15799   # We can hardcode non-existent directories.
15800   if test "$hardcode_direct_CXX" != no &&
15801      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15802      # have to relink, otherwise we might link with an installed library
15803      # when we should be linking with a yet-to-be-installed one
15804      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15805      test "$hardcode_minus_L_CXX" != no; then
15806     # Linking always hardcodes the temporary library directory.
15807     hardcode_action_CXX=relink
15808   else
15809     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15810     hardcode_action_CXX=immediate
15811   fi
15812 else
15813   # We cannot hardcode anything, or else we can only hardcode existing
15814   # directories.
15815   hardcode_action_CXX=unsupported
15816 fi
15817 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15818 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15819
15820 if test "$hardcode_action_CXX" = relink ||
15821    test "$inherit_rpath_CXX" = yes; then
15822   # Fast installation is not supported
15823   enable_fast_install=no
15824 elif test "$shlibpath_overrides_runpath" = yes ||
15825      test "$enable_shared" = no; then
15826   # Fast installation is not necessary
15827   enable_fast_install=needless
15828 fi
15829
15830
15831
15832
15833
15834
15835
15836   fi # test -n "$compiler"
15837
15838   CC=$lt_save_CC
15839   LDCXX=$LD
15840   LD=$lt_save_LD
15841   GCC=$lt_save_GCC
15842   with_gnu_ld=$lt_save_with_gnu_ld
15843   lt_cv_path_LDCXX=$lt_cv_path_LD
15844   lt_cv_path_LD=$lt_save_path_LD
15845   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15846   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15847 fi # test "$_lt_caught_CXX_error" != yes
15848
15849 ac_ext=c
15850 ac_cpp='$CPP $CPPFLAGS'
15851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867         ac_config_commands="$ac_config_commands libtool"
15868
15869
15870
15871
15872 # Only expand once:
15873
15874
15875
15876
15877 if test x$use_libtool != xno; then
15878    DEFAULT_OBJECT_TYPE=".lo"
15879    DEFAULT_ARCHIVE_TYPE=".la"
15880    DEFAULT_SHARED_OBJECT_TYPE=".la"
15881    LIBTOOL="\$(LIBTOOL)"
15882    LIBTOOL_INSTALL_TARGET="libtool-install"
15883    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15884    LIBTOOL_CLEAN_TARGET="libtool-clean"
15885    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15886 else
15887    DEFAULT_OBJECT_TYPE=".o"
15888    DEFAULT_ARCHIVE_TYPE=".a"
15889    DEFAULT_SHARED_OBJECT_TYPE=".so"
15890    LIBTOOL="# \$(LIBTOOL)"
15891    LIBTOOL_INSTALL_TARGET=""
15892    LIBTOOL_UNINSTALL_TARGET=""
15893    LIBTOOL_CLEAN_TARGET=""
15894    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15895 fi
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906 # Check whether --enable-includes was given.
15907 if test "${enable_includes+set}" = set; then
15908   enableval=$enable_includes;
15909        if test x$enableval = xyes; then
15910           install_includes=yes
15911        fi
15912
15913
15914 fi
15915
15916
15917
15918 if test x$use_libtool != xno -a x$install_includes = xyes; then
15919    INCLUDE_INSTALL_TARGET="install-includes"
15920    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15921 else
15922    INCLUDE_INSTALL_TARGET=""
15923    INCLUDE_UNINSTALL_TARGET=""
15924 fi
15925
15926
15927
15928
15929 { echo "$as_me:$LINENO: checking host system type" >&5
15930 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15931 if test "${ac_cv_host+set}" = set; then
15932   echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934   if test "x$host_alias" = x; then
15935   ac_cv_host=$ac_cv_build
15936 else
15937   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15938     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15939 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15940    { (exit 1); exit 1; }; }
15941 fi
15942
15943 fi
15944 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15945 echo "${ECHO_T}$ac_cv_host" >&6; }
15946 case $ac_cv_host in
15947 *-*-*) ;;
15948 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15949 echo "$as_me: error: invalid value of canonical host" >&2;}
15950    { (exit 1); exit 1; }; };;
15951 esac
15952 host=$ac_cv_host
15953 ac_save_IFS=$IFS; IFS='-'
15954 set x $ac_cv_host
15955 shift
15956 host_cpu=$1
15957 host_vendor=$2
15958 shift; shift
15959 # Remember, the first character of IFS is used to create $*,
15960 # except with old shells:
15961 host_os=$*
15962 IFS=$ac_save_IFS
15963 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15964
15965
15966 case $host_os in
15967   *cygwin* ) CYGWIN=yes;;
15968          * ) CYGWIN=no;;
15969 esac
15970
15971 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15972 then
15973
15974
15975 if $TRUEPRG; then
15976   HAVE_SUN_OS_TRUE=
15977   HAVE_SUN_OS_FALSE='#'
15978 else
15979   HAVE_SUN_OS_TRUE='#'
15980   HAVE_SUN_OS_FALSE=
15981 fi
15982         cat >>confdefs.h <<\_ACEOF
15983 #define HAVE_SUN_OS 1
15984 _ACEOF
15985
15986 else
15987
15988
15989 if $FALSEPRG; then
15990   HAVE_SUN_OS_TRUE=
15991   HAVE_SUN_OS_FALSE='#'
15992 else
15993   HAVE_SUN_OS_TRUE='#'
15994   HAVE_SUN_OS_FALSE=
15995 fi
15996 fi
15997
15998 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15999 then
16000
16001
16002 if $TRUEPRG; then
16003   HAVE_OSF1_OS_TRUE=
16004   HAVE_OSF1_OS_FALSE='#'
16005 else
16006   HAVE_OSF1_OS_TRUE='#'
16007   HAVE_OSF1_OS_FALSE=
16008 fi
16009         cat >>confdefs.h <<\_ACEOF
16010 #define HAVE_OSF1_OS 1
16011 _ACEOF
16012
16013 else
16014
16015
16016 if $FALSEPRG; then
16017   HAVE_OSF1_OS_TRUE=
16018   HAVE_OSF1_OS_FALSE='#'
16019 else
16020   HAVE_OSF1_OS_TRUE='#'
16021   HAVE_OSF1_OS_FALSE=
16022 fi
16023 fi
16024
16025 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16026 then
16027
16028
16029 if $TRUEPRG; then
16030   HAVE_AIX_OS_TRUE=
16031   HAVE_AIX_OS_FALSE='#'
16032 else
16033   HAVE_AIX_OS_TRUE='#'
16034   HAVE_AIX_OS_FALSE=
16035 fi
16036         cat >>confdefs.h <<\_ACEOF
16037 #define HAVE_AIX_OS 1
16038 _ACEOF
16039
16040 else
16041
16042
16043 if $FALSEPRG; then
16044   HAVE_AIX_OS_TRUE=
16045   HAVE_AIX_OS_FALSE='#'
16046 else
16047   HAVE_AIX_OS_TRUE='#'
16048   HAVE_AIX_OS_FALSE=
16049 fi
16050 fi
16051
16052 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16053 then
16054
16055
16056 if $TRUEPRG; then
16057   HAVE_HPUX_OS_TRUE=
16058   HAVE_HPUX_OS_FALSE='#'
16059 else
16060   HAVE_HPUX_OS_TRUE='#'
16061   HAVE_HPUX_OS_FALSE=
16062 fi
16063         cat >>confdefs.h <<\_ACEOF
16064 #define HAVE_HPUX_OS 1
16065 _ACEOF
16066
16067 else
16068
16069
16070 if $FALSEPRG; then
16071   HAVE_HPUX_OS_TRUE=
16072   HAVE_HPUX_OS_FALSE='#'
16073 else
16074   HAVE_HPUX_OS_TRUE='#'
16075   HAVE_HPUX_OS_FALSE=
16076 fi
16077 fi
16078
16079 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16080 then
16081
16082
16083 if $TRUEPRG; then
16084   HAVE_LINUX_OS_TRUE=
16085   HAVE_LINUX_OS_FALSE='#'
16086 else
16087   HAVE_LINUX_OS_TRUE='#'
16088   HAVE_LINUX_OS_FALSE=
16089 fi
16090         cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_LINUX_OS 1
16092 _ACEOF
16093
16094 else
16095
16096
16097 if $FALSEPRG; then
16098   HAVE_LINUX_OS_TRUE=
16099   HAVE_LINUX_OS_FALSE='#'
16100 else
16101   HAVE_LINUX_OS_TRUE='#'
16102   HAVE_LINUX_OS_FALSE=
16103 fi
16104 fi
16105
16106 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16107 then
16108
16109
16110 if $TRUEPRG; then
16111   HAVE_FREEBSD_OS_TRUE=
16112   HAVE_FREEBSD_OS_FALSE='#'
16113 else
16114   HAVE_FREEBSD_OS_TRUE='#'
16115   HAVE_FREEBSD_OS_FALSE=
16116 fi
16117         cat >>confdefs.h <<\_ACEOF
16118 #define HAVE_FREEBSD_OS 1
16119 _ACEOF
16120
16121 else
16122
16123
16124 if $FALSEPRG; then
16125   HAVE_FREEBSD_OS_TRUE=
16126   HAVE_FREEBSD_OS_FALSE='#'
16127 else
16128   HAVE_FREEBSD_OS_TRUE='#'
16129   HAVE_FREEBSD_OS_FALSE=
16130 fi
16131 fi
16132
16133 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16134 then
16135
16136
16137 if $TRUEPRG; then
16138   HAVE_NETBSD_OS_TRUE=
16139   HAVE_NETBSD_OS_FALSE='#'
16140 else
16141   HAVE_NETBSD_OS_TRUE='#'
16142   HAVE_NETBSD_OS_FALSE=
16143 fi
16144         cat >>confdefs.h <<\_ACEOF
16145 #define HAVE_NETBSD_OS 1
16146 _ACEOF
16147
16148 else
16149
16150
16151 if $FALSEPRG; then
16152   HAVE_NETBSD_OS_TRUE=
16153   HAVE_NETBSD_OS_FALSE='#'
16154 else
16155   HAVE_NETBSD_OS_TRUE='#'
16156   HAVE_NETBSD_OS_FALSE=
16157 fi
16158 fi
16159
16160 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16161 then
16162
16163
16164 if $TRUEPRG; then
16165   HAVE_OPENBSD_OS_TRUE=
16166   HAVE_OPENBSD_OS_FALSE='#'
16167 else
16168   HAVE_OPENBSD_OS_TRUE='#'
16169   HAVE_OPENBSD_OS_FALSE=
16170 fi
16171         cat >>confdefs.h <<\_ACEOF
16172 #define HAVE_OPENBSD_OS 1
16173 _ACEOF
16174
16175 else
16176
16177
16178 if $FALSEPRG; then
16179   HAVE_OPENBSD_OS_TRUE=
16180   HAVE_OPENBSD_OS_FALSE='#'
16181 else
16182   HAVE_OPENBSD_OS_TRUE='#'
16183   HAVE_OPENBSD_OS_FALSE=
16184 fi
16185 fi
16186
16187 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16188 then
16189
16190
16191 if $TRUEPRG; then
16192   HAVE_BSDI_OS_TRUE=
16193   HAVE_BSDI_OS_FALSE='#'
16194 else
16195   HAVE_BSDI_OS_TRUE='#'
16196   HAVE_BSDI_OS_FALSE=
16197 fi
16198         cat >>confdefs.h <<\_ACEOF
16199 #define HAVE_BSDI_OS 1
16200 _ACEOF
16201
16202 else
16203
16204
16205 if $FALSEPRG; then
16206   HAVE_BSDI_OS_TRUE=
16207   HAVE_BSDI_OS_FALSE='#'
16208 else
16209   HAVE_BSDI_OS_TRUE='#'
16210   HAVE_BSDI_OS_FALSE=
16211 fi
16212 fi
16213
16214 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16215 then
16216
16217
16218 if $TRUEPRG; then
16219   HAVE_SGI_OS_TRUE=
16220   HAVE_SGI_OS_FALSE='#'
16221 else
16222   HAVE_SGI_OS_TRUE='#'
16223   HAVE_SGI_OS_FALSE=
16224 fi
16225         cat >>confdefs.h <<\_ACEOF
16226 #define HAVE_SGI_OS 1
16227 _ACEOF
16228
16229 else
16230
16231
16232 if $FALSEPRG; then
16233   HAVE_SGI_OS_TRUE=
16234   HAVE_SGI_OS_FALSE='#'
16235 else
16236   HAVE_SGI_OS_TRUE='#'
16237   HAVE_SGI_OS_FALSE=
16238 fi
16239 fi
16240
16241 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16242 then
16243
16244
16245 if $TRUEPRG; then
16246   HAVE_IRIX_OS_TRUE=
16247   HAVE_IRIX_OS_FALSE='#'
16248 else
16249   HAVE_IRIX_OS_TRUE='#'
16250   HAVE_IRIX_OS_FALSE=
16251 fi
16252         cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_IRIX_OS 1
16254 _ACEOF
16255
16256 else
16257
16258
16259 if $FALSEPRG; then
16260   HAVE_IRIX_OS_TRUE=
16261   HAVE_IRIX_OS_FALSE='#'
16262 else
16263   HAVE_IRIX_OS_TRUE='#'
16264   HAVE_IRIX_OS_FALSE=
16265 fi
16266 fi
16267
16268 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16269 then
16270
16271
16272 if $TRUEPRG; then
16273   HAVE_DARWIN_OS_TRUE=
16274   HAVE_DARWIN_OS_FALSE='#'
16275 else
16276   HAVE_DARWIN_OS_TRUE='#'
16277   HAVE_DARWIN_OS_FALSE=
16278 fi
16279     cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_DARWIN_OS 1
16281 _ACEOF
16282
16283 else
16284
16285
16286 if $FALSEPRG; then
16287   HAVE_DARWIN_OS_TRUE=
16288   HAVE_DARWIN_OS_FALSE='#'
16289 else
16290   HAVE_DARWIN_OS_TRUE='#'
16291   HAVE_DARWIN_OS_FALSE=
16292 fi
16293 fi
16294
16295
16296 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16297 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16298 if test "x$DISTNAME" != "x"
16299 then
16300         echo "distname set to $DISTNAME"
16301 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16302 then
16303         DISTNAME=alpha
16304 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16305 then
16306         DISTNAME=aix
16307 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16308 then
16309         DISTNAME=hpux
16310 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16311 then
16312         DISTNAME=solaris
16313 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16314 then
16315         DISTNAME=freebsd
16316 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16317 then
16318         DISTNAME=netbsd
16319 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16320 then
16321         DISTNAME=openbsd
16322 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16323 then
16324         DISTNAME=irix
16325 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16326 then
16327         DISTNAME=bsdi
16328 elif test -f /etc/SuSE-release
16329 then
16330         DISTNAME=suse
16331 elif test -d /etc/SuSEconfig
16332 then
16333         DISTNAME=suse5
16334 elif test -f /etc/mandrake-release
16335 then
16336         DISTNAME=mandrake
16337 elif test -f /etc/whitebox-release
16338 then
16339        DISTNAME=redhat
16340 elif test -f /etc/redhat-release
16341 then
16342         DISTNAME=redhat
16343 elif test -f /etc/gentoo-release
16344 then
16345         DISTNAME=gentoo
16346 elif test -f /etc/debian_version
16347 then
16348         DISTNAME=debian
16349 elif test -f /etc/slackware-version
16350 then
16351         DISTNAME=slackware
16352 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16353 then
16354     DISTNAME=darwin
16355 elif test -f /etc/engarde-version
16356 then
16357         DISTNAME=engarde
16358 elif test "$CYGWIN" = yes
16359 then
16360         DISTNAME=cygwin
16361         cat >>confdefs.h <<\_ACEOF
16362 #define HAVE_CYGWIN 1
16363 _ACEOF
16364
16365 else
16366         DISTNAME=unknown
16367 fi
16368 { echo "$as_me:$LINENO: result: done" >&5
16369 echo "${ECHO_T}done" >&6; }
16370
16371
16372 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16373 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16374 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16375 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16376   echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378   cat >conftest.make <<\_ACEOF
16379 SHELL = /bin/sh
16380 all:
16381         @echo '@@@%%%=$(MAKE)=@@@%%%'
16382 _ACEOF
16383 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16384 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16385   *@@@%%%=?*=@@@%%%*)
16386     eval ac_cv_prog_make_${ac_make}_set=yes;;
16387   *)
16388     eval ac_cv_prog_make_${ac_make}_set=no;;
16389 esac
16390 rm -f conftest.make
16391 fi
16392 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16393   { echo "$as_me:$LINENO: result: yes" >&5
16394 echo "${ECHO_T}yes" >&6; }
16395   SET_MAKE=
16396 else
16397   { echo "$as_me:$LINENO: result: no" >&5
16398 echo "${ECHO_T}no" >&6; }
16399   SET_MAKE="MAKE=${MAKE-make}"
16400 fi
16401
16402
16403
16404         MKINSTALLDIRS=
16405   if test -n "$ac_aux_dir"; then
16406     case "$ac_aux_dir" in
16407       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16408       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16409     esac
16410   fi
16411   if test -z "$MKINSTALLDIRS"; then
16412     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16413   fi
16414
16415
16416
16417   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16418 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16419     # Check whether --enable-nls was given.
16420 if test "${enable_nls+set}" = set; then
16421   enableval=$enable_nls; USE_NLS=$enableval
16422 else
16423   USE_NLS=yes
16424 fi
16425
16426   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16427 echo "${ECHO_T}$USE_NLS" >&6; }
16428
16429
16430
16431
16432
16433
16434 # Prepare PATH_SEPARATOR.
16435 # The user is always right.
16436 if test "${PATH_SEPARATOR+set}" != set; then
16437   echo "#! /bin/sh" >conf$$.sh
16438   echo  "exit 0"   >>conf$$.sh
16439   chmod +x conf$$.sh
16440   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16441     PATH_SEPARATOR=';'
16442   else
16443     PATH_SEPARATOR=:
16444   fi
16445   rm -f conf$$.sh
16446 fi
16447
16448 # Find out how to test for executable files. Don't use a zero-byte file,
16449 # as systems may use methods other than mode bits to determine executability.
16450 cat >conf$$.file <<_ASEOF
16451 #! /bin/sh
16452 exit 0
16453 _ASEOF
16454 chmod +x conf$$.file
16455 if test -x conf$$.file >/dev/null 2>&1; then
16456   ac_executable_p="test -x"
16457 else
16458   ac_executable_p="test -f"
16459 fi
16460 rm -f conf$$.file
16461
16462 # Extract the first word of "msgfmt", so it can be a program name with args.
16463 set dummy msgfmt; ac_word=$2
16464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16466 if test "${ac_cv_path_MSGFMT+set}" = set; then
16467   echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469   case "$MSGFMT" in
16470   [\\/]* | ?:[\\/]*)
16471     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16472     ;;
16473   *)
16474     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16475     for ac_dir in $PATH; do
16476       IFS="$ac_save_IFS"
16477       test -z "$ac_dir" && ac_dir=.
16478       for ac_exec_ext in '' $ac_executable_extensions; do
16479         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16480           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16481           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16482      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16483             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16484             break 2
16485           fi
16486         fi
16487       done
16488     done
16489     IFS="$ac_save_IFS"
16490   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16491     ;;
16492 esac
16493 fi
16494 MSGFMT="$ac_cv_path_MSGFMT"
16495 if test "$MSGFMT" != ":"; then
16496   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16497 echo "${ECHO_T}$MSGFMT" >&6; }
16498 else
16499   { echo "$as_me:$LINENO: result: no" >&5
16500 echo "${ECHO_T}no" >&6; }
16501 fi
16502
16503   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16504 set dummy gmsgfmt; ac_word=$2
16505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16507 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16508   echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510   case $GMSGFMT in
16511   [\\/]* | ?:[\\/]*)
16512   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16513   ;;
16514   *)
16515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16516 for as_dir in $PATH
16517 do
16518   IFS=$as_save_IFS
16519   test -z "$as_dir" && as_dir=.
16520   for ac_exec_ext in '' $ac_executable_extensions; do
16521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16522     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16524     break 2
16525   fi
16526 done
16527 done
16528 IFS=$as_save_IFS
16529
16530   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16531   ;;
16532 esac
16533 fi
16534 GMSGFMT=$ac_cv_path_GMSGFMT
16535 if test -n "$GMSGFMT"; then
16536   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16537 echo "${ECHO_T}$GMSGFMT" >&6; }
16538 else
16539   { echo "$as_me:$LINENO: result: no" >&5
16540 echo "${ECHO_T}no" >&6; }
16541 fi
16542
16543
16544
16545
16546 # Prepare PATH_SEPARATOR.
16547 # The user is always right.
16548 if test "${PATH_SEPARATOR+set}" != set; then
16549   echo "#! /bin/sh" >conf$$.sh
16550   echo  "exit 0"   >>conf$$.sh
16551   chmod +x conf$$.sh
16552   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16553     PATH_SEPARATOR=';'
16554   else
16555     PATH_SEPARATOR=:
16556   fi
16557   rm -f conf$$.sh
16558 fi
16559
16560 # Find out how to test for executable files. Don't use a zero-byte file,
16561 # as systems may use methods other than mode bits to determine executability.
16562 cat >conf$$.file <<_ASEOF
16563 #! /bin/sh
16564 exit 0
16565 _ASEOF
16566 chmod +x conf$$.file
16567 if test -x conf$$.file >/dev/null 2>&1; then
16568   ac_executable_p="test -x"
16569 else
16570   ac_executable_p="test -f"
16571 fi
16572 rm -f conf$$.file
16573
16574 # Extract the first word of "xgettext", so it can be a program name with args.
16575 set dummy xgettext; ac_word=$2
16576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16578 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16579   echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581   case "$XGETTEXT" in
16582   [\\/]* | ?:[\\/]*)
16583     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16584     ;;
16585   *)
16586     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16587     for ac_dir in $PATH; do
16588       IFS="$ac_save_IFS"
16589       test -z "$ac_dir" && ac_dir=.
16590       for ac_exec_ext in '' $ac_executable_extensions; do
16591         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16592           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16593           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16594      (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
16595             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16596             break 2
16597           fi
16598         fi
16599       done
16600     done
16601     IFS="$ac_save_IFS"
16602   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16603     ;;
16604 esac
16605 fi
16606 XGETTEXT="$ac_cv_path_XGETTEXT"
16607 if test "$XGETTEXT" != ":"; then
16608   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16609 echo "${ECHO_T}$XGETTEXT" >&6; }
16610 else
16611   { echo "$as_me:$LINENO: result: no" >&5
16612 echo "${ECHO_T}no" >&6; }
16613 fi
16614
16615     rm -f messages.po
16616
16617
16618 # Prepare PATH_SEPARATOR.
16619 # The user is always right.
16620 if test "${PATH_SEPARATOR+set}" != set; then
16621   echo "#! /bin/sh" >conf$$.sh
16622   echo  "exit 0"   >>conf$$.sh
16623   chmod +x conf$$.sh
16624   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16625     PATH_SEPARATOR=';'
16626   else
16627     PATH_SEPARATOR=:
16628   fi
16629   rm -f conf$$.sh
16630 fi
16631
16632 # Find out how to test for executable files. Don't use a zero-byte file,
16633 # as systems may use methods other than mode bits to determine executability.
16634 cat >conf$$.file <<_ASEOF
16635 #! /bin/sh
16636 exit 0
16637 _ASEOF
16638 chmod +x conf$$.file
16639 if test -x conf$$.file >/dev/null 2>&1; then
16640   ac_executable_p="test -x"
16641 else
16642   ac_executable_p="test -f"
16643 fi
16644 rm -f conf$$.file
16645
16646 # Extract the first word of "msgmerge", so it can be a program name with args.
16647 set dummy msgmerge; ac_word=$2
16648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16650 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   case "$MSGMERGE" in
16654   [\\/]* | ?:[\\/]*)
16655     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16656     ;;
16657   *)
16658     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16659     for ac_dir in $PATH; do
16660       IFS="$ac_save_IFS"
16661       test -z "$ac_dir" && ac_dir=.
16662       for ac_exec_ext in '' $ac_executable_extensions; do
16663         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16664           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16665           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16666             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16667             break 2
16668           fi
16669         fi
16670       done
16671     done
16672     IFS="$ac_save_IFS"
16673   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16674     ;;
16675 esac
16676 fi
16677 MSGMERGE="$ac_cv_path_MSGMERGE"
16678 if test "$MSGMERGE" != ":"; then
16679   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16680 echo "${ECHO_T}$MSGMERGE" >&6; }
16681 else
16682   { echo "$as_me:$LINENO: result: no" >&5
16683 echo "${ECHO_T}no" >&6; }
16684 fi
16685
16686
16687       if test "$GMSGFMT" != ":"; then
16688             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16689        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16690       : ;
16691     else
16692       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16693       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16694 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16695       GMSGFMT=":"
16696     fi
16697   fi
16698
16699       if test "$XGETTEXT" != ":"; then
16700             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16701        (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
16702       : ;
16703     else
16704       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16705 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16706       XGETTEXT=":"
16707     fi
16708         rm -f messages.po
16709   fi
16710
16711   ac_config_commands="$ac_config_commands default-1"
16712
16713
16714
16715       if test "X$prefix" = "XNONE"; then
16716     acl_final_prefix="$ac_default_prefix"
16717   else
16718     acl_final_prefix="$prefix"
16719   fi
16720   if test "X$exec_prefix" = "XNONE"; then
16721     acl_final_exec_prefix='${prefix}'
16722   else
16723     acl_final_exec_prefix="$exec_prefix"
16724   fi
16725   acl_save_prefix="$prefix"
16726   prefix="$acl_final_prefix"
16727   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16728   prefix="$acl_save_prefix"
16729
16730
16731 # Check whether --with-gnu-ld was given.
16732 if test "${with_gnu_ld+set}" = set; then
16733   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16734 else
16735   with_gnu_ld=no
16736 fi
16737
16738 # Prepare PATH_SEPARATOR.
16739 # The user is always right.
16740 if test "${PATH_SEPARATOR+set}" != set; then
16741   echo "#! /bin/sh" >conf$$.sh
16742   echo  "exit 0"   >>conf$$.sh
16743   chmod +x conf$$.sh
16744   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16745     PATH_SEPARATOR=';'
16746   else
16747     PATH_SEPARATOR=:
16748   fi
16749   rm -f conf$$.sh
16750 fi
16751 ac_prog=ld
16752 if test "$GCC" = yes; then
16753   # Check if gcc -print-prog-name=ld gives a path.
16754   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16755 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16756   case $host in
16757   *-*-mingw*)
16758     # gcc leaves a trailing carriage return which upsets mingw
16759     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16760   *)
16761     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16762   esac
16763   case $ac_prog in
16764     # Accept absolute paths.
16765     [\\/]* | [A-Za-z]:[\\/]*)
16766       re_direlt='/[^/][^/]*/\.\./'
16767       # Canonicalize the path of ld
16768       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16769       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16770         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16771       done
16772       test -z "$LD" && LD="$ac_prog"
16773       ;;
16774   "")
16775     # If it fails, then pretend we aren't using GCC.
16776     ac_prog=ld
16777     ;;
16778   *)
16779     # If it is relative, then search for the first ld in PATH.
16780     with_gnu_ld=unknown
16781     ;;
16782   esac
16783 elif test "$with_gnu_ld" = yes; then
16784   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16785 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16786 else
16787   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16788 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16789 fi
16790 if test "${acl_cv_path_LD+set}" = set; then
16791   echo $ECHO_N "(cached) $ECHO_C" >&6
16792 else
16793   if test -z "$LD"; then
16794   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16795   for ac_dir in $PATH; do
16796     test -z "$ac_dir" && ac_dir=.
16797     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16798       acl_cv_path_LD="$ac_dir/$ac_prog"
16799       # Check to see if the program is GNU ld.  I'd rather use --version,
16800       # but apparently some GNU ld's only accept -v.
16801       # Break only if it was the GNU/non-GNU ld that we prefer.
16802       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16803       *GNU* | *'with BFD'*)
16804         test "$with_gnu_ld" != no && break ;;
16805       *)
16806         test "$with_gnu_ld" != yes && break ;;
16807       esac
16808     fi
16809   done
16810   IFS="$ac_save_ifs"
16811 else
16812   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16813 fi
16814 fi
16815
16816 LD="$acl_cv_path_LD"
16817 if test -n "$LD"; then
16818   { echo "$as_me:$LINENO: result: $LD" >&5
16819 echo "${ECHO_T}$LD" >&6; }
16820 else
16821   { echo "$as_me:$LINENO: result: no" >&5
16822 echo "${ECHO_T}no" >&6; }
16823 fi
16824 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16825 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16826    { (exit 1); exit 1; }; }
16827 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16828 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16829 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16830   echo $ECHO_N "(cached) $ECHO_C" >&6
16831 else
16832   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16833 case `$LD -v 2>&1 </dev/null` in
16834 *GNU* | *'with BFD'*)
16835   acl_cv_prog_gnu_ld=yes ;;
16836 *)
16837   acl_cv_prog_gnu_ld=no ;;
16838 esac
16839 fi
16840 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16841 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16842 with_gnu_ld=$acl_cv_prog_gnu_ld
16843
16844
16845
16846
16847                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16848 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16849 if test "${acl_cv_rpath+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852
16853     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16854     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16855     . ./conftest.sh
16856     rm -f ./conftest.sh
16857     acl_cv_rpath=done
16858
16859 fi
16860 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16861 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16862   wl="$acl_cv_wl"
16863   libext="$acl_cv_libext"
16864   shlibext="$acl_cv_shlibext"
16865   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16866   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16867   hardcode_direct="$acl_cv_hardcode_direct"
16868   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16869     # Check whether --enable-rpath was given.
16870 if test "${enable_rpath+set}" = set; then
16871   enableval=$enable_rpath; :
16872 else
16873   enable_rpath=yes
16874 fi
16875
16876
16877
16878
16879
16880
16881
16882
16883     use_additional=yes
16884
16885   acl_save_prefix="$prefix"
16886   prefix="$acl_final_prefix"
16887   acl_save_exec_prefix="$exec_prefix"
16888   exec_prefix="$acl_final_exec_prefix"
16889
16890     eval additional_includedir=\"$includedir\"
16891     eval additional_libdir=\"$libdir\"
16892
16893   exec_prefix="$acl_save_exec_prefix"
16894   prefix="$acl_save_prefix"
16895
16896
16897 # Check whether --with-libiconv-prefix was given.
16898 if test "${with_libiconv_prefix+set}" = set; then
16899   withval=$with_libiconv_prefix;
16900     if test "X$withval" = "Xno"; then
16901       use_additional=no
16902     else
16903       if test "X$withval" = "X"; then
16904
16905   acl_save_prefix="$prefix"
16906   prefix="$acl_final_prefix"
16907   acl_save_exec_prefix="$exec_prefix"
16908   exec_prefix="$acl_final_exec_prefix"
16909
16910           eval additional_includedir=\"$includedir\"
16911           eval additional_libdir=\"$libdir\"
16912
16913   exec_prefix="$acl_save_exec_prefix"
16914   prefix="$acl_save_prefix"
16915
16916       else
16917         additional_includedir="$withval/include"
16918         additional_libdir="$withval/lib"
16919       fi
16920     fi
16921
16922 fi
16923
16924       LIBICONV=
16925   LTLIBICONV=
16926   INCICONV=
16927   rpathdirs=
16928   ltrpathdirs=
16929   names_already_handled=
16930   names_next_round='iconv '
16931   while test -n "$names_next_round"; do
16932     names_this_round="$names_next_round"
16933     names_next_round=
16934     for name in $names_this_round; do
16935       already_handled=
16936       for n in $names_already_handled; do
16937         if test "$n" = "$name"; then
16938           already_handled=yes
16939           break
16940         fi
16941       done
16942       if test -z "$already_handled"; then
16943         names_already_handled="$names_already_handled $name"
16944                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16945         eval value=\"\$HAVE_LIB$uppername\"
16946         if test -n "$value"; then
16947           if test "$value" = yes; then
16948             eval value=\"\$LIB$uppername\"
16949             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16950             eval value=\"\$LTLIB$uppername\"
16951             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16952           else
16953                                     :
16954           fi
16955         else
16956                               found_dir=
16957           found_la=
16958           found_so=
16959           found_a=
16960           if test $use_additional = yes; then
16961             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16962               found_dir="$additional_libdir"
16963               found_so="$additional_libdir/lib$name.$shlibext"
16964               if test -f "$additional_libdir/lib$name.la"; then
16965                 found_la="$additional_libdir/lib$name.la"
16966               fi
16967             else
16968               if test -f "$additional_libdir/lib$name.$libext"; then
16969                 found_dir="$additional_libdir"
16970                 found_a="$additional_libdir/lib$name.$libext"
16971                 if test -f "$additional_libdir/lib$name.la"; then
16972                   found_la="$additional_libdir/lib$name.la"
16973                 fi
16974               fi
16975             fi
16976           fi
16977           if test "X$found_dir" = "X"; then
16978             for x in $LDFLAGS $LTLIBICONV; do
16979
16980   acl_save_prefix="$prefix"
16981   prefix="$acl_final_prefix"
16982   acl_save_exec_prefix="$exec_prefix"
16983   exec_prefix="$acl_final_exec_prefix"
16984   eval x=\"$x\"
16985   exec_prefix="$acl_save_exec_prefix"
16986   prefix="$acl_save_prefix"
16987
16988               case "$x" in
16989                 -L*)
16990                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16991                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16992                     found_dir="$dir"
16993                     found_so="$dir/lib$name.$shlibext"
16994                     if test -f "$dir/lib$name.la"; then
16995                       found_la="$dir/lib$name.la"
16996                     fi
16997                   else
16998                     if test -f "$dir/lib$name.$libext"; then
16999                       found_dir="$dir"
17000                       found_a="$dir/lib$name.$libext"
17001                       if test -f "$dir/lib$name.la"; then
17002                         found_la="$dir/lib$name.la"
17003                       fi
17004                     fi
17005                   fi
17006                   ;;
17007               esac
17008               if test "X$found_dir" != "X"; then
17009                 break
17010               fi
17011             done
17012           fi
17013           if test "X$found_dir" != "X"; then
17014                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17015             if test "X$found_so" != "X"; then
17016                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17017                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17018               else
17019                                                                                 haveit=
17020                 for x in $ltrpathdirs; do
17021                   if test "X$x" = "X$found_dir"; then
17022                     haveit=yes
17023                     break
17024                   fi
17025                 done
17026                 if test -z "$haveit"; then
17027                   ltrpathdirs="$ltrpathdirs $found_dir"
17028                 fi
17029                                 if test "$hardcode_direct" = yes; then
17030                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17031                 else
17032                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17033                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17034                                                             haveit=
17035                     for x in $rpathdirs; do
17036                       if test "X$x" = "X$found_dir"; then
17037                         haveit=yes
17038                         break
17039                       fi
17040                     done
17041                     if test -z "$haveit"; then
17042                       rpathdirs="$rpathdirs $found_dir"
17043                     fi
17044                   else
17045                                                                                 haveit=
17046                     for x in $LDFLAGS $LIBICONV; do
17047
17048   acl_save_prefix="$prefix"
17049   prefix="$acl_final_prefix"
17050   acl_save_exec_prefix="$exec_prefix"
17051   exec_prefix="$acl_final_exec_prefix"
17052   eval x=\"$x\"
17053   exec_prefix="$acl_save_exec_prefix"
17054   prefix="$acl_save_prefix"
17055
17056                       if test "X$x" = "X-L$found_dir"; then
17057                         haveit=yes
17058                         break
17059                       fi
17060                     done
17061                     if test -z "$haveit"; then
17062                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17063                     fi
17064                     if test "$hardcode_minus_L" != no; then
17065                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17066                     else
17067                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17068                     fi
17069                   fi
17070                 fi
17071               fi
17072             else
17073               if test "X$found_a" != "X"; then
17074                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17075               else
17076                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17077               fi
17078             fi
17079                         additional_includedir=
17080             case "$found_dir" in
17081               */lib | */lib/)
17082                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17083                 additional_includedir="$basedir/include"
17084                 ;;
17085             esac
17086             if test "X$additional_includedir" != "X"; then
17087                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17088                 haveit=
17089                 if test "X$additional_includedir" = "X/usr/local/include"; then
17090                   if test -n "$GCC"; then
17091                     case $host_os in
17092                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17093                     esac
17094                   fi
17095                 fi
17096                 if test -z "$haveit"; then
17097                   for x in $CPPFLAGS $INCICONV; do
17098
17099   acl_save_prefix="$prefix"
17100   prefix="$acl_final_prefix"
17101   acl_save_exec_prefix="$exec_prefix"
17102   exec_prefix="$acl_final_exec_prefix"
17103   eval x=\"$x\"
17104   exec_prefix="$acl_save_exec_prefix"
17105   prefix="$acl_save_prefix"
17106
17107                     if test "X$x" = "X-I$additional_includedir"; then
17108                       haveit=yes
17109                       break
17110                     fi
17111                   done
17112                   if test -z "$haveit"; then
17113                     if test -d "$additional_includedir"; then
17114                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17115                     fi
17116                   fi
17117                 fi
17118               fi
17119             fi
17120                         if test -n "$found_la"; then
17121                                                         save_libdir="$libdir"
17122               case "$found_la" in
17123                 */* | *\\*) . "$found_la" ;;
17124                 *) . "./$found_la" ;;
17125               esac
17126               libdir="$save_libdir"
17127                             for dep in $dependency_libs; do
17128                 case "$dep" in
17129                   -L*)
17130                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17131                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17132                       haveit=
17133                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17134                         if test -n "$GCC"; then
17135                           case $host_os in
17136                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17137                           esac
17138                         fi
17139                       fi
17140                       if test -z "$haveit"; then
17141                         haveit=
17142                         for x in $LDFLAGS $LIBICONV; do
17143
17144   acl_save_prefix="$prefix"
17145   prefix="$acl_final_prefix"
17146   acl_save_exec_prefix="$exec_prefix"
17147   exec_prefix="$acl_final_exec_prefix"
17148   eval x=\"$x\"
17149   exec_prefix="$acl_save_exec_prefix"
17150   prefix="$acl_save_prefix"
17151
17152                           if test "X$x" = "X-L$additional_libdir"; then
17153                             haveit=yes
17154                             break
17155                           fi
17156                         done
17157                         if test -z "$haveit"; then
17158                           if test -d "$additional_libdir"; then
17159                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17160                           fi
17161                         fi
17162                         haveit=
17163                         for x in $LDFLAGS $LTLIBICONV; do
17164
17165   acl_save_prefix="$prefix"
17166   prefix="$acl_final_prefix"
17167   acl_save_exec_prefix="$exec_prefix"
17168   exec_prefix="$acl_final_exec_prefix"
17169   eval x=\"$x\"
17170   exec_prefix="$acl_save_exec_prefix"
17171   prefix="$acl_save_prefix"
17172
17173                           if test "X$x" = "X-L$additional_libdir"; then
17174                             haveit=yes
17175                             break
17176                           fi
17177                         done
17178                         if test -z "$haveit"; then
17179                           if test -d "$additional_libdir"; then
17180                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17181                           fi
17182                         fi
17183                       fi
17184                     fi
17185                     ;;
17186                   -R*)
17187                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17188                     if test "$enable_rpath" != no; then
17189                                                                   haveit=
17190                       for x in $rpathdirs; do
17191                         if test "X$x" = "X$dir"; then
17192                           haveit=yes
17193                           break
17194                         fi
17195                       done
17196                       if test -z "$haveit"; then
17197                         rpathdirs="$rpathdirs $dir"
17198                       fi
17199                                                                   haveit=
17200                       for x in $ltrpathdirs; do
17201                         if test "X$x" = "X$dir"; then
17202                           haveit=yes
17203                           break
17204                         fi
17205                       done
17206                       if test -z "$haveit"; then
17207                         ltrpathdirs="$ltrpathdirs $dir"
17208                       fi
17209                     fi
17210                     ;;
17211                   -l*)
17212                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17213                     ;;
17214                   *.la)
17215                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17216                     ;;
17217                   *)
17218                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17219                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17220                     ;;
17221                 esac
17222               done
17223             fi
17224           else
17225                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17226             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17227           fi
17228         fi
17229       fi
17230     done
17231   done
17232   if test "X$rpathdirs" != "X"; then
17233     if test -n "$hardcode_libdir_separator"; then
17234                         alldirs=
17235       for found_dir in $rpathdirs; do
17236         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17237       done
17238             acl_save_libdir="$libdir"
17239       libdir="$alldirs"
17240       eval flag=\"$hardcode_libdir_flag_spec\"
17241       libdir="$acl_save_libdir"
17242       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17243     else
17244             for found_dir in $rpathdirs; do
17245         acl_save_libdir="$libdir"
17246         libdir="$found_dir"
17247         eval flag=\"$hardcode_libdir_flag_spec\"
17248         libdir="$acl_save_libdir"
17249         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17250       done
17251     fi
17252   fi
17253   if test "X$ltrpathdirs" != "X"; then
17254             for found_dir in $ltrpathdirs; do
17255       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17256     done
17257   fi
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17277 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17278 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17279   echo $ECHO_N "(cached) $ECHO_C" >&6
17280 else
17281   gt_save_CPPFLAGS="$CPPFLAGS"
17282      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17283      gt_save_LIBS="$LIBS"
17284      LIBS="$LIBS -framework CoreFoundation"
17285      cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h.  */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h.  */
17291 #include <CFPreferences.h>
17292 int
17293 main ()
17294 {
17295 CFPreferencesCopyAppValue(NULL, NULL)
17296   ;
17297   return 0;
17298 }
17299 _ACEOF
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (ac_try="$ac_link"
17302 case "(($ac_try" in
17303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304   *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307   (eval "$ac_link") 2>conftest.er1
17308   ac_status=$?
17309   grep -v '^ *+' conftest.er1 >conftest.err
17310   rm -f conftest.er1
17311   cat conftest.err >&5
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); } && {
17314          test -z "$ac_c_werror_flag" ||
17315          test ! -s conftest.err
17316        } && test -s conftest$ac_exeext &&
17317        $as_test_x conftest$ac_exeext; then
17318   gt_cv_func_CFPreferencesCopyAppValue=yes
17319 else
17320   echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17322
17323         gt_cv_func_CFPreferencesCopyAppValue=no
17324 fi
17325
17326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17327       conftest$ac_exeext conftest.$ac_ext
17328      CPPFLAGS="$gt_save_CPPFLAGS"
17329      LIBS="$gt_save_LIBS"
17330 fi
17331 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17332 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17333   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17334
17335 cat >>confdefs.h <<\_ACEOF
17336 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17337 _ACEOF
17338
17339   fi
17340     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17341 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17342 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17343   echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345   gt_save_CPPFLAGS="$CPPFLAGS"
17346      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17347      gt_save_LIBS="$LIBS"
17348      LIBS="$LIBS -framework CoreFoundation"
17349      cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h.  */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h.  */
17355 #include <CFLocale.h>
17356 int
17357 main ()
17358 {
17359 CFLocaleCopyCurrent();
17360   ;
17361   return 0;
17362 }
17363 _ACEOF
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (ac_try="$ac_link"
17366 case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371   (eval "$ac_link") 2>conftest.er1
17372   ac_status=$?
17373   grep -v '^ *+' conftest.er1 >conftest.err
17374   rm -f conftest.er1
17375   cat conftest.err >&5
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } && {
17378          test -z "$ac_c_werror_flag" ||
17379          test ! -s conftest.err
17380        } && test -s conftest$ac_exeext &&
17381        $as_test_x conftest$ac_exeext; then
17382   gt_cv_func_CFLocaleCopyCurrent=yes
17383 else
17384   echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17386
17387         gt_cv_func_CFLocaleCopyCurrent=no
17388 fi
17389
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391       conftest$ac_exeext conftest.$ac_ext
17392      CPPFLAGS="$gt_save_CPPFLAGS"
17393      LIBS="$gt_save_LIBS"
17394 fi
17395 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17396 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17397   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17398
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_CFLOCALECOPYCURRENT 1
17401 _ACEOF
17402
17403   fi
17404   INTL_MACOSX_LIBS=
17405   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17406     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17407   fi
17408
17409
17410
17411
17412   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17413 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17414     # Check whether --enable-nls was given.
17415 if test "${enable_nls+set}" = set; then
17416   enableval=$enable_nls; USE_NLS=$enableval
17417 else
17418   USE_NLS=yes
17419 fi
17420
17421   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17422 echo "${ECHO_T}$USE_NLS" >&6; }
17423
17424
17425
17426
17427   LIBINTL=
17428   LTLIBINTL=
17429   POSUB=
17430
17431     if test "$USE_NLS" = "yes"; then
17432     gt_use_preinstalled_gnugettext=no
17433
17434
17435
17436
17437
17438
17439         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17440 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17441 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17442   echo $ECHO_N "(cached) $ECHO_C" >&6
17443 else
17444   cat >conftest.$ac_ext <<_ACEOF
17445 /* confdefs.h.  */
17446 _ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h.  */
17450 #include <libintl.h>
17451 extern int _nl_msg_cat_cntr;
17452 extern int *_nl_domain_bindings;
17453 int
17454 main ()
17455 {
17456 bindtextdomain ("", "");
17457 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17458   ;
17459   return 0;
17460 }
17461 _ACEOF
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (ac_try="$ac_link"
17464 case "(($ac_try" in
17465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466   *) ac_try_echo=$ac_try;;
17467 esac
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469   (eval "$ac_link") 2>conftest.er1
17470   ac_status=$?
17471   grep -v '^ *+' conftest.er1 >conftest.err
17472   rm -f conftest.er1
17473   cat conftest.err >&5
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); } && {
17476          test -z "$ac_c_werror_flag" ||
17477          test ! -s conftest.err
17478        } && test -s conftest$ac_exeext &&
17479        $as_test_x conftest$ac_exeext; then
17480   gt_cv_func_gnugettext1_libc=yes
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485         gt_cv_func_gnugettext1_libc=no
17486 fi
17487
17488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17489       conftest$ac_exeext conftest.$ac_ext
17490 fi
17491 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17492 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17493
17494         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17495
17496
17497
17498
17499
17500           am_save_CPPFLAGS="$CPPFLAGS"
17501
17502   for element in $INCICONV; do
17503     haveit=
17504     for x in $CPPFLAGS; do
17505
17506   acl_save_prefix="$prefix"
17507   prefix="$acl_final_prefix"
17508   acl_save_exec_prefix="$exec_prefix"
17509   exec_prefix="$acl_final_exec_prefix"
17510   eval x=\"$x\"
17511   exec_prefix="$acl_save_exec_prefix"
17512   prefix="$acl_save_prefix"
17513
17514       if test "X$x" = "X$element"; then
17515         haveit=yes
17516         break
17517       fi
17518     done
17519     if test -z "$haveit"; then
17520       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17521     fi
17522   done
17523
17524
17525   { echo "$as_me:$LINENO: checking for iconv" >&5
17526 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17527 if test "${am_cv_func_iconv+set}" = set; then
17528   echo $ECHO_N "(cached) $ECHO_C" >&6
17529 else
17530
17531     am_cv_func_iconv="no, consider installing GNU libiconv"
17532     am_cv_lib_iconv=no
17533     cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 #include <stdlib.h>
17540 #include <iconv.h>
17541 int
17542 main ()
17543 {
17544 iconv_t cd = iconv_open("","");
17545        iconv(cd,NULL,NULL,NULL,NULL);
17546        iconv_close(cd);
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555   *) ac_try_echo=$ac_try;;
17556 esac
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558   (eval "$ac_link") 2>conftest.er1
17559   ac_status=$?
17560   grep -v '^ *+' conftest.er1 >conftest.err
17561   rm -f conftest.er1
17562   cat conftest.err >&5
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); } && {
17565          test -z "$ac_c_werror_flag" ||
17566          test ! -s conftest.err
17567        } && test -s conftest$ac_exeext &&
17568        $as_test_x conftest$ac_exeext; then
17569   am_cv_func_iconv=yes
17570 else
17571   echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17573
17574
17575 fi
17576
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578       conftest$ac_exeext conftest.$ac_ext
17579     if test "$am_cv_func_iconv" != yes; then
17580       am_save_LIBS="$LIBS"
17581       LIBS="$LIBS $LIBICONV"
17582       cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h.  */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h.  */
17588 #include <stdlib.h>
17589 #include <iconv.h>
17590 int
17591 main ()
17592 {
17593 iconv_t cd = iconv_open("","");
17594          iconv(cd,NULL,NULL,NULL,NULL);
17595          iconv_close(cd);
17596   ;
17597   return 0;
17598 }
17599 _ACEOF
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604   *) ac_try_echo=$ac_try;;
17605 esac
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607   (eval "$ac_link") 2>conftest.er1
17608   ac_status=$?
17609   grep -v '^ *+' conftest.er1 >conftest.err
17610   rm -f conftest.er1
17611   cat conftest.err >&5
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); } && {
17614          test -z "$ac_c_werror_flag" ||
17615          test ! -s conftest.err
17616        } && test -s conftest$ac_exeext &&
17617        $as_test_x conftest$ac_exeext; then
17618   am_cv_lib_iconv=yes
17619         am_cv_func_iconv=yes
17620 else
17621   echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17623
17624
17625 fi
17626
17627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17628       conftest$ac_exeext conftest.$ac_ext
17629       LIBS="$am_save_LIBS"
17630     fi
17631
17632 fi
17633 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17634 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17635   if test "$am_cv_func_iconv" = yes; then
17636
17637 cat >>confdefs.h <<\_ACEOF
17638 #define HAVE_ICONV 1
17639 _ACEOF
17640
17641   fi
17642   if test "$am_cv_lib_iconv" = yes; then
17643     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17644 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17645     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17646 echo "${ECHO_T}$LIBICONV" >&6; }
17647   else
17648             CPPFLAGS="$am_save_CPPFLAGS"
17649     LIBICONV=
17650     LTLIBICONV=
17651   fi
17652
17653
17654
17655
17656
17657
17658     use_additional=yes
17659
17660   acl_save_prefix="$prefix"
17661   prefix="$acl_final_prefix"
17662   acl_save_exec_prefix="$exec_prefix"
17663   exec_prefix="$acl_final_exec_prefix"
17664
17665     eval additional_includedir=\"$includedir\"
17666     eval additional_libdir=\"$libdir\"
17667
17668   exec_prefix="$acl_save_exec_prefix"
17669   prefix="$acl_save_prefix"
17670
17671
17672 # Check whether --with-libintl-prefix was given.
17673 if test "${with_libintl_prefix+set}" = set; then
17674   withval=$with_libintl_prefix;
17675     if test "X$withval" = "Xno"; then
17676       use_additional=no
17677     else
17678       if test "X$withval" = "X"; then
17679
17680   acl_save_prefix="$prefix"
17681   prefix="$acl_final_prefix"
17682   acl_save_exec_prefix="$exec_prefix"
17683   exec_prefix="$acl_final_exec_prefix"
17684
17685           eval additional_includedir=\"$includedir\"
17686           eval additional_libdir=\"$libdir\"
17687
17688   exec_prefix="$acl_save_exec_prefix"
17689   prefix="$acl_save_prefix"
17690
17691       else
17692         additional_includedir="$withval/include"
17693         additional_libdir="$withval/lib"
17694       fi
17695     fi
17696
17697 fi
17698
17699       LIBINTL=
17700   LTLIBINTL=
17701   INCINTL=
17702   rpathdirs=
17703   ltrpathdirs=
17704   names_already_handled=
17705   names_next_round='intl '
17706   while test -n "$names_next_round"; do
17707     names_this_round="$names_next_round"
17708     names_next_round=
17709     for name in $names_this_round; do
17710       already_handled=
17711       for n in $names_already_handled; do
17712         if test "$n" = "$name"; then
17713           already_handled=yes
17714           break
17715         fi
17716       done
17717       if test -z "$already_handled"; then
17718         names_already_handled="$names_already_handled $name"
17719                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17720         eval value=\"\$HAVE_LIB$uppername\"
17721         if test -n "$value"; then
17722           if test "$value" = yes; then
17723             eval value=\"\$LIB$uppername\"
17724             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17725             eval value=\"\$LTLIB$uppername\"
17726             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17727           else
17728                                     :
17729           fi
17730         else
17731                               found_dir=
17732           found_la=
17733           found_so=
17734           found_a=
17735           if test $use_additional = yes; then
17736             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17737               found_dir="$additional_libdir"
17738               found_so="$additional_libdir/lib$name.$shlibext"
17739               if test -f "$additional_libdir/lib$name.la"; then
17740                 found_la="$additional_libdir/lib$name.la"
17741               fi
17742             else
17743               if test -f "$additional_libdir/lib$name.$libext"; then
17744                 found_dir="$additional_libdir"
17745                 found_a="$additional_libdir/lib$name.$libext"
17746                 if test -f "$additional_libdir/lib$name.la"; then
17747                   found_la="$additional_libdir/lib$name.la"
17748                 fi
17749               fi
17750             fi
17751           fi
17752           if test "X$found_dir" = "X"; then
17753             for x in $LDFLAGS $LTLIBINTL; do
17754
17755   acl_save_prefix="$prefix"
17756   prefix="$acl_final_prefix"
17757   acl_save_exec_prefix="$exec_prefix"
17758   exec_prefix="$acl_final_exec_prefix"
17759   eval x=\"$x\"
17760   exec_prefix="$acl_save_exec_prefix"
17761   prefix="$acl_save_prefix"
17762
17763               case "$x" in
17764                 -L*)
17765                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17766                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17767                     found_dir="$dir"
17768                     found_so="$dir/lib$name.$shlibext"
17769                     if test -f "$dir/lib$name.la"; then
17770                       found_la="$dir/lib$name.la"
17771                     fi
17772                   else
17773                     if test -f "$dir/lib$name.$libext"; then
17774                       found_dir="$dir"
17775                       found_a="$dir/lib$name.$libext"
17776                       if test -f "$dir/lib$name.la"; then
17777                         found_la="$dir/lib$name.la"
17778                       fi
17779                     fi
17780                   fi
17781                   ;;
17782               esac
17783               if test "X$found_dir" != "X"; then
17784                 break
17785               fi
17786             done
17787           fi
17788           if test "X$found_dir" != "X"; then
17789                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17790             if test "X$found_so" != "X"; then
17791                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17792                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17793               else
17794                                                                                 haveit=
17795                 for x in $ltrpathdirs; do
17796                   if test "X$x" = "X$found_dir"; then
17797                     haveit=yes
17798                     break
17799                   fi
17800                 done
17801                 if test -z "$haveit"; then
17802                   ltrpathdirs="$ltrpathdirs $found_dir"
17803                 fi
17804                                 if test "$hardcode_direct" = yes; then
17805                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17806                 else
17807                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17808                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17809                                                             haveit=
17810                     for x in $rpathdirs; do
17811                       if test "X$x" = "X$found_dir"; then
17812                         haveit=yes
17813                         break
17814                       fi
17815                     done
17816                     if test -z "$haveit"; then
17817                       rpathdirs="$rpathdirs $found_dir"
17818                     fi
17819                   else
17820                                                                                 haveit=
17821                     for x in $LDFLAGS $LIBINTL; do
17822
17823   acl_save_prefix="$prefix"
17824   prefix="$acl_final_prefix"
17825   acl_save_exec_prefix="$exec_prefix"
17826   exec_prefix="$acl_final_exec_prefix"
17827   eval x=\"$x\"
17828   exec_prefix="$acl_save_exec_prefix"
17829   prefix="$acl_save_prefix"
17830
17831                       if test "X$x" = "X-L$found_dir"; then
17832                         haveit=yes
17833                         break
17834                       fi
17835                     done
17836                     if test -z "$haveit"; then
17837                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17838                     fi
17839                     if test "$hardcode_minus_L" != no; then
17840                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17841                     else
17842                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17843                     fi
17844                   fi
17845                 fi
17846               fi
17847             else
17848               if test "X$found_a" != "X"; then
17849                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17850               else
17851                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17852               fi
17853             fi
17854                         additional_includedir=
17855             case "$found_dir" in
17856               */lib | */lib/)
17857                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17858                 additional_includedir="$basedir/include"
17859                 ;;
17860             esac
17861             if test "X$additional_includedir" != "X"; then
17862                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17863                 haveit=
17864                 if test "X$additional_includedir" = "X/usr/local/include"; then
17865                   if test -n "$GCC"; then
17866                     case $host_os in
17867                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17868                     esac
17869                   fi
17870                 fi
17871                 if test -z "$haveit"; then
17872                   for x in $CPPFLAGS $INCINTL; do
17873
17874   acl_save_prefix="$prefix"
17875   prefix="$acl_final_prefix"
17876   acl_save_exec_prefix="$exec_prefix"
17877   exec_prefix="$acl_final_exec_prefix"
17878   eval x=\"$x\"
17879   exec_prefix="$acl_save_exec_prefix"
17880   prefix="$acl_save_prefix"
17881
17882                     if test "X$x" = "X-I$additional_includedir"; then
17883                       haveit=yes
17884                       break
17885                     fi
17886                   done
17887                   if test -z "$haveit"; then
17888                     if test -d "$additional_includedir"; then
17889                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17890                     fi
17891                   fi
17892                 fi
17893               fi
17894             fi
17895                         if test -n "$found_la"; then
17896                                                         save_libdir="$libdir"
17897               case "$found_la" in
17898                 */* | *\\*) . "$found_la" ;;
17899                 *) . "./$found_la" ;;
17900               esac
17901               libdir="$save_libdir"
17902                             for dep in $dependency_libs; do
17903                 case "$dep" in
17904                   -L*)
17905                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17906                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17907                       haveit=
17908                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17909                         if test -n "$GCC"; then
17910                           case $host_os in
17911                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17912                           esac
17913                         fi
17914                       fi
17915                       if test -z "$haveit"; then
17916                         haveit=
17917                         for x in $LDFLAGS $LIBINTL; do
17918
17919   acl_save_prefix="$prefix"
17920   prefix="$acl_final_prefix"
17921   acl_save_exec_prefix="$exec_prefix"
17922   exec_prefix="$acl_final_exec_prefix"
17923   eval x=\"$x\"
17924   exec_prefix="$acl_save_exec_prefix"
17925   prefix="$acl_save_prefix"
17926
17927                           if test "X$x" = "X-L$additional_libdir"; then
17928                             haveit=yes
17929                             break
17930                           fi
17931                         done
17932                         if test -z "$haveit"; then
17933                           if test -d "$additional_libdir"; then
17934                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17935                           fi
17936                         fi
17937                         haveit=
17938                         for x in $LDFLAGS $LTLIBINTL; do
17939
17940   acl_save_prefix="$prefix"
17941   prefix="$acl_final_prefix"
17942   acl_save_exec_prefix="$exec_prefix"
17943   exec_prefix="$acl_final_exec_prefix"
17944   eval x=\"$x\"
17945   exec_prefix="$acl_save_exec_prefix"
17946   prefix="$acl_save_prefix"
17947
17948                           if test "X$x" = "X-L$additional_libdir"; then
17949                             haveit=yes
17950                             break
17951                           fi
17952                         done
17953                         if test -z "$haveit"; then
17954                           if test -d "$additional_libdir"; then
17955                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17956                           fi
17957                         fi
17958                       fi
17959                     fi
17960                     ;;
17961                   -R*)
17962                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17963                     if test "$enable_rpath" != no; then
17964                                                                   haveit=
17965                       for x in $rpathdirs; do
17966                         if test "X$x" = "X$dir"; then
17967                           haveit=yes
17968                           break
17969                         fi
17970                       done
17971                       if test -z "$haveit"; then
17972                         rpathdirs="$rpathdirs $dir"
17973                       fi
17974                                                                   haveit=
17975                       for x in $ltrpathdirs; do
17976                         if test "X$x" = "X$dir"; then
17977                           haveit=yes
17978                           break
17979                         fi
17980                       done
17981                       if test -z "$haveit"; then
17982                         ltrpathdirs="$ltrpathdirs $dir"
17983                       fi
17984                     fi
17985                     ;;
17986                   -l*)
17987                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17988                     ;;
17989                   *.la)
17990                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17991                     ;;
17992                   *)
17993                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17994                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17995                     ;;
17996                 esac
17997               done
17998             fi
17999           else
18000                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18001             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18002           fi
18003         fi
18004       fi
18005     done
18006   done
18007   if test "X$rpathdirs" != "X"; then
18008     if test -n "$hardcode_libdir_separator"; then
18009                         alldirs=
18010       for found_dir in $rpathdirs; do
18011         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18012       done
18013             acl_save_libdir="$libdir"
18014       libdir="$alldirs"
18015       eval flag=\"$hardcode_libdir_flag_spec\"
18016       libdir="$acl_save_libdir"
18017       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18018     else
18019             for found_dir in $rpathdirs; do
18020         acl_save_libdir="$libdir"
18021         libdir="$found_dir"
18022         eval flag=\"$hardcode_libdir_flag_spec\"
18023         libdir="$acl_save_libdir"
18024         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18025       done
18026     fi
18027   fi
18028   if test "X$ltrpathdirs" != "X"; then
18029             for found_dir in $ltrpathdirs; do
18030       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18031     done
18032   fi
18033
18034           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18035 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18036 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18037   echo $ECHO_N "(cached) $ECHO_C" >&6
18038 else
18039   gt_save_CPPFLAGS="$CPPFLAGS"
18040             CPPFLAGS="$CPPFLAGS $INCINTL"
18041             gt_save_LIBS="$LIBS"
18042             LIBS="$LIBS $LIBINTL"
18043                         cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h.  */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h.  */
18049 #include <libintl.h>
18050 extern int _nl_msg_cat_cntr;
18051 extern
18052 #ifdef __cplusplus
18053 "C"
18054 #endif
18055 const char *_nl_expand_alias (const char *);
18056 int
18057 main ()
18058 {
18059 bindtextdomain ("", "");
18060 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18061   ;
18062   return 0;
18063 }
18064 _ACEOF
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069   *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072   (eval "$ac_link") 2>conftest.er1
18073   ac_status=$?
18074   grep -v '^ *+' conftest.er1 >conftest.err
18075   rm -f conftest.er1
18076   cat conftest.err >&5
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); } && {
18079          test -z "$ac_c_werror_flag" ||
18080          test ! -s conftest.err
18081        } && test -s conftest$ac_exeext &&
18082        $as_test_x conftest$ac_exeext; then
18083   gt_cv_func_gnugettext1_libintl=yes
18084 else
18085   echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18087
18088         gt_cv_func_gnugettext1_libintl=no
18089 fi
18090
18091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18092       conftest$ac_exeext conftest.$ac_ext
18093                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18094               LIBS="$LIBS $LIBICONV"
18095               cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h.  */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h.  */
18101 #include <libintl.h>
18102 extern int _nl_msg_cat_cntr;
18103 extern
18104 #ifdef __cplusplus
18105 "C"
18106 #endif
18107 const char *_nl_expand_alias (const char *);
18108 int
18109 main ()
18110 {
18111 bindtextdomain ("", "");
18112 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext conftest$ac_exeext
18118 if { (ac_try="$ac_link"
18119 case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_link") 2>conftest.er1
18125   ac_status=$?
18126   grep -v '^ *+' conftest.er1 >conftest.err
18127   rm -f conftest.er1
18128   cat conftest.err >&5
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); } && {
18131          test -z "$ac_c_werror_flag" ||
18132          test ! -s conftest.err
18133        } && test -s conftest$ac_exeext &&
18134        $as_test_x conftest$ac_exeext; then
18135   LIBINTL="$LIBINTL $LIBICONV"
18136                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18137                 gt_cv_func_gnugettext1_libintl=yes
18138
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143
18144 fi
18145
18146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18147       conftest$ac_exeext conftest.$ac_ext
18148             fi
18149             CPPFLAGS="$gt_save_CPPFLAGS"
18150             LIBS="$gt_save_LIBS"
18151 fi
18152 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18153 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18154         fi
18155
18156                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18157            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18158                 && test "$PACKAGE" != gettext-runtime \
18159                 && test "$PACKAGE" != gettext-tools; }; then
18160           gt_use_preinstalled_gnugettext=yes
18161         else
18162                     LIBINTL=
18163           LTLIBINTL=
18164           INCINTL=
18165         fi
18166
18167
18168
18169     if test -n "$INTL_MACOSX_LIBS"; then
18170       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18171          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18172                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18173         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18174       fi
18175     fi
18176
18177     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18178        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18179
18180 cat >>confdefs.h <<\_ACEOF
18181 #define ENABLE_NLS 1
18182 _ACEOF
18183
18184     else
18185       USE_NLS=no
18186     fi
18187   fi
18188
18189   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18190 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18191   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18192 echo "${ECHO_T}$USE_NLS" >&6; }
18193   if test "$USE_NLS" = "yes"; then
18194     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18195 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18196     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18197       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18198         gt_source="external libintl"
18199       else
18200         gt_source="libc"
18201       fi
18202     else
18203       gt_source="included intl directory"
18204     fi
18205     { echo "$as_me:$LINENO: result: $gt_source" >&5
18206 echo "${ECHO_T}$gt_source" >&6; }
18207   fi
18208
18209   if test "$USE_NLS" = "yes"; then
18210
18211     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18212       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18213         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18214 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18215         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18216 echo "${ECHO_T}$LIBINTL" >&6; }
18217
18218   for element in $INCINTL; do
18219     haveit=
18220     for x in $CPPFLAGS; do
18221
18222   acl_save_prefix="$prefix"
18223   prefix="$acl_final_prefix"
18224   acl_save_exec_prefix="$exec_prefix"
18225   exec_prefix="$acl_final_exec_prefix"
18226   eval x=\"$x\"
18227   exec_prefix="$acl_save_exec_prefix"
18228   prefix="$acl_save_prefix"
18229
18230       if test "X$x" = "X$element"; then
18231         haveit=yes
18232         break
18233       fi
18234     done
18235     if test -z "$haveit"; then
18236       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18237     fi
18238   done
18239
18240       fi
18241
18242
18243 cat >>confdefs.h <<\_ACEOF
18244 #define HAVE_GETTEXT 1
18245 _ACEOF
18246
18247
18248 cat >>confdefs.h <<\_ACEOF
18249 #define HAVE_DCGETTEXT 1
18250 _ACEOF
18251
18252     fi
18253
18254         POSUB=po
18255   fi
18256
18257
18258
18259     INTLLIBS="$LIBINTL"
18260
18261
18262
18263
18264
18265
18266 if test x${prefix} = xNONE ; then
18267    if test `eval echo ${datarootdir}` = NONE/share ; then
18268       datarootdir=/usr/share
18269    fi
18270 fi
18271
18272 if test x${prefix} = xNONE ; then
18273    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18274       sysconfdir=/etc/bacula
18275    fi
18276
18277    if test `eval echo ${libdir}` = NONE/lib ; then
18278       libdir=/usr/lib
18279    fi
18280
18281    if test `eval echo ${includedir}` = NONE/include ; then
18282       includedir=/usr/include
18283    fi
18284
18285    prefix=
18286 fi
18287
18288 if test x${exec_prefix} = xNONE ; then
18289    exec_prefix=${prefix}
18290 fi
18291
18292 sysconfdir=`eval echo ${sysconfdir}`
18293 datarootdir=`eval echo ${datarootdir}`
18294 libdir=`eval echo ${libdir}`
18295 includedir=`eval echo ${includedir}`
18296 localedir=`eval echo ${datarootdir}/locale`
18297 cat >>confdefs.h <<_ACEOF
18298 #define SYSCONFDIR "$sysconfdir"
18299 _ACEOF
18300
18301 cat >>confdefs.h <<_ACEOF
18302 #define LOCALEDIR "$localedir"
18303 _ACEOF
18304
18305
18306 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18307    sbindir=${exec_prefix}/sbin
18308 fi
18309 sbindir=`eval echo ${sbindir}`
18310
18311 if test x$mandir = x'${prefix}/man' ; then
18312    mandir=/usr/share/man
18313 fi
18314
18315 for ac_prog in msgfmt
18316 do
18317   # Extract the first word of "$ac_prog", so it can be a program name with args.
18318 set dummy $ac_prog; ac_word=$2
18319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18321 if test "${ac_cv_path_MSGFMT+set}" = set; then
18322   echo $ECHO_N "(cached) $ECHO_C" >&6
18323 else
18324   case $MSGFMT in
18325   [\\/]* | ?:[\\/]*)
18326   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18327   ;;
18328   *)
18329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18330 for as_dir in $PATH
18331 do
18332   IFS=$as_save_IFS
18333   test -z "$as_dir" && as_dir=.
18334   for ac_exec_ext in '' $ac_executable_extensions; do
18335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18336     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18338     break 2
18339   fi
18340 done
18341 done
18342 IFS=$as_save_IFS
18343
18344   ;;
18345 esac
18346 fi
18347 MSGFMT=$ac_cv_path_MSGFMT
18348 if test -n "$MSGFMT"; then
18349   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18350 echo "${ECHO_T}$MSGFMT" >&6; }
18351 else
18352   { echo "$as_me:$LINENO: result: no" >&5
18353 echo "${ECHO_T}no" >&6; }
18354 fi
18355
18356
18357   test -n "$MSGFMT" && break
18358 done
18359 test -n "$MSGFMT" || MSGFMT="no"
18360
18361 if test "$MSGFMT" = "no"
18362 then
18363    echo 'msgfmt program not found, disabling NLS !'
18364    USE_NLS=no
18365    USE_INCLUDED_LIBINTL=no
18366 #else
18367
18368     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18369 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18370 if test "${ac_cv_gnu_library_2+set}" = set; then
18371   echo $ECHO_N "(cached) $ECHO_C" >&6
18372 else
18373   cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h.  */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h.  */
18379
18380 #include <features.h>
18381 #ifdef __GNU_LIBRARY__
18382  #if (__GLIBC__ >= 2)
18383   Lucky GNU user
18384  #endif
18385 #endif
18386
18387 _ACEOF
18388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18389   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18390   ac_cv_gnu_library_2=yes
18391 else
18392   ac_cv_gnu_library_2=no
18393 fi
18394 rm -f conftest*
18395
18396
18397
18398 fi
18399 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18400 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18401
18402     GLIBC2="$ac_cv_gnu_library_2"
18403
18404
18405 if test -n "$ac_tool_prefix"; then
18406   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18407 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18410 if test "${ac_cv_prog_RANLIB+set}" = set; then
18411   echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413   if test -n "$RANLIB"; then
18414   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18415 else
18416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18417 for as_dir in $PATH
18418 do
18419   IFS=$as_save_IFS
18420   test -z "$as_dir" && as_dir=.
18421   for ac_exec_ext in '' $ac_executable_extensions; do
18422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18423     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18425     break 2
18426   fi
18427 done
18428 done
18429 IFS=$as_save_IFS
18430
18431 fi
18432 fi
18433 RANLIB=$ac_cv_prog_RANLIB
18434 if test -n "$RANLIB"; then
18435   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18436 echo "${ECHO_T}$RANLIB" >&6; }
18437 else
18438   { echo "$as_me:$LINENO: result: no" >&5
18439 echo "${ECHO_T}no" >&6; }
18440 fi
18441
18442
18443 fi
18444 if test -z "$ac_cv_prog_RANLIB"; then
18445   ac_ct_RANLIB=$RANLIB
18446   # Extract the first word of "ranlib", so it can be a program name with args.
18447 set dummy ranlib; ac_word=$2
18448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18450 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453   if test -n "$ac_ct_RANLIB"; then
18454   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18455 else
18456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18457 for as_dir in $PATH
18458 do
18459   IFS=$as_save_IFS
18460   test -z "$as_dir" && as_dir=.
18461   for ac_exec_ext in '' $ac_executable_extensions; do
18462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18463     ac_cv_prog_ac_ct_RANLIB="ranlib"
18464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18465     break 2
18466   fi
18467 done
18468 done
18469 IFS=$as_save_IFS
18470
18471 fi
18472 fi
18473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18474 if test -n "$ac_ct_RANLIB"; then
18475   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18476 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18477 else
18478   { echo "$as_me:$LINENO: result: no" >&5
18479 echo "${ECHO_T}no" >&6; }
18480 fi
18481
18482   if test "x$ac_ct_RANLIB" = x; then
18483     RANLIB=":"
18484   else
18485     case $cross_compiling:$ac_tool_warned in
18486 yes:)
18487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18488 whose name does not start with the host triplet.  If you think this
18489 configuration is useful to you, please write to autoconf@gnu.org." >&5
18490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18491 whose name does not start with the host triplet.  If you think this
18492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18493 ac_tool_warned=yes ;;
18494 esac
18495     RANLIB=$ac_ct_RANLIB
18496   fi
18497 else
18498   RANLIB="$ac_cv_prog_RANLIB"
18499 fi
18500
18501
18502         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18503 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18504 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507   ac_check_lib_save_LIBS=$LIBS
18508 LIBS="-lcposix  $LIBS"
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h.  */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h.  */
18515
18516 /* Override any GCC internal prototype to avoid an error.
18517    Use char because int might match the return type of a GCC
18518    builtin and then its argument prototype would still apply.  */
18519 #ifdef __cplusplus
18520 extern "C"
18521 #endif
18522 char strerror ();
18523 int
18524 main ()
18525 {
18526 return strerror ();
18527   ;
18528   return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535   *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538   (eval "$ac_link") 2>conftest.er1
18539   ac_status=$?
18540   grep -v '^ *+' conftest.er1 >conftest.err
18541   rm -f conftest.er1
18542   cat conftest.err >&5
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } && {
18545          test -z "$ac_c_werror_flag" ||
18546          test ! -s conftest.err
18547        } && test -s conftest$ac_exeext &&
18548        $as_test_x conftest$ac_exeext; then
18549   ac_cv_lib_cposix_strerror=yes
18550 else
18551   echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18553
18554         ac_cv_lib_cposix_strerror=no
18555 fi
18556
18557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18558       conftest$ac_exeext conftest.$ac_ext
18559 LIBS=$ac_check_lib_save_LIBS
18560 fi
18561 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18562 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18563 if test $ac_cv_lib_cposix_strerror = yes; then
18564   LIBS="$LIBS -lcposix"
18565 fi
18566
18567
18568
18569 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18570 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18571 if test "${ac_cv_c_const+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 int
18582 main ()
18583 {
18584 /* FIXME: Include the comments suggested by Paul. */
18585 #ifndef __cplusplus
18586   /* Ultrix mips cc rejects this.  */
18587   typedef int charset[2];
18588   const charset cs;
18589   /* SunOS 4.1.1 cc rejects this.  */
18590   char const *const *pcpcc;
18591   char **ppc;
18592   /* NEC SVR4.0.2 mips cc rejects this.  */
18593   struct point {int x, y;};
18594   static struct point const zero = {0,0};
18595   /* AIX XL C 1.02.0.0 rejects this.
18596      It does not let you subtract one const X* pointer from another in
18597      an arm of an if-expression whose if-part is not a constant
18598      expression */
18599   const char *g = "string";
18600   pcpcc = &g + (g ? g-g : 0);
18601   /* HPUX 7.0 cc rejects these. */
18602   ++pcpcc;
18603   ppc = (char**) pcpcc;
18604   pcpcc = (char const *const *) ppc;
18605   { /* SCO 3.2v4 cc rejects this.  */
18606     char *t;
18607     char const *s = 0 ? (char *) 0 : (char const *) 0;
18608
18609     *t++ = 0;
18610     if (s) return 0;
18611   }
18612   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18613     int x[] = {25, 17};
18614     const int *foo = &x[0];
18615     ++foo;
18616   }
18617   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18618     typedef const int *iptr;
18619     iptr p = 0;
18620     ++p;
18621   }
18622   { /* AIX XL C 1.02.0.0 rejects this saying
18623        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18624     struct s { int j; const int *ap[3]; };
18625     struct s *b; b->j = 5;
18626   }
18627   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18628     const int foo = 10;
18629     if (!foo) return 0;
18630   }
18631   return !cs[0] && !zero.x;
18632 #endif
18633
18634   ;
18635   return 0;
18636 }
18637 _ACEOF
18638 rm -f conftest.$ac_objext
18639 if { (ac_try="$ac_compile"
18640 case "(($ac_try" in
18641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642   *) ac_try_echo=$ac_try;;
18643 esac
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645   (eval "$ac_compile") 2>conftest.er1
18646   ac_status=$?
18647   grep -v '^ *+' conftest.er1 >conftest.err
18648   rm -f conftest.er1
18649   cat conftest.err >&5
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); } && {
18652          test -z "$ac_c_werror_flag" ||
18653          test ! -s conftest.err
18654        } && test -s conftest.$ac_objext; then
18655   ac_cv_c_const=yes
18656 else
18657   echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18659
18660         ac_cv_c_const=no
18661 fi
18662
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664 fi
18665 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18666 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18667 if test $ac_cv_c_const = no; then
18668
18669 cat >>confdefs.h <<\_ACEOF
18670 #define const
18671 _ACEOF
18672
18673 fi
18674
18675
18676   { echo "$as_me:$LINENO: checking for signed" >&5
18677 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18678 if test "${bh_cv_c_signed+set}" = set; then
18679   echo $ECHO_N "(cached) $ECHO_C" >&6
18680 else
18681   cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h.  */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h.  */
18687
18688 int
18689 main ()
18690 {
18691 signed char x;
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext
18697 if { (ac_try="$ac_compile"
18698 case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_compile") 2>conftest.er1
18704   ac_status=$?
18705   grep -v '^ *+' conftest.er1 >conftest.err
18706   rm -f conftest.er1
18707   cat conftest.err >&5
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); } && {
18710          test -z "$ac_c_werror_flag" ||
18711          test ! -s conftest.err
18712        } && test -s conftest.$ac_objext; then
18713   bh_cv_c_signed=yes
18714 else
18715   echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718         bh_cv_c_signed=no
18719 fi
18720
18721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18722 fi
18723 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18724 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18725   if test $bh_cv_c_signed = no; then
18726
18727 cat >>confdefs.h <<\_ACEOF
18728 #define signed
18729 _ACEOF
18730
18731   fi
18732
18733 { echo "$as_me:$LINENO: checking for inline" >&5
18734 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18735 if test "${ac_cv_c_inline+set}" = set; then
18736   echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738   ac_cv_c_inline=no
18739 for ac_kw in inline __inline__ __inline; do
18740   cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746 #ifndef __cplusplus
18747 typedef int foo_t;
18748 static $ac_kw foo_t static_foo () {return 0; }
18749 $ac_kw foo_t foo () {return 0; }
18750 #endif
18751
18752 _ACEOF
18753 rm -f conftest.$ac_objext
18754 if { (ac_try="$ac_compile"
18755 case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_compile") 2>conftest.er1
18761   ac_status=$?
18762   grep -v '^ *+' conftest.er1 >conftest.err
18763   rm -f conftest.er1
18764   cat conftest.err >&5
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); } && {
18767          test -z "$ac_c_werror_flag" ||
18768          test ! -s conftest.err
18769        } && test -s conftest.$ac_objext; then
18770   ac_cv_c_inline=$ac_kw
18771 else
18772   echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18774
18775
18776 fi
18777
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779   test "$ac_cv_c_inline" != no && break
18780 done
18781
18782 fi
18783 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18784 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18785
18786
18787 case $ac_cv_c_inline in
18788   inline | yes) ;;
18789   *)
18790     case $ac_cv_c_inline in
18791       no) ac_val=;;
18792       *) ac_val=$ac_cv_c_inline;;
18793     esac
18794     cat >>confdefs.h <<_ACEOF
18795 #ifndef __cplusplus
18796 #define inline $ac_val
18797 #endif
18798 _ACEOF
18799     ;;
18800 esac
18801
18802 { echo "$as_me:$LINENO: checking for off_t" >&5
18803 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18804 if test "${ac_cv_type_off_t+set}" = set; then
18805   echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807   cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h.  */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h.  */
18813 $ac_includes_default
18814 typedef off_t ac__type_new_;
18815 int
18816 main ()
18817 {
18818 if ((ac__type_new_ *) 0)
18819   return 0;
18820 if (sizeof (ac__type_new_))
18821   return 0;
18822   ;
18823   return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext
18827 if { (ac_try="$ac_compile"
18828 case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_compile") 2>conftest.er1
18834   ac_status=$?
18835   grep -v '^ *+' conftest.er1 >conftest.err
18836   rm -f conftest.er1
18837   cat conftest.err >&5
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); } && {
18840          test -z "$ac_c_werror_flag" ||
18841          test ! -s conftest.err
18842        } && test -s conftest.$ac_objext; then
18843   ac_cv_type_off_t=yes
18844 else
18845   echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18847
18848         ac_cv_type_off_t=no
18849 fi
18850
18851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18852 fi
18853 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18854 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18855 if test $ac_cv_type_off_t = yes; then
18856   :
18857 else
18858
18859 cat >>confdefs.h <<_ACEOF
18860 #define off_t long int
18861 _ACEOF
18862
18863 fi
18864
18865 { echo "$as_me:$LINENO: checking for size_t" >&5
18866 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18867 if test "${ac_cv_type_size_t+set}" = set; then
18868   echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870   cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h.  */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h.  */
18876 $ac_includes_default
18877 typedef size_t ac__type_new_;
18878 int
18879 main ()
18880 {
18881 if ((ac__type_new_ *) 0)
18882   return 0;
18883 if (sizeof (ac__type_new_))
18884   return 0;
18885   ;
18886   return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext
18890 if { (ac_try="$ac_compile"
18891 case "(($ac_try" in
18892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893   *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896   (eval "$ac_compile") 2>conftest.er1
18897   ac_status=$?
18898   grep -v '^ *+' conftest.er1 >conftest.err
18899   rm -f conftest.er1
18900   cat conftest.err >&5
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); } && {
18903          test -z "$ac_c_werror_flag" ||
18904          test ! -s conftest.err
18905        } && test -s conftest.$ac_objext; then
18906   ac_cv_type_size_t=yes
18907 else
18908   echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18910
18911         ac_cv_type_size_t=no
18912 fi
18913
18914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18915 fi
18916 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18917 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18918 if test $ac_cv_type_size_t = yes; then
18919   :
18920 else
18921
18922 cat >>confdefs.h <<_ACEOF
18923 #define size_t unsigned int
18924 _ACEOF
18925
18926 fi
18927
18928
18929   { echo "$as_me:$LINENO: checking for long long" >&5
18930 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18931 if test "${ac_cv_type_long_long+set}" = set; then
18932   echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934   cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h.  */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h.  */
18940 long long ll = 1LL; int i = 63;
18941 int
18942 main ()
18943 {
18944 long long llmax = (long long) -1;
18945      return ll << i | ll >> i | llmax / ll | llmax % ll;
18946   ;
18947   return 0;
18948 }
18949 _ACEOF
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_link") 2>conftest.er1
18958   ac_status=$?
18959   grep -v '^ *+' conftest.er1 >conftest.err
18960   rm -f conftest.er1
18961   cat conftest.err >&5
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } && {
18964          test -z "$ac_c_werror_flag" ||
18965          test ! -s conftest.err
18966        } && test -s conftest$ac_exeext &&
18967        $as_test_x conftest$ac_exeext; then
18968   ac_cv_type_long_long=yes
18969 else
18970   echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18972
18973         ac_cv_type_long_long=no
18974 fi
18975
18976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18977       conftest$ac_exeext conftest.$ac_ext
18978 fi
18979 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18980 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18981   if test $ac_cv_type_long_long = yes; then
18982
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE_LONG_LONG 1
18985 _ACEOF
18986
18987   fi
18988
18989
18990   { echo "$as_me:$LINENO: checking for long double" >&5
18991 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18992 if test "${gt_cv_c_long_double+set}" = set; then
18993   echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995   if test "$GCC" = yes; then
18996        gt_cv_c_long_double=yes
18997      else
18998        cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h.  */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h.  */
19004
19005          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19006          long double foo = 0.0;
19007          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19008          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19009
19010 int
19011 main ()
19012 {
19013
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext
19019 if { (ac_try="$ac_compile"
19020 case "(($ac_try" in
19021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022   *) ac_try_echo=$ac_try;;
19023 esac
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025   (eval "$ac_compile") 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } && {
19032          test -z "$ac_c_werror_flag" ||
19033          test ! -s conftest.err
19034        } && test -s conftest.$ac_objext; then
19035   gt_cv_c_long_double=yes
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040         gt_cv_c_long_double=no
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19044      fi
19045 fi
19046 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19047 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19048   if test $gt_cv_c_long_double = yes; then
19049
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_LONG_DOUBLE 1
19052 _ACEOF
19053
19054   fi
19055
19056
19057   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19058 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19059 if test "${gt_cv_c_wchar_t+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h.  */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h.  */
19068 #include <stddef.h>
19069        wchar_t foo = (wchar_t)'\0';
19070 int
19071 main ()
19072 {
19073
19074   ;
19075   return 0;
19076 }
19077 _ACEOF
19078 rm -f conftest.$ac_objext
19079 if { (ac_try="$ac_compile"
19080 case "(($ac_try" in
19081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082   *) ac_try_echo=$ac_try;;
19083 esac
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085   (eval "$ac_compile") 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } && {
19092          test -z "$ac_c_werror_flag" ||
19093          test ! -s conftest.err
19094        } && test -s conftest.$ac_objext; then
19095   gt_cv_c_wchar_t=yes
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100         gt_cv_c_wchar_t=no
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19104 fi
19105 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19106 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19107   if test $gt_cv_c_wchar_t = yes; then
19108
19109 cat >>confdefs.h <<\_ACEOF
19110 #define HAVE_WCHAR_T 1
19111 _ACEOF
19112
19113   fi
19114
19115
19116   { echo "$as_me:$LINENO: checking for wint_t" >&5
19117 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19118 if test "${gt_cv_c_wint_t+set}" = set; then
19119   echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121   cat >conftest.$ac_ext <<_ACEOF
19122 /* confdefs.h.  */
19123 _ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h.  */
19127 #include <wchar.h>
19128        wint_t foo = (wchar_t)'\0';
19129 int
19130 main ()
19131 {
19132
19133   ;
19134   return 0;
19135 }
19136 _ACEOF
19137 rm -f conftest.$ac_objext
19138 if { (ac_try="$ac_compile"
19139 case "(($ac_try" in
19140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141   *) ac_try_echo=$ac_try;;
19142 esac
19143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144   (eval "$ac_compile") 2>conftest.er1
19145   ac_status=$?
19146   grep -v '^ *+' conftest.er1 >conftest.err
19147   rm -f conftest.er1
19148   cat conftest.err >&5
19149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); } && {
19151          test -z "$ac_c_werror_flag" ||
19152          test ! -s conftest.err
19153        } && test -s conftest.$ac_objext; then
19154   gt_cv_c_wint_t=yes
19155 else
19156   echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159         gt_cv_c_wint_t=no
19160 fi
19161
19162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163 fi
19164 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19165 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19166   if test $gt_cv_c_wint_t = yes; then
19167
19168 cat >>confdefs.h <<\_ACEOF
19169 #define HAVE_WINT_T 1
19170 _ACEOF
19171
19172   fi
19173
19174
19175   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19176 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19177 if test "${gl_cv_header_inttypes_h+set}" = set; then
19178   echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180   cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h.  */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h.  */
19186 #include <sys/types.h>
19187 #include <inttypes.h>
19188 int
19189 main ()
19190 {
19191 uintmax_t i = (uintmax_t) -1;
19192   ;
19193   return 0;
19194 }
19195 _ACEOF
19196 rm -f conftest.$ac_objext
19197 if { (ac_try="$ac_compile"
19198 case "(($ac_try" in
19199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200   *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203   (eval "$ac_compile") 2>conftest.er1
19204   ac_status=$?
19205   grep -v '^ *+' conftest.er1 >conftest.err
19206   rm -f conftest.er1
19207   cat conftest.err >&5
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); } && {
19210          test -z "$ac_c_werror_flag" ||
19211          test ! -s conftest.err
19212        } && test -s conftest.$ac_objext; then
19213   gl_cv_header_inttypes_h=yes
19214 else
19215   echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19217
19218         gl_cv_header_inttypes_h=no
19219 fi
19220
19221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222 fi
19223 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19224 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19225   if test $gl_cv_header_inttypes_h = yes; then
19226
19227 cat >>confdefs.h <<_ACEOF
19228 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19229 _ACEOF
19230
19231   fi
19232
19233
19234   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19235 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19236 if test "${gl_cv_header_stdint_h+set}" = set; then
19237   echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239   cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h.  */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h.  */
19245 #include <sys/types.h>
19246 #include <stdint.h>
19247 int
19248 main ()
19249 {
19250 uintmax_t i = (uintmax_t) -1;
19251   ;
19252   return 0;
19253 }
19254 _ACEOF
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259   *) ac_try_echo=$ac_try;;
19260 esac
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262   (eval "$ac_compile") 2>conftest.er1
19263   ac_status=$?
19264   grep -v '^ *+' conftest.er1 >conftest.err
19265   rm -f conftest.er1
19266   cat conftest.err >&5
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); } && {
19269          test -z "$ac_c_werror_flag" ||
19270          test ! -s conftest.err
19271        } && test -s conftest.$ac_objext; then
19272   gl_cv_header_stdint_h=yes
19273 else
19274   echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277         gl_cv_header_stdint_h=no
19278 fi
19279
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 fi
19282 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19283 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19284   if test $gl_cv_header_stdint_h = yes; then
19285
19286 cat >>confdefs.h <<_ACEOF
19287 #define HAVE_STDINT_H_WITH_UINTMAX 1
19288 _ACEOF
19289
19290   fi
19291
19292
19293
19294
19295   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19296 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19297 if test "${gt_cv_c_intmax_t+set}" = set; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h.  */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h.  */
19306
19307 #include <stddef.h>
19308 #include <stdlib.h>
19309 #if HAVE_STDINT_H_WITH_UINTMAX
19310 #include <stdint.h>
19311 #endif
19312 #if HAVE_INTTYPES_H_WITH_UINTMAX
19313 #include <inttypes.h>
19314 #endif
19315
19316 int
19317 main ()
19318 {
19319 intmax_t x = -1;
19320   ;
19321   return 0;
19322 }
19323 _ACEOF
19324 rm -f conftest.$ac_objext
19325 if { (ac_try="$ac_compile"
19326 case "(($ac_try" in
19327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328   *) ac_try_echo=$ac_try;;
19329 esac
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331   (eval "$ac_compile") 2>conftest.er1
19332   ac_status=$?
19333   grep -v '^ *+' conftest.er1 >conftest.err
19334   rm -f conftest.er1
19335   cat conftest.err >&5
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); } && {
19338          test -z "$ac_c_werror_flag" ||
19339          test ! -s conftest.err
19340        } && test -s conftest.$ac_objext; then
19341   gt_cv_c_intmax_t=yes
19342 else
19343   echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19345
19346         gt_cv_c_intmax_t=no
19347 fi
19348
19349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350 fi
19351 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19352 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19353   if test $gt_cv_c_intmax_t = yes; then
19354
19355 cat >>confdefs.h <<\_ACEOF
19356 #define HAVE_INTMAX_T 1
19357 _ACEOF
19358
19359   fi
19360
19361
19362
19363   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19364 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19365 if test "${gt_cv_func_printf_posix+set}" = set; then
19366   echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368
19369       if test "$cross_compiling" = yes; then
19370
19371         cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h.  */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h.  */
19377
19378 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19379   notposix
19380 #endif
19381
19382 _ACEOF
19383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19384   $EGREP "notposix" >/dev/null 2>&1; then
19385   gt_cv_func_printf_posix="guessing no"
19386 else
19387   gt_cv_func_printf_posix="guessing yes"
19388 fi
19389 rm -f conftest*
19390
19391
19392 else
19393   cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h.  */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h.  */
19399
19400 #include <stdio.h>
19401 #include <string.h>
19402 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19403    dollar expansion (possibly an autoconf bug).  */
19404 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19405 static char buf[100];
19406 int main ()
19407 {
19408   sprintf (buf, format, 33, 55);
19409   return (strcmp (buf, "55 33") != 0);
19410 }
19411 _ACEOF
19412 rm -f conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419   (eval "$ac_link") 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423   { (case "(($ac_try" in
19424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425   *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428   (eval "$ac_try") 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   gt_cv_func_printf_posix=yes
19433 else
19434   echo "$as_me: program exited with status $ac_status" >&5
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19437
19438 ( exit $ac_status )
19439 gt_cv_func_printf_posix=no
19440 fi
19441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19442 fi
19443
19444
19445
19446 fi
19447 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19448 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19449   case $gt_cv_func_printf_posix in
19450     *yes)
19451
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_POSIX_PRINTF 1
19454 _ACEOF
19455
19456       ;;
19457   esac
19458
19459 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19460 # for constant arguments.  Useless!
19461 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19462 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19463 if test "${ac_cv_working_alloca_h+set}" = set; then
19464   echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466   cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h.  */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h.  */
19472 #include <alloca.h>
19473 int
19474 main ()
19475 {
19476 char *p = (char *) alloca (2 * sizeof (int));
19477                           if (p) return 0;
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_link") 2>conftest.er1
19490   ac_status=$?
19491   grep -v '^ *+' conftest.er1 >conftest.err
19492   rm -f conftest.er1
19493   cat conftest.err >&5
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); } && {
19496          test -z "$ac_c_werror_flag" ||
19497          test ! -s conftest.err
19498        } && test -s conftest$ac_exeext &&
19499        $as_test_x conftest$ac_exeext; then
19500   ac_cv_working_alloca_h=yes
19501 else
19502   echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19504
19505         ac_cv_working_alloca_h=no
19506 fi
19507
19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509       conftest$ac_exeext conftest.$ac_ext
19510 fi
19511 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19512 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19513 if test $ac_cv_working_alloca_h = yes; then
19514
19515 cat >>confdefs.h <<\_ACEOF
19516 #define HAVE_ALLOCA_H 1
19517 _ACEOF
19518
19519 fi
19520
19521 { echo "$as_me:$LINENO: checking for alloca" >&5
19522 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19523 if test "${ac_cv_func_alloca_works+set}" = set; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526   cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h.  */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h.  */
19532 #ifdef __GNUC__
19533 # define alloca __builtin_alloca
19534 #else
19535 # ifdef _MSC_VER
19536 #  include <malloc.h>
19537 #  define alloca _alloca
19538 # else
19539 #  ifdef HAVE_ALLOCA_H
19540 #   include <alloca.h>
19541 #  else
19542 #   ifdef _AIX
19543  #pragma alloca
19544 #   else
19545 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19546 char *alloca ();
19547 #    endif
19548 #   endif
19549 #  endif
19550 # endif
19551 #endif
19552
19553 int
19554 main ()
19555 {
19556 char *p = (char *) alloca (1);
19557                                     if (p) return 0;
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (ac_try="$ac_link"
19564 case "(($ac_try" in
19565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566   *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569   (eval "$ac_link") 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } && {
19576          test -z "$ac_c_werror_flag" ||
19577          test ! -s conftest.err
19578        } && test -s conftest$ac_exeext &&
19579        $as_test_x conftest$ac_exeext; then
19580   ac_cv_func_alloca_works=yes
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585         ac_cv_func_alloca_works=no
19586 fi
19587
19588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19589       conftest$ac_exeext conftest.$ac_ext
19590 fi
19591 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19592 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19593
19594 if test $ac_cv_func_alloca_works = yes; then
19595
19596 cat >>confdefs.h <<\_ACEOF
19597 #define HAVE_ALLOCA 1
19598 _ACEOF
19599
19600 else
19601   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19602 # that cause trouble.  Some versions do not even contain alloca or
19603 # contain a buggy version.  If you still want to use their alloca,
19604 # use ar to extract alloca.o from them instead of compiling alloca.c.
19605
19606 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19607
19608 cat >>confdefs.h <<\_ACEOF
19609 #define C_ALLOCA 1
19610 _ACEOF
19611
19612
19613 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19614 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19615 if test "${ac_cv_os_cray+set}" = set; then
19616   echo $ECHO_N "(cached) $ECHO_C" >&6
19617 else
19618   cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h.  */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h.  */
19624 #if defined CRAY && ! defined CRAY2
19625 webecray
19626 #else
19627 wenotbecray
19628 #endif
19629
19630 _ACEOF
19631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19632   $EGREP "webecray" >/dev/null 2>&1; then
19633   ac_cv_os_cray=yes
19634 else
19635   ac_cv_os_cray=no
19636 fi
19637 rm -f conftest*
19638
19639 fi
19640 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19641 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19642 if test $ac_cv_os_cray = yes; then
19643   for ac_func in _getb67 GETB67 getb67; do
19644     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650   cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19658 #define $ac_func innocuous_$ac_func
19659
19660 /* System header to define __stub macros and hopefully few prototypes,
19661     which can conflict with char $ac_func (); below.
19662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19663     <limits.h> exists even on freestanding compilers.  */
19664
19665 #ifdef __STDC__
19666 # include <limits.h>
19667 #else
19668 # include <assert.h>
19669 #endif
19670
19671 #undef $ac_func
19672
19673 /* Override any GCC internal prototype to avoid an error.
19674    Use char because int might match the return type of a GCC
19675    builtin and then its argument prototype would still apply.  */
19676 #ifdef __cplusplus
19677 extern "C"
19678 #endif
19679 char $ac_func ();
19680 /* The GNU C library defines this for functions which it implements
19681     to always fail with ENOSYS.  Some functions are actually named
19682     something starting with __ and the normal name is an alias.  */
19683 #if defined __stub_$ac_func || defined __stub___$ac_func
19684 choke me
19685 #endif
19686
19687 int
19688 main ()
19689 {
19690 return $ac_func ();
19691   ;
19692   return 0;
19693 }
19694 _ACEOF
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (ac_try="$ac_link"
19697 case "(($ac_try" in
19698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699   *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702   (eval "$ac_link") 2>conftest.er1
19703   ac_status=$?
19704   grep -v '^ *+' conftest.er1 >conftest.err
19705   rm -f conftest.er1
19706   cat conftest.err >&5
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } && {
19709          test -z "$ac_c_werror_flag" ||
19710          test ! -s conftest.err
19711        } && test -s conftest$ac_exeext &&
19712        $as_test_x conftest$ac_exeext; then
19713   eval "$as_ac_var=yes"
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718         eval "$as_ac_var=no"
19719 fi
19720
19721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19722       conftest$ac_exeext conftest.$ac_ext
19723 fi
19724 ac_res=`eval echo '${'$as_ac_var'}'`
19725                { echo "$as_me:$LINENO: result: $ac_res" >&5
19726 echo "${ECHO_T}$ac_res" >&6; }
19727 if test `eval echo '${'$as_ac_var'}'` = yes; then
19728
19729 cat >>confdefs.h <<_ACEOF
19730 #define CRAY_STACKSEG_END $ac_func
19731 _ACEOF
19732
19733     break
19734 fi
19735
19736   done
19737 fi
19738
19739 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19740 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19741 if test "${ac_cv_c_stack_direction+set}" = set; then
19742   echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744   if test "$cross_compiling" = yes; then
19745   ac_cv_c_stack_direction=0
19746 else
19747   cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753 $ac_includes_default
19754 int
19755 find_stack_direction ()
19756 {
19757   static char *addr = 0;
19758   auto char dummy;
19759   if (addr == 0)
19760     {
19761       addr = &dummy;
19762       return find_stack_direction ();
19763     }
19764   else
19765     return (&dummy > addr) ? 1 : -1;
19766 }
19767
19768 int
19769 main ()
19770 {
19771   return find_stack_direction () < 0;
19772 }
19773 _ACEOF
19774 rm -f conftest$ac_exeext
19775 if { (ac_try="$ac_link"
19776 case "(($ac_try" in
19777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778   *) ac_try_echo=$ac_try;;
19779 esac
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781   (eval "$ac_link") 2>&5
19782   ac_status=$?
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19785   { (case "(($ac_try" in
19786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787   *) ac_try_echo=$ac_try;;
19788 esac
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790   (eval "$ac_try") 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); }; }; then
19794   ac_cv_c_stack_direction=1
19795 else
19796   echo "$as_me: program exited with status $ac_status" >&5
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19799
19800 ( exit $ac_status )
19801 ac_cv_c_stack_direction=-1
19802 fi
19803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19804 fi
19805
19806
19807 fi
19808 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19809 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19810
19811 cat >>confdefs.h <<_ACEOF
19812 #define STACK_DIRECTION $ac_cv_c_stack_direction
19813 _ACEOF
19814
19815
19816 fi
19817
19818
19819
19820 for ac_header in stdlib.h unistd.h
19821 do
19822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19824   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 fi
19829 ac_res=`eval echo '${'$as_ac_Header'}'`
19830                { echo "$as_me:$LINENO: result: $ac_res" >&5
19831 echo "${ECHO_T}$ac_res" >&6; }
19832 else
19833   # Is the header compilable?
19834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h.  */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h.  */
19842 $ac_includes_default
19843 #include <$ac_header>
19844 _ACEOF
19845 rm -f conftest.$ac_objext
19846 if { (ac_try="$ac_compile"
19847 case "(($ac_try" in
19848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849   *) ac_try_echo=$ac_try;;
19850 esac
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852   (eval "$ac_compile") 2>conftest.er1
19853   ac_status=$?
19854   grep -v '^ *+' conftest.er1 >conftest.err
19855   rm -f conftest.er1
19856   cat conftest.err >&5
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); } && {
19859          test -z "$ac_c_werror_flag" ||
19860          test ! -s conftest.err
19861        } && test -s conftest.$ac_objext; then
19862   ac_header_compiler=yes
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867         ac_header_compiler=no
19868 fi
19869
19870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19872 echo "${ECHO_T}$ac_header_compiler" >&6; }
19873
19874 # Is the header present?
19875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19877 cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883 #include <$ac_header>
19884 _ACEOF
19885 if { (ac_try="$ac_cpp conftest.$ac_ext"
19886 case "(($ac_try" in
19887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888   *) ac_try_echo=$ac_try;;
19889 esac
19890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19892   ac_status=$?
19893   grep -v '^ *+' conftest.er1 >conftest.err
19894   rm -f conftest.er1
19895   cat conftest.err >&5
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); } >/dev/null && {
19898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19899          test ! -s conftest.err
19900        }; then
19901   ac_header_preproc=yes
19902 else
19903   echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19905
19906   ac_header_preproc=no
19907 fi
19908
19909 rm -f conftest.err conftest.$ac_ext
19910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19911 echo "${ECHO_T}$ac_header_preproc" >&6; }
19912
19913 # So?  What about this header?
19914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19915   yes:no: )
19916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19920     ac_header_preproc=yes
19921     ;;
19922   no:yes:* )
19923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19935
19936     ;;
19937 esac
19938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19941   echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943   eval "$as_ac_Header=\$ac_header_preproc"
19944 fi
19945 ac_res=`eval echo '${'$as_ac_Header'}'`
19946                { echo "$as_me:$LINENO: result: $ac_res" >&5
19947 echo "${ECHO_T}$ac_res" >&6; }
19948
19949 fi
19950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19951   cat >>confdefs.h <<_ACEOF
19952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19953 _ACEOF
19954
19955 fi
19956
19957 done
19958
19959
19960 for ac_func in getpagesize
19961 do
19962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19966   echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968   cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h.  */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h.  */
19974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19976 #define $ac_func innocuous_$ac_func
19977
19978 /* System header to define __stub macros and hopefully few prototypes,
19979     which can conflict with char $ac_func (); below.
19980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19981     <limits.h> exists even on freestanding compilers.  */
19982
19983 #ifdef __STDC__
19984 # include <limits.h>
19985 #else
19986 # include <assert.h>
19987 #endif
19988
19989 #undef $ac_func
19990
19991 /* Override any GCC internal prototype to avoid an error.
19992    Use char because int might match the return type of a GCC
19993    builtin and then its argument prototype would still apply.  */
19994 #ifdef __cplusplus
19995 extern "C"
19996 #endif
19997 char $ac_func ();
19998 /* The GNU C library defines this for functions which it implements
19999     to always fail with ENOSYS.  Some functions are actually named
20000     something starting with __ and the normal name is an alias.  */
20001 #if defined __stub_$ac_func || defined __stub___$ac_func
20002 choke me
20003 #endif
20004
20005 int
20006 main ()
20007 {
20008 return $ac_func ();
20009   ;
20010   return 0;
20011 }
20012 _ACEOF
20013 rm -f conftest.$ac_objext conftest$ac_exeext
20014 if { (ac_try="$ac_link"
20015 case "(($ac_try" in
20016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017   *) ac_try_echo=$ac_try;;
20018 esac
20019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020   (eval "$ac_link") 2>conftest.er1
20021   ac_status=$?
20022   grep -v '^ *+' conftest.er1 >conftest.err
20023   rm -f conftest.er1
20024   cat conftest.err >&5
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); } && {
20027          test -z "$ac_c_werror_flag" ||
20028          test ! -s conftest.err
20029        } && test -s conftest$ac_exeext &&
20030        $as_test_x conftest$ac_exeext; then
20031   eval "$as_ac_var=yes"
20032 else
20033   echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036         eval "$as_ac_var=no"
20037 fi
20038
20039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20040       conftest$ac_exeext conftest.$ac_ext
20041 fi
20042 ac_res=`eval echo '${'$as_ac_var'}'`
20043                { echo "$as_me:$LINENO: result: $ac_res" >&5
20044 echo "${ECHO_T}$ac_res" >&6; }
20045 if test `eval echo '${'$as_ac_var'}'` = yes; then
20046   cat >>confdefs.h <<_ACEOF
20047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20048 _ACEOF
20049
20050 fi
20051 done
20052
20053 { echo "$as_me:$LINENO: checking for working mmap" >&5
20054 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20055 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20056   echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058   if test "$cross_compiling" = yes; then
20059   ac_cv_func_mmap_fixed_mapped=no
20060 else
20061   cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h.  */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h.  */
20067 $ac_includes_default
20068 /* malloc might have been renamed as rpl_malloc. */
20069 #undef malloc
20070
20071 /* Thanks to Mike Haertel and Jim Avera for this test.
20072    Here is a matrix of mmap possibilities:
20073         mmap private not fixed
20074         mmap private fixed at somewhere currently unmapped
20075         mmap private fixed at somewhere already mapped
20076         mmap shared not fixed
20077         mmap shared fixed at somewhere currently unmapped
20078         mmap shared fixed at somewhere already mapped
20079    For private mappings, we should verify that changes cannot be read()
20080    back from the file, nor mmap's back from the file at a different
20081    address.  (There have been systems where private was not correctly
20082    implemented like the infamous i386 svr4.0, and systems where the
20083    VM page cache was not coherent with the file system buffer cache
20084    like early versions of FreeBSD and possibly contemporary NetBSD.)
20085    For shared mappings, we should conversely verify that changes get
20086    propagated back to all the places they're supposed to be.
20087
20088    Grep wants private fixed already mapped.
20089    The main things grep needs to know about mmap are:
20090    * does it exist and is it safe to write into the mmap'd area
20091    * how to use it (BSD variants)  */
20092
20093 #include <fcntl.h>
20094 #include <sys/mman.h>
20095
20096 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20097 char *malloc ();
20098 #endif
20099
20100 /* This mess was copied from the GNU getpagesize.h.  */
20101 #ifndef HAVE_GETPAGESIZE
20102 /* Assume that all systems that can run configure have sys/param.h.  */
20103 # ifndef HAVE_SYS_PARAM_H
20104 #  define HAVE_SYS_PARAM_H 1
20105 # endif
20106
20107 # ifdef _SC_PAGESIZE
20108 #  define getpagesize() sysconf(_SC_PAGESIZE)
20109 # else /* no _SC_PAGESIZE */
20110 #  ifdef HAVE_SYS_PARAM_H
20111 #   include <sys/param.h>
20112 #   ifdef EXEC_PAGESIZE
20113 #    define getpagesize() EXEC_PAGESIZE
20114 #   else /* no EXEC_PAGESIZE */
20115 #    ifdef NBPG
20116 #     define getpagesize() NBPG * CLSIZE
20117 #     ifndef CLSIZE
20118 #      define CLSIZE 1
20119 #     endif /* no CLSIZE */
20120 #    else /* no NBPG */
20121 #     ifdef NBPC
20122 #      define getpagesize() NBPC
20123 #     else /* no NBPC */
20124 #      ifdef PAGESIZE
20125 #       define getpagesize() PAGESIZE
20126 #      endif /* PAGESIZE */
20127 #     endif /* no NBPC */
20128 #    endif /* no NBPG */
20129 #   endif /* no EXEC_PAGESIZE */
20130 #  else /* no HAVE_SYS_PARAM_H */
20131 #   define getpagesize() 8192   /* punt totally */
20132 #  endif /* no HAVE_SYS_PARAM_H */
20133 # endif /* no _SC_PAGESIZE */
20134
20135 #endif /* no HAVE_GETPAGESIZE */
20136
20137 int
20138 main ()
20139 {
20140   char *data, *data2, *data3;
20141   int i, pagesize;
20142   int fd;
20143
20144   pagesize = getpagesize ();
20145
20146   /* First, make a file with some known garbage in it. */
20147   data = (char *) malloc (pagesize);
20148   if (!data)
20149     return 1;
20150   for (i = 0; i < pagesize; ++i)
20151     *(data + i) = rand ();
20152   umask (0);
20153   fd = creat ("conftest.mmap", 0600);
20154   if (fd < 0)
20155     return 1;
20156   if (write (fd, data, pagesize) != pagesize)
20157     return 1;
20158   close (fd);
20159
20160   /* Next, try to mmap the file at a fixed address which already has
20161      something else allocated at it.  If we can, also make sure that
20162      we see the same garbage.  */
20163   fd = open ("conftest.mmap", O_RDWR);
20164   if (fd < 0)
20165     return 1;
20166   data2 = (char *) malloc (2 * pagesize);
20167   if (!data2)
20168     return 1;
20169   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20170   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20171                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20172     return 1;
20173   for (i = 0; i < pagesize; ++i)
20174     if (*(data + i) != *(data2 + i))
20175       return 1;
20176
20177   /* Finally, make sure that changes to the mapped area do not
20178      percolate back to the file as seen by read().  (This is a bug on
20179      some variants of i386 svr4.0.)  */
20180   for (i = 0; i < pagesize; ++i)
20181     *(data2 + i) = *(data2 + i) + 1;
20182   data3 = (char *) malloc (pagesize);
20183   if (!data3)
20184     return 1;
20185   if (read (fd, data3, pagesize) != pagesize)
20186     return 1;
20187   for (i = 0; i < pagesize; ++i)
20188     if (*(data + i) != *(data3 + i))
20189       return 1;
20190   close (fd);
20191   return 0;
20192 }
20193 _ACEOF
20194 rm -f conftest$ac_exeext
20195 if { (ac_try="$ac_link"
20196 case "(($ac_try" in
20197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198   *) ac_try_echo=$ac_try;;
20199 esac
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201   (eval "$ac_link") 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20205   { (case "(($ac_try" in
20206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207   *) ac_try_echo=$ac_try;;
20208 esac
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210   (eval "$ac_try") 2>&5
20211   ac_status=$?
20212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213   (exit $ac_status); }; }; then
20214   ac_cv_func_mmap_fixed_mapped=yes
20215 else
20216   echo "$as_me: program exited with status $ac_status" >&5
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20219
20220 ( exit $ac_status )
20221 ac_cv_func_mmap_fixed_mapped=no
20222 fi
20223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20224 fi
20225
20226
20227 fi
20228 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20229 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20230 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20231
20232 cat >>confdefs.h <<\_ACEOF
20233 #define HAVE_MMAP 1
20234 _ACEOF
20235
20236 fi
20237 rm -f conftest.mmap
20238
20239
20240     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20241 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20242 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20243   echo $ECHO_N "(cached) $ECHO_C" >&6
20244 else
20245   cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251
20252 #include <features.h>
20253 #ifdef __GNU_LIBRARY__
20254  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20255   Lucky GNU user
20256  #endif
20257 #endif
20258
20259 _ACEOF
20260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20261   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20262   ac_cv_gnu_library_2_1=yes
20263 else
20264   ac_cv_gnu_library_2_1=no
20265 fi
20266 rm -f conftest*
20267
20268
20269
20270 fi
20271 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20272 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20273
20274     GLIBC21="$ac_cv_gnu_library_2_1"
20275
20276
20277
20278
20279   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20280 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20281 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20282   echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284
20285       if test "$cross_compiling" = yes; then
20286
20287           # Guess based on the CPU.
20288           case "$host_cpu" in
20289             alpha* | i3456786 | m68k | s390*)
20290               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20291             *)
20292               gt_cv_int_divbyzero_sigfpe="guessing no";;
20293           esac
20294
20295 else
20296   cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h.  */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h.  */
20302
20303 #include <stdlib.h>
20304 #include <signal.h>
20305
20306 static void
20307 #ifdef __cplusplus
20308 sigfpe_handler (int sig)
20309 #else
20310 sigfpe_handler (sig) int sig;
20311 #endif
20312 {
20313   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20314   exit (sig != SIGFPE);
20315 }
20316
20317 int x = 1;
20318 int y = 0;
20319 int z;
20320 int nan;
20321
20322 int main ()
20323 {
20324   signal (SIGFPE, sigfpe_handler);
20325 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20326 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20327   signal (SIGTRAP, sigfpe_handler);
20328 #endif
20329 /* Linux/SPARC yields signal SIGILL.  */
20330 #if defined (__sparc__) && defined (__linux__)
20331   signal (SIGILL, sigfpe_handler);
20332 #endif
20333
20334   z = x / y;
20335   nan = y / y;
20336   exit (1);
20337 }
20338
20339 _ACEOF
20340 rm -f conftest$ac_exeext
20341 if { (ac_try="$ac_link"
20342 case "(($ac_try" in
20343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344   *) ac_try_echo=$ac_try;;
20345 esac
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347   (eval "$ac_link") 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20351   { (case "(($ac_try" in
20352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353   *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356   (eval "$ac_try") 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; }; then
20360   gt_cv_int_divbyzero_sigfpe=yes
20361 else
20362   echo "$as_me: program exited with status $ac_status" >&5
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366 ( exit $ac_status )
20367 gt_cv_int_divbyzero_sigfpe=no
20368 fi
20369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20370 fi
20371
20372
20373
20374 fi
20375 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20376 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20377   case "$gt_cv_int_divbyzero_sigfpe" in
20378     *yes) value=1;;
20379     *) value=0;;
20380   esac
20381
20382 cat >>confdefs.h <<_ACEOF
20383 #define INTDIV0_RAISES_SIGFPE $value
20384 _ACEOF
20385
20386
20387
20388   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20389 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20390 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20391   echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393   cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h.  */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h.  */
20399 unsigned long long ull = 1ULL; int i = 63;
20400 int
20401 main ()
20402 {
20403 unsigned long long ullmax = (unsigned long long) -1;
20404      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20405   ;
20406   return 0;
20407 }
20408 _ACEOF
20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416   (eval "$ac_link") 2>conftest.er1
20417   ac_status=$?
20418   grep -v '^ *+' conftest.er1 >conftest.err
20419   rm -f conftest.er1
20420   cat conftest.err >&5
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } && {
20423          test -z "$ac_c_werror_flag" ||
20424          test ! -s conftest.err
20425        } && test -s conftest$ac_exeext &&
20426        $as_test_x conftest$ac_exeext; then
20427   ac_cv_type_unsigned_long_long=yes
20428 else
20429   echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432         ac_cv_type_unsigned_long_long=no
20433 fi
20434
20435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20436       conftest$ac_exeext conftest.$ac_ext
20437 fi
20438 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20439 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20440   if test $ac_cv_type_unsigned_long_long = yes; then
20441
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE_UNSIGNED_LONG_LONG 1
20444 _ACEOF
20445
20446   fi
20447
20448
20449
20450
20451   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20452
20453     test $ac_cv_type_unsigned_long_long = yes \
20454       && ac_type='unsigned long long' \
20455       || ac_type='unsigned long'
20456
20457 cat >>confdefs.h <<_ACEOF
20458 #define uintmax_t $ac_type
20459 _ACEOF
20460
20461   else
20462
20463 cat >>confdefs.h <<\_ACEOF
20464 #define HAVE_UINTMAX_T 1
20465 _ACEOF
20466
20467   fi
20468
20469
20470   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20471 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20472 if test "${gt_cv_header_inttypes_h+set}" = set; then
20473   echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475
20476     cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482 #include <sys/types.h>
20483 #include <inttypes.h>
20484 int
20485 main ()
20486 {
20487
20488   ;
20489   return 0;
20490 }
20491 _ACEOF
20492 rm -f conftest.$ac_objext
20493 if { (ac_try="$ac_compile"
20494 case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_compile") 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } && {
20506          test -z "$ac_c_werror_flag" ||
20507          test ! -s conftest.err
20508        } && test -s conftest.$ac_objext; then
20509   gt_cv_header_inttypes_h=yes
20510 else
20511   echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514         gt_cv_header_inttypes_h=no
20515 fi
20516
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518
20519 fi
20520 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20521 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20522   if test $gt_cv_header_inttypes_h = yes; then
20523
20524 cat >>confdefs.h <<_ACEOF
20525 #define HAVE_INTTYPES_H 1
20526 _ACEOF
20527
20528   fi
20529
20530
20531
20532   if test $gt_cv_header_inttypes_h = yes; then
20533     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20534 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20535 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20536   echo $ECHO_N "(cached) $ECHO_C" >&6
20537 else
20538
20539         cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h.  */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h.  */
20545 #include <inttypes.h>
20546 #ifdef PRId32
20547 char *p = PRId32;
20548 #endif
20549
20550 int
20551 main ()
20552 {
20553
20554   ;
20555   return 0;
20556 }
20557 _ACEOF
20558 rm -f conftest.$ac_objext
20559 if { (ac_try="$ac_compile"
20560 case "(($ac_try" in
20561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562   *) ac_try_echo=$ac_try;;
20563 esac
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565   (eval "$ac_compile") 2>conftest.er1
20566   ac_status=$?
20567   grep -v '^ *+' conftest.er1 >conftest.err
20568   rm -f conftest.er1
20569   cat conftest.err >&5
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); } && {
20572          test -z "$ac_c_werror_flag" ||
20573          test ! -s conftest.err
20574        } && test -s conftest.$ac_objext; then
20575   gt_cv_inttypes_pri_broken=no
20576 else
20577   echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580         gt_cv_inttypes_pri_broken=yes
20581 fi
20582
20583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584
20585 fi
20586 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20587 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20588   fi
20589   if test "$gt_cv_inttypes_pri_broken" = yes; then
20590
20591 cat >>confdefs.h <<_ACEOF
20592 #define PRI_MACROS_BROKEN 1
20593 _ACEOF
20594
20595   fi
20596
20597
20598
20599 for ac_header in stdint.h
20600 do
20601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20603   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20606   echo $ECHO_N "(cached) $ECHO_C" >&6
20607 fi
20608 ac_res=`eval echo '${'$as_ac_Header'}'`
20609                { echo "$as_me:$LINENO: result: $ac_res" >&5
20610 echo "${ECHO_T}$ac_res" >&6; }
20611 else
20612   # Is the header compilable?
20613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h.  */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h.  */
20621 $ac_includes_default
20622 #include <$ac_header>
20623 _ACEOF
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_compile") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } && {
20638          test -z "$ac_c_werror_flag" ||
20639          test ! -s conftest.err
20640        } && test -s conftest.$ac_objext; then
20641   ac_header_compiler=yes
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646         ac_header_compiler=no
20647 fi
20648
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20651 echo "${ECHO_T}$ac_header_compiler" >&6; }
20652
20653 # Is the header present?
20654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662 #include <$ac_header>
20663 _ACEOF
20664 if { (ac_try="$ac_cpp conftest.$ac_ext"
20665 case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } >/dev/null && {
20677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20678          test ! -s conftest.err
20679        }; then
20680   ac_header_preproc=yes
20681 else
20682   echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20684
20685   ac_header_preproc=no
20686 fi
20687
20688 rm -f conftest.err conftest.$ac_ext
20689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20690 echo "${ECHO_T}$ac_header_preproc" >&6; }
20691
20692 # So?  What about this header?
20693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20694   yes:no: )
20695     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20699     ac_header_preproc=yes
20700     ;;
20701   no:yes:* )
20702     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20704     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20705 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20706     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20708     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20709 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20712     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20714
20715     ;;
20716 esac
20717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20720   echo $ECHO_N "(cached) $ECHO_C" >&6
20721 else
20722   eval "$as_ac_Header=\$ac_header_preproc"
20723 fi
20724 ac_res=`eval echo '${'$as_ac_Header'}'`
20725                { echo "$as_me:$LINENO: result: $ac_res" >&5
20726 echo "${ECHO_T}$ac_res" >&6; }
20727
20728 fi
20729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20730   cat >>confdefs.h <<_ACEOF
20731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20732 _ACEOF
20733
20734 fi
20735
20736 done
20737
20738     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20739 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20740   result=
20741   cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h.  */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h.  */
20747
20748 #include <limits.h>
20749 #if HAVE_STDINT_H
20750 #include <stdint.h>
20751 #endif
20752 #ifdef SIZE_MAX
20753 Found it
20754 #endif
20755
20756 _ACEOF
20757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20758   $EGREP "Found it" >/dev/null 2>&1; then
20759   result=yes
20760 fi
20761 rm -f conftest*
20762
20763   if test -z "$result"; then
20764                     if test "$cross_compiling" = yes; then
20765   # Depending upon the size, compute the lo and hi bounds.
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h.  */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h.  */
20772 #include <stddef.h>
20773 int
20774 main ()
20775 {
20776 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20777 test_array [0] = 0
20778
20779   ;
20780   return 0;
20781 }
20782 _ACEOF
20783 rm -f conftest.$ac_objext
20784 if { (ac_try="$ac_compile"
20785 case "(($ac_try" in
20786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787   *) ac_try_echo=$ac_try;;
20788 esac
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790   (eval "$ac_compile") 2>conftest.er1
20791   ac_status=$?
20792   grep -v '^ *+' conftest.er1 >conftest.err
20793   rm -f conftest.er1
20794   cat conftest.err >&5
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); } && {
20797          test -z "$ac_c_werror_flag" ||
20798          test ! -s conftest.err
20799        } && test -s conftest.$ac_objext; then
20800   ac_lo=0 ac_mid=0
20801   while :; do
20802     cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808 #include <stddef.h>
20809 int
20810 main ()
20811 {
20812 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20813 test_array [0] = 0
20814
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_compile") 2>conftest.er1
20827   ac_status=$?
20828   grep -v '^ *+' conftest.er1 >conftest.err
20829   rm -f conftest.er1
20830   cat conftest.err >&5
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); } && {
20833          test -z "$ac_c_werror_flag" ||
20834          test ! -s conftest.err
20835        } && test -s conftest.$ac_objext; then
20836   ac_hi=$ac_mid; break
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841         ac_lo=`expr $ac_mid + 1`
20842                         if test $ac_lo -le $ac_mid; then
20843                           ac_lo= ac_hi=
20844                           break
20845                         fi
20846                         ac_mid=`expr 2 '*' $ac_mid + 1`
20847 fi
20848
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850   done
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855         cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 #include <stddef.h>
20862 int
20863 main ()
20864 {
20865 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20866 test_array [0] = 0
20867
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879   (eval "$ac_compile") 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } && {
20886          test -z "$ac_c_werror_flag" ||
20887          test ! -s conftest.err
20888        } && test -s conftest.$ac_objext; then
20889   ac_hi=-1 ac_mid=-1
20890   while :; do
20891     cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h.  */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h.  */
20897 #include <stddef.h>
20898 int
20899 main ()
20900 {
20901 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20902 test_array [0] = 0
20903
20904   ;
20905   return 0;
20906 }
20907 _ACEOF
20908 rm -f conftest.$ac_objext
20909 if { (ac_try="$ac_compile"
20910 case "(($ac_try" in
20911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912   *) ac_try_echo=$ac_try;;
20913 esac
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915   (eval "$ac_compile") 2>conftest.er1
20916   ac_status=$?
20917   grep -v '^ *+' conftest.er1 >conftest.err
20918   rm -f conftest.er1
20919   cat conftest.err >&5
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); } && {
20922          test -z "$ac_c_werror_flag" ||
20923          test ! -s conftest.err
20924        } && test -s conftest.$ac_objext; then
20925   ac_lo=$ac_mid; break
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930         ac_hi=`expr '(' $ac_mid ')' - 1`
20931                         if test $ac_mid -le $ac_hi; then
20932                           ac_lo= ac_hi=
20933                           break
20934                         fi
20935                         ac_mid=`expr 2 '*' $ac_mid`
20936 fi
20937
20938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20939   done
20940 else
20941   echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944         ac_lo= ac_hi=
20945 fi
20946
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 fi
20949
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 # Binary search between lo and hi bounds.
20952 while test "x$ac_lo" != "x$ac_hi"; do
20953   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20954   cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h.  */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h.  */
20960 #include <stddef.h>
20961 int
20962 main ()
20963 {
20964 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20965 test_array [0] = 0
20966
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest.$ac_objext
20972 if { (ac_try="$ac_compile"
20973 case "(($ac_try" in
20974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975   *) ac_try_echo=$ac_try;;
20976 esac
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978   (eval "$ac_compile") 2>conftest.er1
20979   ac_status=$?
20980   grep -v '^ *+' conftest.er1 >conftest.err
20981   rm -f conftest.er1
20982   cat conftest.err >&5
20983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984   (exit $ac_status); } && {
20985          test -z "$ac_c_werror_flag" ||
20986          test ! -s conftest.err
20987        } && test -s conftest.$ac_objext; then
20988   ac_hi=$ac_mid
20989 else
20990   echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20992
20993         ac_lo=`expr '(' $ac_mid ')' + 1`
20994 fi
20995
20996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20997 done
20998 case $ac_lo in
20999 ?*) res_hi=$ac_lo;;
21000 '') result=? ;;
21001 esac
21002 else
21003   cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h.  */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h.  */
21009 #include <stddef.h>
21010 static long int longval () { return ~(size_t)0 / 10; }
21011 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21012 #include <stdio.h>
21013 #include <stdlib.h>
21014 int
21015 main ()
21016 {
21017
21018   FILE *f = fopen ("conftest.val", "w");
21019   if (! f)
21020     return 1;
21021   if ((~(size_t)0 / 10) < 0)
21022     {
21023       long int i = longval ();
21024       if (i != (~(size_t)0 / 10))
21025         return 1;
21026       fprintf (f, "%ld\n", i);
21027     }
21028   else
21029     {
21030       unsigned long int i = ulongval ();
21031       if (i != (~(size_t)0 / 10))
21032         return 1;
21033       fprintf (f, "%lu\n", i);
21034     }
21035   return ferror (f) || fclose (f) != 0;
21036
21037   ;
21038   return 0;
21039 }
21040 _ACEOF
21041 rm -f conftest$ac_exeext
21042 if { (ac_try="$ac_link"
21043 case "(($ac_try" in
21044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045   *) ac_try_echo=$ac_try;;
21046 esac
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048   (eval "$ac_link") 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21052   { (case "(($ac_try" in
21053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054   *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057   (eval "$ac_try") 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; }; then
21061   res_hi=`cat conftest.val`
21062 else
21063   echo "$as_me: program exited with status $ac_status" >&5
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067 ( exit $ac_status )
21068 result=?
21069 fi
21070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21071 fi
21072 rm -f conftest.val
21073
21074     if test "$cross_compiling" = yes; then
21075   # Depending upon the size, compute the lo and hi bounds.
21076 cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h.  */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h.  */
21082 #include <stddef.h>
21083 int
21084 main ()
21085 {
21086 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21087 test_array [0] = 0
21088
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext
21094 if { (ac_try="$ac_compile"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_compile") 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } && {
21107          test -z "$ac_c_werror_flag" ||
21108          test ! -s conftest.err
21109        } && test -s conftest.$ac_objext; then
21110   ac_lo=0 ac_mid=0
21111   while :; do
21112     cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118 #include <stddef.h>
21119 int
21120 main ()
21121 {
21122 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21123 test_array [0] = 0
21124
21125   ;
21126   return 0;
21127 }
21128 _ACEOF
21129 rm -f conftest.$ac_objext
21130 if { (ac_try="$ac_compile"
21131 case "(($ac_try" in
21132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21133   *) ac_try_echo=$ac_try;;
21134 esac
21135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136   (eval "$ac_compile") 2>conftest.er1
21137   ac_status=$?
21138   grep -v '^ *+' conftest.er1 >conftest.err
21139   rm -f conftest.er1
21140   cat conftest.err >&5
21141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142   (exit $ac_status); } && {
21143          test -z "$ac_c_werror_flag" ||
21144          test ! -s conftest.err
21145        } && test -s conftest.$ac_objext; then
21146   ac_hi=$ac_mid; break
21147 else
21148   echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21150
21151         ac_lo=`expr $ac_mid + 1`
21152                         if test $ac_lo -le $ac_mid; then
21153                           ac_lo= ac_hi=
21154                           break
21155                         fi
21156                         ac_mid=`expr 2 '*' $ac_mid + 1`
21157 fi
21158
21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160   done
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165         cat >conftest.$ac_ext <<_ACEOF
21166 /* confdefs.h.  */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h.  */
21171 #include <stddef.h>
21172 int
21173 main ()
21174 {
21175 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21176 test_array [0] = 0
21177
21178   ;
21179   return 0;
21180 }
21181 _ACEOF
21182 rm -f conftest.$ac_objext
21183 if { (ac_try="$ac_compile"
21184 case "(($ac_try" in
21185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186   *) ac_try_echo=$ac_try;;
21187 esac
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189   (eval "$ac_compile") 2>conftest.er1
21190   ac_status=$?
21191   grep -v '^ *+' conftest.er1 >conftest.err
21192   rm -f conftest.er1
21193   cat conftest.err >&5
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); } && {
21196          test -z "$ac_c_werror_flag" ||
21197          test ! -s conftest.err
21198        } && test -s conftest.$ac_objext; then
21199   ac_hi=-1 ac_mid=-1
21200   while :; do
21201     cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h.  */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h.  */
21207 #include <stddef.h>
21208 int
21209 main ()
21210 {
21211 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21212 test_array [0] = 0
21213
21214   ;
21215   return 0;
21216 }
21217 _ACEOF
21218 rm -f conftest.$ac_objext
21219 if { (ac_try="$ac_compile"
21220 case "(($ac_try" in
21221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222   *) ac_try_echo=$ac_try;;
21223 esac
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225   (eval "$ac_compile") 2>conftest.er1
21226   ac_status=$?
21227   grep -v '^ *+' conftest.er1 >conftest.err
21228   rm -f conftest.er1
21229   cat conftest.err >&5
21230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231   (exit $ac_status); } && {
21232          test -z "$ac_c_werror_flag" ||
21233          test ! -s conftest.err
21234        } && test -s conftest.$ac_objext; then
21235   ac_lo=$ac_mid; break
21236 else
21237   echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21239
21240         ac_hi=`expr '(' $ac_mid ')' - 1`
21241                         if test $ac_mid -le $ac_hi; then
21242                           ac_lo= ac_hi=
21243                           break
21244                         fi
21245                         ac_mid=`expr 2 '*' $ac_mid`
21246 fi
21247
21248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21249   done
21250 else
21251   echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254         ac_lo= ac_hi=
21255 fi
21256
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 fi
21259
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 # Binary search between lo and hi bounds.
21262 while test "x$ac_lo" != "x$ac_hi"; do
21263   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21264   cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270 #include <stddef.h>
21271 int
21272 main ()
21273 {
21274 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21275 test_array [0] = 0
21276
21277   ;
21278   return 0;
21279 }
21280 _ACEOF
21281 rm -f conftest.$ac_objext
21282 if { (ac_try="$ac_compile"
21283 case "(($ac_try" in
21284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285   *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288   (eval "$ac_compile") 2>conftest.er1
21289   ac_status=$?
21290   grep -v '^ *+' conftest.er1 >conftest.err
21291   rm -f conftest.er1
21292   cat conftest.err >&5
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); } && {
21295          test -z "$ac_c_werror_flag" ||
21296          test ! -s conftest.err
21297        } && test -s conftest.$ac_objext; then
21298   ac_hi=$ac_mid
21299 else
21300   echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303         ac_lo=`expr '(' $ac_mid ')' + 1`
21304 fi
21305
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 done
21308 case $ac_lo in
21309 ?*) res_lo=$ac_lo;;
21310 '') result=? ;;
21311 esac
21312 else
21313   cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h.  */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h.  */
21319 #include <stddef.h>
21320 static long int longval () { return ~(size_t)0 % 10; }
21321 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21322 #include <stdio.h>
21323 #include <stdlib.h>
21324 int
21325 main ()
21326 {
21327
21328   FILE *f = fopen ("conftest.val", "w");
21329   if (! f)
21330     return 1;
21331   if ((~(size_t)0 % 10) < 0)
21332     {
21333       long int i = longval ();
21334       if (i != (~(size_t)0 % 10))
21335         return 1;
21336       fprintf (f, "%ld\n", i);
21337     }
21338   else
21339     {
21340       unsigned long int i = ulongval ();
21341       if (i != (~(size_t)0 % 10))
21342         return 1;
21343       fprintf (f, "%lu\n", i);
21344     }
21345   return ferror (f) || fclose (f) != 0;
21346
21347   ;
21348   return 0;
21349 }
21350 _ACEOF
21351 rm -f conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355   *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358   (eval "$ac_link") 2>&5
21359   ac_status=$?
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21362   { (case "(($ac_try" in
21363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364   *) ac_try_echo=$ac_try;;
21365 esac
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367   (eval "$ac_try") 2>&5
21368   ac_status=$?
21369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); }; }; then
21371   res_lo=`cat conftest.val`
21372 else
21373   echo "$as_me: program exited with status $ac_status" >&5
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377 ( exit $ac_status )
21378 result=?
21379 fi
21380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21381 fi
21382 rm -f conftest.val
21383
21384     if test "$cross_compiling" = yes; then
21385   # Depending upon the size, compute the lo and hi bounds.
21386 cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h.  */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h.  */
21392 #include <stddef.h>
21393 int
21394 main ()
21395 {
21396 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21397 test_array [0] = 0
21398
21399   ;
21400   return 0;
21401 }
21402 _ACEOF
21403 rm -f conftest.$ac_objext
21404 if { (ac_try="$ac_compile"
21405 case "(($ac_try" in
21406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407   *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410   (eval "$ac_compile") 2>conftest.er1
21411   ac_status=$?
21412   grep -v '^ *+' conftest.er1 >conftest.err
21413   rm -f conftest.er1
21414   cat conftest.err >&5
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } && {
21417          test -z "$ac_c_werror_flag" ||
21418          test ! -s conftest.err
21419        } && test -s conftest.$ac_objext; then
21420   ac_lo=0 ac_mid=0
21421   while :; do
21422     cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h.  */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h.  */
21428 #include <stddef.h>
21429 int
21430 main ()
21431 {
21432 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21433 test_array [0] = 0
21434
21435   ;
21436   return 0;
21437 }
21438 _ACEOF
21439 rm -f conftest.$ac_objext
21440 if { (ac_try="$ac_compile"
21441 case "(($ac_try" in
21442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443   *) ac_try_echo=$ac_try;;
21444 esac
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446   (eval "$ac_compile") 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } && {
21453          test -z "$ac_c_werror_flag" ||
21454          test ! -s conftest.err
21455        } && test -s conftest.$ac_objext; then
21456   ac_hi=$ac_mid; break
21457 else
21458   echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461         ac_lo=`expr $ac_mid + 1`
21462                         if test $ac_lo -le $ac_mid; then
21463                           ac_lo= ac_hi=
21464                           break
21465                         fi
21466                         ac_mid=`expr 2 '*' $ac_mid + 1`
21467 fi
21468
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470   done
21471 else
21472   echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21474
21475         cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h.  */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h.  */
21481 #include <stddef.h>
21482 int
21483 main ()
21484 {
21485 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21486 test_array [0] = 0
21487
21488   ;
21489   return 0;
21490 }
21491 _ACEOF
21492 rm -f conftest.$ac_objext
21493 if { (ac_try="$ac_compile"
21494 case "(($ac_try" in
21495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496   *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499   (eval "$ac_compile") 2>conftest.er1
21500   ac_status=$?
21501   grep -v '^ *+' conftest.er1 >conftest.err
21502   rm -f conftest.er1
21503   cat conftest.err >&5
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); } && {
21506          test -z "$ac_c_werror_flag" ||
21507          test ! -s conftest.err
21508        } && test -s conftest.$ac_objext; then
21509   ac_hi=-1 ac_mid=-1
21510   while :; do
21511     cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h.  */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h.  */
21517 #include <stddef.h>
21518 int
21519 main ()
21520 {
21521 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21522 test_array [0] = 0
21523
21524   ;
21525   return 0;
21526 }
21527 _ACEOF
21528 rm -f conftest.$ac_objext
21529 if { (ac_try="$ac_compile"
21530 case "(($ac_try" in
21531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532   *) ac_try_echo=$ac_try;;
21533 esac
21534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21535   (eval "$ac_compile") 2>conftest.er1
21536   ac_status=$?
21537   grep -v '^ *+' conftest.er1 >conftest.err
21538   rm -f conftest.er1
21539   cat conftest.err >&5
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); } && {
21542          test -z "$ac_c_werror_flag" ||
21543          test ! -s conftest.err
21544        } && test -s conftest.$ac_objext; then
21545   ac_lo=$ac_mid; break
21546 else
21547   echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21549
21550         ac_hi=`expr '(' $ac_mid ')' - 1`
21551                         if test $ac_mid -le $ac_hi; then
21552                           ac_lo= ac_hi=
21553                           break
21554                         fi
21555                         ac_mid=`expr 2 '*' $ac_mid`
21556 fi
21557
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559   done
21560 else
21561   echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21563
21564         ac_lo= ac_hi=
21565 fi
21566
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 fi
21569
21570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571 # Binary search between lo and hi bounds.
21572 while test "x$ac_lo" != "x$ac_hi"; do
21573   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21574   cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h.  */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h.  */
21580 #include <stddef.h>
21581 int
21582 main ()
21583 {
21584 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21585 test_array [0] = 0
21586
21587   ;
21588   return 0;
21589 }
21590 _ACEOF
21591 rm -f conftest.$ac_objext
21592 if { (ac_try="$ac_compile"
21593 case "(($ac_try" in
21594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595   *) ac_try_echo=$ac_try;;
21596 esac
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598   (eval "$ac_compile") 2>conftest.er1
21599   ac_status=$?
21600   grep -v '^ *+' conftest.er1 >conftest.err
21601   rm -f conftest.er1
21602   cat conftest.err >&5
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); } && {
21605          test -z "$ac_c_werror_flag" ||
21606          test ! -s conftest.err
21607        } && test -s conftest.$ac_objext; then
21608   ac_hi=$ac_mid
21609 else
21610   echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21612
21613         ac_lo=`expr '(' $ac_mid ')' + 1`
21614 fi
21615
21616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21617 done
21618 case $ac_lo in
21619 ?*) fits_in_uint=$ac_lo;;
21620 '') result=? ;;
21621 esac
21622 else
21623   cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h.  */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h.  */
21629 #include <stddef.h>
21630 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21631 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21632 #include <stdio.h>
21633 #include <stdlib.h>
21634 int
21635 main ()
21636 {
21637
21638   FILE *f = fopen ("conftest.val", "w");
21639   if (! f)
21640     return 1;
21641   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21642     {
21643       long int i = longval ();
21644       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21645         return 1;
21646       fprintf (f, "%ld\n", i);
21647     }
21648   else
21649     {
21650       unsigned long int i = ulongval ();
21651       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21652         return 1;
21653       fprintf (f, "%lu\n", i);
21654     }
21655   return ferror (f) || fclose (f) != 0;
21656
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 rm -f conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665   *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668   (eval "$ac_link") 2>&5
21669   ac_status=$?
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21672   { (case "(($ac_try" in
21673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674   *) ac_try_echo=$ac_try;;
21675 esac
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677   (eval "$ac_try") 2>&5
21678   ac_status=$?
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); }; }; then
21681   fits_in_uint=`cat conftest.val`
21682 else
21683   echo "$as_me: program exited with status $ac_status" >&5
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21686
21687 ( exit $ac_status )
21688 result=?
21689 fi
21690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21691 fi
21692 rm -f conftest.val
21693
21694     if test "$fits_in_uint" = 1; then
21695                   cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h.  */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h.  */
21701 #include <stddef.h>
21702         extern size_t foo;
21703         extern unsigned long foo;
21704
21705 int
21706 main ()
21707 {
21708
21709   ;
21710   return 0;
21711 }
21712 _ACEOF
21713 rm -f conftest.$ac_objext
21714 if { (ac_try="$ac_compile"
21715 case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_compile") 2>conftest.er1
21721   ac_status=$?
21722   grep -v '^ *+' conftest.er1 >conftest.err
21723   rm -f conftest.er1
21724   cat conftest.err >&5
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); } && {
21727          test -z "$ac_c_werror_flag" ||
21728          test ! -s conftest.err
21729        } && test -s conftest.$ac_objext; then
21730   fits_in_uint=0
21731 else
21732   echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21734
21735
21736 fi
21737
21738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21739     fi
21740     if test -z "$result"; then
21741       if test "$fits_in_uint" = 1; then
21742         result="$res_hi$res_lo"U
21743       else
21744         result="$res_hi$res_lo"UL
21745       fi
21746     else
21747             result='~(size_t)0'
21748     fi
21749   fi
21750   { echo "$as_me:$LINENO: result: $result" >&5
21751 echo "${ECHO_T}$result" >&6; }
21752   if test "$result" != yes; then
21753
21754 cat >>confdefs.h <<_ACEOF
21755 #define SIZE_MAX $result
21756 _ACEOF
21757
21758   fi
21759
21760
21761
21762
21763
21764 for ac_header in stdint.h
21765 do
21766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21768   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21771   echo $ECHO_N "(cached) $ECHO_C" >&6
21772 fi
21773 ac_res=`eval echo '${'$as_ac_Header'}'`
21774                { echo "$as_me:$LINENO: result: $ac_res" >&5
21775 echo "${ECHO_T}$ac_res" >&6; }
21776 else
21777   # Is the header compilable?
21778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21780 cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h.  */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h.  */
21786 $ac_includes_default
21787 #include <$ac_header>
21788 _ACEOF
21789 rm -f conftest.$ac_objext
21790 if { (ac_try="$ac_compile"
21791 case "(($ac_try" in
21792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793   *) ac_try_echo=$ac_try;;
21794 esac
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796   (eval "$ac_compile") 2>conftest.er1
21797   ac_status=$?
21798   grep -v '^ *+' conftest.er1 >conftest.err
21799   rm -f conftest.er1
21800   cat conftest.err >&5
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); } && {
21803          test -z "$ac_c_werror_flag" ||
21804          test ! -s conftest.err
21805        } && test -s conftest.$ac_objext; then
21806   ac_header_compiler=yes
21807 else
21808   echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21810
21811         ac_header_compiler=no
21812 fi
21813
21814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21816 echo "${ECHO_T}$ac_header_compiler" >&6; }
21817
21818 # Is the header present?
21819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21821 cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h.  */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h.  */
21827 #include <$ac_header>
21828 _ACEOF
21829 if { (ac_try="$ac_cpp conftest.$ac_ext"
21830 case "(($ac_try" in
21831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832   *) ac_try_echo=$ac_try;;
21833 esac
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21836   ac_status=$?
21837   grep -v '^ *+' conftest.er1 >conftest.err
21838   rm -f conftest.er1
21839   cat conftest.err >&5
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); } >/dev/null && {
21842          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21843          test ! -s conftest.err
21844        }; then
21845   ac_header_preproc=yes
21846 else
21847   echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850   ac_header_preproc=no
21851 fi
21852
21853 rm -f conftest.err conftest.$ac_ext
21854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21855 echo "${ECHO_T}$ac_header_preproc" >&6; }
21856
21857 # So?  What about this header?
21858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21859   yes:no: )
21860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21864     ac_header_preproc=yes
21865     ;;
21866   no:yes:* )
21867     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21869     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21870 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21871     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21873     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21874 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21877     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21879
21880     ;;
21881 esac
21882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885   echo $ECHO_N "(cached) $ECHO_C" >&6
21886 else
21887   eval "$as_ac_Header=\$ac_header_preproc"
21888 fi
21889 ac_res=`eval echo '${'$as_ac_Header'}'`
21890                { echo "$as_me:$LINENO: result: $ac_res" >&5
21891 echo "${ECHO_T}$ac_res" >&6; }
21892
21893 fi
21894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21895   cat >>confdefs.h <<_ACEOF
21896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21897 _ACEOF
21898
21899 fi
21900
21901 done
21902
21903
21904
21905
21906
21907
21908
21909
21910   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21911 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21912 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21913   echo $ECHO_N "(cached) $ECHO_C" >&6
21914 else
21915   cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h.  */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h.  */
21921 $ac_includes_default
21922 typedef ptrdiff_t ac__type_new_;
21923 int
21924 main ()
21925 {
21926 if ((ac__type_new_ *) 0)
21927   return 0;
21928 if (sizeof (ac__type_new_))
21929   return 0;
21930   ;
21931   return 0;
21932 }
21933 _ACEOF
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938   *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941   (eval "$ac_compile") 2>conftest.er1
21942   ac_status=$?
21943   grep -v '^ *+' conftest.er1 >conftest.err
21944   rm -f conftest.er1
21945   cat conftest.err >&5
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); } && {
21948          test -z "$ac_c_werror_flag" ||
21949          test ! -s conftest.err
21950        } && test -s conftest.$ac_objext; then
21951   ac_cv_type_ptrdiff_t=yes
21952 else
21953   echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21955
21956         ac_cv_type_ptrdiff_t=no
21957 fi
21958
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960 fi
21961 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21962 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21963 if test $ac_cv_type_ptrdiff_t = yes; then
21964   :
21965 else
21966
21967 cat >>confdefs.h <<\_ACEOF
21968 #define ptrdiff_t long
21969 _ACEOF
21970
21971
21972 fi
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21985 stdlib.h string.h unistd.h sys/param.h
21986 do
21987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21992   echo $ECHO_N "(cached) $ECHO_C" >&6
21993 fi
21994 ac_res=`eval echo '${'$as_ac_Header'}'`
21995                { echo "$as_me:$LINENO: result: $ac_res" >&5
21996 echo "${ECHO_T}$ac_res" >&6; }
21997 else
21998   # Is the header compilable?
21999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22001 cat >conftest.$ac_ext <<_ACEOF
22002 /* confdefs.h.  */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h.  */
22007 $ac_includes_default
22008 #include <$ac_header>
22009 _ACEOF
22010 rm -f conftest.$ac_objext
22011 if { (ac_try="$ac_compile"
22012 case "(($ac_try" in
22013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014   *) ac_try_echo=$ac_try;;
22015 esac
22016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017   (eval "$ac_compile") 2>conftest.er1
22018   ac_status=$?
22019   grep -v '^ *+' conftest.er1 >conftest.err
22020   rm -f conftest.er1
22021   cat conftest.err >&5
22022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023   (exit $ac_status); } && {
22024          test -z "$ac_c_werror_flag" ||
22025          test ! -s conftest.err
22026        } && test -s conftest.$ac_objext; then
22027   ac_header_compiler=yes
22028 else
22029   echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22031
22032         ac_header_compiler=no
22033 fi
22034
22035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22037 echo "${ECHO_T}$ac_header_compiler" >&6; }
22038
22039 # Is the header present?
22040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22042 cat >conftest.$ac_ext <<_ACEOF
22043 /* confdefs.h.  */
22044 _ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h.  */
22048 #include <$ac_header>
22049 _ACEOF
22050 if { (ac_try="$ac_cpp conftest.$ac_ext"
22051 case "(($ac_try" in
22052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053   *) ac_try_echo=$ac_try;;
22054 esac
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22057   ac_status=$?
22058   grep -v '^ *+' conftest.er1 >conftest.err
22059   rm -f conftest.er1
22060   cat conftest.err >&5
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); } >/dev/null && {
22063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22064          test ! -s conftest.err
22065        }; then
22066   ac_header_preproc=yes
22067 else
22068   echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071   ac_header_preproc=no
22072 fi
22073
22074 rm -f conftest.err conftest.$ac_ext
22075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22076 echo "${ECHO_T}$ac_header_preproc" >&6; }
22077
22078 # So?  What about this header?
22079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22080   yes:no: )
22081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22085     ac_header_preproc=yes
22086     ;;
22087   no:yes:* )
22088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22100
22101     ;;
22102 esac
22103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22106   echo $ECHO_N "(cached) $ECHO_C" >&6
22107 else
22108   eval "$as_ac_Header=\$ac_header_preproc"
22109 fi
22110 ac_res=`eval echo '${'$as_ac_Header'}'`
22111                { echo "$as_me:$LINENO: result: $ac_res" >&5
22112 echo "${ECHO_T}$ac_res" >&6; }
22113
22114 fi
22115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22116   cat >>confdefs.h <<_ACEOF
22117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22118 _ACEOF
22119
22120 fi
22121
22122 done
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22148 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22149 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22150 __fsetlocking
22151 do
22152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22156   echo $ECHO_N "(cached) $ECHO_C" >&6
22157 else
22158   cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22166 #define $ac_func innocuous_$ac_func
22167
22168 /* System header to define __stub macros and hopefully few prototypes,
22169     which can conflict with char $ac_func (); below.
22170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22171     <limits.h> exists even on freestanding compilers.  */
22172
22173 #ifdef __STDC__
22174 # include <limits.h>
22175 #else
22176 # include <assert.h>
22177 #endif
22178
22179 #undef $ac_func
22180
22181 /* Override any GCC internal prototype to avoid an error.
22182    Use char because int might match the return type of a GCC
22183    builtin and then its argument prototype would still apply.  */
22184 #ifdef __cplusplus
22185 extern "C"
22186 #endif
22187 char $ac_func ();
22188 /* The GNU C library defines this for functions which it implements
22189     to always fail with ENOSYS.  Some functions are actually named
22190     something starting with __ and the normal name is an alias.  */
22191 #if defined __stub_$ac_func || defined __stub___$ac_func
22192 choke me
22193 #endif
22194
22195 int
22196 main ()
22197 {
22198 return $ac_func ();
22199   ;
22200   return 0;
22201 }
22202 _ACEOF
22203 rm -f conftest.$ac_objext conftest$ac_exeext
22204 if { (ac_try="$ac_link"
22205 case "(($ac_try" in
22206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207   *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210   (eval "$ac_link") 2>conftest.er1
22211   ac_status=$?
22212   grep -v '^ *+' conftest.er1 >conftest.err
22213   rm -f conftest.er1
22214   cat conftest.err >&5
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); } && {
22217          test -z "$ac_c_werror_flag" ||
22218          test ! -s conftest.err
22219        } && test -s conftest$ac_exeext &&
22220        $as_test_x conftest$ac_exeext; then
22221   eval "$as_ac_var=yes"
22222 else
22223   echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22225
22226         eval "$as_ac_var=no"
22227 fi
22228
22229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22230       conftest$ac_exeext conftest.$ac_ext
22231 fi
22232 ac_res=`eval echo '${'$as_ac_var'}'`
22233                { echo "$as_me:$LINENO: result: $ac_res" >&5
22234 echo "${ECHO_T}$ac_res" >&6; }
22235 if test `eval echo '${'$as_ac_var'}'` = yes; then
22236   cat >>confdefs.h <<_ACEOF
22237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22238 _ACEOF
22239
22240 fi
22241 done
22242
22243
22244
22245   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22246 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22247 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22248   echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250   cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256 #include <stdio.h>
22257 int
22258 main ()
22259 {
22260
22261 #ifndef _snprintf
22262   char *p = (char *) _snprintf;
22263 #endif
22264
22265   ;
22266   return 0;
22267 }
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273   *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276   (eval "$ac_compile") 2>conftest.er1
22277   ac_status=$?
22278   grep -v '^ *+' conftest.er1 >conftest.err
22279   rm -f conftest.er1
22280   cat conftest.err >&5
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } && {
22283          test -z "$ac_c_werror_flag" ||
22284          test ! -s conftest.err
22285        } && test -s conftest.$ac_objext; then
22286   ac_cv_have_decl__snprintf=yes
22287 else
22288   echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22290
22291         ac_cv_have_decl__snprintf=no
22292 fi
22293
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 fi
22296 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22297 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22298   if test $ac_cv_have_decl__snprintf = yes; then
22299     gt_value=1
22300   else
22301     gt_value=0
22302   fi
22303
22304 cat >>confdefs.h <<_ACEOF
22305 #define HAVE_DECL__SNPRINTF $gt_value
22306 _ACEOF
22307
22308
22309
22310   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22311 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22312 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22313   echo $ECHO_N "(cached) $ECHO_C" >&6
22314 else
22315   cat >conftest.$ac_ext <<_ACEOF
22316 /* confdefs.h.  */
22317 _ACEOF
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h.  */
22321 #include <stdio.h>
22322 int
22323 main ()
22324 {
22325
22326 #ifndef _snwprintf
22327   char *p = (char *) _snwprintf;
22328 #endif
22329
22330   ;
22331   return 0;
22332 }
22333 _ACEOF
22334 rm -f conftest.$ac_objext
22335 if { (ac_try="$ac_compile"
22336 case "(($ac_try" in
22337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338   *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341   (eval "$ac_compile") 2>conftest.er1
22342   ac_status=$?
22343   grep -v '^ *+' conftest.er1 >conftest.err
22344   rm -f conftest.er1
22345   cat conftest.err >&5
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); } && {
22348          test -z "$ac_c_werror_flag" ||
22349          test ! -s conftest.err
22350        } && test -s conftest.$ac_objext; then
22351   ac_cv_have_decl__snwprintf=yes
22352 else
22353   echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22355
22356         ac_cv_have_decl__snwprintf=no
22357 fi
22358
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 fi
22361 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22362 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22363   if test $ac_cv_have_decl__snwprintf = yes; then
22364     gt_value=1
22365   else
22366     gt_value=0
22367   fi
22368
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_DECL__SNWPRINTF $gt_value
22371 _ACEOF
22372
22373
22374
22375
22376   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22377 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22378 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22379   echo $ECHO_N "(cached) $ECHO_C" >&6
22380 else
22381   cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h.  */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h.  */
22387 #include <stdio.h>
22388 int
22389 main ()
22390 {
22391
22392 #ifndef feof_unlocked
22393   char *p = (char *) feof_unlocked;
22394 #endif
22395
22396   ;
22397   return 0;
22398 }
22399 _ACEOF
22400 rm -f conftest.$ac_objext
22401 if { (ac_try="$ac_compile"
22402 case "(($ac_try" in
22403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404   *) ac_try_echo=$ac_try;;
22405 esac
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407   (eval "$ac_compile") 2>conftest.er1
22408   ac_status=$?
22409   grep -v '^ *+' conftest.er1 >conftest.err
22410   rm -f conftest.er1
22411   cat conftest.err >&5
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); } && {
22414          test -z "$ac_c_werror_flag" ||
22415          test ! -s conftest.err
22416        } && test -s conftest.$ac_objext; then
22417   ac_cv_have_decl_feof_unlocked=yes
22418 else
22419   echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422         ac_cv_have_decl_feof_unlocked=no
22423 fi
22424
22425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 fi
22427 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22428 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22429   if test $ac_cv_have_decl_feof_unlocked = yes; then
22430     gt_value=1
22431   else
22432     gt_value=0
22433   fi
22434
22435 cat >>confdefs.h <<_ACEOF
22436 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22437 _ACEOF
22438
22439
22440
22441   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22442 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22443 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22444   echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446   cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h.  */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h.  */
22452 #include <stdio.h>
22453 int
22454 main ()
22455 {
22456
22457 #ifndef fgets_unlocked
22458   char *p = (char *) fgets_unlocked;
22459 #endif
22460
22461   ;
22462   return 0;
22463 }
22464 _ACEOF
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469   *) ac_try_echo=$ac_try;;
22470 esac
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472   (eval "$ac_compile") 2>conftest.er1
22473   ac_status=$?
22474   grep -v '^ *+' conftest.er1 >conftest.err
22475   rm -f conftest.er1
22476   cat conftest.err >&5
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); } && {
22479          test -z "$ac_c_werror_flag" ||
22480          test ! -s conftest.err
22481        } && test -s conftest.$ac_objext; then
22482   ac_cv_have_decl_fgets_unlocked=yes
22483 else
22484   echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487         ac_cv_have_decl_fgets_unlocked=no
22488 fi
22489
22490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22491 fi
22492 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22493 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22494   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22495     gt_value=1
22496   else
22497     gt_value=0
22498   fi
22499
22500 cat >>confdefs.h <<_ACEOF
22501 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22502 _ACEOF
22503
22504
22505
22506   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22507 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22508 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22509   echo $ECHO_N "(cached) $ECHO_C" >&6
22510 else
22511   cat >conftest.$ac_ext <<_ACEOF
22512 /* confdefs.h.  */
22513 _ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h.  */
22517 #include <stdio.h>
22518 int
22519 main ()
22520 {
22521
22522 #ifndef getc_unlocked
22523   char *p = (char *) getc_unlocked;
22524 #endif
22525
22526   ;
22527   return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest.$ac_objext
22531 if { (ac_try="$ac_compile"
22532 case "(($ac_try" in
22533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534   *) ac_try_echo=$ac_try;;
22535 esac
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537   (eval "$ac_compile") 2>conftest.er1
22538   ac_status=$?
22539   grep -v '^ *+' conftest.er1 >conftest.err
22540   rm -f conftest.er1
22541   cat conftest.err >&5
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); } && {
22544          test -z "$ac_c_werror_flag" ||
22545          test ! -s conftest.err
22546        } && test -s conftest.$ac_objext; then
22547   ac_cv_have_decl_getc_unlocked=yes
22548 else
22549   echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22551
22552         ac_cv_have_decl_getc_unlocked=no
22553 fi
22554
22555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22556 fi
22557 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22558 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22559   if test $ac_cv_have_decl_getc_unlocked = yes; then
22560     gt_value=1
22561   else
22562     gt_value=0
22563   fi
22564
22565 cat >>confdefs.h <<_ACEOF
22566 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22567 _ACEOF
22568
22569
22570
22571   case $gt_cv_func_printf_posix in
22572     *yes) HAVE_POSIX_PRINTF=1 ;;
22573     *) HAVE_POSIX_PRINTF=0 ;;
22574   esac
22575
22576   if test "$ac_cv_func_asprintf" = yes; then
22577     HAVE_ASPRINTF=1
22578   else
22579     HAVE_ASPRINTF=0
22580   fi
22581
22582   if test "$ac_cv_func_snprintf" = yes; then
22583     HAVE_SNPRINTF=1
22584   else
22585     HAVE_SNPRINTF=0
22586   fi
22587
22588   if test "$ac_cv_func_wprintf" = yes; then
22589     HAVE_WPRINTF=1
22590   else
22591     HAVE_WPRINTF=0
22592   fi
22593
22594
22595
22596
22597
22598
22599
22600           am_save_CPPFLAGS="$CPPFLAGS"
22601
22602   for element in $INCICONV; do
22603     haveit=
22604     for x in $CPPFLAGS; do
22605
22606   acl_save_prefix="$prefix"
22607   prefix="$acl_final_prefix"
22608   acl_save_exec_prefix="$exec_prefix"
22609   exec_prefix="$acl_final_exec_prefix"
22610   eval x=\"$x\"
22611   exec_prefix="$acl_save_exec_prefix"
22612   prefix="$acl_save_prefix"
22613
22614       if test "X$x" = "X$element"; then
22615         haveit=yes
22616         break
22617       fi
22618     done
22619     if test -z "$haveit"; then
22620       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22621     fi
22622   done
22623
22624
22625   { echo "$as_me:$LINENO: checking for iconv" >&5
22626 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22627 if test "${am_cv_func_iconv+set}" = set; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630
22631     am_cv_func_iconv="no, consider installing GNU libiconv"
22632     am_cv_lib_iconv=no
22633     cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h.  */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h.  */
22639 #include <stdlib.h>
22640 #include <iconv.h>
22641 int
22642 main ()
22643 {
22644 iconv_t cd = iconv_open("","");
22645        iconv(cd,NULL,NULL,NULL,NULL);
22646        iconv_close(cd);
22647   ;
22648   return 0;
22649 }
22650 _ACEOF
22651 rm -f conftest.$ac_objext conftest$ac_exeext
22652 if { (ac_try="$ac_link"
22653 case "(($ac_try" in
22654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655   *) ac_try_echo=$ac_try;;
22656 esac
22657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22658   (eval "$ac_link") 2>conftest.er1
22659   ac_status=$?
22660   grep -v '^ *+' conftest.er1 >conftest.err
22661   rm -f conftest.er1
22662   cat conftest.err >&5
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); } && {
22665          test -z "$ac_c_werror_flag" ||
22666          test ! -s conftest.err
22667        } && test -s conftest$ac_exeext &&
22668        $as_test_x conftest$ac_exeext; then
22669   am_cv_func_iconv=yes
22670 else
22671   echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22673
22674
22675 fi
22676
22677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22678       conftest$ac_exeext conftest.$ac_ext
22679     if test "$am_cv_func_iconv" != yes; then
22680       am_save_LIBS="$LIBS"
22681       LIBS="$LIBS $LIBICONV"
22682       cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 #include <stdlib.h>
22689 #include <iconv.h>
22690 int
22691 main ()
22692 {
22693 iconv_t cd = iconv_open("","");
22694          iconv(cd,NULL,NULL,NULL,NULL);
22695          iconv_close(cd);
22696   ;
22697   return 0;
22698 }
22699 _ACEOF
22700 rm -f conftest.$ac_objext conftest$ac_exeext
22701 if { (ac_try="$ac_link"
22702 case "(($ac_try" in
22703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704   *) ac_try_echo=$ac_try;;
22705 esac
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707   (eval "$ac_link") 2>conftest.er1
22708   ac_status=$?
22709   grep -v '^ *+' conftest.er1 >conftest.err
22710   rm -f conftest.er1
22711   cat conftest.err >&5
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); } && {
22714          test -z "$ac_c_werror_flag" ||
22715          test ! -s conftest.err
22716        } && test -s conftest$ac_exeext &&
22717        $as_test_x conftest$ac_exeext; then
22718   am_cv_lib_iconv=yes
22719         am_cv_func_iconv=yes
22720 else
22721   echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22723
22724
22725 fi
22726
22727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22728       conftest$ac_exeext conftest.$ac_ext
22729       LIBS="$am_save_LIBS"
22730     fi
22731
22732 fi
22733 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22734 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22735   if test "$am_cv_func_iconv" = yes; then
22736
22737 cat >>confdefs.h <<\_ACEOF
22738 #define HAVE_ICONV 1
22739 _ACEOF
22740
22741   fi
22742   if test "$am_cv_lib_iconv" = yes; then
22743     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22744 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22745     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22746 echo "${ECHO_T}$LIBICONV" >&6; }
22747   else
22748             CPPFLAGS="$am_save_CPPFLAGS"
22749     LIBICONV=
22750     LTLIBICONV=
22751   fi
22752
22753
22754
22755   if test "$am_cv_func_iconv" = yes; then
22756     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22757 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22758     if test "${am_cv_proto_iconv+set}" = set; then
22759   echo $ECHO_N "(cached) $ECHO_C" >&6
22760 else
22761
22762       cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h.  */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h.  */
22768
22769 #include <stdlib.h>
22770 #include <iconv.h>
22771 extern
22772 #ifdef __cplusplus
22773 "C"
22774 #endif
22775 #if defined(__STDC__) || defined(__cplusplus)
22776 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22777 #else
22778 size_t iconv();
22779 #endif
22780
22781 int
22782 main ()
22783 {
22784
22785   ;
22786   return 0;
22787 }
22788 _ACEOF
22789 rm -f conftest.$ac_objext
22790 if { (ac_try="$ac_compile"
22791 case "(($ac_try" in
22792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793   *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796   (eval "$ac_compile") 2>conftest.er1
22797   ac_status=$?
22798   grep -v '^ *+' conftest.er1 >conftest.err
22799   rm -f conftest.er1
22800   cat conftest.err >&5
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); } && {
22803          test -z "$ac_c_werror_flag" ||
22804          test ! -s conftest.err
22805        } && test -s conftest.$ac_objext; then
22806   am_cv_proto_iconv_arg1=""
22807 else
22808   echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811         am_cv_proto_iconv_arg1="const"
22812 fi
22813
22814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22815       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);"
22816 fi
22817
22818     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22819     { echo "$as_me:$LINENO: result: ${ac_t:-
22820          }$am_cv_proto_iconv" >&5
22821 echo "${ECHO_T}${ac_t:-
22822          }$am_cv_proto_iconv" >&6; }
22823
22824 cat >>confdefs.h <<_ACEOF
22825 #define ICONV_CONST $am_cv_proto_iconv_arg1
22826 _ACEOF
22827
22828   fi
22829
22830
22831   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22832 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22833 if test "${am_cv_langinfo_codeset+set}" = set; then
22834   echo $ECHO_N "(cached) $ECHO_C" >&6
22835 else
22836   cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h.  */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h.  */
22842 #include <langinfo.h>
22843 int
22844 main ()
22845 {
22846 char* cs = nl_langinfo(CODESET);
22847   ;
22848   return 0;
22849 }
22850 _ACEOF
22851 rm -f conftest.$ac_objext conftest$ac_exeext
22852 if { (ac_try="$ac_link"
22853 case "(($ac_try" in
22854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855   *) ac_try_echo=$ac_try;;
22856 esac
22857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858   (eval "$ac_link") 2>conftest.er1
22859   ac_status=$?
22860   grep -v '^ *+' conftest.er1 >conftest.err
22861   rm -f conftest.er1
22862   cat conftest.err >&5
22863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864   (exit $ac_status); } && {
22865          test -z "$ac_c_werror_flag" ||
22866          test ! -s conftest.err
22867        } && test -s conftest$ac_exeext &&
22868        $as_test_x conftest$ac_exeext; then
22869   am_cv_langinfo_codeset=yes
22870 else
22871   echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22873
22874         am_cv_langinfo_codeset=no
22875 fi
22876
22877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22878       conftest$ac_exeext conftest.$ac_ext
22879
22880 fi
22881 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22882 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22883   if test $am_cv_langinfo_codeset = yes; then
22884
22885 cat >>confdefs.h <<\_ACEOF
22886 #define HAVE_LANGINFO_CODESET 1
22887 _ACEOF
22888
22889   fi
22890
22891   if test $ac_cv_header_locale_h = yes; then
22892
22893   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22894 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22895 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22896   echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898   cat >conftest.$ac_ext <<_ACEOF
22899 /* confdefs.h.  */
22900 _ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h.  */
22904 #include <locale.h>
22905 int
22906 main ()
22907 {
22908 return LC_MESSAGES
22909   ;
22910   return 0;
22911 }
22912 _ACEOF
22913 rm -f conftest.$ac_objext conftest$ac_exeext
22914 if { (ac_try="$ac_link"
22915 case "(($ac_try" in
22916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917   *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920   (eval "$ac_link") 2>conftest.er1
22921   ac_status=$?
22922   grep -v '^ *+' conftest.er1 >conftest.err
22923   rm -f conftest.er1
22924   cat conftest.err >&5
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); } && {
22927          test -z "$ac_c_werror_flag" ||
22928          test ! -s conftest.err
22929        } && test -s conftest$ac_exeext &&
22930        $as_test_x conftest$ac_exeext; then
22931   gt_cv_val_LC_MESSAGES=yes
22932 else
22933   echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936         gt_cv_val_LC_MESSAGES=no
22937 fi
22938
22939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22940       conftest$ac_exeext conftest.$ac_ext
22941 fi
22942 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22943 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22944   if test $gt_cv_val_LC_MESSAGES = yes; then
22945
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_LC_MESSAGES 1
22948 _ACEOF
22949
22950   fi
22951
22952   fi
22953
22954   if test -n "$INTL_MACOSX_LIBS"; then
22955     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22956   fi
22957
22958                       for ac_prog in bison
22959 do
22960   # Extract the first word of "$ac_prog", so it can be a program name with args.
22961 set dummy $ac_prog; ac_word=$2
22962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22964 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22965   echo $ECHO_N "(cached) $ECHO_C" >&6
22966 else
22967   if test -n "$INTLBISON"; then
22968   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22969 else
22970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22971 for as_dir in $PATH
22972 do
22973   IFS=$as_save_IFS
22974   test -z "$as_dir" && as_dir=.
22975   for ac_exec_ext in '' $ac_executable_extensions; do
22976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22977     ac_cv_prog_INTLBISON="$ac_prog"
22978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22979     break 2
22980   fi
22981 done
22982 done
22983 IFS=$as_save_IFS
22984
22985 fi
22986 fi
22987 INTLBISON=$ac_cv_prog_INTLBISON
22988 if test -n "$INTLBISON"; then
22989   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22990 echo "${ECHO_T}$INTLBISON" >&6; }
22991 else
22992   { echo "$as_me:$LINENO: result: no" >&5
22993 echo "${ECHO_T}no" >&6; }
22994 fi
22995
22996
22997   test -n "$INTLBISON" && break
22998 done
22999
23000   if test -z "$INTLBISON"; then
23001     ac_verc_fail=yes
23002   else
23003         { echo "$as_me:$LINENO: checking version of bison" >&5
23004 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23005     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23006     case $ac_prog_version in
23007       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23008       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23009          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23010       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23011     esac
23012     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23013 echo "${ECHO_T}$ac_prog_version" >&6; }
23014   fi
23015   if test $ac_verc_fail = yes; then
23016     INTLBISON=:
23017   fi
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23035 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23036 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23037   echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039   gt_save_CPPFLAGS="$CPPFLAGS"
23040      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23041      gt_save_LIBS="$LIBS"
23042      LIBS="$LIBS -framework CoreFoundation"
23043      cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h.  */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h.  */
23049 #include <CFPreferences.h>
23050 int
23051 main ()
23052 {
23053 CFPreferencesCopyAppValue(NULL, NULL)
23054   ;
23055   return 0;
23056 }
23057 _ACEOF
23058 rm -f conftest.$ac_objext conftest$ac_exeext
23059 if { (ac_try="$ac_link"
23060 case "(($ac_try" in
23061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062   *) ac_try_echo=$ac_try;;
23063 esac
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065   (eval "$ac_link") 2>conftest.er1
23066   ac_status=$?
23067   grep -v '^ *+' conftest.er1 >conftest.err
23068   rm -f conftest.er1
23069   cat conftest.err >&5
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); } && {
23072          test -z "$ac_c_werror_flag" ||
23073          test ! -s conftest.err
23074        } && test -s conftest$ac_exeext &&
23075        $as_test_x conftest$ac_exeext; then
23076   gt_cv_func_CFPreferencesCopyAppValue=yes
23077 else
23078   echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23080
23081         gt_cv_func_CFPreferencesCopyAppValue=no
23082 fi
23083
23084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23085       conftest$ac_exeext conftest.$ac_ext
23086      CPPFLAGS="$gt_save_CPPFLAGS"
23087      LIBS="$gt_save_LIBS"
23088 fi
23089 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23090 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23091   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23092
23093 cat >>confdefs.h <<\_ACEOF
23094 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23095 _ACEOF
23096
23097   fi
23098     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23099 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23100 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23101   echo $ECHO_N "(cached) $ECHO_C" >&6
23102 else
23103   gt_save_CPPFLAGS="$CPPFLAGS"
23104      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23105      gt_save_LIBS="$LIBS"
23106      LIBS="$LIBS -framework CoreFoundation"
23107      cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h.  */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h.  */
23113 #include <CFLocale.h>
23114 int
23115 main ()
23116 {
23117 CFLocaleCopyCurrent();
23118   ;
23119   return 0;
23120 }
23121 _ACEOF
23122 rm -f conftest.$ac_objext conftest$ac_exeext
23123 if { (ac_try="$ac_link"
23124 case "(($ac_try" in
23125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126   *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129   (eval "$ac_link") 2>conftest.er1
23130   ac_status=$?
23131   grep -v '^ *+' conftest.er1 >conftest.err
23132   rm -f conftest.er1
23133   cat conftest.err >&5
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); } && {
23136          test -z "$ac_c_werror_flag" ||
23137          test ! -s conftest.err
23138        } && test -s conftest$ac_exeext &&
23139        $as_test_x conftest$ac_exeext; then
23140   gt_cv_func_CFLocaleCopyCurrent=yes
23141 else
23142   echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23144
23145         gt_cv_func_CFLocaleCopyCurrent=no
23146 fi
23147
23148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23149       conftest$ac_exeext conftest.$ac_ext
23150      CPPFLAGS="$gt_save_CPPFLAGS"
23151      LIBS="$gt_save_LIBS"
23152 fi
23153 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23154 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23155   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23156
23157 cat >>confdefs.h <<\_ACEOF
23158 #define HAVE_CFLOCALECOPYCURRENT 1
23159 _ACEOF
23160
23161   fi
23162   INTL_MACOSX_LIBS=
23163   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23164     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23165   fi
23166
23167
23168
23169
23170   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23171 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23172     # Check whether --enable-nls was given.
23173 if test "${enable_nls+set}" = set; then
23174   enableval=$enable_nls; USE_NLS=$enableval
23175 else
23176   USE_NLS=yes
23177 fi
23178
23179   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23180 echo "${ECHO_T}$USE_NLS" >&6; }
23181
23182
23183
23184
23185     BUILD_INCLUDED_LIBINTL=no
23186     USE_INCLUDED_LIBINTL=no
23187
23188   LIBINTL=
23189   LTLIBINTL=
23190   POSUB=
23191
23192     if test "$USE_NLS" = "yes"; then
23193     gt_use_preinstalled_gnugettext=no
23194
23195       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23196 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23197
23198 # Check whether --with-included-gettext was given.
23199 if test "${with_included_gettext+set}" = set; then
23200   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23201 else
23202   nls_cv_force_use_gnu_gettext=no
23203 fi
23204
23205       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23206 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23207
23208       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23209       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23210
23211
23212
23213
23214
23215
23216         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23217 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23218 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23219   echo $ECHO_N "(cached) $ECHO_C" >&6
23220 else
23221   cat >conftest.$ac_ext <<_ACEOF
23222 /* confdefs.h.  */
23223 _ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h.  */
23227 #include <libintl.h>
23228 extern int _nl_msg_cat_cntr;
23229 extern int *_nl_domain_bindings;
23230 int
23231 main ()
23232 {
23233 bindtextdomain ("", "");
23234 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23235   ;
23236   return 0;
23237 }
23238 _ACEOF
23239 rm -f conftest.$ac_objext conftest$ac_exeext
23240 if { (ac_try="$ac_link"
23241 case "(($ac_try" in
23242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23243   *) ac_try_echo=$ac_try;;
23244 esac
23245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23246   (eval "$ac_link") 2>conftest.er1
23247   ac_status=$?
23248   grep -v '^ *+' conftest.er1 >conftest.err
23249   rm -f conftest.er1
23250   cat conftest.err >&5
23251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252   (exit $ac_status); } && {
23253          test -z "$ac_c_werror_flag" ||
23254          test ! -s conftest.err
23255        } && test -s conftest$ac_exeext &&
23256        $as_test_x conftest$ac_exeext; then
23257   gt_cv_func_gnugettext1_libc=yes
23258 else
23259   echo "$as_me: failed program was:" >&5
23260 sed 's/^/| /' conftest.$ac_ext >&5
23261
23262         gt_cv_func_gnugettext1_libc=no
23263 fi
23264
23265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23266       conftest$ac_exeext conftest.$ac_ext
23267 fi
23268 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23269 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23270
23271         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23272
23273
23274
23275     use_additional=yes
23276
23277   acl_save_prefix="$prefix"
23278   prefix="$acl_final_prefix"
23279   acl_save_exec_prefix="$exec_prefix"
23280   exec_prefix="$acl_final_exec_prefix"
23281
23282     eval additional_includedir=\"$includedir\"
23283     eval additional_libdir=\"$libdir\"
23284
23285   exec_prefix="$acl_save_exec_prefix"
23286   prefix="$acl_save_prefix"
23287
23288
23289 # Check whether --with-libintl-prefix was given.
23290 if test "${with_libintl_prefix+set}" = set; then
23291   withval=$with_libintl_prefix;
23292     if test "X$withval" = "Xno"; then
23293       use_additional=no
23294     else
23295       if test "X$withval" = "X"; then
23296
23297   acl_save_prefix="$prefix"
23298   prefix="$acl_final_prefix"
23299   acl_save_exec_prefix="$exec_prefix"
23300   exec_prefix="$acl_final_exec_prefix"
23301
23302           eval additional_includedir=\"$includedir\"
23303           eval additional_libdir=\"$libdir\"
23304
23305   exec_prefix="$acl_save_exec_prefix"
23306   prefix="$acl_save_prefix"
23307
23308       else
23309         additional_includedir="$withval/include"
23310         additional_libdir="$withval/lib"
23311       fi
23312     fi
23313
23314 fi
23315
23316       LIBINTL=
23317   LTLIBINTL=
23318   INCINTL=
23319   rpathdirs=
23320   ltrpathdirs=
23321   names_already_handled=
23322   names_next_round='intl '
23323   while test -n "$names_next_round"; do
23324     names_this_round="$names_next_round"
23325     names_next_round=
23326     for name in $names_this_round; do
23327       already_handled=
23328       for n in $names_already_handled; do
23329         if test "$n" = "$name"; then
23330           already_handled=yes
23331           break
23332         fi
23333       done
23334       if test -z "$already_handled"; then
23335         names_already_handled="$names_already_handled $name"
23336                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23337         eval value=\"\$HAVE_LIB$uppername\"
23338         if test -n "$value"; then
23339           if test "$value" = yes; then
23340             eval value=\"\$LIB$uppername\"
23341             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23342             eval value=\"\$LTLIB$uppername\"
23343             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23344           else
23345                                     :
23346           fi
23347         else
23348                               found_dir=
23349           found_la=
23350           found_so=
23351           found_a=
23352           if test $use_additional = yes; then
23353             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23354               found_dir="$additional_libdir"
23355               found_so="$additional_libdir/lib$name.$shlibext"
23356               if test -f "$additional_libdir/lib$name.la"; then
23357                 found_la="$additional_libdir/lib$name.la"
23358               fi
23359             else
23360               if test -f "$additional_libdir/lib$name.$libext"; then
23361                 found_dir="$additional_libdir"
23362                 found_a="$additional_libdir/lib$name.$libext"
23363                 if test -f "$additional_libdir/lib$name.la"; then
23364                   found_la="$additional_libdir/lib$name.la"
23365                 fi
23366               fi
23367             fi
23368           fi
23369           if test "X$found_dir" = "X"; then
23370             for x in $LDFLAGS $LTLIBINTL; do
23371
23372   acl_save_prefix="$prefix"
23373   prefix="$acl_final_prefix"
23374   acl_save_exec_prefix="$exec_prefix"
23375   exec_prefix="$acl_final_exec_prefix"
23376   eval x=\"$x\"
23377   exec_prefix="$acl_save_exec_prefix"
23378   prefix="$acl_save_prefix"
23379
23380               case "$x" in
23381                 -L*)
23382                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23383                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23384                     found_dir="$dir"
23385                     found_so="$dir/lib$name.$shlibext"
23386                     if test -f "$dir/lib$name.la"; then
23387                       found_la="$dir/lib$name.la"
23388                     fi
23389                   else
23390                     if test -f "$dir/lib$name.$libext"; then
23391                       found_dir="$dir"
23392                       found_a="$dir/lib$name.$libext"
23393                       if test -f "$dir/lib$name.la"; then
23394                         found_la="$dir/lib$name.la"
23395                       fi
23396                     fi
23397                   fi
23398                   ;;
23399               esac
23400               if test "X$found_dir" != "X"; then
23401                 break
23402               fi
23403             done
23404           fi
23405           if test "X$found_dir" != "X"; then
23406                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23407             if test "X$found_so" != "X"; then
23408                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23409                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23410               else
23411                                                                                 haveit=
23412                 for x in $ltrpathdirs; do
23413                   if test "X$x" = "X$found_dir"; then
23414                     haveit=yes
23415                     break
23416                   fi
23417                 done
23418                 if test -z "$haveit"; then
23419                   ltrpathdirs="$ltrpathdirs $found_dir"
23420                 fi
23421                                 if test "$hardcode_direct" = yes; then
23422                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23423                 else
23424                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23425                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23426                                                             haveit=
23427                     for x in $rpathdirs; do
23428                       if test "X$x" = "X$found_dir"; then
23429                         haveit=yes
23430                         break
23431                       fi
23432                     done
23433                     if test -z "$haveit"; then
23434                       rpathdirs="$rpathdirs $found_dir"
23435                     fi
23436                   else
23437                                                                                 haveit=
23438                     for x in $LDFLAGS $LIBINTL; do
23439
23440   acl_save_prefix="$prefix"
23441   prefix="$acl_final_prefix"
23442   acl_save_exec_prefix="$exec_prefix"
23443   exec_prefix="$acl_final_exec_prefix"
23444   eval x=\"$x\"
23445   exec_prefix="$acl_save_exec_prefix"
23446   prefix="$acl_save_prefix"
23447
23448                       if test "X$x" = "X-L$found_dir"; then
23449                         haveit=yes
23450                         break
23451                       fi
23452                     done
23453                     if test -z "$haveit"; then
23454                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23455                     fi
23456                     if test "$hardcode_minus_L" != no; then
23457                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23458                     else
23459                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23460                     fi
23461                   fi
23462                 fi
23463               fi
23464             else
23465               if test "X$found_a" != "X"; then
23466                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23467               else
23468                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23469               fi
23470             fi
23471                         additional_includedir=
23472             case "$found_dir" in
23473               */lib | */lib/)
23474                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23475                 additional_includedir="$basedir/include"
23476                 ;;
23477             esac
23478             if test "X$additional_includedir" != "X"; then
23479                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23480                 haveit=
23481                 if test "X$additional_includedir" = "X/usr/local/include"; then
23482                   if test -n "$GCC"; then
23483                     case $host_os in
23484                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23485                     esac
23486                   fi
23487                 fi
23488                 if test -z "$haveit"; then
23489                   for x in $CPPFLAGS $INCINTL; do
23490
23491   acl_save_prefix="$prefix"
23492   prefix="$acl_final_prefix"
23493   acl_save_exec_prefix="$exec_prefix"
23494   exec_prefix="$acl_final_exec_prefix"
23495   eval x=\"$x\"
23496   exec_prefix="$acl_save_exec_prefix"
23497   prefix="$acl_save_prefix"
23498
23499                     if test "X$x" = "X-I$additional_includedir"; then
23500                       haveit=yes
23501                       break
23502                     fi
23503                   done
23504                   if test -z "$haveit"; then
23505                     if test -d "$additional_includedir"; then
23506                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23507                     fi
23508                   fi
23509                 fi
23510               fi
23511             fi
23512                         if test -n "$found_la"; then
23513                                                         save_libdir="$libdir"
23514               case "$found_la" in
23515                 */* | *\\*) . "$found_la" ;;
23516                 *) . "./$found_la" ;;
23517               esac
23518               libdir="$save_libdir"
23519                             for dep in $dependency_libs; do
23520                 case "$dep" in
23521                   -L*)
23522                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23523                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23524                       haveit=
23525                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23526                         if test -n "$GCC"; then
23527                           case $host_os in
23528                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23529                           esac
23530                         fi
23531                       fi
23532                       if test -z "$haveit"; then
23533                         haveit=
23534                         for x in $LDFLAGS $LIBINTL; do
23535
23536   acl_save_prefix="$prefix"
23537   prefix="$acl_final_prefix"
23538   acl_save_exec_prefix="$exec_prefix"
23539   exec_prefix="$acl_final_exec_prefix"
23540   eval x=\"$x\"
23541   exec_prefix="$acl_save_exec_prefix"
23542   prefix="$acl_save_prefix"
23543
23544                           if test "X$x" = "X-L$additional_libdir"; then
23545                             haveit=yes
23546                             break
23547                           fi
23548                         done
23549                         if test -z "$haveit"; then
23550                           if test -d "$additional_libdir"; then
23551                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23552                           fi
23553                         fi
23554                         haveit=
23555                         for x in $LDFLAGS $LTLIBINTL; do
23556
23557   acl_save_prefix="$prefix"
23558   prefix="$acl_final_prefix"
23559   acl_save_exec_prefix="$exec_prefix"
23560   exec_prefix="$acl_final_exec_prefix"
23561   eval x=\"$x\"
23562   exec_prefix="$acl_save_exec_prefix"
23563   prefix="$acl_save_prefix"
23564
23565                           if test "X$x" = "X-L$additional_libdir"; then
23566                             haveit=yes
23567                             break
23568                           fi
23569                         done
23570                         if test -z "$haveit"; then
23571                           if test -d "$additional_libdir"; then
23572                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23573                           fi
23574                         fi
23575                       fi
23576                     fi
23577                     ;;
23578                   -R*)
23579                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23580                     if test "$enable_rpath" != no; then
23581                                                                   haveit=
23582                       for x in $rpathdirs; do
23583                         if test "X$x" = "X$dir"; then
23584                           haveit=yes
23585                           break
23586                         fi
23587                       done
23588                       if test -z "$haveit"; then
23589                         rpathdirs="$rpathdirs $dir"
23590                       fi
23591                                                                   haveit=
23592                       for x in $ltrpathdirs; do
23593                         if test "X$x" = "X$dir"; then
23594                           haveit=yes
23595                           break
23596                         fi
23597                       done
23598                       if test -z "$haveit"; then
23599                         ltrpathdirs="$ltrpathdirs $dir"
23600                       fi
23601                     fi
23602                     ;;
23603                   -l*)
23604                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23605                     ;;
23606                   *.la)
23607                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23608                     ;;
23609                   *)
23610                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23611                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23612                     ;;
23613                 esac
23614               done
23615             fi
23616           else
23617                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23618             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23619           fi
23620         fi
23621       fi
23622     done
23623   done
23624   if test "X$rpathdirs" != "X"; then
23625     if test -n "$hardcode_libdir_separator"; then
23626                         alldirs=
23627       for found_dir in $rpathdirs; do
23628         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23629       done
23630             acl_save_libdir="$libdir"
23631       libdir="$alldirs"
23632       eval flag=\"$hardcode_libdir_flag_spec\"
23633       libdir="$acl_save_libdir"
23634       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23635     else
23636             for found_dir in $rpathdirs; do
23637         acl_save_libdir="$libdir"
23638         libdir="$found_dir"
23639         eval flag=\"$hardcode_libdir_flag_spec\"
23640         libdir="$acl_save_libdir"
23641         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23642       done
23643     fi
23644   fi
23645   if test "X$ltrpathdirs" != "X"; then
23646             for found_dir in $ltrpathdirs; do
23647       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23648     done
23649   fi
23650
23651           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23652 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23653 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23654   echo $ECHO_N "(cached) $ECHO_C" >&6
23655 else
23656   gt_save_CPPFLAGS="$CPPFLAGS"
23657             CPPFLAGS="$CPPFLAGS $INCINTL"
23658             gt_save_LIBS="$LIBS"
23659             LIBS="$LIBS $LIBINTL"
23660                         cat >conftest.$ac_ext <<_ACEOF
23661 /* confdefs.h.  */
23662 _ACEOF
23663 cat confdefs.h >>conftest.$ac_ext
23664 cat >>conftest.$ac_ext <<_ACEOF
23665 /* end confdefs.h.  */
23666 #include <libintl.h>
23667 extern int _nl_msg_cat_cntr;
23668 extern
23669 #ifdef __cplusplus
23670 "C"
23671 #endif
23672 const char *_nl_expand_alias (const char *);
23673 int
23674 main ()
23675 {
23676 bindtextdomain ("", "");
23677 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23678   ;
23679   return 0;
23680 }
23681 _ACEOF
23682 rm -f conftest.$ac_objext conftest$ac_exeext
23683 if { (ac_try="$ac_link"
23684 case "(($ac_try" in
23685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686   *) ac_try_echo=$ac_try;;
23687 esac
23688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689   (eval "$ac_link") 2>conftest.er1
23690   ac_status=$?
23691   grep -v '^ *+' conftest.er1 >conftest.err
23692   rm -f conftest.er1
23693   cat conftest.err >&5
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); } && {
23696          test -z "$ac_c_werror_flag" ||
23697          test ! -s conftest.err
23698        } && test -s conftest$ac_exeext &&
23699        $as_test_x conftest$ac_exeext; then
23700   gt_cv_func_gnugettext1_libintl=yes
23701 else
23702   echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23704
23705         gt_cv_func_gnugettext1_libintl=no
23706 fi
23707
23708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23709       conftest$ac_exeext conftest.$ac_ext
23710                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23711               LIBS="$LIBS $LIBICONV"
23712               cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718 #include <libintl.h>
23719 extern int _nl_msg_cat_cntr;
23720 extern
23721 #ifdef __cplusplus
23722 "C"
23723 #endif
23724 const char *_nl_expand_alias (const char *);
23725 int
23726 main ()
23727 {
23728 bindtextdomain ("", "");
23729 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23730   ;
23731   return 0;
23732 }
23733 _ACEOF
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (ac_try="$ac_link"
23736 case "(($ac_try" in
23737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23738   *) ac_try_echo=$ac_try;;
23739 esac
23740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23741   (eval "$ac_link") 2>conftest.er1
23742   ac_status=$?
23743   grep -v '^ *+' conftest.er1 >conftest.err
23744   rm -f conftest.er1
23745   cat conftest.err >&5
23746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747   (exit $ac_status); } && {
23748          test -z "$ac_c_werror_flag" ||
23749          test ! -s conftest.err
23750        } && test -s conftest$ac_exeext &&
23751        $as_test_x conftest$ac_exeext; then
23752   LIBINTL="$LIBINTL $LIBICONV"
23753                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23754                 gt_cv_func_gnugettext1_libintl=yes
23755
23756 else
23757   echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23759
23760
23761 fi
23762
23763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23764       conftest$ac_exeext conftest.$ac_ext
23765             fi
23766             CPPFLAGS="$gt_save_CPPFLAGS"
23767             LIBS="$gt_save_LIBS"
23768 fi
23769 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23770 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23771         fi
23772
23773                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23774            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23775                 && test "$PACKAGE" != gettext-runtime \
23776                 && test "$PACKAGE" != gettext-tools; }; then
23777           gt_use_preinstalled_gnugettext=yes
23778         else
23779                     LIBINTL=
23780           LTLIBINTL=
23781           INCINTL=
23782         fi
23783
23784
23785         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23786                               nls_cv_use_gnu_gettext=yes
23787         fi
23788       fi
23789
23790       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23791                 BUILD_INCLUDED_LIBINTL=yes
23792         USE_INCLUDED_LIBINTL=yes
23793         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23794         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23795         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23796       fi
23797
23798       CATOBJEXT=
23799       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23800          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23801                 CATOBJEXT=.gmo
23802       fi
23803
23804
23805     if test -n "$INTL_MACOSX_LIBS"; then
23806       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23807          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23808                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23809         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23810       fi
23811     fi
23812
23813     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23814        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23815
23816 cat >>confdefs.h <<\_ACEOF
23817 #define ENABLE_NLS 1
23818 _ACEOF
23819
23820     else
23821       USE_NLS=no
23822     fi
23823   fi
23824
23825   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23826 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23827   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23828 echo "${ECHO_T}$USE_NLS" >&6; }
23829   if test "$USE_NLS" = "yes"; then
23830     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23831 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23832     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23833       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23834         gt_source="external libintl"
23835       else
23836         gt_source="libc"
23837       fi
23838     else
23839       gt_source="included intl directory"
23840     fi
23841     { echo "$as_me:$LINENO: result: $gt_source" >&5
23842 echo "${ECHO_T}$gt_source" >&6; }
23843   fi
23844
23845   if test "$USE_NLS" = "yes"; then
23846
23847     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23848       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23849         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23850 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23851         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23852 echo "${ECHO_T}$LIBINTL" >&6; }
23853
23854   for element in $INCINTL; do
23855     haveit=
23856     for x in $CPPFLAGS; do
23857
23858   acl_save_prefix="$prefix"
23859   prefix="$acl_final_prefix"
23860   acl_save_exec_prefix="$exec_prefix"
23861   exec_prefix="$acl_final_exec_prefix"
23862   eval x=\"$x\"
23863   exec_prefix="$acl_save_exec_prefix"
23864   prefix="$acl_save_prefix"
23865
23866       if test "X$x" = "X$element"; then
23867         haveit=yes
23868         break
23869       fi
23870     done
23871     if test -z "$haveit"; then
23872       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23873     fi
23874   done
23875
23876       fi
23877
23878
23879 cat >>confdefs.h <<\_ACEOF
23880 #define HAVE_GETTEXT 1
23881 _ACEOF
23882
23883
23884 cat >>confdefs.h <<\_ACEOF
23885 #define HAVE_DCGETTEXT 1
23886 _ACEOF
23887
23888     fi
23889
23890         POSUB=po
23891   fi
23892
23893
23894             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23895       BUILD_INCLUDED_LIBINTL=yes
23896     fi
23897
23898
23899
23900
23901
23902         nls_cv_header_intl=
23903     nls_cv_header_libgt=
23904
23905         DATADIRNAME=share
23906
23907
23908         INSTOBJEXT=.mo
23909
23910
23911         GENCAT=gencat
23912
23913
23914         INTLOBJS=
23915     if test "$USE_INCLUDED_LIBINTL" = yes; then
23916       INTLOBJS="\$(GETTOBJS)"
23917     fi
23918
23919
23920         INTL_LIBTOOL_SUFFIX_PREFIX=
23921
23922
23923
23924     INTLLIBS="$LIBINTL"
23925
23926
23927
23928
23929
23930
23931 fi
23932
23933 support_mysql=no
23934 support_sqlite=no
23935 support_sqlite3=no
23936 support_postgresql=no
23937 support_dbi=no
23938 support_smartalloc=yes
23939 support_readline=yes
23940 support_conio=yes
23941 support_gnome=no
23942 support_bat=no
23943 support_wx_console=no
23944 support_tray_monitor=no
23945 support_tls=no
23946 support_crypto=no
23947 gnome_version=
23948 wx_version=
23949 support_static_tools=no
23950 support_static_fd=no
23951 support_static_sd=no
23952 support_static_dir=no
23953 support_static_cons=no
23954 support_python=no
23955 build_client_only=no
23956 build_dird=yes
23957 build_stored=yes
23958 cats=
23959 db_type=Internal
23960 support_lockmgr=no
23961 DB_TYPE=bdb
23962
23963
23964 # Check whether --enable-gnome was given.
23965 if test "${enable_gnome+set}" = set; then
23966   enableval=$enable_gnome;
23967        if test x$enableval = xyes; then
23968           support_gnome=yes
23969        fi
23970
23971
23972 fi
23973
23974
23975 GNOME_DIR=
23976 if test x$support_gnome = xyes; then
23977    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23978    pkg=$?
23979    if test $pkg = 0; then
23980       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23981       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23982       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23983       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23984
23985
23986
23987
23988       GNOME_DIR=src/gnome2-console
23989       gnome_version="Version 2.x"
23990    else
23991       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23992 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23993    { (exit 1); exit 1; }; }
23994    fi
23995 fi
23996
23997
23998 # Check whether --enable-bat was given.
23999 if test "${enable_bat+set}" = set; then
24000   enableval=$enable_bat;
24001        if test x$enableval = xyes; then
24002
24003 cat >>confdefs.h <<\_ACEOF
24004 #define HAVE_BAT 1
24005 _ACEOF
24006
24007           support_bat=yes
24008        fi
24009
24010
24011 fi
24012
24013
24014 BAT_DIR=
24015 if test x$support_bat = xyes; then
24016    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24017    pkg=$?
24018    if test $pkg = 0; then
24019       BAT_DIR=src/qt-console
24020    else
24021       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24022 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24023    { (exit 1); exit 1; }; }
24024    fi
24025 fi
24026
24027 got_qwt=no
24028 QWT_INC=
24029 QWT_LDFLAGS=
24030 QWT_LIB=
24031 QWT=
24032 no_qwt=no
24033 if test x$support_bat = xyes; then
24034    { echo "$as_me:$LINENO: checking for qwt support" >&5
24035 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24036
24037 # Check whether --with-qwt was given.
24038 if test "${with_qwt+set}" = set; then
24039   withval=$with_qwt;
24040           case "$with_qwt" in
24041           no)
24042              no_qwt=yes
24043              ;;
24044           yes|*)
24045              if test -f ${with_qwt}/include/qwt.h; then
24046                 QWT_INC="${with_qwt}/include"
24047                 QWT_LDFLAGS="-L${with_qwt}/lib"
24048                 QWT_LIB="-lqwt"
24049                 QWT="qwt"
24050              fi
24051              ;;
24052           esac
24053
24054
24055 fi
24056
24057
24058             if test $no_qwt = no; then
24059       if test x$QWT_INC = x; then
24060          for root in /usr /usr/local; do
24061             for ver in qwt qwt5 qwt-qt4; do
24062                if test -f ${root}/include/${ver}/qwt.h; then
24063                   QWT_INC="${root}/include/${ver}"
24064                   if test -d ${root}/lib64/; then
24065                      QWT_LDFLAGS="-L${root}/lib64"
24066                   elif test -d ${root}/lib/64/; then
24067                      QWT_LDFLAGS="-L${root}/64"
24068                   else
24069                      QWT_LDFLAGS="-L${root}/lib"
24070                   fi
24071                   QWT_LIB="-lqwt"
24072                   QWT="qwt"
24073                   got_qwt=yes
24074                   break;
24075                fi
24076             done
24077          done
24078       fi
24079    fi
24080    if test x$QWT_INC = x; then
24081       { echo "$as_me:$LINENO: result: no" >&5
24082 echo "${ECHO_T}no" >&6; }
24083    else
24084
24085 cat >>confdefs.h <<\_ACEOF
24086 #define HAVE_QWT 1
24087 _ACEOF
24088
24089       { echo "$as_me:$LINENO: result: yes" >&5
24090 echo "${ECHO_T}yes" >&6; }
24091    fi
24092 fi
24093
24094
24095
24096
24097
24098
24099
24100 # Check whether --enable-bwx-console was given.
24101 if test "${enable_bwx_console+set}" = set; then
24102   enableval=$enable_bwx_console;
24103        if test x$enableval = xyes; then
24104           support_wx_console=yes
24105        fi
24106
24107
24108 fi
24109
24110
24111 WX_DIR=
24112 if test x$support_wx_console = xyes; then
24113    abc=`$WXCONFIG $WXFLAGS --cppflags`
24114    pkg=$?
24115    if test $pkg = 0; then
24116       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24117       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24118       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24119
24120
24121
24122       WX_DIR=src/wx-console
24123    else
24124       echo " "
24125       echo "wx-config program not found. bwx-console disabled."
24126       echo " "
24127       support_wx_console=no
24128    fi
24129 fi
24130
24131
24132 # Check whether --enable-tray-monitor was given.
24133 if test "${enable_tray_monitor+set}" = set; then
24134   enableval=$enable_tray_monitor;
24135        if test x$enableval = xyes; then
24136           support_tray_monitor=yes
24137        fi
24138
24139
24140 fi
24141
24142
24143 TRAY_MONITOR_DIR=
24144 if test x$support_tray_monitor = xyes; then
24145    abc=`$PKGCONFIG --exists gtk+-2.0`
24146    pkg=$?
24147    if test $pkg = 0; then
24148       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24149       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24150
24151
24152       TRAY_MONITOR_DIR=src/tray-monitor
24153       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24154       pkg=$?
24155       if test $pkg = 0; then
24156
24157 cat >>confdefs.h <<\_ACEOF
24158 #define HAVE_GTK_2_4 1
24159 _ACEOF
24160
24161       fi
24162    fi
24163 fi
24164
24165
24166 # Check whether --enable-smartalloc was given.
24167 if test "${enable_smartalloc+set}" = set; then
24168   enableval=$enable_smartalloc;
24169        if test x$enableval = xno; then
24170           support_smartalloc=no
24171        fi
24172
24173
24174 fi
24175
24176
24177 if test x$support_smartalloc = xyes; then
24178
24179 cat >>confdefs.h <<\_ACEOF
24180 #define SMARTALLOC 1
24181 _ACEOF
24182
24183 fi
24184
24185 # Check whether --enable-lockmgr was given.
24186 if test "${enable_lockmgr+set}" = set; then
24187   enableval=$enable_lockmgr;
24188        if test x$enableval = xyes; then
24189           support_lockmgr=yes
24190        fi
24191
24192
24193 fi
24194
24195
24196 if test x$support_lockmgr = xyes; then
24197
24198 cat >>confdefs.h <<\_ACEOF
24199 #define _USE_LOCKMGR 1
24200 _ACEOF
24201
24202 fi
24203
24204
24205 # Check whether --enable-static-tools was given.
24206 if test "${enable_static_tools+set}" = set; then
24207   enableval=$enable_static_tools;
24208        if test x$enableval = xyes; then
24209           support_static_tools=yes
24210        fi
24211
24212
24213 fi
24214
24215
24216 TTOOL_LDFLAGS=
24217 if test x$support_static_tools = xyes; then
24218    TTOOL_LDFLAGS="-static"
24219 fi
24220
24221
24222 # Check whether --enable-static-fd was given.
24223 if test "${enable_static_fd+set}" = set; then
24224   enableval=$enable_static_fd;
24225        if test x$enableval = xyes; then
24226           support_static_fd=yes
24227        fi
24228
24229
24230 fi
24231
24232
24233 STATIC_FD=
24234 if test x$support_static_fd = xyes; then
24235    STATIC_FD="static-bacula-fd"
24236 fi
24237
24238
24239 # Check whether --enable-static-sd was given.
24240 if test "${enable_static_sd+set}" = set; then
24241   enableval=$enable_static_sd;
24242        if test x$enableval = xyes; then
24243           support_static_sd=yes
24244        fi
24245
24246
24247 fi
24248
24249
24250 STATIC_SD=
24251 if test x$support_static_sd = xyes; then
24252    STATIC_SD="static-bacula-sd"
24253 fi
24254
24255
24256 # Check whether --enable-static-dir was given.
24257 if test "${enable_static_dir+set}" = set; then
24258   enableval=$enable_static_dir;
24259        if test x$enableval = xyes; then
24260           support_static_dir=yes
24261        fi
24262
24263
24264 fi
24265
24266
24267 STATIC_DIR=
24268 if test x$support_static_dir = xyes; then
24269    STATIC_DIR="static-bacula-dir"
24270 fi
24271
24272
24273 # Check whether --enable-static-cons was given.
24274 if test "${enable_static_cons+set}" = set; then
24275   enableval=$enable_static_cons;
24276        if test x$enableval = xyes; then
24277           support_static_cons=yes
24278        fi
24279
24280
24281 fi
24282
24283
24284 STATIC_CONS=
24285 STATIC_GNOME_CONS=
24286 STATIC_WX_CONS=
24287 if test x$support_static_cons = xyes; then
24288    STATIC_CONS="static-bconsole"
24289    STATIC_GNOME_CONS="static-bgnome-console"
24290    STATIC_WX_CONS="static-bwx-console"
24291 fi
24292
24293
24294
24295
24296 # Check whether --enable-client-only was given.
24297 if test "${enable_client_only+set}" = set; then
24298   enableval=$enable_client_only;
24299        if test x$enableval = xyes; then
24300           build_client_only=yes
24301           db_type=None
24302           DB_TYPE=none
24303        fi
24304
24305
24306 fi
24307
24308 if test x$build_client_only = xno; then
24309    ALL_DIRS="subdirs"
24310 else
24311    ALL_DIRS=""
24312 fi
24313
24314
24315 # Check whether --enable-build-dird was given.
24316 if test "${enable_build_dird+set}" = set; then
24317   enableval=$enable_build_dird;
24318        if test x$enableval = xno; then
24319           build_dird=no
24320        fi
24321
24322
24323 fi
24324
24325 if test x$build_dird = xyes; then
24326    DIRD_DIR="src/dird"
24327    DIR_TOOLS="DIRTOOLS"
24328 else
24329    DIRD_DIR=""
24330    DIR_TOOLS="NODIRTOOLS"
24331 fi
24332
24333
24334
24335 # Check whether --enable-build-stored was given.
24336 if test "${enable_build_stored+set}" = set; then
24337   enableval=$enable_build_stored;
24338       if test x$enableval = xno; then
24339          build_stored=no
24340       fi
24341
24342
24343 fi
24344
24345 if test x$build_stored = xyes; then
24346    STORED_DIR="src/stored"
24347 else
24348    STORED_DIR=""
24349 fi
24350
24351
24352 # Check whether --enable-conio was given.
24353 if test "${enable_conio+set}" = set; then
24354   enableval=$enable_conio;
24355        if test x$enableval = xno; then
24356           support_conio=no
24357        fi
24358
24359
24360 fi
24361
24362
24363
24364 support_ipv6=yes
24365 # Check whether --enable-ipv6 was given.
24366 if test "${enable_ipv6+set}" = set; then
24367   enableval=$enable_ipv6;
24368        if test x$enableval = xno; then
24369           support_ipv6=no
24370        fi
24371
24372
24373 fi
24374
24375
24376 if test x$support_ipv6 = xyes; then
24377     cat >conftest.$ac_ext <<_ACEOF
24378 /* confdefs.h.  */
24379 _ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h.  */
24383  #include <sys/types.h>
24384 #include <sys/socket.h>
24385 #include <netinet/in.h>
24386 int
24387 main ()
24388 {
24389 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24390   ;
24391   return 0;
24392 }
24393 _ACEOF
24394 rm -f conftest.$ac_objext conftest$ac_exeext
24395 if { (ac_try="$ac_link"
24396 case "(($ac_try" in
24397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24398   *) ac_try_echo=$ac_try;;
24399 esac
24400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24401   (eval "$ac_link") 2>conftest.er1
24402   ac_status=$?
24403   grep -v '^ *+' conftest.er1 >conftest.err
24404   rm -f conftest.er1
24405   cat conftest.err >&5
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); } && {
24408          test -z "$ac_c_werror_flag" ||
24409          test ! -s conftest.err
24410        } && test -s conftest$ac_exeext &&
24411        $as_test_x conftest$ac_exeext; then
24412   support_ipv6=yes
24413 else
24414   echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24416
24417         support_ipv6=no
24418 fi
24419
24420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24421       conftest$ac_exeext conftest.$ac_ext
24422 fi
24423
24424 if test x$support_ipv6 = xyes; then
24425
24426 cat >>confdefs.h <<\_ACEOF
24427 #define HAVE_IPV6 1
24428 _ACEOF
24429
24430 fi
24431
24432 got_conio="no"
24433 if test x$support_conio = xyes; then
24434    if test "${ac_cv_header_termcap_h+set}" = set; then
24435   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24436 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24437 if test "${ac_cv_header_termcap_h+set}" = set; then
24438   echo $ECHO_N "(cached) $ECHO_C" >&6
24439 fi
24440 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24441 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24442 else
24443   # Is the header compilable?
24444 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24445 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24446 cat >conftest.$ac_ext <<_ACEOF
24447 /* confdefs.h.  */
24448 _ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h.  */
24452 $ac_includes_default
24453 #include <termcap.h>
24454 _ACEOF
24455 rm -f conftest.$ac_objext
24456 if { (ac_try="$ac_compile"
24457 case "(($ac_try" in
24458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459   *) ac_try_echo=$ac_try;;
24460 esac
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462   (eval "$ac_compile") 2>conftest.er1
24463   ac_status=$?
24464   grep -v '^ *+' conftest.er1 >conftest.err
24465   rm -f conftest.er1
24466   cat conftest.err >&5
24467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468   (exit $ac_status); } && {
24469          test -z "$ac_c_werror_flag" ||
24470          test ! -s conftest.err
24471        } && test -s conftest.$ac_objext; then
24472   ac_header_compiler=yes
24473 else
24474   echo "$as_me: failed program was:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24476
24477         ac_header_compiler=no
24478 fi
24479
24480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24482 echo "${ECHO_T}$ac_header_compiler" >&6; }
24483
24484 # Is the header present?
24485 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24486 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24487 cat >conftest.$ac_ext <<_ACEOF
24488 /* confdefs.h.  */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h.  */
24493 #include <termcap.h>
24494 _ACEOF
24495 if { (ac_try="$ac_cpp conftest.$ac_ext"
24496 case "(($ac_try" in
24497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24498   *) ac_try_echo=$ac_try;;
24499 esac
24500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24502   ac_status=$?
24503   grep -v '^ *+' conftest.er1 >conftest.err
24504   rm -f conftest.er1
24505   cat conftest.err >&5
24506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507   (exit $ac_status); } >/dev/null && {
24508          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24509          test ! -s conftest.err
24510        }; then
24511   ac_header_preproc=yes
24512 else
24513   echo "$as_me: failed program was:" >&5
24514 sed 's/^/| /' conftest.$ac_ext >&5
24515
24516   ac_header_preproc=no
24517 fi
24518
24519 rm -f conftest.err conftest.$ac_ext
24520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24521 echo "${ECHO_T}$ac_header_preproc" >&6; }
24522
24523 # So?  What about this header?
24524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24525   yes:no: )
24526     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24527 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24528     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24529 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24530     ac_header_preproc=yes
24531     ;;
24532   no:yes:* )
24533     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24534 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24535     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24536 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24537     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24538 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24539     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24540 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24541     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24542 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24543     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24544 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24545
24546     ;;
24547 esac
24548 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24549 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24550 if test "${ac_cv_header_termcap_h+set}" = set; then
24551   echo $ECHO_N "(cached) $ECHO_C" >&6
24552 else
24553   ac_cv_header_termcap_h=$ac_header_preproc
24554 fi
24555 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24556 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24557
24558 fi
24559 if test $ac_cv_header_termcap_h = yes; then
24560    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24561 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24562 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24563   echo $ECHO_N "(cached) $ECHO_C" >&6
24564 else
24565   ac_check_lib_save_LIBS=$LIBS
24566 LIBS="-ltermcap  $LIBS"
24567 cat >conftest.$ac_ext <<_ACEOF
24568 /* confdefs.h.  */
24569 _ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h.  */
24573
24574 /* Override any GCC internal prototype to avoid an error.
24575    Use char because int might match the return type of a GCC
24576    builtin and then its argument prototype would still apply.  */
24577 #ifdef __cplusplus
24578 extern "C"
24579 #endif
24580 char tgetent ();
24581 int
24582 main ()
24583 {
24584 return tgetent ();
24585   ;
24586   return 0;
24587 }
24588 _ACEOF
24589 rm -f conftest.$ac_objext conftest$ac_exeext
24590 if { (ac_try="$ac_link"
24591 case "(($ac_try" in
24592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593   *) ac_try_echo=$ac_try;;
24594 esac
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596   (eval "$ac_link") 2>conftest.er1
24597   ac_status=$?
24598   grep -v '^ *+' conftest.er1 >conftest.err
24599   rm -f conftest.er1
24600   cat conftest.err >&5
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); } && {
24603          test -z "$ac_c_werror_flag" ||
24604          test ! -s conftest.err
24605        } && test -s conftest$ac_exeext &&
24606        $as_test_x conftest$ac_exeext; then
24607   ac_cv_lib_termcap_tgetent=yes
24608 else
24609   echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24611
24612         ac_cv_lib_termcap_tgetent=no
24613 fi
24614
24615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24616       conftest$ac_exeext conftest.$ac_ext
24617 LIBS=$ac_check_lib_save_LIBS
24618 fi
24619 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24620 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24621 if test $ac_cv_lib_termcap_tgetent = yes; then
24622    CONS_LIBS="-ltermcap"
24623     CONS_OBJ="conio.o"
24624     CONS_SRC="conio.c"
24625     got_conio="yes"
24626     support_readline=no
24627
24628 cat >>confdefs.h <<\_ACEOF
24629 #define HAVE_CONIO 1
24630 _ACEOF
24631
24632
24633 else
24634    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24635 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24636 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24637   echo $ECHO_N "(cached) $ECHO_C" >&6
24638 else
24639   ac_check_lib_save_LIBS=$LIBS
24640 LIBS="-lncurses  $LIBS"
24641 cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24647
24648 /* Override any GCC internal prototype to avoid an error.
24649    Use char because int might match the return type of a GCC
24650    builtin and then its argument prototype would still apply.  */
24651 #ifdef __cplusplus
24652 extern "C"
24653 #endif
24654 char tgetent ();
24655 int
24656 main ()
24657 {
24658 return tgetent ();
24659   ;
24660   return 0;
24661 }
24662 _ACEOF
24663 rm -f conftest.$ac_objext conftest$ac_exeext
24664 if { (ac_try="$ac_link"
24665 case "(($ac_try" in
24666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667   *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670   (eval "$ac_link") 2>conftest.er1
24671   ac_status=$?
24672   grep -v '^ *+' conftest.er1 >conftest.err
24673   rm -f conftest.er1
24674   cat conftest.err >&5
24675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676   (exit $ac_status); } && {
24677          test -z "$ac_c_werror_flag" ||
24678          test ! -s conftest.err
24679        } && test -s conftest$ac_exeext &&
24680        $as_test_x conftest$ac_exeext; then
24681   ac_cv_lib_ncurses_tgetent=yes
24682 else
24683   echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24685
24686         ac_cv_lib_ncurses_tgetent=no
24687 fi
24688
24689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24690       conftest$ac_exeext conftest.$ac_ext
24691 LIBS=$ac_check_lib_save_LIBS
24692 fi
24693 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24694 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24695 if test $ac_cv_lib_ncurses_tgetent = yes; then
24696    CONS_LIBS="-lncurses"
24697       CONS_OBJ="conio.o"
24698       CONS_SRC="conio.c"
24699       got_conio="yes"
24700       support_readline=no
24701
24702 cat >>confdefs.h <<\_ACEOF
24703 #define HAVE_CONIO 1
24704 _ACEOF
24705
24706
24707 fi
24708
24709
24710 fi
24711
24712
24713 else
24714
24715
24716 for ac_header in curses.h
24717 do
24718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24720   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24723   echo $ECHO_N "(cached) $ECHO_C" >&6
24724 fi
24725 ac_res=`eval echo '${'$as_ac_Header'}'`
24726                { echo "$as_me:$LINENO: result: $ac_res" >&5
24727 echo "${ECHO_T}$ac_res" >&6; }
24728 else
24729   # Is the header compilable?
24730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24732 cat >conftest.$ac_ext <<_ACEOF
24733 /* confdefs.h.  */
24734 _ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h.  */
24738 $ac_includes_default
24739 #include <$ac_header>
24740 _ACEOF
24741 rm -f conftest.$ac_objext
24742 if { (ac_try="$ac_compile"
24743 case "(($ac_try" in
24744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745   *) ac_try_echo=$ac_try;;
24746 esac
24747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24748   (eval "$ac_compile") 2>conftest.er1
24749   ac_status=$?
24750   grep -v '^ *+' conftest.er1 >conftest.err
24751   rm -f conftest.er1
24752   cat conftest.err >&5
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); } && {
24755          test -z "$ac_c_werror_flag" ||
24756          test ! -s conftest.err
24757        } && test -s conftest.$ac_objext; then
24758   ac_header_compiler=yes
24759 else
24760   echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24762
24763         ac_header_compiler=no
24764 fi
24765
24766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24768 echo "${ECHO_T}$ac_header_compiler" >&6; }
24769
24770 # Is the header present?
24771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24773 cat >conftest.$ac_ext <<_ACEOF
24774 /* confdefs.h.  */
24775 _ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h.  */
24779 #include <$ac_header>
24780 _ACEOF
24781 if { (ac_try="$ac_cpp conftest.$ac_ext"
24782 case "(($ac_try" in
24783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784   *) ac_try_echo=$ac_try;;
24785 esac
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24788   ac_status=$?
24789   grep -v '^ *+' conftest.er1 >conftest.err
24790   rm -f conftest.er1
24791   cat conftest.err >&5
24792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793   (exit $ac_status); } >/dev/null && {
24794          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24795          test ! -s conftest.err
24796        }; then
24797   ac_header_preproc=yes
24798 else
24799   echo "$as_me: failed program was:" >&5
24800 sed 's/^/| /' conftest.$ac_ext >&5
24801
24802   ac_header_preproc=no
24803 fi
24804
24805 rm -f conftest.err conftest.$ac_ext
24806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24807 echo "${ECHO_T}$ac_header_preproc" >&6; }
24808
24809 # So?  What about this header?
24810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24811   yes:no: )
24812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24816     ac_header_preproc=yes
24817     ;;
24818   no:yes:* )
24819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24831
24832     ;;
24833 esac
24834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24837   echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839   eval "$as_ac_Header=\$ac_header_preproc"
24840 fi
24841 ac_res=`eval echo '${'$as_ac_Header'}'`
24842                { echo "$as_me:$LINENO: result: $ac_res" >&5
24843 echo "${ECHO_T}$ac_res" >&6; }
24844
24845 fi
24846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24847   cat >>confdefs.h <<_ACEOF
24848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24849 _ACEOF
24850
24851 fi
24852
24853 done
24854
24855     { echo "$as_me:$LINENO: checking for term.h" >&5
24856 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24857 if test "${ac_cv_header_term_h+set}" = set; then
24858   echo $ECHO_N "(cached) $ECHO_C" >&6
24859 else
24860   cat >conftest.$ac_ext <<_ACEOF
24861 /* confdefs.h.  */
24862 _ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h.  */
24866 #if HAVE_CURSES_H
24867 #include <curses.h>
24868 #endif
24869
24870
24871 #include <term.h>
24872 _ACEOF
24873 rm -f conftest.$ac_objext
24874 if { (ac_try="$ac_compile"
24875 case "(($ac_try" in
24876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877   *) ac_try_echo=$ac_try;;
24878 esac
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880   (eval "$ac_compile") 2>conftest.er1
24881   ac_status=$?
24882   grep -v '^ *+' conftest.er1 >conftest.err
24883   rm -f conftest.er1
24884   cat conftest.err >&5
24885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886   (exit $ac_status); } && {
24887          test -z "$ac_c_werror_flag" ||
24888          test ! -s conftest.err
24889        } && test -s conftest.$ac_objext; then
24890   ac_cv_header_term_h=yes
24891 else
24892   echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895         ac_cv_header_term_h=no
24896 fi
24897
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899 fi
24900 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24901 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24902 if test $ac_cv_header_term_h = yes; then
24903    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24904 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24905 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24906   echo $ECHO_N "(cached) $ECHO_C" >&6
24907 else
24908   ac_check_lib_save_LIBS=$LIBS
24909 LIBS="-lcurses  $LIBS"
24910 cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h.  */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h.  */
24916
24917 /* Override any GCC internal prototype to avoid an error.
24918    Use char because int might match the return type of a GCC
24919    builtin and then its argument prototype would still apply.  */
24920 #ifdef __cplusplus
24921 extern "C"
24922 #endif
24923 char tgetent ();
24924 int
24925 main ()
24926 {
24927 return tgetent ();
24928   ;
24929   return 0;
24930 }
24931 _ACEOF
24932 rm -f conftest.$ac_objext conftest$ac_exeext
24933 if { (ac_try="$ac_link"
24934 case "(($ac_try" in
24935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24936   *) ac_try_echo=$ac_try;;
24937 esac
24938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24939   (eval "$ac_link") 2>conftest.er1
24940   ac_status=$?
24941   grep -v '^ *+' conftest.er1 >conftest.err
24942   rm -f conftest.er1
24943   cat conftest.err >&5
24944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945   (exit $ac_status); } && {
24946          test -z "$ac_c_werror_flag" ||
24947          test ! -s conftest.err
24948        } && test -s conftest$ac_exeext &&
24949        $as_test_x conftest$ac_exeext; then
24950   ac_cv_lib_curses_tgetent=yes
24951 else
24952   echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24954
24955         ac_cv_lib_curses_tgetent=no
24956 fi
24957
24958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24959       conftest$ac_exeext conftest.$ac_ext
24960 LIBS=$ac_check_lib_save_LIBS
24961 fi
24962 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24963 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24964 if test $ac_cv_lib_curses_tgetent = yes; then
24965    CONS_LIBS="-lcurses"
24966          CONS_OBJ="conio.o"
24967          CONS_SRC="conio.c"
24968          got_conio="yes"
24969          support_readline=no
24970
24971 cat >>confdefs.h <<\_ACEOF
24972 #define HAVE_CONIO 1
24973 _ACEOF
24974
24975
24976 fi
24977
24978
24979 else
24980    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24981 fi
24982
24983
24984
24985 fi
24986
24987
24988 fi
24989
24990
24991 # Check whether --enable-readline was given.
24992 if test "${enable_readline+set}" = set; then
24993   enableval=$enable_readline;
24994        if test x$enableval = xno; then
24995           support_readline=no
24996        fi
24997
24998
24999 fi
25000
25001
25002 got_readline="no"
25003 READLINE_SRC=
25004 if test x$support_readline = xyes; then
25005
25006 # Check whether --with-readline was given.
25007 if test "${with_readline+set}" = set; then
25008   withval=$with_readline;
25009           case "$with_readline" in
25010           no)
25011              :
25012              ;;
25013           yes|*)
25014              if test -f ${with_readline}/readline.h; then
25015                 CONS_INC="-I${with_readline}"
25016                 CONS_LDFLAGS="-L$with_readline"
25017              elif test -f ${with_readline}/include/readline/readline.h; then
25018                 CONS_INC="-I${with_readline}/include/readline"
25019                 CONS_LDFLAGS="-L${with_readline}/lib"
25020                 with_readline="${with_readline}/include/readline"
25021              else
25022                 with_readline="/usr/include/readline"
25023              fi
25024
25025              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25027   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25028 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25030   echo $ECHO_N "(cached) $ECHO_C" >&6
25031 fi
25032 ac_res=`eval echo '${'$as_ac_Header'}'`
25033                { echo "$as_me:$LINENO: result: $ac_res" >&5
25034 echo "${ECHO_T}$ac_res" >&6; }
25035 else
25036   # Is the header compilable?
25037 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25038 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25039 cat >conftest.$ac_ext <<_ACEOF
25040 /* confdefs.h.  */
25041 _ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h.  */
25045 $ac_includes_default
25046 #include <${with_readline}/readline.h>
25047 _ACEOF
25048 rm -f conftest.$ac_objext
25049 if { (ac_try="$ac_compile"
25050 case "(($ac_try" in
25051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25052   *) ac_try_echo=$ac_try;;
25053 esac
25054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25055   (eval "$ac_compile") 2>conftest.er1
25056   ac_status=$?
25057   grep -v '^ *+' conftest.er1 >conftest.err
25058   rm -f conftest.er1
25059   cat conftest.err >&5
25060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061   (exit $ac_status); } && {
25062          test -z "$ac_c_werror_flag" ||
25063          test ! -s conftest.err
25064        } && test -s conftest.$ac_objext; then
25065   ac_header_compiler=yes
25066 else
25067   echo "$as_me: failed program was:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25069
25070         ac_header_compiler=no
25071 fi
25072
25073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25075 echo "${ECHO_T}$ac_header_compiler" >&6; }
25076
25077 # Is the header present?
25078 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25079 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25080 cat >conftest.$ac_ext <<_ACEOF
25081 /* confdefs.h.  */
25082 _ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h.  */
25086 #include <${with_readline}/readline.h>
25087 _ACEOF
25088 if { (ac_try="$ac_cpp conftest.$ac_ext"
25089 case "(($ac_try" in
25090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091   *) ac_try_echo=$ac_try;;
25092 esac
25093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25095   ac_status=$?
25096   grep -v '^ *+' conftest.er1 >conftest.err
25097   rm -f conftest.er1
25098   cat conftest.err >&5
25099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); } >/dev/null && {
25101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25102          test ! -s conftest.err
25103        }; then
25104   ac_header_preproc=yes
25105 else
25106   echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25108
25109   ac_header_preproc=no
25110 fi
25111
25112 rm -f conftest.err conftest.$ac_ext
25113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25114 echo "${ECHO_T}$ac_header_preproc" >&6; }
25115
25116 # So?  What about this header?
25117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25118   yes:no: )
25119     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25120 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25121     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25122 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25123     ac_header_preproc=yes
25124     ;;
25125   no:yes:* )
25126     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25127 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25128     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25129 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25130     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25131 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25132     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25133 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25134     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25135 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25136     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25137 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25138
25139     ;;
25140 esac
25141 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25142 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25144   echo $ECHO_N "(cached) $ECHO_C" >&6
25145 else
25146   eval "$as_ac_Header=\$ac_header_preproc"
25147 fi
25148 ac_res=`eval echo '${'$as_ac_Header'}'`
25149                { echo "$as_me:$LINENO: result: $ac_res" >&5
25150 echo "${ECHO_T}$ac_res" >&6; }
25151
25152 fi
25153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25154
25155
25156 cat >>confdefs.h <<\_ACEOF
25157 #define HAVE_READLINE 1
25158 _ACEOF
25159
25160                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25161                     got_readline="yes"
25162
25163 else
25164
25165                     echo " "
25166                     echo "readline.h not found. readline turned off ..."
25167                     echo " "
25168
25169
25170 fi
25171
25172
25173              ;;
25174           esac
25175
25176 else
25177
25178                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25179   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25180 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25181 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25182   echo $ECHO_N "(cached) $ECHO_C" >&6
25183 fi
25184 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25185 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25186 else
25187   # Is the header compilable?
25188 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25189 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25190 cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h.  */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h.  */
25196 $ac_includes_default
25197 #include </usr/include/readline/readline.h>
25198 _ACEOF
25199 rm -f conftest.$ac_objext
25200 if { (ac_try="$ac_compile"
25201 case "(($ac_try" in
25202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203   *) ac_try_echo=$ac_try;;
25204 esac
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206   (eval "$ac_compile") 2>conftest.er1
25207   ac_status=$?
25208   grep -v '^ *+' conftest.er1 >conftest.err
25209   rm -f conftest.er1
25210   cat conftest.err >&5
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); } && {
25213          test -z "$ac_c_werror_flag" ||
25214          test ! -s conftest.err
25215        } && test -s conftest.$ac_objext; then
25216   ac_header_compiler=yes
25217 else
25218   echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25220
25221         ac_header_compiler=no
25222 fi
25223
25224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25226 echo "${ECHO_T}$ac_header_compiler" >&6; }
25227
25228 # Is the header present?
25229 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25230 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25231 cat >conftest.$ac_ext <<_ACEOF
25232 /* confdefs.h.  */
25233 _ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h.  */
25237 #include </usr/include/readline/readline.h>
25238 _ACEOF
25239 if { (ac_try="$ac_cpp conftest.$ac_ext"
25240 case "(($ac_try" in
25241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25242   *) ac_try_echo=$ac_try;;
25243 esac
25244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25246   ac_status=$?
25247   grep -v '^ *+' conftest.er1 >conftest.err
25248   rm -f conftest.er1
25249   cat conftest.err >&5
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); } >/dev/null && {
25252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25253          test ! -s conftest.err
25254        }; then
25255   ac_header_preproc=yes
25256 else
25257   echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25259
25260   ac_header_preproc=no
25261 fi
25262
25263 rm -f conftest.err conftest.$ac_ext
25264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25265 echo "${ECHO_T}$ac_header_preproc" >&6; }
25266
25267 # So?  What about this header?
25268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25269   yes:no: )
25270     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25271 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25272     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25273 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25274     ac_header_preproc=yes
25275     ;;
25276   no:yes:* )
25277     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25278 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25279     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25280 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25281     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25282 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25283     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25284 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25285     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25286 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25287     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25288 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25289
25290     ;;
25291 esac
25292 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25293 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25294 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25295   echo $ECHO_N "(cached) $ECHO_C" >&6
25296 else
25297   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25298 fi
25299 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25300 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25301
25302 fi
25303 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25304
25305
25306 cat >>confdefs.h <<\_ACEOF
25307 #define HAVE_READLINE 1
25308 _ACEOF
25309
25310                 got_readline="yes"
25311                 CONS_INC="-I/usr/include/readline"
25312                 CONS_LIBS="-lreadline -ltermcap"
25313
25314 else
25315
25316                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25318   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25319 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25321   echo $ECHO_N "(cached) $ECHO_C" >&6
25322 fi
25323 ac_res=`eval echo '${'$as_ac_Header'}'`
25324                { echo "$as_me:$LINENO: result: $ac_res" >&5
25325 echo "${ECHO_T}$ac_res" >&6; }
25326 else
25327   # Is the header compilable?
25328 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25329 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25330 cat >conftest.$ac_ext <<_ACEOF
25331 /* confdefs.h.  */
25332 _ACEOF
25333 cat confdefs.h >>conftest.$ac_ext
25334 cat >>conftest.$ac_ext <<_ACEOF
25335 /* end confdefs.h.  */
25336 $ac_includes_default
25337 #include <${TOP_DIR}/depkgs/readline/readline.h>
25338 _ACEOF
25339 rm -f conftest.$ac_objext
25340 if { (ac_try="$ac_compile"
25341 case "(($ac_try" in
25342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25343   *) ac_try_echo=$ac_try;;
25344 esac
25345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25346   (eval "$ac_compile") 2>conftest.er1
25347   ac_status=$?
25348   grep -v '^ *+' conftest.er1 >conftest.err
25349   rm -f conftest.er1
25350   cat conftest.err >&5
25351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352   (exit $ac_status); } && {
25353          test -z "$ac_c_werror_flag" ||
25354          test ! -s conftest.err
25355        } && test -s conftest.$ac_objext; then
25356   ac_header_compiler=yes
25357 else
25358   echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25360
25361         ac_header_compiler=no
25362 fi
25363
25364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25366 echo "${ECHO_T}$ac_header_compiler" >&6; }
25367
25368 # Is the header present?
25369 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25370 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25371 cat >conftest.$ac_ext <<_ACEOF
25372 /* confdefs.h.  */
25373 _ACEOF
25374 cat confdefs.h >>conftest.$ac_ext
25375 cat >>conftest.$ac_ext <<_ACEOF
25376 /* end confdefs.h.  */
25377 #include <${TOP_DIR}/depkgs/readline/readline.h>
25378 _ACEOF
25379 if { (ac_try="$ac_cpp conftest.$ac_ext"
25380 case "(($ac_try" in
25381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382   *) ac_try_echo=$ac_try;;
25383 esac
25384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25386   ac_status=$?
25387   grep -v '^ *+' conftest.er1 >conftest.err
25388   rm -f conftest.er1
25389   cat conftest.err >&5
25390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391   (exit $ac_status); } >/dev/null && {
25392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25393          test ! -s conftest.err
25394        }; then
25395   ac_header_preproc=yes
25396 else
25397   echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25399
25400   ac_header_preproc=no
25401 fi
25402
25403 rm -f conftest.err conftest.$ac_ext
25404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25405 echo "${ECHO_T}$ac_header_preproc" >&6; }
25406
25407 # So?  What about this header?
25408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25409   yes:no: )
25410     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25411 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25412     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25413 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25414     ac_header_preproc=yes
25415     ;;
25416   no:yes:* )
25417     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25418 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25419     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25420 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25421     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25422 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25423     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25424 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25425     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25426 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25427     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25428 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25429
25430     ;;
25431 esac
25432 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25433 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25435   echo $ECHO_N "(cached) $ECHO_C" >&6
25436 else
25437   eval "$as_ac_Header=\$ac_header_preproc"
25438 fi
25439 ac_res=`eval echo '${'$as_ac_Header'}'`
25440                { echo "$as_me:$LINENO: result: $ac_res" >&5
25441 echo "${ECHO_T}$ac_res" >&6; }
25442
25443 fi
25444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25445
25446
25447 cat >>confdefs.h <<\_ACEOF
25448 #define HAVE_READLINE 1
25449 _ACEOF
25450
25451                         got_readline="yes"
25452                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25453                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25454                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25455                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25456
25457 else
25458
25459                         echo " "
25460                         echo "readline.h not found. readline turned off ..."
25461                         echo " "
25462
25463
25464 fi
25465
25466
25467
25468
25469 fi
25470
25471
25472
25473
25474 fi
25475
25476 fi
25477
25478
25479
25480
25481
25482
25483
25484
25485 MAKE_SHELL=/bin/sh
25486
25487 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25488 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25489 if test "${ac_cv_header_stat_broken+set}" = set; then
25490   echo $ECHO_N "(cached) $ECHO_C" >&6
25491 else
25492   cat >conftest.$ac_ext <<_ACEOF
25493 /* confdefs.h.  */
25494 _ACEOF
25495 cat confdefs.h >>conftest.$ac_ext
25496 cat >>conftest.$ac_ext <<_ACEOF
25497 /* end confdefs.h.  */
25498 #include <sys/types.h>
25499 #include <sys/stat.h>
25500
25501 #if defined S_ISBLK && defined S_IFDIR
25502 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25503 #endif
25504
25505 #if defined S_ISBLK && defined S_IFCHR
25506 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25507 #endif
25508
25509 #if defined S_ISLNK && defined S_IFREG
25510 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25511 #endif
25512
25513 #if defined S_ISSOCK && defined S_IFREG
25514 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25515 #endif
25516
25517 _ACEOF
25518 rm -f conftest.$ac_objext
25519 if { (ac_try="$ac_compile"
25520 case "(($ac_try" in
25521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25522   *) ac_try_echo=$ac_try;;
25523 esac
25524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25525   (eval "$ac_compile") 2>conftest.er1
25526   ac_status=$?
25527   grep -v '^ *+' conftest.er1 >conftest.err
25528   rm -f conftest.er1
25529   cat conftest.err >&5
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); } && {
25532          test -z "$ac_c_werror_flag" ||
25533          test ! -s conftest.err
25534        } && test -s conftest.$ac_objext; then
25535   ac_cv_header_stat_broken=no
25536 else
25537   echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25539
25540         ac_cv_header_stat_broken=yes
25541 fi
25542
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25544 fi
25545 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25546 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25547 if test $ac_cv_header_stat_broken = yes; then
25548
25549 cat >>confdefs.h <<\_ACEOF
25550 #define STAT_MACROS_BROKEN 1
25551 _ACEOF
25552
25553 fi
25554
25555
25556
25557
25558
25559
25560 ac_header_dirent=no
25561 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25562   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25563 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25564 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25566   echo $ECHO_N "(cached) $ECHO_C" >&6
25567 else
25568   cat >conftest.$ac_ext <<_ACEOF
25569 /* confdefs.h.  */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h.  */
25574 #include <sys/types.h>
25575 #include <$ac_hdr>
25576
25577 int
25578 main ()
25579 {
25580 if ((DIR *) 0)
25581 return 0;
25582   ;
25583   return 0;
25584 }
25585 _ACEOF
25586 rm -f conftest.$ac_objext
25587 if { (ac_try="$ac_compile"
25588 case "(($ac_try" in
25589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590   *) ac_try_echo=$ac_try;;
25591 esac
25592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25593   (eval "$ac_compile") 2>conftest.er1
25594   ac_status=$?
25595   grep -v '^ *+' conftest.er1 >conftest.err
25596   rm -f conftest.er1
25597   cat conftest.err >&5
25598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); } && {
25600          test -z "$ac_c_werror_flag" ||
25601          test ! -s conftest.err
25602        } && test -s conftest.$ac_objext; then
25603   eval "$as_ac_Header=yes"
25604 else
25605   echo "$as_me: failed program was:" >&5
25606 sed 's/^/| /' conftest.$ac_ext >&5
25607
25608         eval "$as_ac_Header=no"
25609 fi
25610
25611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25612 fi
25613 ac_res=`eval echo '${'$as_ac_Header'}'`
25614                { echo "$as_me:$LINENO: result: $ac_res" >&5
25615 echo "${ECHO_T}$ac_res" >&6; }
25616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25617   cat >>confdefs.h <<_ACEOF
25618 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25619 _ACEOF
25620
25621 ac_header_dirent=$ac_hdr; break
25622 fi
25623
25624 done
25625 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25626 if test $ac_header_dirent = dirent.h; then
25627   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25628 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25629 if test "${ac_cv_search_opendir+set}" = set; then
25630   echo $ECHO_N "(cached) $ECHO_C" >&6
25631 else
25632   ac_func_search_save_LIBS=$LIBS
25633 cat >conftest.$ac_ext <<_ACEOF
25634 /* confdefs.h.  */
25635 _ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h.  */
25639
25640 /* Override any GCC internal prototype to avoid an error.
25641    Use char because int might match the return type of a GCC
25642    builtin and then its argument prototype would still apply.  */
25643 #ifdef __cplusplus
25644 extern "C"
25645 #endif
25646 char opendir ();
25647 int
25648 main ()
25649 {
25650 return opendir ();
25651   ;
25652   return 0;
25653 }
25654 _ACEOF
25655 for ac_lib in '' dir; do
25656   if test -z "$ac_lib"; then
25657     ac_res="none required"
25658   else
25659     ac_res=-l$ac_lib
25660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25661   fi
25662   rm -f conftest.$ac_objext conftest$ac_exeext
25663 if { (ac_try="$ac_link"
25664 case "(($ac_try" in
25665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666   *) ac_try_echo=$ac_try;;
25667 esac
25668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25669   (eval "$ac_link") 2>conftest.er1
25670   ac_status=$?
25671   grep -v '^ *+' conftest.er1 >conftest.err
25672   rm -f conftest.er1
25673   cat conftest.err >&5
25674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675   (exit $ac_status); } && {
25676          test -z "$ac_c_werror_flag" ||
25677          test ! -s conftest.err
25678        } && test -s conftest$ac_exeext &&
25679        $as_test_x conftest$ac_exeext; then
25680   ac_cv_search_opendir=$ac_res
25681 else
25682   echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25684
25685
25686 fi
25687
25688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25689       conftest$ac_exeext
25690   if test "${ac_cv_search_opendir+set}" = set; then
25691   break
25692 fi
25693 done
25694 if test "${ac_cv_search_opendir+set}" = set; then
25695   :
25696 else
25697   ac_cv_search_opendir=no
25698 fi
25699 rm conftest.$ac_ext
25700 LIBS=$ac_func_search_save_LIBS
25701 fi
25702 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25703 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25704 ac_res=$ac_cv_search_opendir
25705 if test "$ac_res" != no; then
25706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25707
25708 fi
25709
25710 else
25711   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25713 if test "${ac_cv_search_opendir+set}" = set; then
25714   echo $ECHO_N "(cached) $ECHO_C" >&6
25715 else
25716   ac_func_search_save_LIBS=$LIBS
25717 cat >conftest.$ac_ext <<_ACEOF
25718 /* confdefs.h.  */
25719 _ACEOF
25720 cat confdefs.h >>conftest.$ac_ext
25721 cat >>conftest.$ac_ext <<_ACEOF
25722 /* end confdefs.h.  */
25723
25724 /* Override any GCC internal prototype to avoid an error.
25725    Use char because int might match the return type of a GCC
25726    builtin and then its argument prototype would still apply.  */
25727 #ifdef __cplusplus
25728 extern "C"
25729 #endif
25730 char opendir ();
25731 int
25732 main ()
25733 {
25734 return opendir ();
25735   ;
25736   return 0;
25737 }
25738 _ACEOF
25739 for ac_lib in '' x; do
25740   if test -z "$ac_lib"; then
25741     ac_res="none required"
25742   else
25743     ac_res=-l$ac_lib
25744     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25745   fi
25746   rm -f conftest.$ac_objext conftest$ac_exeext
25747 if { (ac_try="$ac_link"
25748 case "(($ac_try" in
25749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750   *) ac_try_echo=$ac_try;;
25751 esac
25752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25753   (eval "$ac_link") 2>conftest.er1
25754   ac_status=$?
25755   grep -v '^ *+' conftest.er1 >conftest.err
25756   rm -f conftest.er1
25757   cat conftest.err >&5
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); } && {
25760          test -z "$ac_c_werror_flag" ||
25761          test ! -s conftest.err
25762        } && test -s conftest$ac_exeext &&
25763        $as_test_x conftest$ac_exeext; then
25764   ac_cv_search_opendir=$ac_res
25765 else
25766   echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25768
25769
25770 fi
25771
25772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25773       conftest$ac_exeext
25774   if test "${ac_cv_search_opendir+set}" = set; then
25775   break
25776 fi
25777 done
25778 if test "${ac_cv_search_opendir+set}" = set; then
25779   :
25780 else
25781   ac_cv_search_opendir=no
25782 fi
25783 rm conftest.$ac_ext
25784 LIBS=$ac_func_search_save_LIBS
25785 fi
25786 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25787 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25788 ac_res=$ac_cv_search_opendir
25789 if test "$ac_res" != no; then
25790   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25791
25792 fi
25793
25794 fi
25795
25796
25797
25798
25799
25800
25801
25802
25803 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25804 do
25805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25809   echo $ECHO_N "(cached) $ECHO_C" >&6
25810 else
25811   cat >conftest.$ac_ext <<_ACEOF
25812 /* confdefs.h.  */
25813 _ACEOF
25814 cat confdefs.h >>conftest.$ac_ext
25815 cat >>conftest.$ac_ext <<_ACEOF
25816 /* end confdefs.h.  */
25817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25819 #define $ac_func innocuous_$ac_func
25820
25821 /* System header to define __stub macros and hopefully few prototypes,
25822     which can conflict with char $ac_func (); below.
25823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25824     <limits.h> exists even on freestanding compilers.  */
25825
25826 #ifdef __STDC__
25827 # include <limits.h>
25828 #else
25829 # include <assert.h>
25830 #endif
25831
25832 #undef $ac_func
25833
25834 /* Override any GCC internal prototype to avoid an error.
25835    Use char because int might match the return type of a GCC
25836    builtin and then its argument prototype would still apply.  */
25837 #ifdef __cplusplus
25838 extern "C"
25839 #endif
25840 char $ac_func ();
25841 /* The GNU C library defines this for functions which it implements
25842     to always fail with ENOSYS.  Some functions are actually named
25843     something starting with __ and the normal name is an alias.  */
25844 #if defined __stub_$ac_func || defined __stub___$ac_func
25845 choke me
25846 #endif
25847
25848 int
25849 main ()
25850 {
25851 return $ac_func ();
25852   ;
25853   return 0;
25854 }
25855 _ACEOF
25856 rm -f conftest.$ac_objext conftest$ac_exeext
25857 if { (ac_try="$ac_link"
25858 case "(($ac_try" in
25859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860   *) ac_try_echo=$ac_try;;
25861 esac
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863   (eval "$ac_link") 2>conftest.er1
25864   ac_status=$?
25865   grep -v '^ *+' conftest.er1 >conftest.err
25866   rm -f conftest.er1
25867   cat conftest.err >&5
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); } && {
25870          test -z "$ac_c_werror_flag" ||
25871          test ! -s conftest.err
25872        } && test -s conftest$ac_exeext &&
25873        $as_test_x conftest$ac_exeext; then
25874   eval "$as_ac_var=yes"
25875 else
25876   echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25878
25879         eval "$as_ac_var=no"
25880 fi
25881
25882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25883       conftest$ac_exeext conftest.$ac_ext
25884 fi
25885 ac_res=`eval echo '${'$as_ac_var'}'`
25886                { echo "$as_me:$LINENO: result: $ac_res" >&5
25887 echo "${ECHO_T}$ac_res" >&6; }
25888 if test `eval echo '${'$as_ac_var'}'` = yes; then
25889   cat >>confdefs.h <<_ACEOF
25890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25891 _ACEOF
25892
25893 fi
25894 done
25895
25896
25897
25898 for ac_func in nanosleep nl_langinfo
25899 do
25900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25904   echo $ECHO_N "(cached) $ECHO_C" >&6
25905 else
25906   cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25914 #define $ac_func innocuous_$ac_func
25915
25916 /* System header to define __stub macros and hopefully few prototypes,
25917     which can conflict with char $ac_func (); below.
25918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919     <limits.h> exists even on freestanding compilers.  */
25920
25921 #ifdef __STDC__
25922 # include <limits.h>
25923 #else
25924 # include <assert.h>
25925 #endif
25926
25927 #undef $ac_func
25928
25929 /* Override any GCC internal prototype to avoid an error.
25930    Use char because int might match the return type of a GCC
25931    builtin and then its argument prototype would still apply.  */
25932 #ifdef __cplusplus
25933 extern "C"
25934 #endif
25935 char $ac_func ();
25936 /* The GNU C library defines this for functions which it implements
25937     to always fail with ENOSYS.  Some functions are actually named
25938     something starting with __ and the normal name is an alias.  */
25939 #if defined __stub_$ac_func || defined __stub___$ac_func
25940 choke me
25941 #endif
25942
25943 int
25944 main ()
25945 {
25946 return $ac_func ();
25947   ;
25948   return 0;
25949 }
25950 _ACEOF
25951 rm -f conftest.$ac_objext conftest$ac_exeext
25952 if { (ac_try="$ac_link"
25953 case "(($ac_try" in
25954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955   *) ac_try_echo=$ac_try;;
25956 esac
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958   (eval "$ac_link") 2>conftest.er1
25959   ac_status=$?
25960   grep -v '^ *+' conftest.er1 >conftest.err
25961   rm -f conftest.er1
25962   cat conftest.err >&5
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); } && {
25965          test -z "$ac_c_werror_flag" ||
25966          test ! -s conftest.err
25967        } && test -s conftest$ac_exeext &&
25968        $as_test_x conftest$ac_exeext; then
25969   eval "$as_ac_var=yes"
25970 else
25971   echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25973
25974         eval "$as_ac_var=no"
25975 fi
25976
25977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25978       conftest$ac_exeext conftest.$ac_ext
25979 fi
25980 ac_res=`eval echo '${'$as_ac_var'}'`
25981                { echo "$as_me:$LINENO: result: $ac_res" >&5
25982 echo "${ECHO_T}$ac_res" >&6; }
25983 if test `eval echo '${'$as_ac_var'}'` = yes; then
25984   cat >>confdefs.h <<_ACEOF
25985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25986 _ACEOF
25987
25988 fi
25989 done
25990
25991
25992 for ac_header in varargs.h
25993 do
25994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25996   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25999   echo $ECHO_N "(cached) $ECHO_C" >&6
26000 fi
26001 ac_res=`eval echo '${'$as_ac_Header'}'`
26002                { echo "$as_me:$LINENO: result: $ac_res" >&5
26003 echo "${ECHO_T}$ac_res" >&6; }
26004 else
26005   # Is the header compilable?
26006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26008 cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h.  */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h.  */
26014 $ac_includes_default
26015 #include <$ac_header>
26016 _ACEOF
26017 rm -f conftest.$ac_objext
26018 if { (ac_try="$ac_compile"
26019 case "(($ac_try" in
26020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021   *) ac_try_echo=$ac_try;;
26022 esac
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024   (eval "$ac_compile") 2>conftest.er1
26025   ac_status=$?
26026   grep -v '^ *+' conftest.er1 >conftest.err
26027   rm -f conftest.er1
26028   cat conftest.err >&5
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); } && {
26031          test -z "$ac_c_werror_flag" ||
26032          test ! -s conftest.err
26033        } && test -s conftest.$ac_objext; then
26034   ac_header_compiler=yes
26035 else
26036   echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26038
26039         ac_header_compiler=no
26040 fi
26041
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26044 echo "${ECHO_T}$ac_header_compiler" >&6; }
26045
26046 # Is the header present?
26047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26049 cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h.  */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h.  */
26055 #include <$ac_header>
26056 _ACEOF
26057 if { (ac_try="$ac_cpp conftest.$ac_ext"
26058 case "(($ac_try" in
26059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060   *) ac_try_echo=$ac_try;;
26061 esac
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26064   ac_status=$?
26065   grep -v '^ *+' conftest.er1 >conftest.err
26066   rm -f conftest.er1
26067   cat conftest.err >&5
26068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069   (exit $ac_status); } >/dev/null && {
26070          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26071          test ! -s conftest.err
26072        }; then
26073   ac_header_preproc=yes
26074 else
26075   echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26077
26078   ac_header_preproc=no
26079 fi
26080
26081 rm -f conftest.err conftest.$ac_ext
26082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26083 echo "${ECHO_T}$ac_header_preproc" >&6; }
26084
26085 # So?  What about this header?
26086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26087   yes:no: )
26088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26092     ac_header_preproc=yes
26093     ;;
26094   no:yes:* )
26095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26107
26108     ;;
26109 esac
26110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26113   echo $ECHO_N "(cached) $ECHO_C" >&6
26114 else
26115   eval "$as_ac_Header=\$ac_header_preproc"
26116 fi
26117 ac_res=`eval echo '${'$as_ac_Header'}'`
26118                { echo "$as_me:$LINENO: result: $ac_res" >&5
26119 echo "${ECHO_T}$ac_res" >&6; }
26120
26121 fi
26122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26123   cat >>confdefs.h <<_ACEOF
26124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26125 _ACEOF
26126
26127 fi
26128
26129 done
26130
26131
26132
26133 { echo "$as_me:$LINENO: checking for Python support" >&5
26134 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26135
26136 # Check whether --with-python was given.
26137 if test "${with_python+set}" = set; then
26138   withval=$with_python;
26139        PYTHON_INCDIR=
26140        PYTHON_LIBS=
26141        if test "$withval" != "no"; then
26142           if test "$withval" = "yes"; then
26143              for python_root in /usr /usr/local /usr/sfw; do
26144                 for ver in python2.2 python2.3 python2.4 python2.5; do
26145                    if test -f $python_root/include/${ver}/Python.h; then
26146                       PYTHON_INCDIR=-I$python_root/include/${ver}
26147                       if test -d $python_root/lib64/${ver}/config; then
26148                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26149                       else
26150                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26151                       fi
26152                       break
26153                    fi
26154                 done
26155              done
26156
26157              if test x$PYTHON_INCDIR = x; then
26158                 if test -f $prefix/include/Python.h; then
26159                    PYTHON_INCDIR=-I$prefix/include
26160                    if test -d $prefix/lib64/config; then
26161                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26162                    else
26163                       PYTHON_LIBS="-L$prefix/lib/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: Unable to find Python.h in standard locations" >&5
26169 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26170    { (exit 1); exit 1; }; }
26171                 fi
26172              fi
26173           else
26174              if test -f $withval/Python.h; then
26175                 PYTHON_INCDIR=-I$withval
26176                 PYTHON_LIBS="-L$withval/config -lpython"
26177              elif test -f $withval/include/Python.h; then
26178                 PYTHON_INCDIR=-I$withval/include
26179                 if test -d $withval/lib64/config; then
26180                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26181                 else
26182                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26183                 fi
26184              elif test -f $withval/include/python/Python.h; then
26185                 PYTHON_INCDIR=-I$withval/include/python
26186                 if test -d $withval/lib64/python/config; then
26187                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26188                 else
26189                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26190                 fi
26191              else
26192                 { echo "$as_me:$LINENO: result: no" >&5
26193 echo "${ECHO_T}no" >&6; }
26194                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26195 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26196    { (exit 1); exit 1; }; }
26197              fi
26198           fi
26199
26200           cat >>confdefs.h <<\_ACEOF
26201 #define HAVE_PYTHON 1
26202 _ACEOF
26203
26204           { echo "$as_me:$LINENO: result: yes" >&5
26205 echo "${ECHO_T}yes" >&6; }
26206           support_python=yes
26207           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26208 echo "$as_me: checking for more Python libs" >&6;}
26209           saved_LIBS="$LIBS"; LIBS=
26210           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26211 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26212 if test "${ac_cv_search_shm_open+set}" = set; then
26213   echo $ECHO_N "(cached) $ECHO_C" >&6
26214 else
26215   ac_func_search_save_LIBS=$LIBS
26216 cat >conftest.$ac_ext <<_ACEOF
26217 /* confdefs.h.  */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h.  */
26222
26223 /* Override any GCC internal prototype to avoid an error.
26224    Use char because int might match the return type of a GCC
26225    builtin and then its argument prototype would still apply.  */
26226 #ifdef __cplusplus
26227 extern "C"
26228 #endif
26229 char shm_open ();
26230 int
26231 main ()
26232 {
26233 return shm_open ();
26234   ;
26235   return 0;
26236 }
26237 _ACEOF
26238 for ac_lib in '' rt; do
26239   if test -z "$ac_lib"; then
26240     ac_res="none required"
26241   else
26242     ac_res=-l$ac_lib
26243     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26244   fi
26245   rm -f conftest.$ac_objext conftest$ac_exeext
26246 if { (ac_try="$ac_link"
26247 case "(($ac_try" in
26248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249   *) ac_try_echo=$ac_try;;
26250 esac
26251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26252   (eval "$ac_link") 2>conftest.er1
26253   ac_status=$?
26254   grep -v '^ *+' conftest.er1 >conftest.err
26255   rm -f conftest.er1
26256   cat conftest.err >&5
26257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258   (exit $ac_status); } && {
26259          test -z "$ac_c_werror_flag" ||
26260          test ! -s conftest.err
26261        } && test -s conftest$ac_exeext &&
26262        $as_test_x conftest$ac_exeext; then
26263   ac_cv_search_shm_open=$ac_res
26264 else
26265   echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26267
26268
26269 fi
26270
26271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26272       conftest$ac_exeext
26273   if test "${ac_cv_search_shm_open+set}" = set; then
26274   break
26275 fi
26276 done
26277 if test "${ac_cv_search_shm_open+set}" = set; then
26278   :
26279 else
26280   ac_cv_search_shm_open=no
26281 fi
26282 rm conftest.$ac_ext
26283 LIBS=$ac_func_search_save_LIBS
26284 fi
26285 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26286 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26287 ac_res=$ac_cv_search_shm_open
26288 if test "$ac_res" != no; then
26289   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26290
26291 fi
26292
26293
26294 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26295 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26296 if test "${ac_cv_lib_util_openpty+set}" = set; then
26297   echo $ECHO_N "(cached) $ECHO_C" >&6
26298 else
26299   ac_check_lib_save_LIBS=$LIBS
26300 LIBS="-lutil  $LIBS"
26301 cat >conftest.$ac_ext <<_ACEOF
26302 /* confdefs.h.  */
26303 _ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h.  */
26307
26308 /* Override any GCC internal prototype to avoid an error.
26309    Use char because int might match the return type of a GCC
26310    builtin and then its argument prototype would still apply.  */
26311 #ifdef __cplusplus
26312 extern "C"
26313 #endif
26314 char openpty ();
26315 int
26316 main ()
26317 {
26318 return openpty ();
26319   ;
26320   return 0;
26321 }
26322 _ACEOF
26323 rm -f conftest.$ac_objext conftest$ac_exeext
26324 if { (ac_try="$ac_link"
26325 case "(($ac_try" in
26326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26327   *) ac_try_echo=$ac_try;;
26328 esac
26329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26330   (eval "$ac_link") 2>conftest.er1
26331   ac_status=$?
26332   grep -v '^ *+' conftest.er1 >conftest.err
26333   rm -f conftest.er1
26334   cat conftest.err >&5
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); } && {
26337          test -z "$ac_c_werror_flag" ||
26338          test ! -s conftest.err
26339        } && test -s conftest$ac_exeext &&
26340        $as_test_x conftest$ac_exeext; then
26341   ac_cv_lib_util_openpty=yes
26342 else
26343   echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26345
26346         ac_cv_lib_util_openpty=no
26347 fi
26348
26349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26350       conftest$ac_exeext conftest.$ac_ext
26351 LIBS=$ac_check_lib_save_LIBS
26352 fi
26353 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26354 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26355 if test $ac_cv_lib_util_openpty = yes; then
26356   cat >>confdefs.h <<_ACEOF
26357 #define HAVE_LIBUTIL 1
26358 _ACEOF
26359
26360   LIBS="-lutil $LIBS"
26361
26362 fi
26363
26364           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26365           LIBS="$saved_LIBS"
26366        else
26367           { echo "$as_me:$LINENO: result: no" >&5
26368 echo "${ECHO_T}no" >&6; }
26369        fi
26370
26371 else
26372
26373        { echo "$as_me:$LINENO: result: no" >&5
26374 echo "${ECHO_T}no" >&6; }
26375
26376
26377 fi
26378
26379
26380
26381
26382 { echo "$as_me:$LINENO: checking for socket" >&5
26383 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26384 if test "${ac_cv_func_socket+set}" = set; then
26385   echo $ECHO_N "(cached) $ECHO_C" >&6
26386 else
26387   cat >conftest.$ac_ext <<_ACEOF
26388 /* confdefs.h.  */
26389 _ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h.  */
26393 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26395 #define socket innocuous_socket
26396
26397 /* System header to define __stub macros and hopefully few prototypes,
26398     which can conflict with char socket (); below.
26399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26400     <limits.h> exists even on freestanding compilers.  */
26401
26402 #ifdef __STDC__
26403 # include <limits.h>
26404 #else
26405 # include <assert.h>
26406 #endif
26407
26408 #undef socket
26409
26410 /* Override any GCC internal prototype to avoid an error.
26411    Use char because int might match the return type of a GCC
26412    builtin and then its argument prototype would still apply.  */
26413 #ifdef __cplusplus
26414 extern "C"
26415 #endif
26416 char socket ();
26417 /* The GNU C library defines this for functions which it implements
26418     to always fail with ENOSYS.  Some functions are actually named
26419     something starting with __ and the normal name is an alias.  */
26420 #if defined __stub_socket || defined __stub___socket
26421 choke me
26422 #endif
26423
26424 int
26425 main ()
26426 {
26427 return socket ();
26428   ;
26429   return 0;
26430 }
26431 _ACEOF
26432 rm -f conftest.$ac_objext conftest$ac_exeext
26433 if { (ac_try="$ac_link"
26434 case "(($ac_try" in
26435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26436   *) ac_try_echo=$ac_try;;
26437 esac
26438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26439   (eval "$ac_link") 2>conftest.er1
26440   ac_status=$?
26441   grep -v '^ *+' conftest.er1 >conftest.err
26442   rm -f conftest.er1
26443   cat conftest.err >&5
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); } && {
26446          test -z "$ac_c_werror_flag" ||
26447          test ! -s conftest.err
26448        } && test -s conftest$ac_exeext &&
26449        $as_test_x conftest$ac_exeext; then
26450   ac_cv_func_socket=yes
26451 else
26452   echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26454
26455         ac_cv_func_socket=no
26456 fi
26457
26458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26459       conftest$ac_exeext conftest.$ac_ext
26460 fi
26461 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26462 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26463 if test $ac_cv_func_socket = yes; then
26464   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26465 echo "${ECHO_T}using libc's socket" >&6; }
26466 else
26467
26468 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26469 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26470 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26471   echo $ECHO_N "(cached) $ECHO_C" >&6
26472 else
26473   ac_check_lib_save_LIBS=$LIBS
26474 LIBS="-lxnet  $LIBS"
26475 cat >conftest.$ac_ext <<_ACEOF
26476 /* confdefs.h.  */
26477 _ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h.  */
26481
26482 /* Override any GCC internal prototype to avoid an error.
26483    Use char because int might match the return type of a GCC
26484    builtin and then its argument prototype would still apply.  */
26485 #ifdef __cplusplus
26486 extern "C"
26487 #endif
26488 char socket ();
26489 int
26490 main ()
26491 {
26492 return socket ();
26493   ;
26494   return 0;
26495 }
26496 _ACEOF
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (ac_try="$ac_link"
26499 case "(($ac_try" in
26500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501   *) ac_try_echo=$ac_try;;
26502 esac
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504   (eval "$ac_link") 2>conftest.er1
26505   ac_status=$?
26506   grep -v '^ *+' conftest.er1 >conftest.err
26507   rm -f conftest.er1
26508   cat conftest.err >&5
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); } && {
26511          test -z "$ac_c_werror_flag" ||
26512          test ! -s conftest.err
26513        } && test -s conftest$ac_exeext &&
26514        $as_test_x conftest$ac_exeext; then
26515   ac_cv_lib_xnet_socket=yes
26516 else
26517   echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26519
26520         ac_cv_lib_xnet_socket=no
26521 fi
26522
26523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26524       conftest$ac_exeext conftest.$ac_ext
26525 LIBS=$ac_check_lib_save_LIBS
26526 fi
26527 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26528 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26529 if test $ac_cv_lib_xnet_socket = yes; then
26530   cat >>confdefs.h <<_ACEOF
26531 #define HAVE_LIBXNET 1
26532 _ACEOF
26533
26534   LIBS="-lxnet $LIBS"
26535
26536 fi
26537
26538
26539 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26540 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26541 if test "${ac_cv_lib_socket_socket+set}" = set; then
26542   echo $ECHO_N "(cached) $ECHO_C" >&6
26543 else
26544   ac_check_lib_save_LIBS=$LIBS
26545 LIBS="-lsocket  $LIBS"
26546 cat >conftest.$ac_ext <<_ACEOF
26547 /* confdefs.h.  */
26548 _ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h.  */
26552
26553 /* Override any GCC internal prototype to avoid an error.
26554    Use char because int might match the return type of a GCC
26555    builtin and then its argument prototype would still apply.  */
26556 #ifdef __cplusplus
26557 extern "C"
26558 #endif
26559 char socket ();
26560 int
26561 main ()
26562 {
26563 return socket ();
26564   ;
26565   return 0;
26566 }
26567 _ACEOF
26568 rm -f conftest.$ac_objext conftest$ac_exeext
26569 if { (ac_try="$ac_link"
26570 case "(($ac_try" in
26571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26572   *) ac_try_echo=$ac_try;;
26573 esac
26574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26575   (eval "$ac_link") 2>conftest.er1
26576   ac_status=$?
26577   grep -v '^ *+' conftest.er1 >conftest.err
26578   rm -f conftest.er1
26579   cat conftest.err >&5
26580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581   (exit $ac_status); } && {
26582          test -z "$ac_c_werror_flag" ||
26583          test ! -s conftest.err
26584        } && test -s conftest$ac_exeext &&
26585        $as_test_x conftest$ac_exeext; then
26586   ac_cv_lib_socket_socket=yes
26587 else
26588   echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26590
26591         ac_cv_lib_socket_socket=no
26592 fi
26593
26594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26595       conftest$ac_exeext conftest.$ac_ext
26596 LIBS=$ac_check_lib_save_LIBS
26597 fi
26598 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26599 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26600 if test $ac_cv_lib_socket_socket = yes; then
26601   cat >>confdefs.h <<_ACEOF
26602 #define HAVE_LIBSOCKET 1
26603 _ACEOF
26604
26605   LIBS="-lsocket $LIBS"
26606
26607 fi
26608
26609
26610 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26611 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26612 if test "${ac_cv_lib_inet_socket+set}" = set; then
26613   echo $ECHO_N "(cached) $ECHO_C" >&6
26614 else
26615   ac_check_lib_save_LIBS=$LIBS
26616 LIBS="-linet  $LIBS"
26617 cat >conftest.$ac_ext <<_ACEOF
26618 /* confdefs.h.  */
26619 _ACEOF
26620 cat confdefs.h >>conftest.$ac_ext
26621 cat >>conftest.$ac_ext <<_ACEOF
26622 /* end confdefs.h.  */
26623
26624 /* Override any GCC internal prototype to avoid an error.
26625    Use char because int might match the return type of a GCC
26626    builtin and then its argument prototype would still apply.  */
26627 #ifdef __cplusplus
26628 extern "C"
26629 #endif
26630 char socket ();
26631 int
26632 main ()
26633 {
26634 return socket ();
26635   ;
26636   return 0;
26637 }
26638 _ACEOF
26639 rm -f conftest.$ac_objext conftest$ac_exeext
26640 if { (ac_try="$ac_link"
26641 case "(($ac_try" in
26642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643   *) ac_try_echo=$ac_try;;
26644 esac
26645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26646   (eval "$ac_link") 2>conftest.er1
26647   ac_status=$?
26648   grep -v '^ *+' conftest.er1 >conftest.err
26649   rm -f conftest.er1
26650   cat conftest.err >&5
26651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); } && {
26653          test -z "$ac_c_werror_flag" ||
26654          test ! -s conftest.err
26655        } && test -s conftest$ac_exeext &&
26656        $as_test_x conftest$ac_exeext; then
26657   ac_cv_lib_inet_socket=yes
26658 else
26659   echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26661
26662         ac_cv_lib_inet_socket=no
26663 fi
26664
26665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26666       conftest$ac_exeext conftest.$ac_ext
26667 LIBS=$ac_check_lib_save_LIBS
26668 fi
26669 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26670 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26671 if test $ac_cv_lib_inet_socket = yes; then
26672   cat >>confdefs.h <<_ACEOF
26673 #define HAVE_LIBINET 1
26674 _ACEOF
26675
26676   LIBS="-linet $LIBS"
26677
26678 fi
26679
26680 fi
26681
26682
26683 TCPW_MSG="no"
26684 WRAPLIBS=""
26685
26686 # Check whether --with-tcp-wrappers was given.
26687 if test "${with_tcp_wrappers+set}" = set; then
26688   withval=$with_tcp_wrappers;
26689        if test "x$withval" != "xno" ; then
26690           saved_LIBS="$LIBS"
26691           LIBS="$saved_LIBS -lwrap"
26692           { echo "$as_me:$LINENO: checking for libwrap" >&5
26693 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26694           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26695 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26696 if test "${ac_cv_search_nanosleep+set}" = set; then
26697   echo $ECHO_N "(cached) $ECHO_C" >&6
26698 else
26699   ac_func_search_save_LIBS=$LIBS
26700 cat >conftest.$ac_ext <<_ACEOF
26701 /* confdefs.h.  */
26702 _ACEOF
26703 cat confdefs.h >>conftest.$ac_ext
26704 cat >>conftest.$ac_ext <<_ACEOF
26705 /* end confdefs.h.  */
26706
26707 /* Override any GCC internal prototype to avoid an error.
26708    Use char because int might match the return type of a GCC
26709    builtin and then its argument prototype would still apply.  */
26710 #ifdef __cplusplus
26711 extern "C"
26712 #endif
26713 char nanosleep ();
26714 int
26715 main ()
26716 {
26717 return nanosleep ();
26718   ;
26719   return 0;
26720 }
26721 _ACEOF
26722 for ac_lib in '' rt; do
26723   if test -z "$ac_lib"; then
26724     ac_res="none required"
26725   else
26726     ac_res=-l$ac_lib
26727     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26728   fi
26729   rm -f conftest.$ac_objext conftest$ac_exeext
26730 if { (ac_try="$ac_link"
26731 case "(($ac_try" in
26732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733   *) ac_try_echo=$ac_try;;
26734 esac
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736   (eval "$ac_link") 2>conftest.er1
26737   ac_status=$?
26738   grep -v '^ *+' conftest.er1 >conftest.err
26739   rm -f conftest.er1
26740   cat conftest.err >&5
26741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742   (exit $ac_status); } && {
26743          test -z "$ac_c_werror_flag" ||
26744          test ! -s conftest.err
26745        } && test -s conftest$ac_exeext &&
26746        $as_test_x conftest$ac_exeext; then
26747   ac_cv_search_nanosleep=$ac_res
26748 else
26749   echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.$ac_ext >&5
26751
26752
26753 fi
26754
26755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26756       conftest$ac_exeext
26757   if test "${ac_cv_search_nanosleep+set}" = set; then
26758   break
26759 fi
26760 done
26761 if test "${ac_cv_search_nanosleep+set}" = set; then
26762   :
26763 else
26764   ac_cv_search_nanosleep=no
26765 fi
26766 rm conftest.$ac_ext
26767 LIBS=$ac_func_search_save_LIBS
26768 fi
26769 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26770 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26771 ac_res=$ac_cv_search_nanosleep
26772 if test "$ac_res" != no; then
26773   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26774
26775 fi
26776
26777           cat >conftest.$ac_ext <<_ACEOF
26778 /* confdefs.h.  */
26779 _ACEOF
26780 cat confdefs.h >>conftest.$ac_ext
26781 cat >>conftest.$ac_ext <<_ACEOF
26782 /* end confdefs.h.  */
26783
26784                #include <sys/types.h>
26785                #include <tcpd.h>
26786                int deny_severity = 0;
26787                int allow_severity = 0;
26788                struct request_info *req;
26789
26790 int
26791 main ()
26792 {
26793
26794                 hosts_access(req);
26795
26796   ;
26797   return 0;
26798 }
26799 _ACEOF
26800 rm -f conftest.$ac_objext conftest$ac_exeext
26801 if { (ac_try="$ac_link"
26802 case "(($ac_try" in
26803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804   *) ac_try_echo=$ac_try;;
26805 esac
26806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26807   (eval "$ac_link") 2>conftest.er1
26808   ac_status=$?
26809   grep -v '^ *+' conftest.er1 >conftest.err
26810   rm -f conftest.er1
26811   cat conftest.err >&5
26812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813   (exit $ac_status); } && {
26814          test -z "$ac_c_werror_flag" ||
26815          test ! -s conftest.err
26816        } && test -s conftest$ac_exeext &&
26817        $as_test_x conftest$ac_exeext; then
26818
26819                  { echo "$as_me:$LINENO: result: yes" >&5
26820 echo "${ECHO_T}yes" >&6; }
26821
26822 cat >>confdefs.h <<\_ACEOF
26823 #define HAVE_LIBWRAP 1
26824 _ACEOF
26825
26826                  TCPW_MSG="yes"
26827                  LIBS="$saved_LIBS"
26828                  WRAPLIBS="-lwrap"
26829
26830 else
26831   echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26833
26834
26835                  LIBS="$saved_LIBS -lwrap -lnsl"
26836                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26837                  cat >conftest.$ac_ext <<_ACEOF
26838 /* confdefs.h.  */
26839 _ACEOF
26840 cat confdefs.h >>conftest.$ac_ext
26841 cat >>conftest.$ac_ext <<_ACEOF
26842 /* end confdefs.h.  */
26843
26844                        #include <sys/types.h>
26845                        #include <tcpd.h>
26846                        int deny_severity = 0;
26847                        int allow_severity = 0;
26848                        struct request_info *req;
26849
26850 int
26851 main ()
26852 {
26853
26854                        hosts_access(req);
26855
26856   ;
26857   return 0;
26858 }
26859 _ACEOF
26860 rm -f conftest.$ac_objext conftest$ac_exeext
26861 if { (ac_try="$ac_link"
26862 case "(($ac_try" in
26863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26864   *) ac_try_echo=$ac_try;;
26865 esac
26866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26867   (eval "$ac_link") 2>conftest.er1
26868   ac_status=$?
26869   grep -v '^ *+' conftest.er1 >conftest.err
26870   rm -f conftest.er1
26871   cat conftest.err >&5
26872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873   (exit $ac_status); } && {
26874          test -z "$ac_c_werror_flag" ||
26875          test ! -s conftest.err
26876        } && test -s conftest$ac_exeext &&
26877        $as_test_x conftest$ac_exeext; then
26878
26879                       { echo "$as_me:$LINENO: result: yes" >&5
26880 echo "${ECHO_T}yes" >&6; }
26881
26882 cat >>confdefs.h <<\_ACEOF
26883 #define HAVE_LIBWRAP 1
26884 _ACEOF
26885
26886                       TCPW_MSG="yes"
26887                       LIBS="$saved_LIBS"
26888                       WRAPLIBS="-lwrap"
26889
26890 else
26891   echo "$as_me: failed program was:" >&5
26892 sed 's/^/| /' conftest.$ac_ext >&5
26893
26894
26895                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26896 echo "$as_me: error: *** libwrap missing" >&2;}
26897    { (exit 1); exit 1; }; }
26898
26899
26900 fi
26901
26902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26903       conftest$ac_exeext conftest.$ac_ext
26904
26905
26906 fi
26907
26908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26909       conftest$ac_exeext conftest.$ac_ext
26910        fi
26911
26912
26913 fi
26914
26915
26916 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26917 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26918
26919 # Check whether --with-openssl was given.
26920 if test "${with_openssl+set}" = set; then
26921   withval=$with_openssl;
26922         with_openssl_directory=${withval}
26923
26924
26925 fi
26926
26927
26928 if test "x$with_openssl_directory" != "xno"; then
26929    OPENSSL_LIBS="-lssl -lcrypto"
26930    OPENSSL_INC=""
26931
26932    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26933       #
26934       # Make sure the $with_openssl_directory also makes sense
26935       #
26936       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26937          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26938          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26939       fi
26940    fi
26941
26942    saved_LIBS="${LIBS}"
26943    saved_CFLAGS="${CFLAGS}"
26944    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26945    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26946
26947    cat >conftest.$ac_ext <<_ACEOF
26948 /* confdefs.h.  */
26949 _ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h.  */
26953
26954           #include <openssl/ssl.h>
26955
26956 int
26957 main ()
26958 {
26959
26960            CRYPTO_set_id_callback(NULL);
26961
26962   ;
26963   return 0;
26964 }
26965 _ACEOF
26966 rm -f conftest.$ac_objext conftest$ac_exeext
26967 if { (ac_try="$ac_link"
26968 case "(($ac_try" in
26969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970   *) ac_try_echo=$ac_try;;
26971 esac
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973   (eval "$ac_link") 2>conftest.er1
26974   ac_status=$?
26975   grep -v '^ *+' conftest.er1 >conftest.err
26976   rm -f conftest.er1
26977   cat conftest.err >&5
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); } && {
26980          test -z "$ac_c_werror_flag" ||
26981          test ! -s conftest.err
26982        } && test -s conftest$ac_exeext &&
26983        $as_test_x conftest$ac_exeext; then
26984
26985           support_tls="yes"
26986           support_crypto="yes"
26987
26988 else
26989   echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26991
26992
26993           support_tls="no"
26994
26995
26996 fi
26997
26998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26999       conftest$ac_exeext conftest.$ac_ext
27000
27001    cat >conftest.$ac_ext <<_ACEOF
27002 /* confdefs.h.  */
27003 _ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h.  */
27007
27008           #include <openssl/evp.h>
27009
27010 int
27011 main ()
27012 {
27013
27014           EVP_sha512();
27015
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest.$ac_objext conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027   (eval "$ac_link") 2>conftest.er1
27028   ac_status=$?
27029   grep -v '^ *+' conftest.er1 >conftest.err
27030   rm -f conftest.er1
27031   cat conftest.err >&5
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); } && {
27034          test -z "$ac_c_werror_flag" ||
27035          test ! -s conftest.err
27036        } && test -s conftest$ac_exeext &&
27037        $as_test_x conftest$ac_exeext; then
27038
27039           ac_cv_openssl_sha2="yes"
27040
27041 else
27042   echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27044
27045
27046           ac_cv_openssl_sha2="no"
27047
27048
27049 fi
27050
27051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27052       conftest$ac_exeext conftest.$ac_ext
27053
27054                cat >conftest.$ac_ext <<_ACEOF
27055 /* confdefs.h.  */
27056 _ACEOF
27057 cat confdefs.h >>conftest.$ac_ext
27058 cat >>conftest.$ac_ext <<_ACEOF
27059 /* end confdefs.h.  */
27060
27061           #include <openssl/evp.h>
27062
27063 int
27064 main ()
27065 {
27066
27067           EVP_aes_192_cbc();
27068
27069   ;
27070   return 0;
27071 }
27072 _ACEOF
27073 rm -f conftest.$ac_objext conftest$ac_exeext
27074 if { (ac_try="$ac_link"
27075 case "(($ac_try" in
27076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077   *) ac_try_echo=$ac_try;;
27078 esac
27079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080   (eval "$ac_link") 2>conftest.er1
27081   ac_status=$?
27082   grep -v '^ *+' conftest.er1 >conftest.err
27083   rm -f conftest.er1
27084   cat conftest.err >&5
27085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); } && {
27087          test -z "$ac_c_werror_flag" ||
27088          test ! -s conftest.err
27089        } && test -s conftest$ac_exeext &&
27090        $as_test_x conftest$ac_exeext; then
27091
27092           ac_cv_openssl_export="no"
27093
27094 else
27095   echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27097
27098
27099           ac_cv_openssl_export="yes"
27100
27101
27102 fi
27103
27104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27105       conftest$ac_exeext conftest.$ac_ext
27106
27107    LIBS="${saved_LIBS}"
27108    CFLAGS="${saved_CFLAGS}"
27109
27110    if test "$support_tls" = "yes"; then
27111
27112 cat >>confdefs.h <<\_ACEOF
27113 #define HAVE_OPENSSL 1
27114 _ACEOF
27115
27116
27117 cat >>confdefs.h <<\_ACEOF
27118 #define HAVE_TLS 1
27119 _ACEOF
27120
27121
27122 cat >>confdefs.h <<\_ACEOF
27123 #define HAVE_CRYPTO 1
27124 _ACEOF
27125
27126    fi
27127
27128    if test "$ac_cv_openssl_sha2" = "yes"; then
27129
27130 cat >>confdefs.h <<\_ACEOF
27131 #define HAVE_SHA2 1
27132 _ACEOF
27133
27134    fi
27135
27136    if test "$ac_cv_openssl_export" = "yes"; then
27137
27138 cat >>confdefs.h <<\_ACEOF
27139 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27140 _ACEOF
27141
27142    fi
27143 else
27144    support_tls="no"
27145    support_crypto="no"
27146    OPENSSL_LIBS=""
27147    OPENSSL_INC=""
27148 fi
27149
27150 { echo "$as_me:$LINENO: result: $support_tls" >&5
27151 echo "${ECHO_T}$support_tls" >&6; }
27152
27153
27154
27155 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27156 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27157 if test "${ac_cv_search_dlopen+set}" = set; then
27158   echo $ECHO_N "(cached) $ECHO_C" >&6
27159 else
27160   ac_func_search_save_LIBS=$LIBS
27161 cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h.  */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h.  */
27167
27168 /* Override any GCC internal prototype to avoid an error.
27169    Use char because int might match the return type of a GCC
27170    builtin and then its argument prototype would still apply.  */
27171 #ifdef __cplusplus
27172 extern "C"
27173 #endif
27174 char dlopen ();
27175 int
27176 main ()
27177 {
27178 return dlopen ();
27179   ;
27180   return 0;
27181 }
27182 _ACEOF
27183 for ac_lib in '' dl; do
27184   if test -z "$ac_lib"; then
27185     ac_res="none required"
27186   else
27187     ac_res=-l$ac_lib
27188     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27189   fi
27190   rm -f conftest.$ac_objext conftest$ac_exeext
27191 if { (ac_try="$ac_link"
27192 case "(($ac_try" in
27193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194   *) ac_try_echo=$ac_try;;
27195 esac
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197   (eval "$ac_link") 2>conftest.er1
27198   ac_status=$?
27199   grep -v '^ *+' conftest.er1 >conftest.err
27200   rm -f conftest.er1
27201   cat conftest.err >&5
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); } && {
27204          test -z "$ac_c_werror_flag" ||
27205          test ! -s conftest.err
27206        } && test -s conftest$ac_exeext &&
27207        $as_test_x conftest$ac_exeext; then
27208   ac_cv_search_dlopen=$ac_res
27209 else
27210   echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27212
27213
27214 fi
27215
27216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27217       conftest$ac_exeext
27218   if test "${ac_cv_search_dlopen+set}" = set; then
27219   break
27220 fi
27221 done
27222 if test "${ac_cv_search_dlopen+set}" = set; then
27223   :
27224 else
27225   ac_cv_search_dlopen=no
27226 fi
27227 rm conftest.$ac_ext
27228 LIBS=$ac_func_search_save_LIBS
27229 fi
27230 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27231 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27232 ac_res=$ac_cv_search_dlopen
27233 if test "$ac_res" != no; then
27234   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27235
27236 fi
27237
27238
27239 working_dir=`eval echo ${prefix}/var/bacula/working`
27240
27241 # Check whether --with-working-dir was given.
27242 if test "${with_working_dir+set}" = set; then
27243   withval=$with_working_dir;
27244        if test "x$withval" != "xno" ; then
27245          working_dir=$withval
27246        fi
27247
27248
27249 fi
27250
27251
27252
27253
27254 archive_dir=/tmp
27255
27256 # Check whether --with-archivedir was given.
27257 if test "${with_archivedir+set}" = set; then
27258   withval=$with_archivedir;
27259        if test "x$withval" != "xno" ; then
27260           archivedir=$withval
27261        fi
27262
27263
27264 fi
27265
27266
27267
27268
27269 scriptdir=`eval echo ${sysconfdir}`
27270
27271 # Check whether --with-scriptdir was given.
27272 if test "${with_scriptdir+set}" = set; then
27273   withval=$with_scriptdir;
27274        if test "x$withval" != "xno" ; then
27275           scriptdir=$withval
27276        fi
27277
27278
27279 fi
27280
27281
27282
27283
27284 # ------------------------------------------
27285 # Where to place plugindir (plugin files)
27286 # ------------------------------------------
27287 plugindir=`eval echo ${sysconfdir}`
27288
27289 # Check whether --with-plugindir was given.
27290 if test "${with_plugindir+set}" = set; then
27291   withval=$with_plugindir;
27292        if test "x$withval" != "xno" ; then
27293           plugindir=$withval
27294        fi
27295
27296
27297 fi
27298
27299
27300
27301
27302 dump_email=root@localhost
27303
27304 # Check whether --with-dump-email was given.
27305 if test "${with_dump_email+set}" = set; then
27306   withval=$with_dump_email;
27307        if test "x$withval" != "xno" ; then
27308           dump_email=$withval
27309        fi
27310
27311
27312 fi
27313
27314
27315
27316
27317 job_email=root@localhost
27318
27319 # Check whether --with-job-email was given.
27320 if test "${with_job_email+set}" = set; then
27321   withval=$with_job_email;
27322        if test "x$withval" != "xno" ; then
27323           job_email=$withval
27324        fi
27325
27326
27327 fi
27328
27329
27330
27331
27332 smtp_host=localhost
27333
27334 # Check whether --with-smtp_host was given.
27335 if test "${with_smtp_host+set}" = set; then
27336   withval=$with_smtp_host;
27337        if test "x$withval" != "xno" ; then
27338           smtp_host=$withval
27339        fi
27340
27341
27342 fi
27343
27344
27345
27346
27347 piddir=/var/run
27348
27349 # Check whether --with-pid-dir was given.
27350 if test "${with_pid_dir+set}" = set; then
27351   withval=$with_pid_dir;
27352        if test "x$withval" != "xno" ; then
27353           piddir=$withval
27354        fi
27355
27356
27357 fi
27358
27359
27360 cat >>confdefs.h <<_ACEOF
27361 #define _PATH_BACULA_PIDDIR "$piddir"
27362 _ACEOF
27363
27364
27365
27366 subsysdir=/var/run/subsys
27367 if test -d /var/run/subsys; then
27368    subsysdir=/var/run/subsys
27369 elif test -d /var/lock/subsys; then
27370    subsysdir=/var/lock/subsys
27371 else
27372    subsysdir=/var/run/subsys
27373 fi
27374
27375 # Check whether --with-subsys-dir was given.
27376 if test "${with_subsys_dir+set}" = set; then
27377   withval=$with_subsys_dir;
27378        if test "x$withval" != "xno" ; then
27379           subsysdir=$withval
27380        fi
27381
27382
27383 fi
27384
27385
27386
27387
27388 baseport=9101
27389
27390 # Check whether --with-baseport was given.
27391 if test "${with_baseport+set}" = set; then
27392   withval=$with_baseport;
27393        if test "x$withval" != "xno" ; then
27394           baseport=$withval
27395        fi
27396
27397
27398 fi
27399
27400
27401
27402 dir_port=`expr $baseport`
27403 fd_port=`expr $baseport + 1`
27404 sd_port=`expr $fd_port + 1`
27405
27406
27407
27408
27409
27410 dir_password=
27411
27412 # Check whether --with-dir-password was given.
27413 if test "${with_dir_password+set}" = set; then
27414   withval=$with_dir_password;
27415        if test "x$withval" != "xno" ; then
27416           dir_password=$withval
27417        fi
27418
27419
27420 fi
27421
27422
27423 if test "x$dir_password" = "x" ; then
27424    if test "x$OPENSSL" = "xnone" ; then
27425       key=`autoconf/randpass 33`
27426    else
27427       key=`openssl rand -base64 33`
27428    fi
27429    dir_password=$key
27430 fi
27431
27432 fd_password=
27433
27434 # Check whether --with-fd-password was given.
27435 if test "${with_fd_password+set}" = set; then
27436   withval=$with_fd_password;
27437        if test "x$withval" != "xno" ; then
27438           fd_password=$withval
27439        fi
27440
27441
27442 fi
27443
27444
27445 if test "x$fd_password" = "x" ; then
27446    if test "x$OPENSSL" = "xnone" ; then
27447       key=`autoconf/randpass 37`
27448    else
27449       key=`openssl rand -base64 33`
27450    fi
27451    fd_password=$key
27452 fi
27453
27454 sd_password=
27455
27456 # Check whether --with-sd-password was given.
27457 if test "${with_sd_password+set}" = set; then
27458   withval=$with_sd_password;
27459        if test "x$withval" != "xno" ; then
27460           sd_password=$withval
27461        fi
27462
27463
27464 fi
27465
27466
27467 if test "x$sd_password" = "x" ; then
27468    if test "x$OPENSSL" = "xnone" ; then
27469       key=`autoconf/randpass 41`
27470    else
27471       key=`openssl rand -base64 33`
27472    fi
27473    sd_password=$key
27474 fi
27475
27476 mon_dir_password=
27477
27478 # Check whether --with-mon-dir-password was given.
27479 if test "${with_mon_dir_password+set}" = set; then
27480   withval=$with_mon_dir_password;
27481        if test "x$withval" != "xno" ; then
27482           mon_dir_password=$withval
27483        fi
27484
27485
27486 fi
27487
27488
27489 if test "x$mon_dir_password" = "x" ; then
27490    if test "x$OPENSSL" = "xnone" ; then
27491       key=`autoconf/randpass 33`
27492    else
27493       key=`openssl rand -base64 33`
27494    fi
27495    mon_dir_password=$key
27496 fi
27497
27498 mon_fd_password=
27499
27500 # Check whether --with-mon-fd-password was given.
27501 if test "${with_mon_fd_password+set}" = set; then
27502   withval=$with_mon_fd_password;
27503        if test "x$withval" != "xno" ; then
27504           mon_fd_password=$withval
27505        fi
27506
27507
27508 fi
27509
27510
27511 if test "x$mon_fd_password" = "x" ; then
27512    if test "x$OPENSSL" = "xnone" ; then
27513       key=`autoconf/randpass 37`
27514    else
27515       key=`openssl rand -base64 33`
27516    fi
27517    mon_fd_password=$key
27518 fi
27519
27520 mon_sd_password=
27521
27522 # Check whether --with-mon-sd-password was given.
27523 if test "${with_mon_sd_password+set}" = set; then
27524   withval=$with_mon_sd_password;
27525        if test "x$withval" != "xno" ; then
27526           mon_sd_password=$withval
27527        fi
27528
27529
27530 fi
27531
27532
27533 if test "x$mon_sd_password" = "x" ; then
27534    if test "x$OPENSSL" = "xnone" ; then
27535       key=`autoconf/randpass 41`
27536    else
27537       key=`openssl rand -base64 33`
27538    fi
27539    mon_sd_password=$key
27540 fi
27541
27542
27543
27544
27545
27546
27547
27548
27549 db_name=bacula
27550
27551 # Check whether --with-db_name was given.
27552 if test "${with_db_name+set}" = set; then
27553   withval=$with_db_name;
27554        if test "x$withval" != "x" ; then
27555           db_name=$withval
27556        fi
27557
27558
27559 fi
27560
27561
27562
27563 db_user=bacula
27564
27565 # Check whether --with-db_user was given.
27566 if test "${with_db_user+set}" = set; then
27567   withval=$with_db_user;
27568        if test "x$withval" != "x" ; then
27569           db_user=$withval
27570        fi
27571
27572
27573 fi
27574
27575
27576
27577 db_password=
27578
27579 # Check whether --with-db_password was given.
27580 if test "${with_db_password+set}" = set; then
27581   withval=$with_db_password;
27582        if test "x$withval" != "x" ; then
27583           db_password=$withval
27584        fi
27585
27586
27587 fi
27588
27589
27590
27591 db_port=" "
27592
27593 # Check whether --with-db_port was given.
27594 if test "${with_db_port+set}" = set; then
27595   withval=$with_db_port;
27596        if test "x$withval" != "x" ; then
27597           db_port=$withval
27598        fi
27599
27600
27601 fi
27602
27603
27604
27605 #
27606 # Handle users and groups for each daemon
27607 #
27608 dir_user=
27609
27610 # Check whether --with-dir_user was given.
27611 if test "${with_dir_user+set}" = set; then
27612   withval=$with_dir_user;
27613        if test "x$withval" != "x" ; then
27614            dir_user=$withval
27615        fi
27616
27617
27618 fi
27619
27620
27621 dir_group=
27622
27623 # Check whether --with-dir_group was given.
27624 if test "${with_dir_group+set}" = set; then
27625   withval=$with_dir_group;
27626        if test "x$withval" != "x" ; then
27627           dir_group=$withval
27628        fi
27629
27630
27631 fi
27632
27633
27634 sd_user=
27635
27636 # Check whether --with-sd_user was given.
27637 if test "${with_sd_user+set}" = set; then
27638   withval=$with_sd_user;
27639        if test "x$withval" != "x" ; then
27640           sd_user=$withval
27641        fi
27642
27643
27644 fi
27645
27646
27647 sd_group=
27648
27649 # Check whether --with-sd_group was given.
27650 if test "${with_sd_group+set}" = set; then
27651   withval=$with_sd_group;
27652        if test "x$withval" != "x" ; then
27653           sd_group=$withval
27654        fi
27655
27656
27657 fi
27658
27659
27660 fd_user=
27661
27662 # Check whether --with-fd_user was given.
27663 if test "${with_fd_user+set}" = set; then
27664   withval=$with_fd_user;
27665        if test "x$withval" != "x" ; then
27666           fd_user=$withval
27667        fi
27668
27669
27670 fi
27671
27672
27673 fd_group=
27674
27675 # Check whether --with-fd_group was given.
27676 if test "${with_fd_group+set}" = set; then
27677   withval=$with_fd_group;
27678        if test "x$withval" != "x" ; then
27679           fd_group=$withval
27680        fi
27681
27682
27683 fi
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693 SBINPERM=0754
27694
27695 # Check whether --with-sbin-perm was given.
27696 if test "${with_sbin_perm+set}" = set; then
27697   withval=$with_sbin_perm;
27698        if test "x$withval" != "x" ; then
27699           SBINPERM=$withval
27700        fi
27701
27702
27703 fi
27704
27705
27706
27707
27708 SQL_LIB=
27709
27710 db_found=no
27711 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27712 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27713
27714 # Check whether --with-postgresql was given.
27715 if test "${with_postgresql+set}" = set; then
27716   withval=$with_postgresql;
27717   if test "$withval" != "no"; then
27718       if test "$db_found" = "yes"; then
27719           { echo "$as_me:$LINENO: result: error" >&5
27720 echo "${ECHO_T}error" >&6; }
27721           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27722 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27723    { (exit 1); exit 1; }; };
27724       fi
27725       if test "$withval" = "yes"; then
27726           PG_CONFIG=`which pg_config`
27727           if test -n "$PG_CONFIG";then
27728               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27729               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27730               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27731           elif test -f /usr/local/include/libpq-fe.h; then
27732               POSTGRESQL_INCDIR=/usr/local/include
27733               if test -d /usr/local/lib64; then
27734                  POSTGRESQL_LIBDIR=/usr/local/lib64
27735               else
27736                  POSTGRESQL_LIBDIR=/usr/local/lib
27737               fi
27738               POSTGRESQL_BINDIR=/usr/local/bin
27739           elif test -f /usr/include/libpq-fe.h; then
27740               POSTGRESQL_INCDIR=/usr/include
27741               if test -d /usr/lib64; then
27742                  POSTGRESQL_LIBDIR=/usr/lib64
27743               else
27744                  POSTGRESQL_LIBDIR=/usr/lib
27745               fi
27746               POSTGRESQL_BINDIR=/usr/bin
27747           elif test -f /usr/include/pgsql/libpq-fe.h; then
27748               POSTGRESQL_INCDIR=/usr/include/pgsql
27749               if test -d /usr/lib64/pgsql; then
27750                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27751               else
27752                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27753               fi
27754               POSTGRESQL_BINDIR=/usr/bin
27755           elif test -f /usr/include/postgresql/libpq-fe.h; then
27756               POSTGRESQL_INCDIR=/usr/include/postgresql
27757               if test -d /usr/lib64/postgresql; then
27758                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27759               else
27760                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27761               fi
27762               POSTGRESQL_BINDIR=/usr/bin
27763           else
27764               { echo "$as_me:$LINENO: result: no" >&5
27765 echo "${ECHO_T}no" >&6; }
27766               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27767 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27768    { (exit 1); exit 1; }; }
27769           fi
27770       elif test -f $withval/include/libpq-fe.h; then
27771           POSTGRESQL_INCDIR=$withval/include
27772           POSTGRESQL_LIBDIR=$withval/lib
27773           POSTGRESQL_BINDIR=$withval/bin
27774       elif test -f $withval/include/postgresql/libpq-fe.h; then
27775           POSTGRESQL_INCDIR=$withval/include/postgresql
27776      if test -d $withval/lib64; then
27777          POSTGRESQL_LIBDIR=$withval/lib64
27778      else
27779          POSTGRESQL_LIBDIR=$withval/lib
27780      fi
27781           POSTGRESQL_BINDIR=$withval/bin
27782       else
27783           { echo "$as_me:$LINENO: result: no" >&5
27784 echo "${ECHO_T}no" >&6; }
27785           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27786 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27787    { (exit 1); exit 1; }; }
27788       fi
27789       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27790       { echo "$as_me:$LINENO: checking for crypt" >&5
27791 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27792 if test "${ac_cv_func_crypt+set}" = set; then
27793   echo $ECHO_N "(cached) $ECHO_C" >&6
27794 else
27795   cat >conftest.$ac_ext <<_ACEOF
27796 /* confdefs.h.  */
27797 _ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h.  */
27801 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27803 #define crypt innocuous_crypt
27804
27805 /* System header to define __stub macros and hopefully few prototypes,
27806     which can conflict with char crypt (); below.
27807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27808     <limits.h> exists even on freestanding compilers.  */
27809
27810 #ifdef __STDC__
27811 # include <limits.h>
27812 #else
27813 # include <assert.h>
27814 #endif
27815
27816 #undef crypt
27817
27818 /* Override any GCC internal prototype to avoid an error.
27819    Use char because int might match the return type of a GCC
27820    builtin and then its argument prototype would still apply.  */
27821 #ifdef __cplusplus
27822 extern "C"
27823 #endif
27824 char crypt ();
27825 /* The GNU C library defines this for functions which it implements
27826     to always fail with ENOSYS.  Some functions are actually named
27827     something starting with __ and the normal name is an alias.  */
27828 #if defined __stub_crypt || defined __stub___crypt
27829 choke me
27830 #endif
27831
27832 int
27833 main ()
27834 {
27835 return crypt ();
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 rm -f conftest.$ac_objext conftest$ac_exeext
27841 if { (ac_try="$ac_link"
27842 case "(($ac_try" in
27843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844   *) ac_try_echo=$ac_try;;
27845 esac
27846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27847   (eval "$ac_link") 2>conftest.er1
27848   ac_status=$?
27849   grep -v '^ *+' conftest.er1 >conftest.err
27850   rm -f conftest.er1
27851   cat conftest.err >&5
27852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853   (exit $ac_status); } && {
27854          test -z "$ac_c_werror_flag" ||
27855          test ! -s conftest.err
27856        } && test -s conftest$ac_exeext &&
27857        $as_test_x conftest$ac_exeext; then
27858   ac_cv_func_crypt=yes
27859 else
27860   echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27862
27863         ac_cv_func_crypt=no
27864 fi
27865
27866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27867       conftest$ac_exeext conftest.$ac_ext
27868 fi
27869 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27870 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27871 if test $ac_cv_func_crypt = yes; then
27872   :
27873 else
27874   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27875 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27876 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27877   echo $ECHO_N "(cached) $ECHO_C" >&6
27878 else
27879   ac_check_lib_save_LIBS=$LIBS
27880 LIBS="-lcrypt  $LIBS"
27881 cat >conftest.$ac_ext <<_ACEOF
27882 /* confdefs.h.  */
27883 _ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h.  */
27887
27888 /* Override any GCC internal prototype to avoid an error.
27889    Use char because int might match the return type of a GCC
27890    builtin and then its argument prototype would still apply.  */
27891 #ifdef __cplusplus
27892 extern "C"
27893 #endif
27894 char crypt ();
27895 int
27896 main ()
27897 {
27898 return crypt ();
27899   ;
27900   return 0;
27901 }
27902 _ACEOF
27903 rm -f conftest.$ac_objext conftest$ac_exeext
27904 if { (ac_try="$ac_link"
27905 case "(($ac_try" in
27906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907   *) ac_try_echo=$ac_try;;
27908 esac
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910   (eval "$ac_link") 2>conftest.er1
27911   ac_status=$?
27912   grep -v '^ *+' conftest.er1 >conftest.err
27913   rm -f conftest.er1
27914   cat conftest.err >&5
27915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916   (exit $ac_status); } && {
27917          test -z "$ac_c_werror_flag" ||
27918          test ! -s conftest.err
27919        } && test -s conftest$ac_exeext &&
27920        $as_test_x conftest$ac_exeext; then
27921   ac_cv_lib_crypt_crypt=yes
27922 else
27923   echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27925
27926         ac_cv_lib_crypt_crypt=no
27927 fi
27928
27929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27930       conftest$ac_exeext conftest.$ac_ext
27931 LIBS=$ac_check_lib_save_LIBS
27932 fi
27933 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27934 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27935 if test $ac_cv_lib_crypt_crypt = yes; then
27936   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27937 fi
27938
27939 fi
27940
27941       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27942       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27943       SQL_BINDIR=$POSTGRESQL_BINDIR
27944       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27945
27946       cat >>confdefs.h <<\_ACEOF
27947 #define HAVE_POSTGRESQL 1
27948 _ACEOF
27949
27950       { echo "$as_me:$LINENO: result: yes" >&5
27951 echo "${ECHO_T}yes" >&6; }
27952       db_found=yes
27953       support_postgresql=yes
27954       db_type=PostgreSQL
27955       DB_TYPE=postgresql
27956   else
27957       { echo "$as_me:$LINENO: result: no" >&5
27958 echo "${ECHO_T}no" >&6; }
27959   fi
27960
27961 else
27962
27963   { echo "$as_me:$LINENO: result: no" >&5
27964 echo "${ECHO_T}no" >&6; }
27965
27966 fi
27967
27968
27969
27970
27971
27972
27973
27974
27975 db_found=no
27976 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27977 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27978
27979 # Check whether --with-mysql was given.
27980 if test "${with_mysql+set}" = set; then
27981   withval=$with_mysql;
27982   if test "$withval" != "no"; then
27983         if test "$withval" = "yes"; then
27984            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27985                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27986                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27987                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27988                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27989                    else
27990                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27991                    fi
27992                    MYSQL_BINDIR=/usr/local/mysql/bin
27993            elif test -f /usr/include/mysql/mysql.h; then
27994                    MYSQL_INCDIR=/usr/include/mysql
27995                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27996                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27997                            MYSQL_LIBDIR=/usr/lib64/mysql
27998                    elif test -f /usr/lib64/libmysqlclient_r.a \
27999                         -o -f /usr/lib64/libmysqlclient_r.so; then
28000                            MYSQL_LIBDIR=/usr/lib64
28001                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28002                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28003                            MYSQL_LIBDIR=/usr/lib/mysql
28004                    else
28005                            MYSQL_LIBDIR=/usr/lib
28006                    fi
28007                    MYSQL_BINDIR=/usr/bin
28008            elif test -f /usr/include/mysql.h; then
28009                    MYSQL_INCDIR=/usr/include
28010                    if test -f /usr/lib64/libmysqlclient_r.a \
28011                         -o -f /usr/lib64/libmysqlclient_r.so; then
28012                            MYSQL_LIBDIR=/usr/lib64
28013                    else
28014                            MYSQL_LIBDIR=/usr/lib
28015                    fi
28016                    MYSQL_BINDIR=/usr/bin
28017            elif test -f /usr/local/include/mysql/mysql.h; then
28018                    MYSQL_INCDIR=/usr/local/include/mysql
28019                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28020                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28021                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28022                    else
28023                            MYSQL_LIBDIR=/usr/local/lib/mysql
28024                    fi
28025                    MYSQL_BINDIR=/usr/local/bin
28026            elif test -f /usr/local/include/mysql.h; then
28027                    MYSQL_INCDIR=/usr/local/include
28028                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28029                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28030                            MYSQL_LIBDIR=/usr/local/lib64
28031                    else
28032                            MYSQL_LIBDIR=/usr/local/lib
28033                    fi
28034                    MYSQL_BINDIR=/usr/local/bin
28035            else
28036               { echo "$as_me:$LINENO: result: no" >&5
28037 echo "${ECHO_T}no" >&6; }
28038               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28039 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28040    { (exit 1); exit 1; }; }
28041            fi
28042         else
28043            if test -f $withval/include/mysql/mysql.h; then
28044               MYSQL_INCDIR=$withval/include/mysql
28045               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28046                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28047                  MYSQL_LIBDIR=$withval/lib64/mysql
28048               elif test -f $withval/lib64/libmysqlclient_r.a \
28049                    -o -f $withval/lib64/libmysqlclient_r.so; then
28050                  MYSQL_LIBDIR=$withval/lib64
28051               elif test -f $withval/lib/libmysqlclient_r.a \
28052                    -o -f $withval/lib/libmysqlclient_r.so; then
28053                  MYSQL_LIBDIR=$withval/lib
28054               else
28055                  MYSQL_LIBDIR=$withval/lib/mysql
28056               fi
28057               MYSQL_BINDIR=$withval/bin
28058            elif test -f $withval/include/mysql.h; then
28059               MYSQL_INCDIR=$withval/include
28060               if test -f $withval/lib64/libmysqlclient_r.a \
28061                    -o -f $withval/lib64/libmysqlclient_r.so; then
28062                  MYSQL_LIBDIR=$withval/lib64
28063               else
28064                  MYSQL_LIBDIR=$withval/lib
28065               fi
28066               MYSQL_BINDIR=$withval/bin
28067            else
28068               { echo "$as_me:$LINENO: result: no" >&5
28069 echo "${ECHO_T}no" >&6; }
28070               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28071 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28072    { (exit 1); exit 1; }; }
28073            fi
28074         fi
28075     SQL_INCLUDE=-I$MYSQL_INCDIR
28076     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28077          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28078        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28079        cat >>confdefs.h <<\_ACEOF
28080 #define HAVE_THREAD_SAFE_MYSQL 1
28081 _ACEOF
28082
28083     fi
28084     SQL_BINDIR=$MYSQL_BINDIR
28085     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28086
28087     cat >>confdefs.h <<\_ACEOF
28088 #define HAVE_MYSQL 1
28089 _ACEOF
28090
28091     { echo "$as_me:$LINENO: result: yes" >&5
28092 echo "${ECHO_T}yes" >&6; }
28093     db_found=yes
28094     support_mysql=yes
28095     db_type=MySQL
28096     DB_TYPE=mysql
28097
28098   else
28099         { echo "$as_me:$LINENO: result: no" >&5
28100 echo "${ECHO_T}no" >&6; }
28101   fi
28102
28103
28104 fi
28105
28106
28107
28108 # Check whether --with-embedded-mysql was given.
28109 if test "${with_embedded_mysql+set}" = set; then
28110   withval=$with_embedded_mysql;
28111   if test "$withval" != "no"; then
28112         if test "$withval" = "yes"; then
28113                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28114                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28115                         if test -d /usr/local/mysql/lib64/mysql; then
28116                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28117                         else
28118                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28119                         fi
28120                         MYSQL_BINDIR=/usr/local/mysql/bin
28121                 elif test -f /usr/include/mysql/mysql.h; then
28122                         MYSQL_INCDIR=/usr/include/mysql
28123                         if test -d /usr/lib64/mysql; then
28124                                 MYSQL_LIBDIR=/usr/lib64/mysql
28125                         else
28126                                 MYSQL_LIBDIR=/usr/lib/mysql
28127                         fi
28128                         MYSQL_BINDIR=/usr/bin
28129                 elif test -f /usr/include/mysql.h; then
28130                         MYSQL_INCDIR=/usr/include
28131                         if test -d /usr/lib64; then
28132                                 MYSQL_LIBDIR=/usr/lib64
28133                         else
28134                                 MYSQL_LIBDIR=/usr/lib
28135                         fi
28136                         MYSQL_BINDIR=/usr/bin
28137                 elif test -f /usr/local/include/mysql/mysql.h; then
28138                         MYSQL_INCDIR=/usr/local/include/mysql
28139                         if test -d /usr/local/lib64/mysql; then
28140                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28141                         else
28142                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28143                         fi
28144                         MYSQL_BINDIR=/usr/local/bin
28145                 elif test -f /usr/local/include/mysql.h; then
28146                         MYSQL_INCDIR=/usr/local/include
28147                         if test -d /usr/local/lib64; then
28148                                 MYSQL_LIBDIR=/usr/local/lib64
28149                         else
28150                                 MYSQL_LIBDIR=/usr/local/lib
28151                         fi
28152                         MYSQL_BINDIR=/usr/local/bin
28153                 else
28154                    { echo "$as_me:$LINENO: result: no" >&5
28155 echo "${ECHO_T}no" >&6; }
28156                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28157 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28158    { (exit 1); exit 1; }; }
28159                 fi
28160         else
28161                 if test -f $withval/include/mysql/mysql.h; then
28162                         MYSQL_INCDIR=$withval/include/mysql
28163                         if test -d $withval/lib64/mysql; then
28164                                 MYSQL_LIBDIR=$withval/lib64/mysql
28165                         else
28166                                 MYSQL_LIBDIR=$withval/lib/mysql
28167                         fi
28168                         MYSQL_BINDIR=$withval/bin
28169                 elif test -f $withval/include/mysql.h; then
28170                         MYSQL_INCDIR=$withval/include
28171                         if test -d $withval/lib64; then
28172                                 MYSQL_LIBDIR=$withval/lib64
28173                         else
28174                                 MYSQL_LIBDIR=$withval/lib
28175                         fi
28176                         MYSQL_BINDIR=$withval/bin
28177                 else
28178                    { echo "$as_me:$LINENO: result: no" >&5
28179 echo "${ECHO_T}no" >&6; }
28180                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28181 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28182    { (exit 1); exit 1; }; }
28183                 fi
28184         fi
28185     SQL_INCLUDE=-I$MYSQL_INCDIR
28186     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28187     SQL_BINDIR=$MYSQL_BINDIR
28188     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28189
28190     cat >>confdefs.h <<\_ACEOF
28191 #define HAVE_MYSQL 1
28192 _ACEOF
28193
28194     cat >>confdefs.h <<\_ACEOF
28195 #define HAVE_EMBEDDED_MYSQL 1
28196 _ACEOF
28197
28198     { echo "$as_me:$LINENO: result: yes" >&5
28199 echo "${ECHO_T}yes" >&6; }
28200     db_found=yes
28201     support_mysql=yes
28202     db_type=MySQL
28203     DB_TYPE=mysql
28204
28205   else
28206         { echo "$as_me:$LINENO: result: no" >&5
28207 echo "${ECHO_T}no" >&6; }
28208   fi
28209
28210
28211 fi
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222 db_found=no
28223 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28224 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28225
28226 # Check whether --with-sqlite3 was given.
28227 if test "${with_sqlite3+set}" = set; then
28228   withval=$with_sqlite3;
28229   if test "$withval" != "no"; then
28230      if test "$withval" = "yes"; then
28231         if test -f /usr/local/include/sqlite3.h; then
28232            SQLITE_INCDIR=/usr/local/include
28233            if test -d /usr/local/lib64; then
28234               SQLITE_LIBDIR=/usr/local/lib64
28235            else
28236               SQLITE_LIBDIR=/usr/local/lib
28237            fi
28238            SQLITE_BINDIR=/usr/local/bin
28239         elif test -f /usr/include/sqlite3.h; then
28240            SQLITE_INCDIR=/usr/include
28241            if test -d /usr/lib64; then
28242               SQLITE_LIBDIR=/usr/lib64
28243            else
28244               SQLITE_LIBDIR=/usr/lib
28245            fi
28246            SQLITE_BINDIR=/usr/bin
28247         elif test -f $prefix/include/sqlite3.h; then
28248            SQLITE_INCDIR=$prefix/include
28249            if test -d $prefix/lib64; then
28250               SQLITE_LIBDIR=$prefix/lib64
28251            else
28252               SQLITE_LIBDIR=$prefix/lib
28253            fi
28254            SQLITE_BINDIR=$prefix/bin
28255         else
28256            { echo "$as_me:$LINENO: result: no" >&5
28257 echo "${ECHO_T}no" >&6; }
28258            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28259 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28260    { (exit 1); exit 1; }; }
28261         fi
28262      else
28263         if test -f $withval/sqlite3.h; then
28264            SQLITE_INCDIR=$withval
28265            SQLITE_LIBDIR=$withval
28266            SQLITE_BINDIR=$withval
28267         elif test -f $withval/include/sqlite3.h; then
28268            SQLITE_INCDIR=$withval/include
28269            if test -d $withval/lib64; then
28270               SQLITE_LIBDIR=$withval/lib64
28271            else
28272               SQLITE_LIBDIR=$withval/lib
28273            fi
28274            SQLITE_BINDIR=$withval/bin
28275         else
28276            { echo "$as_me:$LINENO: result: no" >&5
28277 echo "${ECHO_T}no" >&6; }
28278            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28279 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28280    { (exit 1); exit 1; }; }
28281         fi
28282      fi
28283      SQL_INCLUDE=-I$SQLITE_INCDIR
28284      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28285      SQL_BINDIR=$SQLITE_BINDIR
28286      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28287
28288      cat >>confdefs.h <<\_ACEOF
28289 #define HAVE_SQLITE3 1
28290 _ACEOF
28291
28292      { echo "$as_me:$LINENO: result: yes" >&5
28293 echo "${ECHO_T}yes" >&6; }
28294      db_found=yes
28295      support_sqlite3=yes
28296      db_type=SQLite3
28297      DB_TYPE=sqlite3
28298
28299   else
28300      { echo "$as_me:$LINENO: result: no" >&5
28301 echo "${ECHO_T}no" >&6; }
28302   fi
28303
28304 else
28305
28306   { echo "$as_me:$LINENO: result: no" >&5
28307 echo "${ECHO_T}no" >&6; }
28308
28309 fi
28310
28311
28312
28313
28314
28315
28316
28317
28318 db_found=no
28319 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28320 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28321
28322 # Check whether --with-sqlite was given.
28323 if test "${with_sqlite+set}" = set; then
28324   withval=$with_sqlite;
28325   if test "$withval" != "no"; then
28326      if test "$withval" = "yes"; then
28327         if test -f /usr/local/include/sqlite.h; then
28328            SQLITE_INCDIR=/usr/local/include
28329            if test -d /usr/local/lib64; then
28330               SQLITE_LIBDIR=/usr/local/lib64
28331            else
28332               SQLITE_LIBDIR=/usr/local/lib
28333            fi
28334            SQLITE_BINDIR=/usr/local/bin
28335         elif test -f /usr/include/sqlite.h; then
28336            SQLITE_INCDIR=/usr/include
28337            if test -d /usr/lib64; then
28338               SQLITE_LIBDIR=/usr/lib64
28339            else
28340               SQLITE_LIBDIR=/usr/lib
28341            fi
28342            SQLITE_BINDIR=/usr/bin
28343         elif test -f $prefix/include/sqlite.h; then
28344            SQLITE_INCDIR=$prefix/include
28345            if test -d $prefix/lib64; then
28346               SQLITE_LIBDIR=$prefix/lib64
28347            else
28348               SQLITE_LIBDIR=$prefix/lib
28349            fi
28350            SQLITE_BINDIR=$prefix/bin
28351         else
28352            { echo "$as_me:$LINENO: result: no" >&5
28353 echo "${ECHO_T}no" >&6; }
28354            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28355 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28356    { (exit 1); exit 1; }; }
28357         fi
28358      else
28359         if test -f $withval/sqlite.h; then
28360            SQLITE_INCDIR=$withval
28361            SQLITE_LIBDIR=$withval
28362            SQLITE_BINDIR=$withval
28363         elif test -f $withval/include/sqlite.h; then
28364            SQLITE_INCDIR=$withval/include
28365            if test -d $withval/lib64; then
28366               SQLITE_LIBDIR=$withval/lib64
28367            else
28368               SQLITE_LIBDIR=$withval/lib
28369            fi
28370            SQLITE_BINDIR=$withval/bin
28371         else
28372            { echo "$as_me:$LINENO: result: no" >&5
28373 echo "${ECHO_T}no" >&6; }
28374            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28375 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28376    { (exit 1); exit 1; }; }
28377         fi
28378      fi
28379      SQL_INCLUDE=-I$SQLITE_INCDIR
28380      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28381      SQL_BINDIR=$SQLITE_BINDIR
28382      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28383
28384      cat >>confdefs.h <<\_ACEOF
28385 #define HAVE_SQLITE 1
28386 _ACEOF
28387
28388      { echo "$as_me:$LINENO: result: yes" >&5
28389 echo "${ECHO_T}yes" >&6; }
28390      db_found=yes
28391      support_sqlite=yes
28392      db_type=SQLite
28393      DB_TYPE=sqlite
28394
28395   else
28396      { echo "$as_me:$LINENO: result: no" >&5
28397 echo "${ECHO_T}no" >&6; }
28398   fi
28399
28400 else
28401
28402   { echo "$as_me:$LINENO: result: no" >&5
28403 echo "${ECHO_T}no" >&6; }
28404
28405 fi
28406
28407
28408
28409
28410
28411
28412
28413
28414 db_found=no
28415 { echo "$as_me:$LINENO: checking for DBI support" >&5
28416 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28417
28418 # Check whether --with-dbi was given.
28419 if test "${with_dbi+set}" = set; then
28420   withval=$with_dbi;
28421   if test "$withval" != "no"; then
28422      if test "$withval" = "yes"; then
28423         if test -f /usr/local/include/dbi/dbi.h; then
28424            DBI_INCDIR=/usr/local/dbi/include
28425            if test -d /usr/local/lib64; then
28426               DBI_LIBDIR=/usr/local/lib64
28427            else
28428               DBI_LIBDIR=/usr/local/lib
28429            fi
28430            DBI_BINDIR=/usr/local/bin
28431         elif test -f /usr/include/dbi/dbi.h; then
28432            DBI_INCDIR=/usr/include
28433            if test -d /usr/lib64; then
28434               DBI_LIBDIR=/usr/lib64
28435            else
28436               DBI_LIBDIR=/usr/lib
28437            fi
28438            DBI_BINDIR=/usr/bin
28439         elif test -f $prefix/include/dbi/dbi.h; then
28440            DBI_INCDIR=$prefix/include
28441            if test -d $prefix/lib64; then
28442               DBI_LIBDIR=$prefix/lib64
28443            else
28444               DBI_LIBDIR=$prefix/lib
28445            fi
28446            DBI_BINDIR=$prefix/bin
28447         else
28448            { echo "$as_me:$LINENO: result: no" >&5
28449 echo "${ECHO_T}no" >&6; }
28450            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28451 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28452    { (exit 1); exit 1; }; }
28453         fi
28454         if test -d /usr/local/lib/dbd; then
28455            DRIVERDIR=/usr/local/lib/dbd
28456            if test -d /usr/local/lib64/dbd; then
28457               DRIVERDIR=/usr/local/lib64/dbd
28458            else
28459               DRIVERDIR=/usr/local/lib/dbd
28460            fi
28461         elif test -d /usr/lib/dbd; then
28462            DRIVERDIR=/usr/lib/dbd
28463            if test -d /usr/lib64/dbd; then
28464               DRIVERDIR=/usr/lib64/dbd
28465            else
28466               DRIVERDIR=/usr/lib/dbd
28467            fi
28468         elif test -d $prefix/lib/dbd; then
28469            if test -d $prefix/lib64/dbd; then
28470               DRIVERDIR=$prefix/lib64/dbd
28471            else
28472               DRIVERDIR=$prefix/lib/dbd
28473            fi
28474         else
28475            { echo "$as_me:$LINENO: result: no" >&5
28476 echo "${ECHO_T}no" >&6; }
28477            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28478 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28479    { (exit 1); exit 1; }; }
28480         fi
28481      else
28482         if test -f $withval/dbi.h; then
28483            DBI_INCDIR=$withval
28484            DBI_LIBDIR=$withval
28485            DBI_BINDIR=$withval
28486         elif test -f $withval/include/dbi/dbi.h; then
28487            DBI_INCDIR=$withval/include
28488            if test -d $withval/lib64; then
28489               DBI_LIBDIR=$withval/lib64
28490            else
28491               DBI_LIBDIR=$withval/lib
28492            fi
28493            DBI_BINDIR=$withval/bin
28494         else
28495            { echo "$as_me:$LINENO: result: no" >&5
28496 echo "${ECHO_T}no" >&6; }
28497            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28498 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28499    { (exit 1); exit 1; }; }
28500         fi
28501         if test -d $withval/dbd; then
28502            DRIVERDIR=$withval/dbd
28503         elif test -d $withval/lib/; then
28504            if test -d $withval/lib64/dbd; then
28505               DRIVERDIR=$withval/lib64/dbd
28506            else
28507               DRIVERDIR=$withval/lib/dbd
28508            fi
28509         else
28510            { echo "$as_me:$LINENO: result: no" >&5
28511 echo "${ECHO_T}no" >&6; }
28512            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28513 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28514    { (exit 1); exit 1; }; }
28515         fi
28516      fi
28517      SQL_INCLUDE=-I$DBI_INCDIR
28518      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28519      SQL_BINDIR=$DBI_BINDIR
28520      SQL_LIB=$DBI_LIBDIR/libdbi.a
28521      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28522
28523
28524 cat >>confdefs.h <<\_ACEOF
28525 #define HAVE_DBI 1
28526 _ACEOF
28527
28528      { echo "$as_me:$LINENO: result: yes" >&5
28529 echo "${ECHO_T}yes" >&6; }
28530      db_found=yes
28531      support_dbi=yes
28532      db_type=DBI
28533      DB_TYPE=dbi
28534      uncomment_dbi=" "
28535
28536   else
28537      { echo "$as_me:$LINENO: result: no" >&5
28538 echo "${ECHO_T}no" >&6; }
28539   fi
28540
28541 else
28542
28543   { echo "$as_me:$LINENO: result: no" >&5
28544 echo "${ECHO_T}no" >&6; }
28545
28546 fi
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557 db_found=no
28558 db_prog=no
28559 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28560 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28561
28562 # Check whether --with-dbi-driver was given.
28563 if test "${with_dbi_driver+set}" = set; then
28564   withval=$with_dbi_driver;
28565   if test "$withval" != "no"; then
28566      case $withval in
28567         "mysql")
28568            db_prog="mysql"
28569            if test -f /usr/local/mysql/bin/mysql; then
28570               SQL_BINDIR=/usr/local/mysql/bin
28571               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28572                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28573                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28574               else
28575                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28576               fi
28577            elif test -f /usr/bin/mysql; then
28578               SQL_BINDIR=/usr/bin
28579               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28580                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28581                   SQL_LIBDIR=/usr/lib64/mysql
28582               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28583                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28584                   SQL_LIBDIR=/usr/lib/mysql
28585               else
28586                   SQL_LIBDIR=/usr/lib
28587               fi
28588            elif test -f /usr/local/bin/mysql; then
28589               SQL_BINDIR=/usr/local/bin
28590               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28591                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28592                   SQL_LIBDIR=/usr/local/lib64/mysql
28593               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28594                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28595                   SQL_LIBDIR=/usr/local/lib/mysql
28596               else
28597                   SQL_LIBDIR=/usr/local/lib
28598               fi
28599            elif test -f $withval/bin/mysql; then
28600               SQL_BINDIR=$withval/bin
28601               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28602                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28603                   SQL_LIBDIR=$withval/lib64/mysql
28604               elif test -f $withval/lib64/libmysqlclient_r.a \
28605                   -o -f $withval/lib64/libmysqlclient_r.so; then
28606                   SQL_LIBDIR=$withval/lib64
28607               elif test -f $withval/lib/libmysqlclient_r.a \
28608                   -o -f $withval/lib/libmysqlclient_r.so; then
28609                   SQL_LIBDIR=$withval/lib/
28610               else
28611                   SQL_LIBDIR=$withval/lib/mysql
28612               fi
28613            else
28614               { echo "$as_me:$LINENO: result: no" >&5
28615 echo "${ECHO_T}no" >&6; }
28616               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28617 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28618    { (exit 1); exit 1; }; }
28619            fi
28620            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28621         ;;
28622         "postgresql")
28623            db_prog="postgresql"
28624            PG_CONFIG=`which pg_config`
28625            if test -n "$PG_CONFIG"; then
28626               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28627               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28628            elif test -f /usr/local/bin/psql; then
28629               SQL_BINDIR=/usr/local/bin
28630               if test -d /usr/local/lib64; then
28631                  SQL_LIBDIR=/usr/local/lib64
28632               else
28633                  SQL_LIBDIR=/usr/local/lib
28634               fi
28635            elif test -f /usr/bin/psql; then
28636               SQL_BINDIR=/usr/local/bin
28637               if test -d /usr/lib64/postgresql; then
28638                  SQL_LIBDIR=/usr/lib64/postgresql
28639               elif test -d /usr/lib/postgresql; then
28640                  SQL_LIBDIR=/usr/lib/postgresql
28641               elif test -d /usr/lib64; then
28642                  SQL_LIBDIR=/usr/lib64
28643               else
28644                  SQL_LIBDIR=/usr/lib
28645               fi
28646            elif test -f $withval/bin/psql; then
28647               SQL_BINDIR=$withval/bin
28648               if test -d $withval/lib64; then
28649                  SQL_LIBDIR=$withval/lib64
28650               else
28651                  SQL_LIBDIR=$withval/lib
28652               fi
28653            else
28654               { echo "$as_me:$LINENO: result: no" >&5
28655 echo "${ECHO_T}no" >&6; }
28656               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28657 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28658    { (exit 1); exit 1; }; }
28659            fi
28660            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28661         ;;
28662         "sqlite")
28663            db_prog="sqlite"
28664            if test -f /usr/local/bin/sqlite; then
28665               SQL_BINDIR=/usr/local/bin
28666               if test -d /usr/local/lib64; then
28667                  SQL_LIBDIR=/usr/local/lib64
28668               else
28669                  SQL_LIBDIR=/usr/local/lib
28670               fi
28671            elif test -f /usr/bin/sqlite; then
28672               SQL_BINDIR=/usr/bin
28673               if test -d /usr/lib64; then
28674                  SQL_LIBDIR=/usr/lib64
28675               else
28676                  SQL_LIBDIR=/usr/lib
28677               fi
28678            elif test -f $withval/bin/sqlite; then
28679               SQL_BINDIR=$withval/bin
28680               if test -d $withval/lib64; then
28681                  SQL_LIBDIR=$withval/lib64
28682               else
28683                  SQL_LIBDIR=$withval/lib
28684               fi
28685            else
28686               { echo "$as_me:$LINENO: result: no" >&5
28687 echo "${ECHO_T}no" >&6; }
28688               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28689 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28690    { (exit 1); exit 1; }; }
28691            fi
28692            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28693         ;;
28694         "sqlite3")
28695            db_prog="sqlite3"
28696            if test -f /usr/local/bin/sqlite3; then
28697               SQL_BINDIR=/usr/local/bin
28698               if test -d /usr/local/lib64; then
28699                  SQL_LIBDIR=/usr/local/lib64
28700               else
28701                  SQL_LIBDIR=/usr/local/lib
28702               fi
28703            elif test -f /usr/bin/sqlite3; then
28704               SQL_BINDIR=/usr/bin
28705               if test -d /usr/lib64; then
28706                  SQL_LIBDIR=/usr/lib64
28707               else
28708                  SQL_LIBDIR=/usr/lib
28709               fi
28710            elif test -f $withval/bin/sqlite3; then
28711               SQL_BINDIR=$withval/bin
28712               if test -d $withval/lib64; then
28713                  SQL_LIBDIR=$withval/lib64
28714               else
28715                  SQL_LIBDIR=$withval/lib
28716               fi
28717            else
28718               { echo "$as_me:$LINENO: result: no" >&5
28719 echo "${ECHO_T}no" >&6; }
28720               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28721 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28722    { (exit 1); exit 1; }; }
28723            fi
28724            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28725         ;;
28726         *)
28727            { echo "$as_me:$LINENO: result: no" >&5
28728 echo "${ECHO_T}no" >&6; }
28729            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28730 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28731    { (exit 1); exit 1; }; }
28732         ;;
28733      esac
28734
28735      { echo "$as_me:$LINENO: result: yes" >&5
28736 echo "${ECHO_T}yes" >&6; }
28737      DB_PROG=$db_prog
28738   else
28739      { echo "$as_me:$LINENO: result: no" >&5
28740 echo "${ECHO_T}no" >&6; }
28741   fi
28742
28743 else
28744
28745   { echo "$as_me:$LINENO: result: no" >&5
28746 echo "${ECHO_T}no" >&6; }
28747
28748 fi
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759 support_batch_insert=no
28760 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28761 pkg=$?
28762 if test $pkg = 0; then
28763    support_batch_insert=yes
28764    # Check whether --enable-batch-insert was given.
28765 if test "${enable_batch_insert+set}" = set; then
28766   enableval=$enable_batch_insert;
28767           if test x$enableval = xno; then
28768              support_batch_insert=no
28769           else
28770              support_batch_insert=yes
28771           fi
28772
28773
28774 fi
28775
28776 fi
28777
28778 if test x$DB_TYPE = xpostgresql; then
28779    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28780    pkg=$?
28781    if test $pkg != 0; then
28782       support_batch_insert=no
28783    fi
28784 fi
28785
28786 if test x$DB_TYPE = xdbi; then
28787    DB_TYPE=$DB_PROG
28788    db_type=$DB_PROG
28789    pkg=1
28790       if test $DB_PROG = postgresql; then
28791       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28792       pkg=$?
28793    fi
28794
28795    if test $DB_PROG = mysql; then
28796       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28797       pkg=$?
28798    fi
28799
28800    if test $DB_PROG = sqlite3; then
28801       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28802       pkg=$?
28803    fi
28804
28805    if test $pkg = 0; then
28806       # Check whether --enable-batch-insert was given.
28807 if test "${enable_batch_insert+set}" = set; then
28808   enableval=$enable_batch_insert;
28809              if test x$enableval = xno; then
28810                 support_batch_insert=no
28811              else
28812                 support_batch_insert=yes
28813              fi
28814
28815
28816 fi
28817
28818    fi
28819 else
28820       uncomment_dbi="#"
28821 fi
28822
28823
28824
28825 if test $support_batch_insert = yes ; then
28826
28827 cat >>confdefs.h <<\_ACEOF
28828 #define HAVE_BATCH_FILE_INSERT 1
28829 _ACEOF
28830
28831 fi
28832
28833 cat >>confdefs.h <<\_ACEOF
28834 #define PROTOTYPES 1
28835 _ACEOF
28836
28837
28838 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28839    if test -z "$CCOPTS"; then
28840       CCOPTS='-g -O2 -Wall'
28841    fi
28842    CFLAGS="$CCOPTS"
28843 fi
28844
28845
28846
28847 largefile_support="no"
28848
28849    # Check whether --enable-largefile was given.
28850 if test "${enable_largefile+set}" = set; then
28851   enableval=$enable_largefile;
28852 fi
28853
28854    if test "$enable_largefile" != no; then
28855      if test -n "$ac_tool_prefix"; then
28856   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28857 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28860 if test "${ac_cv_prog_GETCONF+set}" = set; then
28861   echo $ECHO_N "(cached) $ECHO_C" >&6
28862 else
28863   if test -n "$GETCONF"; then
28864   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28865 else
28866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28867 for as_dir in $PATH
28868 do
28869   IFS=$as_save_IFS
28870   test -z "$as_dir" && as_dir=.
28871   for ac_exec_ext in '' $ac_executable_extensions; do
28872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28873     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28875     break 2
28876   fi
28877 done
28878 done
28879 IFS=$as_save_IFS
28880
28881 fi
28882 fi
28883 GETCONF=$ac_cv_prog_GETCONF
28884 if test -n "$GETCONF"; then
28885   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28886 echo "${ECHO_T}$GETCONF" >&6; }
28887 else
28888   { echo "$as_me:$LINENO: result: no" >&5
28889 echo "${ECHO_T}no" >&6; }
28890 fi
28891
28892
28893 fi
28894 if test -z "$ac_cv_prog_GETCONF"; then
28895   ac_ct_GETCONF=$GETCONF
28896   # Extract the first word of "getconf", so it can be a program name with args.
28897 set dummy getconf; ac_word=$2
28898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28900 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28901   echo $ECHO_N "(cached) $ECHO_C" >&6
28902 else
28903   if test -n "$ac_ct_GETCONF"; then
28904   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28905 else
28906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28907 for as_dir in $PATH
28908 do
28909   IFS=$as_save_IFS
28910   test -z "$as_dir" && as_dir=.
28911   for ac_exec_ext in '' $ac_executable_extensions; do
28912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28913     ac_cv_prog_ac_ct_GETCONF="getconf"
28914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28915     break 2
28916   fi
28917 done
28918 done
28919 IFS=$as_save_IFS
28920
28921 fi
28922 fi
28923 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28924 if test -n "$ac_ct_GETCONF"; then
28925   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28926 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28927 else
28928   { echo "$as_me:$LINENO: result: no" >&5
28929 echo "${ECHO_T}no" >&6; }
28930 fi
28931
28932   if test "x$ac_ct_GETCONF" = x; then
28933     GETCONF=""
28934   else
28935     case $cross_compiling:$ac_tool_warned in
28936 yes:)
28937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28938 whose name does not start with the host triplet.  If you think this
28939 configuration is useful to you, please write to autoconf@gnu.org." >&5
28940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28941 whose name does not start with the host triplet.  If you think this
28942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28943 ac_tool_warned=yes ;;
28944 esac
28945     GETCONF=$ac_ct_GETCONF
28946   fi
28947 else
28948   GETCONF="$ac_cv_prog_GETCONF"
28949 fi
28950
28951      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28952 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28953 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28954   echo $ECHO_N "(cached) $ECHO_C" >&6
28955 else
28956   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28957         ac_cv_sys_largefile_CFLAGS=no
28958         case "$host_os" in
28959            # IRIX 6.2 and later require cc -n32.
28960            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28961              if test "$GCC" != yes; then
28962                ac_cv_sys_largefile_CFLAGS=-n32
28963              fi
28964              ac_save_CC="$CC"
28965              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28966              cat >conftest.$ac_ext <<_ACEOF
28967 /* confdefs.h.  */
28968 _ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h.  */
28972
28973 int
28974 main ()
28975 {
28976
28977   ;
28978   return 0;
28979 }
28980 _ACEOF
28981 rm -f conftest.$ac_objext conftest$ac_exeext
28982 if { (ac_try="$ac_link"
28983 case "(($ac_try" in
28984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985   *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988   (eval "$ac_link") 2>conftest.er1
28989   ac_status=$?
28990   grep -v '^ *+' conftest.er1 >conftest.err
28991   rm -f conftest.er1
28992   cat conftest.err >&5
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); } && {
28995          test -z "$ac_c_werror_flag" ||
28996          test ! -s conftest.err
28997        } && test -s conftest$ac_exeext &&
28998        $as_test_x conftest$ac_exeext; then
28999   :
29000 else
29001   echo "$as_me: failed program was:" >&5
29002 sed 's/^/| /' conftest.$ac_ext >&5
29003
29004         ac_cv_sys_largefile_CFLAGS=no
29005 fi
29006
29007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29008       conftest$ac_exeext conftest.$ac_ext
29009              CC="$ac_save_CC"
29010            esac
29011       }
29012 fi
29013 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29014 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29015      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29016 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29017 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29018   echo $ECHO_N "(cached) $ECHO_C" >&6
29019 else
29020   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29021         ac_cv_sys_largefile_LDFLAGS=no
29022
29023       }
29024 fi
29025 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29026 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29027      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29028 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29029 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29030   echo $ECHO_N "(cached) $ECHO_C" >&6
29031 else
29032   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29033         ac_cv_sys_largefile_LIBS=no
29034
29035       }
29036 fi
29037 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29038 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29039
29040      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29041        case "$ac_flag" in
29042        no) ;;
29043        -D_FILE_OFFSET_BITS=*) ;;
29044        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29045        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29046        -D?* | -I?*)
29047          case "$ac_flag" in
29048    no) ;;
29049    ?*)
29050      case "$CPPFLAGS" in
29051      '') CPPFLAGS="$ac_flag" ;;
29052      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29053      esac ;;
29054    esac ;;
29055        *)
29056          case "$ac_flag" in
29057    no) ;;
29058    ?*)
29059      case "$CFLAGS" in
29060      '') CFLAGS="$ac_flag" ;;
29061      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29062      esac ;;
29063    esac ;;
29064        esac
29065      done
29066      case "$ac_cv_sys_largefile_LDFLAGS" in
29067    no) ;;
29068    ?*)
29069      case "$LDFLAGS" in
29070      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29071      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29072      esac ;;
29073    esac
29074      case "$ac_cv_sys_largefile_LIBS" in
29075    no) ;;
29076    ?*)
29077      case "$LIBS" in
29078      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29079      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29080      esac ;;
29081    esac
29082      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29083 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29084 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29085   echo $ECHO_N "(cached) $ECHO_C" >&6
29086 else
29087   ac_cv_sys_file_offset_bits=no
29088       ac_cv_sys_file_offset_bits=64
29089       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29090         case "$ac_flag" in
29091         -D_FILE_OFFSET_BITS)
29092           ac_cv_sys_file_offset_bits=1 ;;
29093         -D_FILE_OFFSET_BITS=*)
29094           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29095         esac
29096       done
29097
29098 fi
29099 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29100 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29101    if test "$ac_cv_sys_file_offset_bits" != no; then
29102
29103 cat >>confdefs.h <<_ACEOF
29104 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29105 _ACEOF
29106
29107    fi
29108      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29109 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29110 if test "${ac_cv_sys_largefile_source+set}" = set; then
29111   echo $ECHO_N "(cached) $ECHO_C" >&6
29112 else
29113   ac_cv_sys_largefile_source=no
29114       ac_cv_sys_largefile_source=1
29115       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29116         case "$ac_flag" in
29117         -D_LARGEFILE_SOURCE)
29118           ac_cv_sys_largefile_source=1 ;;
29119         -D_LARGEFILE_SOURCE=*)
29120           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29121         esac
29122       done
29123
29124 fi
29125 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29126 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29127    if test "$ac_cv_sys_largefile_source" != no; then
29128
29129 cat >>confdefs.h <<_ACEOF
29130 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29131 _ACEOF
29132
29133    fi
29134      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29135 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29136 if test "${ac_cv_sys_large_files+set}" = set; then
29137   echo $ECHO_N "(cached) $ECHO_C" >&6
29138 else
29139   ac_cv_sys_large_files=no
29140       ac_cv_sys_large_files=1
29141       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29142         case "$ac_flag" in
29143         -D_LARGE_FILES)
29144           ac_cv_sys_large_files=1 ;;
29145         -D_LARGE_FILES=*)
29146           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29147         esac
29148       done
29149
29150 fi
29151 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29152 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29153    if test "$ac_cv_sys_large_files" != no; then
29154
29155 cat >>confdefs.h <<_ACEOF
29156 #define _LARGE_FILES $ac_cv_sys_large_files
29157 _ACEOF
29158
29159    fi
29160    fi
29161
29162
29163 { echo "$as_me:$LINENO: checking for X" >&5
29164 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29165
29166
29167 # Check whether --with-x was given.
29168 if test "${with_x+set}" = set; then
29169   withval=$with_x;
29170 fi
29171
29172 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29173 if test "x$with_x" = xno; then
29174   # The user explicitly disabled X.
29175   have_x=disabled
29176 else
29177   case $x_includes,$x_libraries in #(
29178     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29179 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29180    { (exit 1); exit 1; }; };; #(
29181     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29182   echo $ECHO_N "(cached) $ECHO_C" >&6
29183 else
29184   # One or both of the vars are not set, and there is no cached value.
29185 ac_x_includes=no ac_x_libraries=no
29186 rm -f -r conftest.dir
29187 if mkdir conftest.dir; then
29188   cd conftest.dir
29189   cat >Imakefile <<'_ACEOF'
29190 incroot:
29191         @echo incroot='${INCROOT}'
29192 usrlibdir:
29193         @echo usrlibdir='${USRLIBDIR}'
29194 libdir:
29195         @echo libdir='${LIBDIR}'
29196 _ACEOF
29197   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29198     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29199     for ac_var in incroot usrlibdir libdir; do
29200       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29201     done
29202     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29203     for ac_extension in a so sl; do
29204       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29205          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29206         ac_im_usrlibdir=$ac_im_libdir; break
29207       fi
29208     done
29209     # Screen out bogus values from the imake configuration.  They are
29210     # bogus both because they are the default anyway, and because
29211     # using them would break gcc on systems where it needs fixed includes.
29212     case $ac_im_incroot in
29213         /usr/include) ac_x_includes= ;;
29214         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29215     esac
29216     case $ac_im_usrlibdir in
29217         /usr/lib | /lib) ;;
29218         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29219     esac
29220   fi
29221   cd ..
29222   rm -f -r conftest.dir
29223 fi
29224
29225 # Standard set of common directories for X headers.
29226 # Check X11 before X11Rn because it is often a symlink to the current release.
29227 ac_x_header_dirs='
29228 /usr/X11/include
29229 /usr/X11R6/include
29230 /usr/X11R5/include
29231 /usr/X11R4/include
29232
29233 /usr/include/X11
29234 /usr/include/X11R6
29235 /usr/include/X11R5
29236 /usr/include/X11R4
29237
29238 /usr/local/X11/include
29239 /usr/local/X11R6/include
29240 /usr/local/X11R5/include
29241 /usr/local/X11R4/include
29242
29243 /usr/local/include/X11
29244 /usr/local/include/X11R6
29245 /usr/local/include/X11R5
29246 /usr/local/include/X11R4
29247
29248 /usr/X386/include
29249 /usr/x386/include
29250 /usr/XFree86/include/X11
29251
29252 /usr/include
29253 /usr/local/include
29254 /usr/unsupported/include
29255 /usr/athena/include
29256 /usr/local/x11r5/include
29257 /usr/lpp/Xamples/include
29258
29259 /usr/openwin/include
29260 /usr/openwin/share/include'
29261
29262 if test "$ac_x_includes" = no; then
29263   # Guess where to find include files, by looking for Xlib.h.
29264   # First, try using that file with no special directory specified.
29265   cat >conftest.$ac_ext <<_ACEOF
29266 /* confdefs.h.  */
29267 _ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h.  */
29271 #include <X11/Xlib.h>
29272 _ACEOF
29273 if { (ac_try="$ac_cpp conftest.$ac_ext"
29274 case "(($ac_try" in
29275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29276   *) ac_try_echo=$ac_try;;
29277 esac
29278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29280   ac_status=$?
29281   grep -v '^ *+' conftest.er1 >conftest.err
29282   rm -f conftest.er1
29283   cat conftest.err >&5
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); } >/dev/null && {
29286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29287          test ! -s conftest.err
29288        }; then
29289   # We can compile using X headers with no special include directory.
29290 ac_x_includes=
29291 else
29292   echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295   for ac_dir in $ac_x_header_dirs; do
29296   if test -r "$ac_dir/X11/Xlib.h"; then
29297     ac_x_includes=$ac_dir
29298     break
29299   fi
29300 done
29301 fi
29302
29303 rm -f conftest.err conftest.$ac_ext
29304 fi # $ac_x_includes = no
29305
29306 if test "$ac_x_libraries" = no; then
29307   # Check for the libraries.
29308   # See if we find them without any special options.
29309   # Don't add to $LIBS permanently.
29310   ac_save_LIBS=$LIBS
29311   LIBS="-lX11 $LIBS"
29312   cat >conftest.$ac_ext <<_ACEOF
29313 /* confdefs.h.  */
29314 _ACEOF
29315 cat confdefs.h >>conftest.$ac_ext
29316 cat >>conftest.$ac_ext <<_ACEOF
29317 /* end confdefs.h.  */
29318 #include <X11/Xlib.h>
29319 int
29320 main ()
29321 {
29322 XrmInitialize ()
29323   ;
29324   return 0;
29325 }
29326 _ACEOF
29327 rm -f conftest.$ac_objext conftest$ac_exeext
29328 if { (ac_try="$ac_link"
29329 case "(($ac_try" in
29330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331   *) ac_try_echo=$ac_try;;
29332 esac
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334   (eval "$ac_link") 2>conftest.er1
29335   ac_status=$?
29336   grep -v '^ *+' conftest.er1 >conftest.err
29337   rm -f conftest.er1
29338   cat conftest.err >&5
29339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340   (exit $ac_status); } && {
29341          test -z "$ac_c_werror_flag" ||
29342          test ! -s conftest.err
29343        } && test -s conftest$ac_exeext &&
29344        $as_test_x conftest$ac_exeext; then
29345   LIBS=$ac_save_LIBS
29346 # We can link X programs with no special library path.
29347 ac_x_libraries=
29348 else
29349   echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.$ac_ext >&5
29351
29352         LIBS=$ac_save_LIBS
29353 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29354 do
29355   # Don't even attempt the hair of trying to link an X program!
29356   for ac_extension in a so sl; do
29357     if test -r "$ac_dir/libX11.$ac_extension"; then
29358       ac_x_libraries=$ac_dir
29359       break 2
29360     fi
29361   done
29362 done
29363 fi
29364
29365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29366       conftest$ac_exeext conftest.$ac_ext
29367 fi # $ac_x_libraries = no
29368
29369 case $ac_x_includes,$ac_x_libraries in #(
29370   no,* | *,no | *\'*)
29371     # Didn't find X, or a directory has "'" in its name.
29372     ac_cv_have_x="have_x=no";; #(
29373   *)
29374     # Record where we found X for the cache.
29375     ac_cv_have_x="have_x=yes\
29376         ac_x_includes='$ac_x_includes'\
29377         ac_x_libraries='$ac_x_libraries'"
29378 esac
29379 fi
29380 ;; #(
29381     *) have_x=yes;;
29382   esac
29383   eval "$ac_cv_have_x"
29384 fi # $with_x != no
29385
29386 if test "$have_x" != yes; then
29387   { echo "$as_me:$LINENO: result: $have_x" >&5
29388 echo "${ECHO_T}$have_x" >&6; }
29389   no_x=yes
29390 else
29391   # If each of the values was on the command line, it overrides each guess.
29392   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29393   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29394   # Update the cache value to reflect the command line values.
29395   ac_cv_have_x="have_x=yes\
29396         ac_x_includes='$x_includes'\
29397         ac_x_libraries='$x_libraries'"
29398   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29399 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29400 fi
29401
29402 if test "$no_x" = yes; then
29403   # Not all programs may use this symbol, but it does not hurt to define it.
29404
29405 cat >>confdefs.h <<\_ACEOF
29406 #define X_DISPLAY_MISSING 1
29407 _ACEOF
29408
29409   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29410 else
29411   if test -n "$x_includes"; then
29412     X_CFLAGS="$X_CFLAGS -I$x_includes"
29413   fi
29414
29415   # It would also be nice to do this for all -L options, not just this one.
29416   if test -n "$x_libraries"; then
29417     X_LIBS="$X_LIBS -L$x_libraries"
29418     # For Solaris; some versions of Sun CC require a space after -R and
29419     # others require no space.  Words are not sufficient . . . .
29420     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29421 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29422     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29423     ac_xsave_c_werror_flag=$ac_c_werror_flag
29424     ac_c_werror_flag=yes
29425     cat >conftest.$ac_ext <<_ACEOF
29426 /* confdefs.h.  */
29427 _ACEOF
29428 cat confdefs.h >>conftest.$ac_ext
29429 cat >>conftest.$ac_ext <<_ACEOF
29430 /* end confdefs.h.  */
29431
29432 int
29433 main ()
29434 {
29435
29436   ;
29437   return 0;
29438 }
29439 _ACEOF
29440 rm -f conftest.$ac_objext conftest$ac_exeext
29441 if { (ac_try="$ac_link"
29442 case "(($ac_try" in
29443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444   *) ac_try_echo=$ac_try;;
29445 esac
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447   (eval "$ac_link") 2>conftest.er1
29448   ac_status=$?
29449   grep -v '^ *+' conftest.er1 >conftest.err
29450   rm -f conftest.er1
29451   cat conftest.err >&5
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); } && {
29454          test -z "$ac_c_werror_flag" ||
29455          test ! -s conftest.err
29456        } && test -s conftest$ac_exeext &&
29457        $as_test_x conftest$ac_exeext; then
29458   { echo "$as_me:$LINENO: result: no" >&5
29459 echo "${ECHO_T}no" >&6; }
29460        X_LIBS="$X_LIBS -R$x_libraries"
29461 else
29462   echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29464
29465         LIBS="$ac_xsave_LIBS -R $x_libraries"
29466        cat >conftest.$ac_ext <<_ACEOF
29467 /* confdefs.h.  */
29468 _ACEOF
29469 cat confdefs.h >>conftest.$ac_ext
29470 cat >>conftest.$ac_ext <<_ACEOF
29471 /* end confdefs.h.  */
29472
29473 int
29474 main ()
29475 {
29476
29477   ;
29478   return 0;
29479 }
29480 _ACEOF
29481 rm -f conftest.$ac_objext conftest$ac_exeext
29482 if { (ac_try="$ac_link"
29483 case "(($ac_try" in
29484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485   *) ac_try_echo=$ac_try;;
29486 esac
29487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488   (eval "$ac_link") 2>conftest.er1
29489   ac_status=$?
29490   grep -v '^ *+' conftest.er1 >conftest.err
29491   rm -f conftest.er1
29492   cat conftest.err >&5
29493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494   (exit $ac_status); } && {
29495          test -z "$ac_c_werror_flag" ||
29496          test ! -s conftest.err
29497        } && test -s conftest$ac_exeext &&
29498        $as_test_x conftest$ac_exeext; then
29499   { echo "$as_me:$LINENO: result: yes" >&5
29500 echo "${ECHO_T}yes" >&6; }
29501           X_LIBS="$X_LIBS -R $x_libraries"
29502 else
29503   echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.$ac_ext >&5
29505
29506         { echo "$as_me:$LINENO: result: neither works" >&5
29507 echo "${ECHO_T}neither works" >&6; }
29508 fi
29509
29510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29511       conftest$ac_exeext conftest.$ac_ext
29512 fi
29513
29514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29515       conftest$ac_exeext conftest.$ac_ext
29516     ac_c_werror_flag=$ac_xsave_c_werror_flag
29517     LIBS=$ac_xsave_LIBS
29518   fi
29519
29520   # Check for system-dependent libraries X programs must link with.
29521   # Do this before checking for the system-independent R6 libraries
29522   # (-lICE), since we may need -lsocket or whatever for X linking.
29523
29524   if test "$ISC" = yes; then
29525     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29526   else
29527     # Martyn Johnson says this is needed for Ultrix, if the X
29528     # libraries were built with DECnet support.  And Karl Berry says
29529     # the Alpha needs dnet_stub (dnet does not exist).
29530     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29531     cat >conftest.$ac_ext <<_ACEOF
29532 /* confdefs.h.  */
29533 _ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h.  */
29537
29538 /* Override any GCC internal prototype to avoid an error.
29539    Use char because int might match the return type of a GCC
29540    builtin and then its argument prototype would still apply.  */
29541 #ifdef __cplusplus
29542 extern "C"
29543 #endif
29544 char XOpenDisplay ();
29545 int
29546 main ()
29547 {
29548 return XOpenDisplay ();
29549   ;
29550   return 0;
29551 }
29552 _ACEOF
29553 rm -f conftest.$ac_objext conftest$ac_exeext
29554 if { (ac_try="$ac_link"
29555 case "(($ac_try" in
29556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557   *) ac_try_echo=$ac_try;;
29558 esac
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560   (eval "$ac_link") 2>conftest.er1
29561   ac_status=$?
29562   grep -v '^ *+' conftest.er1 >conftest.err
29563   rm -f conftest.er1
29564   cat conftest.err >&5
29565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566   (exit $ac_status); } && {
29567          test -z "$ac_c_werror_flag" ||
29568          test ! -s conftest.err
29569        } && test -s conftest$ac_exeext &&
29570        $as_test_x conftest$ac_exeext; then
29571   :
29572 else
29573   echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29575
29576         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29577 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29578 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29579   echo $ECHO_N "(cached) $ECHO_C" >&6
29580 else
29581   ac_check_lib_save_LIBS=$LIBS
29582 LIBS="-ldnet  $LIBS"
29583 cat >conftest.$ac_ext <<_ACEOF
29584 /* confdefs.h.  */
29585 _ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h.  */
29589
29590 /* Override any GCC internal prototype to avoid an error.
29591    Use char because int might match the return type of a GCC
29592    builtin and then its argument prototype would still apply.  */
29593 #ifdef __cplusplus
29594 extern "C"
29595 #endif
29596 char dnet_ntoa ();
29597 int
29598 main ()
29599 {
29600 return dnet_ntoa ();
29601   ;
29602   return 0;
29603 }
29604 _ACEOF
29605 rm -f conftest.$ac_objext conftest$ac_exeext
29606 if { (ac_try="$ac_link"
29607 case "(($ac_try" in
29608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609   *) ac_try_echo=$ac_try;;
29610 esac
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612   (eval "$ac_link") 2>conftest.er1
29613   ac_status=$?
29614   grep -v '^ *+' conftest.er1 >conftest.err
29615   rm -f conftest.er1
29616   cat conftest.err >&5
29617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618   (exit $ac_status); } && {
29619          test -z "$ac_c_werror_flag" ||
29620          test ! -s conftest.err
29621        } && test -s conftest$ac_exeext &&
29622        $as_test_x conftest$ac_exeext; then
29623   ac_cv_lib_dnet_dnet_ntoa=yes
29624 else
29625   echo "$as_me: failed program was:" >&5
29626 sed 's/^/| /' conftest.$ac_ext >&5
29627
29628         ac_cv_lib_dnet_dnet_ntoa=no
29629 fi
29630
29631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29632       conftest$ac_exeext conftest.$ac_ext
29633 LIBS=$ac_check_lib_save_LIBS
29634 fi
29635 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29636 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29637 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29638   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29639 fi
29640
29641     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29642       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29643 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29644 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29645   echo $ECHO_N "(cached) $ECHO_C" >&6
29646 else
29647   ac_check_lib_save_LIBS=$LIBS
29648 LIBS="-ldnet_stub  $LIBS"
29649 cat >conftest.$ac_ext <<_ACEOF
29650 /* confdefs.h.  */
29651 _ACEOF
29652 cat confdefs.h >>conftest.$ac_ext
29653 cat >>conftest.$ac_ext <<_ACEOF
29654 /* end confdefs.h.  */
29655
29656 /* Override any GCC internal prototype to avoid an error.
29657    Use char because int might match the return type of a GCC
29658    builtin and then its argument prototype would still apply.  */
29659 #ifdef __cplusplus
29660 extern "C"
29661 #endif
29662 char dnet_ntoa ();
29663 int
29664 main ()
29665 {
29666 return dnet_ntoa ();
29667   ;
29668   return 0;
29669 }
29670 _ACEOF
29671 rm -f conftest.$ac_objext conftest$ac_exeext
29672 if { (ac_try="$ac_link"
29673 case "(($ac_try" in
29674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675   *) ac_try_echo=$ac_try;;
29676 esac
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678   (eval "$ac_link") 2>conftest.er1
29679   ac_status=$?
29680   grep -v '^ *+' conftest.er1 >conftest.err
29681   rm -f conftest.er1
29682   cat conftest.err >&5
29683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684   (exit $ac_status); } && {
29685          test -z "$ac_c_werror_flag" ||
29686          test ! -s conftest.err
29687        } && test -s conftest$ac_exeext &&
29688        $as_test_x conftest$ac_exeext; then
29689   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29690 else
29691   echo "$as_me: failed program was:" >&5
29692 sed 's/^/| /' conftest.$ac_ext >&5
29693
29694         ac_cv_lib_dnet_stub_dnet_ntoa=no
29695 fi
29696
29697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29698       conftest$ac_exeext conftest.$ac_ext
29699 LIBS=$ac_check_lib_save_LIBS
29700 fi
29701 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29702 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29703 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29704   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29705 fi
29706
29707     fi
29708 fi
29709
29710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29711       conftest$ac_exeext conftest.$ac_ext
29712     LIBS="$ac_xsave_LIBS"
29713
29714     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29715     # to get the SysV transport functions.
29716     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29717     # needs -lnsl.
29718     # The nsl library prevents programs from opening the X display
29719     # on Irix 5.2, according to T.E. Dickey.
29720     # The functions gethostbyname, getservbyname, and inet_addr are
29721     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29722     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29723 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29724 if test "${ac_cv_func_gethostbyname+set}" = set; then
29725   echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727   cat >conftest.$ac_ext <<_ACEOF
29728 /* confdefs.h.  */
29729 _ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h.  */
29733 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29735 #define gethostbyname innocuous_gethostbyname
29736
29737 /* System header to define __stub macros and hopefully few prototypes,
29738     which can conflict with char gethostbyname (); below.
29739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29740     <limits.h> exists even on freestanding compilers.  */
29741
29742 #ifdef __STDC__
29743 # include <limits.h>
29744 #else
29745 # include <assert.h>
29746 #endif
29747
29748 #undef gethostbyname
29749
29750 /* Override any GCC internal prototype to avoid an error.
29751    Use char because int might match the return type of a GCC
29752    builtin and then its argument prototype would still apply.  */
29753 #ifdef __cplusplus
29754 extern "C"
29755 #endif
29756 char gethostbyname ();
29757 /* The GNU C library defines this for functions which it implements
29758     to always fail with ENOSYS.  Some functions are actually named
29759     something starting with __ and the normal name is an alias.  */
29760 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29761 choke me
29762 #endif
29763
29764 int
29765 main ()
29766 {
29767 return gethostbyname ();
29768   ;
29769   return 0;
29770 }
29771 _ACEOF
29772 rm -f conftest.$ac_objext conftest$ac_exeext
29773 if { (ac_try="$ac_link"
29774 case "(($ac_try" in
29775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776   *) ac_try_echo=$ac_try;;
29777 esac
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779   (eval "$ac_link") 2>conftest.er1
29780   ac_status=$?
29781   grep -v '^ *+' conftest.er1 >conftest.err
29782   rm -f conftest.er1
29783   cat conftest.err >&5
29784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785   (exit $ac_status); } && {
29786          test -z "$ac_c_werror_flag" ||
29787          test ! -s conftest.err
29788        } && test -s conftest$ac_exeext &&
29789        $as_test_x conftest$ac_exeext; then
29790   ac_cv_func_gethostbyname=yes
29791 else
29792   echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29794
29795         ac_cv_func_gethostbyname=no
29796 fi
29797
29798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29799       conftest$ac_exeext conftest.$ac_ext
29800 fi
29801 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29802 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29803
29804     if test $ac_cv_func_gethostbyname = no; then
29805       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29806 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29807 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29808   echo $ECHO_N "(cached) $ECHO_C" >&6
29809 else
29810   ac_check_lib_save_LIBS=$LIBS
29811 LIBS="-lnsl  $LIBS"
29812 cat >conftest.$ac_ext <<_ACEOF
29813 /* confdefs.h.  */
29814 _ACEOF
29815 cat confdefs.h >>conftest.$ac_ext
29816 cat >>conftest.$ac_ext <<_ACEOF
29817 /* end confdefs.h.  */
29818
29819 /* Override any GCC internal prototype to avoid an error.
29820    Use char because int might match the return type of a GCC
29821    builtin and then its argument prototype would still apply.  */
29822 #ifdef __cplusplus
29823 extern "C"
29824 #endif
29825 char gethostbyname ();
29826 int
29827 main ()
29828 {
29829 return gethostbyname ();
29830   ;
29831   return 0;
29832 }
29833 _ACEOF
29834 rm -f conftest.$ac_objext conftest$ac_exeext
29835 if { (ac_try="$ac_link"
29836 case "(($ac_try" in
29837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838   *) ac_try_echo=$ac_try;;
29839 esac
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841   (eval "$ac_link") 2>conftest.er1
29842   ac_status=$?
29843   grep -v '^ *+' conftest.er1 >conftest.err
29844   rm -f conftest.er1
29845   cat conftest.err >&5
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); } && {
29848          test -z "$ac_c_werror_flag" ||
29849          test ! -s conftest.err
29850        } && test -s conftest$ac_exeext &&
29851        $as_test_x conftest$ac_exeext; then
29852   ac_cv_lib_nsl_gethostbyname=yes
29853 else
29854   echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29856
29857         ac_cv_lib_nsl_gethostbyname=no
29858 fi
29859
29860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29861       conftest$ac_exeext conftest.$ac_ext
29862 LIBS=$ac_check_lib_save_LIBS
29863 fi
29864 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29866 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29867   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29868 fi
29869
29870       if test $ac_cv_lib_nsl_gethostbyname = no; then
29871         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29872 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29873 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29874   echo $ECHO_N "(cached) $ECHO_C" >&6
29875 else
29876   ac_check_lib_save_LIBS=$LIBS
29877 LIBS="-lbsd  $LIBS"
29878 cat >conftest.$ac_ext <<_ACEOF
29879 /* confdefs.h.  */
29880 _ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h.  */
29884
29885 /* Override any GCC internal prototype to avoid an error.
29886    Use char because int might match the return type of a GCC
29887    builtin and then its argument prototype would still apply.  */
29888 #ifdef __cplusplus
29889 extern "C"
29890 #endif
29891 char gethostbyname ();
29892 int
29893 main ()
29894 {
29895 return gethostbyname ();
29896   ;
29897   return 0;
29898 }
29899 _ACEOF
29900 rm -f conftest.$ac_objext conftest$ac_exeext
29901 if { (ac_try="$ac_link"
29902 case "(($ac_try" in
29903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29904   *) ac_try_echo=$ac_try;;
29905 esac
29906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29907   (eval "$ac_link") 2>conftest.er1
29908   ac_status=$?
29909   grep -v '^ *+' conftest.er1 >conftest.err
29910   rm -f conftest.er1
29911   cat conftest.err >&5
29912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913   (exit $ac_status); } && {
29914          test -z "$ac_c_werror_flag" ||
29915          test ! -s conftest.err
29916        } && test -s conftest$ac_exeext &&
29917        $as_test_x conftest$ac_exeext; then
29918   ac_cv_lib_bsd_gethostbyname=yes
29919 else
29920   echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29922
29923         ac_cv_lib_bsd_gethostbyname=no
29924 fi
29925
29926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29927       conftest$ac_exeext conftest.$ac_ext
29928 LIBS=$ac_check_lib_save_LIBS
29929 fi
29930 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29931 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29932 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29933   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29934 fi
29935
29936       fi
29937     fi
29938
29939     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29940     # socket/setsockopt and other routines are undefined under SCO ODT
29941     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29942     # on later versions), says Simon Leinen: it contains gethostby*
29943     # variants that don't use the name server (or something).  -lsocket
29944     # must be given before -lnsl if both are needed.  We assume that
29945     # if connect needs -lnsl, so does gethostbyname.
29946     { echo "$as_me:$LINENO: checking for connect" >&5
29947 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29948 if test "${ac_cv_func_connect+set}" = set; then
29949   echo $ECHO_N "(cached) $ECHO_C" >&6
29950 else
29951   cat >conftest.$ac_ext <<_ACEOF
29952 /* confdefs.h.  */
29953 _ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h.  */
29957 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29959 #define connect innocuous_connect
29960
29961 /* System header to define __stub macros and hopefully few prototypes,
29962     which can conflict with char connect (); below.
29963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29964     <limits.h> exists even on freestanding compilers.  */
29965
29966 #ifdef __STDC__
29967 # include <limits.h>
29968 #else
29969 # include <assert.h>
29970 #endif
29971
29972 #undef connect
29973
29974 /* Override any GCC internal prototype to avoid an error.
29975    Use char because int might match the return type of a GCC
29976    builtin and then its argument prototype would still apply.  */
29977 #ifdef __cplusplus
29978 extern "C"
29979 #endif
29980 char connect ();
29981 /* The GNU C library defines this for functions which it implements
29982     to always fail with ENOSYS.  Some functions are actually named
29983     something starting with __ and the normal name is an alias.  */
29984 #if defined __stub_connect || defined __stub___connect
29985 choke me
29986 #endif
29987
29988 int
29989 main ()
29990 {
29991 return connect ();
29992   ;
29993   return 0;
29994 }
29995 _ACEOF
29996 rm -f conftest.$ac_objext conftest$ac_exeext
29997 if { (ac_try="$ac_link"
29998 case "(($ac_try" in
29999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000   *) ac_try_echo=$ac_try;;
30001 esac
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003   (eval "$ac_link") 2>conftest.er1
30004   ac_status=$?
30005   grep -v '^ *+' conftest.er1 >conftest.err
30006   rm -f conftest.er1
30007   cat conftest.err >&5
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } && {
30010          test -z "$ac_c_werror_flag" ||
30011          test ! -s conftest.err
30012        } && test -s conftest$ac_exeext &&
30013        $as_test_x conftest$ac_exeext; then
30014   ac_cv_func_connect=yes
30015 else
30016   echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30018
30019         ac_cv_func_connect=no
30020 fi
30021
30022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30023       conftest$ac_exeext conftest.$ac_ext
30024 fi
30025 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30026 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30027
30028     if test $ac_cv_func_connect = no; then
30029       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30030 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30031 if test "${ac_cv_lib_socket_connect+set}" = set; then
30032   echo $ECHO_N "(cached) $ECHO_C" >&6
30033 else
30034   ac_check_lib_save_LIBS=$LIBS
30035 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30036 cat >conftest.$ac_ext <<_ACEOF
30037 /* confdefs.h.  */
30038 _ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h.  */
30042
30043 /* Override any GCC internal prototype to avoid an error.
30044    Use char because int might match the return type of a GCC
30045    builtin and then its argument prototype would still apply.  */
30046 #ifdef __cplusplus
30047 extern "C"
30048 #endif
30049 char connect ();
30050 int
30051 main ()
30052 {
30053 return connect ();
30054   ;
30055   return 0;
30056 }
30057 _ACEOF
30058 rm -f conftest.$ac_objext conftest$ac_exeext
30059 if { (ac_try="$ac_link"
30060 case "(($ac_try" in
30061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062   *) ac_try_echo=$ac_try;;
30063 esac
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065   (eval "$ac_link") 2>conftest.er1
30066   ac_status=$?
30067   grep -v '^ *+' conftest.er1 >conftest.err
30068   rm -f conftest.er1
30069   cat conftest.err >&5
30070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071   (exit $ac_status); } && {
30072          test -z "$ac_c_werror_flag" ||
30073          test ! -s conftest.err
30074        } && test -s conftest$ac_exeext &&
30075        $as_test_x conftest$ac_exeext; then
30076   ac_cv_lib_socket_connect=yes
30077 else
30078   echo "$as_me: failed program was:" >&5
30079 sed 's/^/| /' conftest.$ac_ext >&5
30080
30081         ac_cv_lib_socket_connect=no
30082 fi
30083
30084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30085       conftest$ac_exeext conftest.$ac_ext
30086 LIBS=$ac_check_lib_save_LIBS
30087 fi
30088 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30089 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30090 if test $ac_cv_lib_socket_connect = yes; then
30091   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30092 fi
30093
30094     fi
30095
30096     # Guillermo Gomez says -lposix is necessary on A/UX.
30097     { echo "$as_me:$LINENO: checking for remove" >&5
30098 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30099 if test "${ac_cv_func_remove+set}" = set; then
30100   echo $ECHO_N "(cached) $ECHO_C" >&6
30101 else
30102   cat >conftest.$ac_ext <<_ACEOF
30103 /* confdefs.h.  */
30104 _ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h.  */
30108 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30110 #define remove innocuous_remove
30111
30112 /* System header to define __stub macros and hopefully few prototypes,
30113     which can conflict with char remove (); below.
30114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30115     <limits.h> exists even on freestanding compilers.  */
30116
30117 #ifdef __STDC__
30118 # include <limits.h>
30119 #else
30120 # include <assert.h>
30121 #endif
30122
30123 #undef remove
30124
30125 /* Override any GCC internal prototype to avoid an error.
30126    Use char because int might match the return type of a GCC
30127    builtin and then its argument prototype would still apply.  */
30128 #ifdef __cplusplus
30129 extern "C"
30130 #endif
30131 char remove ();
30132 /* The GNU C library defines this for functions which it implements
30133     to always fail with ENOSYS.  Some functions are actually named
30134     something starting with __ and the normal name is an alias.  */
30135 #if defined __stub_remove || defined __stub___remove
30136 choke me
30137 #endif
30138
30139 int
30140 main ()
30141 {
30142 return remove ();
30143   ;
30144   return 0;
30145 }
30146 _ACEOF
30147 rm -f conftest.$ac_objext conftest$ac_exeext
30148 if { (ac_try="$ac_link"
30149 case "(($ac_try" in
30150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151   *) ac_try_echo=$ac_try;;
30152 esac
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154   (eval "$ac_link") 2>conftest.er1
30155   ac_status=$?
30156   grep -v '^ *+' conftest.er1 >conftest.err
30157   rm -f conftest.er1
30158   cat conftest.err >&5
30159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160   (exit $ac_status); } && {
30161          test -z "$ac_c_werror_flag" ||
30162          test ! -s conftest.err
30163        } && test -s conftest$ac_exeext &&
30164        $as_test_x conftest$ac_exeext; then
30165   ac_cv_func_remove=yes
30166 else
30167   echo "$as_me: failed program was:" >&5
30168 sed 's/^/| /' conftest.$ac_ext >&5
30169
30170         ac_cv_func_remove=no
30171 fi
30172
30173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30174       conftest$ac_exeext conftest.$ac_ext
30175 fi
30176 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30177 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30178
30179     if test $ac_cv_func_remove = no; then
30180       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30181 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30182 if test "${ac_cv_lib_posix_remove+set}" = set; then
30183   echo $ECHO_N "(cached) $ECHO_C" >&6
30184 else
30185   ac_check_lib_save_LIBS=$LIBS
30186 LIBS="-lposix  $LIBS"
30187 cat >conftest.$ac_ext <<_ACEOF
30188 /* confdefs.h.  */
30189 _ACEOF
30190 cat confdefs.h >>conftest.$ac_ext
30191 cat >>conftest.$ac_ext <<_ACEOF
30192 /* end confdefs.h.  */
30193
30194 /* Override any GCC internal prototype to avoid an error.
30195    Use char because int might match the return type of a GCC
30196    builtin and then its argument prototype would still apply.  */
30197 #ifdef __cplusplus
30198 extern "C"
30199 #endif
30200 char remove ();
30201 int
30202 main ()
30203 {
30204 return remove ();
30205   ;
30206   return 0;
30207 }
30208 _ACEOF
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (ac_try="$ac_link"
30211 case "(($ac_try" in
30212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30213   *) ac_try_echo=$ac_try;;
30214 esac
30215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30216   (eval "$ac_link") 2>conftest.er1
30217   ac_status=$?
30218   grep -v '^ *+' conftest.er1 >conftest.err
30219   rm -f conftest.er1
30220   cat conftest.err >&5
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); } && {
30223          test -z "$ac_c_werror_flag" ||
30224          test ! -s conftest.err
30225        } && test -s conftest$ac_exeext &&
30226        $as_test_x conftest$ac_exeext; then
30227   ac_cv_lib_posix_remove=yes
30228 else
30229   echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30231
30232         ac_cv_lib_posix_remove=no
30233 fi
30234
30235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30236       conftest$ac_exeext conftest.$ac_ext
30237 LIBS=$ac_check_lib_save_LIBS
30238 fi
30239 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30240 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30241 if test $ac_cv_lib_posix_remove = yes; then
30242   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30243 fi
30244
30245     fi
30246
30247     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30248     { echo "$as_me:$LINENO: checking for shmat" >&5
30249 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30250 if test "${ac_cv_func_shmat+set}" = set; then
30251   echo $ECHO_N "(cached) $ECHO_C" >&6
30252 else
30253   cat >conftest.$ac_ext <<_ACEOF
30254 /* confdefs.h.  */
30255 _ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h.  */
30259 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30261 #define shmat innocuous_shmat
30262
30263 /* System header to define __stub macros and hopefully few prototypes,
30264     which can conflict with char shmat (); below.
30265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30266     <limits.h> exists even on freestanding compilers.  */
30267
30268 #ifdef __STDC__
30269 # include <limits.h>
30270 #else
30271 # include <assert.h>
30272 #endif
30273
30274 #undef shmat
30275
30276 /* Override any GCC internal prototype to avoid an error.
30277    Use char because int might match the return type of a GCC
30278    builtin and then its argument prototype would still apply.  */
30279 #ifdef __cplusplus
30280 extern "C"
30281 #endif
30282 char shmat ();
30283 /* The GNU C library defines this for functions which it implements
30284     to always fail with ENOSYS.  Some functions are actually named
30285     something starting with __ and the normal name is an alias.  */
30286 #if defined __stub_shmat || defined __stub___shmat
30287 choke me
30288 #endif
30289
30290 int
30291 main ()
30292 {
30293 return shmat ();
30294   ;
30295   return 0;
30296 }
30297 _ACEOF
30298 rm -f conftest.$ac_objext conftest$ac_exeext
30299 if { (ac_try="$ac_link"
30300 case "(($ac_try" in
30301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302   *) ac_try_echo=$ac_try;;
30303 esac
30304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305   (eval "$ac_link") 2>conftest.er1
30306   ac_status=$?
30307   grep -v '^ *+' conftest.er1 >conftest.err
30308   rm -f conftest.er1
30309   cat conftest.err >&5
30310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311   (exit $ac_status); } && {
30312          test -z "$ac_c_werror_flag" ||
30313          test ! -s conftest.err
30314        } && test -s conftest$ac_exeext &&
30315        $as_test_x conftest$ac_exeext; then
30316   ac_cv_func_shmat=yes
30317 else
30318   echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30320
30321         ac_cv_func_shmat=no
30322 fi
30323
30324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30325       conftest$ac_exeext conftest.$ac_ext
30326 fi
30327 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30328 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30329
30330     if test $ac_cv_func_shmat = no; then
30331       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30332 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30333 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30334   echo $ECHO_N "(cached) $ECHO_C" >&6
30335 else
30336   ac_check_lib_save_LIBS=$LIBS
30337 LIBS="-lipc  $LIBS"
30338 cat >conftest.$ac_ext <<_ACEOF
30339 /* confdefs.h.  */
30340 _ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h.  */
30344
30345 /* Override any GCC internal prototype to avoid an error.
30346    Use char because int might match the return type of a GCC
30347    builtin and then its argument prototype would still apply.  */
30348 #ifdef __cplusplus
30349 extern "C"
30350 #endif
30351 char shmat ();
30352 int
30353 main ()
30354 {
30355 return shmat ();
30356   ;
30357   return 0;
30358 }
30359 _ACEOF
30360 rm -f conftest.$ac_objext conftest$ac_exeext
30361 if { (ac_try="$ac_link"
30362 case "(($ac_try" in
30363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364   *) ac_try_echo=$ac_try;;
30365 esac
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367   (eval "$ac_link") 2>conftest.er1
30368   ac_status=$?
30369   grep -v '^ *+' conftest.er1 >conftest.err
30370   rm -f conftest.er1
30371   cat conftest.err >&5
30372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373   (exit $ac_status); } && {
30374          test -z "$ac_c_werror_flag" ||
30375          test ! -s conftest.err
30376        } && test -s conftest$ac_exeext &&
30377        $as_test_x conftest$ac_exeext; then
30378   ac_cv_lib_ipc_shmat=yes
30379 else
30380   echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30382
30383         ac_cv_lib_ipc_shmat=no
30384 fi
30385
30386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30387       conftest$ac_exeext conftest.$ac_ext
30388 LIBS=$ac_check_lib_save_LIBS
30389 fi
30390 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30391 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30392 if test $ac_cv_lib_ipc_shmat = yes; then
30393   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30394 fi
30395
30396     fi
30397   fi
30398
30399   # Check for libraries that X11R6 Xt/Xaw programs need.
30400   ac_save_LDFLAGS=$LDFLAGS
30401   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30402   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30403   # check for ICE first), but we must link in the order -lSM -lICE or
30404   # we get undefined symbols.  So assume we have SM if we have ICE.
30405   # These have to be linked with before -lX11, unlike the other
30406   # libraries we check for below, so use a different variable.
30407   # John Interrante, Karl Berry
30408   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30409 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30410 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30411   echo $ECHO_N "(cached) $ECHO_C" >&6
30412 else
30413   ac_check_lib_save_LIBS=$LIBS
30414 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30415 cat >conftest.$ac_ext <<_ACEOF
30416 /* confdefs.h.  */
30417 _ACEOF
30418 cat confdefs.h >>conftest.$ac_ext
30419 cat >>conftest.$ac_ext <<_ACEOF
30420 /* end confdefs.h.  */
30421
30422 /* Override any GCC internal prototype to avoid an error.
30423    Use char because int might match the return type of a GCC
30424    builtin and then its argument prototype would still apply.  */
30425 #ifdef __cplusplus
30426 extern "C"
30427 #endif
30428 char IceConnectionNumber ();
30429 int
30430 main ()
30431 {
30432 return IceConnectionNumber ();
30433   ;
30434   return 0;
30435 }
30436 _ACEOF
30437 rm -f conftest.$ac_objext conftest$ac_exeext
30438 if { (ac_try="$ac_link"
30439 case "(($ac_try" in
30440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441   *) ac_try_echo=$ac_try;;
30442 esac
30443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444   (eval "$ac_link") 2>conftest.er1
30445   ac_status=$?
30446   grep -v '^ *+' conftest.er1 >conftest.err
30447   rm -f conftest.er1
30448   cat conftest.err >&5
30449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450   (exit $ac_status); } && {
30451          test -z "$ac_c_werror_flag" ||
30452          test ! -s conftest.err
30453        } && test -s conftest$ac_exeext &&
30454        $as_test_x conftest$ac_exeext; then
30455   ac_cv_lib_ICE_IceConnectionNumber=yes
30456 else
30457   echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.$ac_ext >&5
30459
30460         ac_cv_lib_ICE_IceConnectionNumber=no
30461 fi
30462
30463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30464       conftest$ac_exeext conftest.$ac_ext
30465 LIBS=$ac_check_lib_save_LIBS
30466 fi
30467 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30468 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30469 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30470   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30471 fi
30472
30473   LDFLAGS=$ac_save_LDFLAGS
30474
30475 fi
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508 for ac_header in \
30509    assert.h \
30510    fcntl.h \
30511    grp.h \
30512    pwd.h \
30513    libc.h \
30514    limits.h \
30515    stdarg.h \
30516    stdlib.h \
30517    stdint.h \
30518    string.h \
30519    strings.h \
30520    termios.h \
30521    termcap.h \
30522    term.h \
30523    unistd.h \
30524    sys/bitypes.h \
30525    sys/byteorder.h \
30526    sys/ioctl.h \
30527    sys/select.h \
30528    sys/socket.h \
30529    sys/sockio.h \
30530    sys/stat.h \
30531    sys/time.h \
30532    sys/types.h \
30533    arpa/nameser.h \
30534    resolv.h \
30535    mtio.h \
30536    sys/mtio.h \
30537    sys/tape.h \
30538    regex.h \
30539
30540 do
30541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30543   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30546   echo $ECHO_N "(cached) $ECHO_C" >&6
30547 fi
30548 ac_res=`eval echo '${'$as_ac_Header'}'`
30549                { echo "$as_me:$LINENO: result: $ac_res" >&5
30550 echo "${ECHO_T}$ac_res" >&6; }
30551 else
30552   # Is the header compilable?
30553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30555 cat >conftest.$ac_ext <<_ACEOF
30556 /* confdefs.h.  */
30557 _ACEOF
30558 cat confdefs.h >>conftest.$ac_ext
30559 cat >>conftest.$ac_ext <<_ACEOF
30560 /* end confdefs.h.  */
30561 $ac_includes_default
30562 #include <$ac_header>
30563 _ACEOF
30564 rm -f conftest.$ac_objext
30565 if { (ac_try="$ac_compile"
30566 case "(($ac_try" in
30567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30568   *) ac_try_echo=$ac_try;;
30569 esac
30570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30571   (eval "$ac_compile") 2>conftest.er1
30572   ac_status=$?
30573   grep -v '^ *+' conftest.er1 >conftest.err
30574   rm -f conftest.er1
30575   cat conftest.err >&5
30576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577   (exit $ac_status); } && {
30578          test -z "$ac_c_werror_flag" ||
30579          test ! -s conftest.err
30580        } && test -s conftest.$ac_objext; then
30581   ac_header_compiler=yes
30582 else
30583   echo "$as_me: failed program was:" >&5
30584 sed 's/^/| /' conftest.$ac_ext >&5
30585
30586         ac_header_compiler=no
30587 fi
30588
30589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30591 echo "${ECHO_T}$ac_header_compiler" >&6; }
30592
30593 # Is the header present?
30594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30596 cat >conftest.$ac_ext <<_ACEOF
30597 /* confdefs.h.  */
30598 _ACEOF
30599 cat confdefs.h >>conftest.$ac_ext
30600 cat >>conftest.$ac_ext <<_ACEOF
30601 /* end confdefs.h.  */
30602 #include <$ac_header>
30603 _ACEOF
30604 if { (ac_try="$ac_cpp conftest.$ac_ext"
30605 case "(($ac_try" in
30606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607   *) ac_try_echo=$ac_try;;
30608 esac
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30611   ac_status=$?
30612   grep -v '^ *+' conftest.er1 >conftest.err
30613   rm -f conftest.er1
30614   cat conftest.err >&5
30615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616   (exit $ac_status); } >/dev/null && {
30617          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30618          test ! -s conftest.err
30619        }; then
30620   ac_header_preproc=yes
30621 else
30622   echo "$as_me: failed program was:" >&5
30623 sed 's/^/| /' conftest.$ac_ext >&5
30624
30625   ac_header_preproc=no
30626 fi
30627
30628 rm -f conftest.err conftest.$ac_ext
30629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30630 echo "${ECHO_T}$ac_header_preproc" >&6; }
30631
30632 # So?  What about this header?
30633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30634   yes:no: )
30635     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30639     ac_header_preproc=yes
30640     ;;
30641   no:yes:* )
30642     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30644     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30645 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30646     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30648     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30649 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30652     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30654
30655     ;;
30656 esac
30657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30660   echo $ECHO_N "(cached) $ECHO_C" >&6
30661 else
30662   eval "$as_ac_Header=\$ac_header_preproc"
30663 fi
30664 ac_res=`eval echo '${'$as_ac_Header'}'`
30665                { echo "$as_me:$LINENO: result: $ac_res" >&5
30666 echo "${ECHO_T}$ac_res" >&6; }
30667
30668 fi
30669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30670   cat >>confdefs.h <<_ACEOF
30671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30672 _ACEOF
30673
30674 fi
30675
30676 done
30677
30678 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30679 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30680 if test "${ac_cv_header_stdc+set}" = set; then
30681   echo $ECHO_N "(cached) $ECHO_C" >&6
30682 else
30683   cat >conftest.$ac_ext <<_ACEOF
30684 /* confdefs.h.  */
30685 _ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h.  */
30689 #include <stdlib.h>
30690 #include <stdarg.h>
30691 #include <string.h>
30692 #include <float.h>
30693
30694 int
30695 main ()
30696 {
30697
30698   ;
30699   return 0;
30700 }
30701 _ACEOF
30702 rm -f conftest.$ac_objext
30703 if { (ac_try="$ac_compile"
30704 case "(($ac_try" in
30705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30706   *) ac_try_echo=$ac_try;;
30707 esac
30708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30709   (eval "$ac_compile") 2>conftest.er1
30710   ac_status=$?
30711   grep -v '^ *+' conftest.er1 >conftest.err
30712   rm -f conftest.er1
30713   cat conftest.err >&5
30714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715   (exit $ac_status); } && {
30716          test -z "$ac_c_werror_flag" ||
30717          test ! -s conftest.err
30718        } && test -s conftest.$ac_objext; then
30719   ac_cv_header_stdc=yes
30720 else
30721   echo "$as_me: failed program was:" >&5
30722 sed 's/^/| /' conftest.$ac_ext >&5
30723
30724         ac_cv_header_stdc=no
30725 fi
30726
30727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30728
30729 if test $ac_cv_header_stdc = yes; then
30730   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30731   cat >conftest.$ac_ext <<_ACEOF
30732 /* confdefs.h.  */
30733 _ACEOF
30734 cat confdefs.h >>conftest.$ac_ext
30735 cat >>conftest.$ac_ext <<_ACEOF
30736 /* end confdefs.h.  */
30737 #include <string.h>
30738
30739 _ACEOF
30740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30741   $EGREP "memchr" >/dev/null 2>&1; then
30742   :
30743 else
30744   ac_cv_header_stdc=no
30745 fi
30746 rm -f conftest*
30747
30748 fi
30749
30750 if test $ac_cv_header_stdc = yes; then
30751   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30752   cat >conftest.$ac_ext <<_ACEOF
30753 /* confdefs.h.  */
30754 _ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h.  */
30758 #include <stdlib.h>
30759
30760 _ACEOF
30761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30762   $EGREP "free" >/dev/null 2>&1; then
30763   :
30764 else
30765   ac_cv_header_stdc=no
30766 fi
30767 rm -f conftest*
30768
30769 fi
30770
30771 if test $ac_cv_header_stdc = yes; then
30772   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30773   if test "$cross_compiling" = yes; then
30774   :
30775 else
30776   cat >conftest.$ac_ext <<_ACEOF
30777 /* confdefs.h.  */
30778 _ACEOF
30779 cat confdefs.h >>conftest.$ac_ext
30780 cat >>conftest.$ac_ext <<_ACEOF
30781 /* end confdefs.h.  */
30782 #include <ctype.h>
30783 #include <stdlib.h>
30784 #if ((' ' & 0x0FF) == 0x020)
30785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30787 #else
30788 # define ISLOWER(c) \
30789                    (('a' <= (c) && (c) <= 'i') \
30790                      || ('j' <= (c) && (c) <= 'r') \
30791                      || ('s' <= (c) && (c) <= 'z'))
30792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30793 #endif
30794
30795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30796 int
30797 main ()
30798 {
30799   int i;
30800   for (i = 0; i < 256; i++)
30801     if (XOR (islower (i), ISLOWER (i))
30802         || toupper (i) != TOUPPER (i))
30803       return 2;
30804   return 0;
30805 }
30806 _ACEOF
30807 rm -f conftest$ac_exeext
30808 if { (ac_try="$ac_link"
30809 case "(($ac_try" in
30810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811   *) ac_try_echo=$ac_try;;
30812 esac
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814   (eval "$ac_link") 2>&5
30815   ac_status=$?
30816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30818   { (case "(($ac_try" in
30819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820   *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823   (eval "$ac_try") 2>&5
30824   ac_status=$?
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); }; }; then
30827   :
30828 else
30829   echo "$as_me: program exited with status $ac_status" >&5
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30832
30833 ( exit $ac_status )
30834 ac_cv_header_stdc=no
30835 fi
30836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30837 fi
30838
30839
30840 fi
30841 fi
30842 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30843 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30844 if test $ac_cv_header_stdc = yes; then
30845
30846 cat >>confdefs.h <<\_ACEOF
30847 #define STDC_HEADERS 1
30848 _ACEOF
30849
30850 fi
30851
30852 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30853 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30854 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30855   echo $ECHO_N "(cached) $ECHO_C" >&6
30856 else
30857   cat >conftest.$ac_ext <<_ACEOF
30858 /* confdefs.h.  */
30859 _ACEOF
30860 cat confdefs.h >>conftest.$ac_ext
30861 cat >>conftest.$ac_ext <<_ACEOF
30862 /* end confdefs.h.  */
30863 #include <sys/types.h>
30864 int
30865 main ()
30866 {
30867 return makedev(0, 0);
30868   ;
30869   return 0;
30870 }
30871 _ACEOF
30872 rm -f conftest.$ac_objext conftest$ac_exeext
30873 if { (ac_try="$ac_link"
30874 case "(($ac_try" in
30875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876   *) ac_try_echo=$ac_try;;
30877 esac
30878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879   (eval "$ac_link") 2>conftest.er1
30880   ac_status=$?
30881   grep -v '^ *+' conftest.er1 >conftest.err
30882   rm -f conftest.er1
30883   cat conftest.err >&5
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); } && {
30886          test -z "$ac_c_werror_flag" ||
30887          test ! -s conftest.err
30888        } && test -s conftest$ac_exeext &&
30889        $as_test_x conftest$ac_exeext; then
30890   ac_cv_header_sys_types_h_makedev=yes
30891 else
30892   echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30894
30895         ac_cv_header_sys_types_h_makedev=no
30896 fi
30897
30898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30899       conftest$ac_exeext conftest.$ac_ext
30900
30901 fi
30902 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30903 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30904
30905 if test $ac_cv_header_sys_types_h_makedev = no; then
30906 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30907   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30908 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30909 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30910   echo $ECHO_N "(cached) $ECHO_C" >&6
30911 fi
30912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30913 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30914 else
30915   # Is the header compilable?
30916 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30917 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30918 cat >conftest.$ac_ext <<_ACEOF
30919 /* confdefs.h.  */
30920 _ACEOF
30921 cat confdefs.h >>conftest.$ac_ext
30922 cat >>conftest.$ac_ext <<_ACEOF
30923 /* end confdefs.h.  */
30924 $ac_includes_default
30925 #include <sys/mkdev.h>
30926 _ACEOF
30927 rm -f conftest.$ac_objext
30928 if { (ac_try="$ac_compile"
30929 case "(($ac_try" in
30930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30931   *) ac_try_echo=$ac_try;;
30932 esac
30933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30934   (eval "$ac_compile") 2>conftest.er1
30935   ac_status=$?
30936   grep -v '^ *+' conftest.er1 >conftest.err
30937   rm -f conftest.er1
30938   cat conftest.err >&5
30939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940   (exit $ac_status); } && {
30941          test -z "$ac_c_werror_flag" ||
30942          test ! -s conftest.err
30943        } && test -s conftest.$ac_objext; then
30944   ac_header_compiler=yes
30945 else
30946   echo "$as_me: failed program was:" >&5
30947 sed 's/^/| /' conftest.$ac_ext >&5
30948
30949         ac_header_compiler=no
30950 fi
30951
30952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30954 echo "${ECHO_T}$ac_header_compiler" >&6; }
30955
30956 # Is the header present?
30957 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30958 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30959 cat >conftest.$ac_ext <<_ACEOF
30960 /* confdefs.h.  */
30961 _ACEOF
30962 cat confdefs.h >>conftest.$ac_ext
30963 cat >>conftest.$ac_ext <<_ACEOF
30964 /* end confdefs.h.  */
30965 #include <sys/mkdev.h>
30966 _ACEOF
30967 if { (ac_try="$ac_cpp conftest.$ac_ext"
30968 case "(($ac_try" in
30969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970   *) ac_try_echo=$ac_try;;
30971 esac
30972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30974   ac_status=$?
30975   grep -v '^ *+' conftest.er1 >conftest.err
30976   rm -f conftest.er1
30977   cat conftest.err >&5
30978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979   (exit $ac_status); } >/dev/null && {
30980          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30981          test ! -s conftest.err
30982        }; then
30983   ac_header_preproc=yes
30984 else
30985   echo "$as_me: failed program was:" >&5
30986 sed 's/^/| /' conftest.$ac_ext >&5
30987
30988   ac_header_preproc=no
30989 fi
30990
30991 rm -f conftest.err conftest.$ac_ext
30992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30993 echo "${ECHO_T}$ac_header_preproc" >&6; }
30994
30995 # So?  What about this header?
30996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30997   yes:no: )
30998     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30999 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31000     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31001 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31002     ac_header_preproc=yes
31003     ;;
31004   no:yes:* )
31005     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31006 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31007     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31008 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31009     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31010 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31011     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31012 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31013     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31014 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31015     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31016 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31017
31018     ;;
31019 esac
31020 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31021 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31022 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31023   echo $ECHO_N "(cached) $ECHO_C" >&6
31024 else
31025   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31026 fi
31027 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31028 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31029
31030 fi
31031 if test $ac_cv_header_sys_mkdev_h = yes; then
31032
31033 cat >>confdefs.h <<\_ACEOF
31034 #define MAJOR_IN_MKDEV 1
31035 _ACEOF
31036
31037 fi
31038
31039
31040
31041   if test $ac_cv_header_sys_mkdev_h = no; then
31042     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31043   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31044 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31045 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31046   echo $ECHO_N "(cached) $ECHO_C" >&6
31047 fi
31048 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31049 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31050 else
31051   # Is the header compilable?
31052 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31053 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31054 cat >conftest.$ac_ext <<_ACEOF
31055 /* confdefs.h.  */
31056 _ACEOF
31057 cat confdefs.h >>conftest.$ac_ext
31058 cat >>conftest.$ac_ext <<_ACEOF
31059 /* end confdefs.h.  */
31060 $ac_includes_default
31061 #include <sys/sysmacros.h>
31062 _ACEOF
31063 rm -f conftest.$ac_objext
31064 if { (ac_try="$ac_compile"
31065 case "(($ac_try" in
31066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31067   *) ac_try_echo=$ac_try;;
31068 esac
31069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070   (eval "$ac_compile") 2>conftest.er1
31071   ac_status=$?
31072   grep -v '^ *+' conftest.er1 >conftest.err
31073   rm -f conftest.er1
31074   cat conftest.err >&5
31075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076   (exit $ac_status); } && {
31077          test -z "$ac_c_werror_flag" ||
31078          test ! -s conftest.err
31079        } && test -s conftest.$ac_objext; then
31080   ac_header_compiler=yes
31081 else
31082   echo "$as_me: failed program was:" >&5
31083 sed 's/^/| /' conftest.$ac_ext >&5
31084
31085         ac_header_compiler=no
31086 fi
31087
31088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31090 echo "${ECHO_T}$ac_header_compiler" >&6; }
31091
31092 # Is the header present?
31093 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31094 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31095 cat >conftest.$ac_ext <<_ACEOF
31096 /* confdefs.h.  */
31097 _ACEOF
31098 cat confdefs.h >>conftest.$ac_ext
31099 cat >>conftest.$ac_ext <<_ACEOF
31100 /* end confdefs.h.  */
31101 #include <sys/sysmacros.h>
31102 _ACEOF
31103 if { (ac_try="$ac_cpp conftest.$ac_ext"
31104 case "(($ac_try" in
31105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106   *) ac_try_echo=$ac_try;;
31107 esac
31108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31110   ac_status=$?
31111   grep -v '^ *+' conftest.er1 >conftest.err
31112   rm -f conftest.er1
31113   cat conftest.err >&5
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); } >/dev/null && {
31116          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31117          test ! -s conftest.err
31118        }; then
31119   ac_header_preproc=yes
31120 else
31121   echo "$as_me: failed program was:" >&5
31122 sed 's/^/| /' conftest.$ac_ext >&5
31123
31124   ac_header_preproc=no
31125 fi
31126
31127 rm -f conftest.err conftest.$ac_ext
31128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31129 echo "${ECHO_T}$ac_header_preproc" >&6; }
31130
31131 # So?  What about this header?
31132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31133   yes:no: )
31134     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31135 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31136     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31137 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31138     ac_header_preproc=yes
31139     ;;
31140   no:yes:* )
31141     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31142 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31143     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31144 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31145     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31146 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31147     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31148 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31149     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31150 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31151     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31152 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31153
31154     ;;
31155 esac
31156 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31157 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31158 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31159   echo $ECHO_N "(cached) $ECHO_C" >&6
31160 else
31161   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31162 fi
31163 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31164 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31165
31166 fi
31167 if test $ac_cv_header_sys_sysmacros_h = yes; then
31168
31169 cat >>confdefs.h <<\_ACEOF
31170 #define MAJOR_IN_SYSMACROS 1
31171 _ACEOF
31172
31173 fi
31174
31175
31176   fi
31177 fi
31178
31179
31180
31181
31182
31183
31184 ac_header_dirent=no
31185 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31186   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31187 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31188 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31190   echo $ECHO_N "(cached) $ECHO_C" >&6
31191 else
31192   cat >conftest.$ac_ext <<_ACEOF
31193 /* confdefs.h.  */
31194 _ACEOF
31195 cat confdefs.h >>conftest.$ac_ext
31196 cat >>conftest.$ac_ext <<_ACEOF
31197 /* end confdefs.h.  */
31198 #include <sys/types.h>
31199 #include <$ac_hdr>
31200
31201 int
31202 main ()
31203 {
31204 if ((DIR *) 0)
31205 return 0;
31206   ;
31207   return 0;
31208 }
31209 _ACEOF
31210 rm -f conftest.$ac_objext
31211 if { (ac_try="$ac_compile"
31212 case "(($ac_try" in
31213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31214   *) ac_try_echo=$ac_try;;
31215 esac
31216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31217   (eval "$ac_compile") 2>conftest.er1
31218   ac_status=$?
31219   grep -v '^ *+' conftest.er1 >conftest.err
31220   rm -f conftest.er1
31221   cat conftest.err >&5
31222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223   (exit $ac_status); } && {
31224          test -z "$ac_c_werror_flag" ||
31225          test ! -s conftest.err
31226        } && test -s conftest.$ac_objext; then
31227   eval "$as_ac_Header=yes"
31228 else
31229   echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31231
31232         eval "$as_ac_Header=no"
31233 fi
31234
31235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31236 fi
31237 ac_res=`eval echo '${'$as_ac_Header'}'`
31238                { echo "$as_me:$LINENO: result: $ac_res" >&5
31239 echo "${ECHO_T}$ac_res" >&6; }
31240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31241   cat >>confdefs.h <<_ACEOF
31242 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31243 _ACEOF
31244
31245 ac_header_dirent=$ac_hdr; break
31246 fi
31247
31248 done
31249 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31250 if test $ac_header_dirent = dirent.h; then
31251   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31252 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31253 if test "${ac_cv_search_opendir+set}" = set; then
31254   echo $ECHO_N "(cached) $ECHO_C" >&6
31255 else
31256   ac_func_search_save_LIBS=$LIBS
31257 cat >conftest.$ac_ext <<_ACEOF
31258 /* confdefs.h.  */
31259 _ACEOF
31260 cat confdefs.h >>conftest.$ac_ext
31261 cat >>conftest.$ac_ext <<_ACEOF
31262 /* end confdefs.h.  */
31263
31264 /* Override any GCC internal prototype to avoid an error.
31265    Use char because int might match the return type of a GCC
31266    builtin and then its argument prototype would still apply.  */
31267 #ifdef __cplusplus
31268 extern "C"
31269 #endif
31270 char opendir ();
31271 int
31272 main ()
31273 {
31274 return opendir ();
31275   ;
31276   return 0;
31277 }
31278 _ACEOF
31279 for ac_lib in '' dir; do
31280   if test -z "$ac_lib"; then
31281     ac_res="none required"
31282   else
31283     ac_res=-l$ac_lib
31284     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31285   fi
31286   rm -f conftest.$ac_objext conftest$ac_exeext
31287 if { (ac_try="$ac_link"
31288 case "(($ac_try" in
31289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290   *) ac_try_echo=$ac_try;;
31291 esac
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293   (eval "$ac_link") 2>conftest.er1
31294   ac_status=$?
31295   grep -v '^ *+' conftest.er1 >conftest.err
31296   rm -f conftest.er1
31297   cat conftest.err >&5
31298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); } && {
31300          test -z "$ac_c_werror_flag" ||
31301          test ! -s conftest.err
31302        } && test -s conftest$ac_exeext &&
31303        $as_test_x conftest$ac_exeext; then
31304   ac_cv_search_opendir=$ac_res
31305 else
31306   echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31308
31309
31310 fi
31311
31312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31313       conftest$ac_exeext
31314   if test "${ac_cv_search_opendir+set}" = set; then
31315   break
31316 fi
31317 done
31318 if test "${ac_cv_search_opendir+set}" = set; then
31319   :
31320 else
31321   ac_cv_search_opendir=no
31322 fi
31323 rm conftest.$ac_ext
31324 LIBS=$ac_func_search_save_LIBS
31325 fi
31326 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31327 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31328 ac_res=$ac_cv_search_opendir
31329 if test "$ac_res" != no; then
31330   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31331
31332 fi
31333
31334 else
31335   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31336 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31337 if test "${ac_cv_search_opendir+set}" = set; then
31338   echo $ECHO_N "(cached) $ECHO_C" >&6
31339 else
31340   ac_func_search_save_LIBS=$LIBS
31341 cat >conftest.$ac_ext <<_ACEOF
31342 /* confdefs.h.  */
31343 _ACEOF
31344 cat confdefs.h >>conftest.$ac_ext
31345 cat >>conftest.$ac_ext <<_ACEOF
31346 /* end confdefs.h.  */
31347
31348 /* Override any GCC internal prototype to avoid an error.
31349    Use char because int might match the return type of a GCC
31350    builtin and then its argument prototype would still apply.  */
31351 #ifdef __cplusplus
31352 extern "C"
31353 #endif
31354 char opendir ();
31355 int
31356 main ()
31357 {
31358 return opendir ();
31359   ;
31360   return 0;
31361 }
31362 _ACEOF
31363 for ac_lib in '' x; do
31364   if test -z "$ac_lib"; then
31365     ac_res="none required"
31366   else
31367     ac_res=-l$ac_lib
31368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31369   fi
31370   rm -f conftest.$ac_objext conftest$ac_exeext
31371 if { (ac_try="$ac_link"
31372 case "(($ac_try" in
31373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31374   *) ac_try_echo=$ac_try;;
31375 esac
31376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31377   (eval "$ac_link") 2>conftest.er1
31378   ac_status=$?
31379   grep -v '^ *+' conftest.er1 >conftest.err
31380   rm -f conftest.er1
31381   cat conftest.err >&5
31382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383   (exit $ac_status); } && {
31384          test -z "$ac_c_werror_flag" ||
31385          test ! -s conftest.err
31386        } && test -s conftest$ac_exeext &&
31387        $as_test_x conftest$ac_exeext; then
31388   ac_cv_search_opendir=$ac_res
31389 else
31390   echo "$as_me: failed program was:" >&5
31391 sed 's/^/| /' conftest.$ac_ext >&5
31392
31393
31394 fi
31395
31396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31397       conftest$ac_exeext
31398   if test "${ac_cv_search_opendir+set}" = set; then
31399   break
31400 fi
31401 done
31402 if test "${ac_cv_search_opendir+set}" = set; then
31403   :
31404 else
31405   ac_cv_search_opendir=no
31406 fi
31407 rm conftest.$ac_ext
31408 LIBS=$ac_func_search_save_LIBS
31409 fi
31410 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31411 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31412 ac_res=$ac_cv_search_opendir
31413 if test "$ac_res" != no; then
31414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31415
31416 fi
31417
31418 fi
31419
31420 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31421 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31422 if test "${ac_cv_header_stat_broken+set}" = set; then
31423   echo $ECHO_N "(cached) $ECHO_C" >&6
31424 else
31425   cat >conftest.$ac_ext <<_ACEOF
31426 /* confdefs.h.  */
31427 _ACEOF
31428 cat confdefs.h >>conftest.$ac_ext
31429 cat >>conftest.$ac_ext <<_ACEOF
31430 /* end confdefs.h.  */
31431 #include <sys/types.h>
31432 #include <sys/stat.h>
31433
31434 #if defined S_ISBLK && defined S_IFDIR
31435 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31436 #endif
31437
31438 #if defined S_ISBLK && defined S_IFCHR
31439 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31440 #endif
31441
31442 #if defined S_ISLNK && defined S_IFREG
31443 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31444 #endif
31445
31446 #if defined S_ISSOCK && defined S_IFREG
31447 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31448 #endif
31449
31450 _ACEOF
31451 rm -f conftest.$ac_objext
31452 if { (ac_try="$ac_compile"
31453 case "(($ac_try" in
31454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455   *) ac_try_echo=$ac_try;;
31456 esac
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458   (eval "$ac_compile") 2>conftest.er1
31459   ac_status=$?
31460   grep -v '^ *+' conftest.er1 >conftest.err
31461   rm -f conftest.er1
31462   cat conftest.err >&5
31463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464   (exit $ac_status); } && {
31465          test -z "$ac_c_werror_flag" ||
31466          test ! -s conftest.err
31467        } && test -s conftest.$ac_objext; then
31468   ac_cv_header_stat_broken=no
31469 else
31470   echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31472
31473         ac_cv_header_stat_broken=yes
31474 fi
31475
31476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31477 fi
31478 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31479 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31480 if test $ac_cv_header_stat_broken = yes; then
31481
31482 cat >>confdefs.h <<\_ACEOF
31483 #define STAT_MACROS_BROKEN 1
31484 _ACEOF
31485
31486 fi
31487
31488 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31489 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31490 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31491   echo $ECHO_N "(cached) $ECHO_C" >&6
31492 else
31493   cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h.  */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h.  */
31499 #include <sys/types.h>
31500 #include <sys/wait.h>
31501 #ifndef WEXITSTATUS
31502 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31503 #endif
31504 #ifndef WIFEXITED
31505 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31506 #endif
31507
31508 int
31509 main ()
31510 {
31511   int s;
31512   wait (&s);
31513   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31514   ;
31515   return 0;
31516 }
31517 _ACEOF
31518 rm -f conftest.$ac_objext
31519 if { (ac_try="$ac_compile"
31520 case "(($ac_try" in
31521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31522   *) ac_try_echo=$ac_try;;
31523 esac
31524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31525   (eval "$ac_compile") 2>conftest.er1
31526   ac_status=$?
31527   grep -v '^ *+' conftest.er1 >conftest.err
31528   rm -f conftest.er1
31529   cat conftest.err >&5
31530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531   (exit $ac_status); } && {
31532          test -z "$ac_c_werror_flag" ||
31533          test ! -s conftest.err
31534        } && test -s conftest.$ac_objext; then
31535   ac_cv_header_sys_wait_h=yes
31536 else
31537   echo "$as_me: failed program was:" >&5
31538 sed 's/^/| /' conftest.$ac_ext >&5
31539
31540         ac_cv_header_sys_wait_h=no
31541 fi
31542
31543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31544 fi
31545 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31546 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31547 if test $ac_cv_header_sys_wait_h = yes; then
31548
31549 cat >>confdefs.h <<\_ACEOF
31550 #define HAVE_SYS_WAIT_H 1
31551 _ACEOF
31552
31553 fi
31554
31555 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31556 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31557 if test "${ac_cv_header_time+set}" = set; then
31558   echo $ECHO_N "(cached) $ECHO_C" >&6
31559 else
31560   cat >conftest.$ac_ext <<_ACEOF
31561 /* confdefs.h.  */
31562 _ACEOF
31563 cat confdefs.h >>conftest.$ac_ext
31564 cat >>conftest.$ac_ext <<_ACEOF
31565 /* end confdefs.h.  */
31566 #include <sys/types.h>
31567 #include <sys/time.h>
31568 #include <time.h>
31569
31570 int
31571 main ()
31572 {
31573 if ((struct tm *) 0)
31574 return 0;
31575   ;
31576   return 0;
31577 }
31578 _ACEOF
31579 rm -f conftest.$ac_objext
31580 if { (ac_try="$ac_compile"
31581 case "(($ac_try" in
31582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583   *) ac_try_echo=$ac_try;;
31584 esac
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586   (eval "$ac_compile") 2>conftest.er1
31587   ac_status=$?
31588   grep -v '^ *+' conftest.er1 >conftest.err
31589   rm -f conftest.er1
31590   cat conftest.err >&5
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); } && {
31593          test -z "$ac_c_werror_flag" ||
31594          test ! -s conftest.err
31595        } && test -s conftest.$ac_objext; then
31596   ac_cv_header_time=yes
31597 else
31598   echo "$as_me: failed program was:" >&5
31599 sed 's/^/| /' conftest.$ac_ext >&5
31600
31601         ac_cv_header_time=no
31602 fi
31603
31604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31605 fi
31606 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31607 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31608 if test $ac_cv_header_time = yes; then
31609
31610 cat >>confdefs.h <<\_ACEOF
31611 #define TIME_WITH_SYS_TIME 1
31612 _ACEOF
31613
31614 fi
31615
31616 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31617 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31618 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31619   echo $ECHO_N "(cached) $ECHO_C" >&6
31620 else
31621   cat >conftest.$ac_ext <<_ACEOF
31622 /* confdefs.h.  */
31623 _ACEOF
31624 cat confdefs.h >>conftest.$ac_ext
31625 cat >>conftest.$ac_ext <<_ACEOF
31626 /* end confdefs.h.  */
31627 $ac_includes_default
31628 int
31629 main ()
31630 {
31631 static struct stat ac_aggr;
31632 if (ac_aggr.st_blksize)
31633 return 0;
31634   ;
31635   return 0;
31636 }
31637 _ACEOF
31638 rm -f conftest.$ac_objext
31639 if { (ac_try="$ac_compile"
31640 case "(($ac_try" in
31641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31642   *) ac_try_echo=$ac_try;;
31643 esac
31644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31645   (eval "$ac_compile") 2>conftest.er1
31646   ac_status=$?
31647   grep -v '^ *+' conftest.er1 >conftest.err
31648   rm -f conftest.er1
31649   cat conftest.err >&5
31650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651   (exit $ac_status); } && {
31652          test -z "$ac_c_werror_flag" ||
31653          test ! -s conftest.err
31654        } && test -s conftest.$ac_objext; then
31655   ac_cv_member_struct_stat_st_blksize=yes
31656 else
31657   echo "$as_me: failed program was:" >&5
31658 sed 's/^/| /' conftest.$ac_ext >&5
31659
31660         cat >conftest.$ac_ext <<_ACEOF
31661 /* confdefs.h.  */
31662 _ACEOF
31663 cat confdefs.h >>conftest.$ac_ext
31664 cat >>conftest.$ac_ext <<_ACEOF
31665 /* end confdefs.h.  */
31666 $ac_includes_default
31667 int
31668 main ()
31669 {
31670 static struct stat ac_aggr;
31671 if (sizeof ac_aggr.st_blksize)
31672 return 0;
31673   ;
31674   return 0;
31675 }
31676 _ACEOF
31677 rm -f conftest.$ac_objext
31678 if { (ac_try="$ac_compile"
31679 case "(($ac_try" in
31680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681   *) ac_try_echo=$ac_try;;
31682 esac
31683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684   (eval "$ac_compile") 2>conftest.er1
31685   ac_status=$?
31686   grep -v '^ *+' conftest.er1 >conftest.err
31687   rm -f conftest.er1
31688   cat conftest.err >&5
31689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690   (exit $ac_status); } && {
31691          test -z "$ac_c_werror_flag" ||
31692          test ! -s conftest.err
31693        } && test -s conftest.$ac_objext; then
31694   ac_cv_member_struct_stat_st_blksize=yes
31695 else
31696   echo "$as_me: failed program was:" >&5
31697 sed 's/^/| /' conftest.$ac_ext >&5
31698
31699         ac_cv_member_struct_stat_st_blksize=no
31700 fi
31701
31702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31703 fi
31704
31705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31706 fi
31707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31708 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31709 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31710
31711 cat >>confdefs.h <<_ACEOF
31712 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31713 _ACEOF
31714
31715
31716 cat >>confdefs.h <<\_ACEOF
31717 #define HAVE_ST_BLKSIZE 1
31718 _ACEOF
31719
31720 fi
31721
31722
31723 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31724 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31725 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31726   echo $ECHO_N "(cached) $ECHO_C" >&6
31727 else
31728   cat >conftest.$ac_ext <<_ACEOF
31729 /* confdefs.h.  */
31730 _ACEOF
31731 cat confdefs.h >>conftest.$ac_ext
31732 cat >>conftest.$ac_ext <<_ACEOF
31733 /* end confdefs.h.  */
31734 $ac_includes_default
31735 int
31736 main ()
31737 {
31738 static struct stat ac_aggr;
31739 if (ac_aggr.st_blocks)
31740 return 0;
31741   ;
31742   return 0;
31743 }
31744 _ACEOF
31745 rm -f conftest.$ac_objext
31746 if { (ac_try="$ac_compile"
31747 case "(($ac_try" in
31748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749   *) ac_try_echo=$ac_try;;
31750 esac
31751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752   (eval "$ac_compile") 2>conftest.er1
31753   ac_status=$?
31754   grep -v '^ *+' conftest.er1 >conftest.err
31755   rm -f conftest.er1
31756   cat conftest.err >&5
31757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758   (exit $ac_status); } && {
31759          test -z "$ac_c_werror_flag" ||
31760          test ! -s conftest.err
31761        } && test -s conftest.$ac_objext; then
31762   ac_cv_member_struct_stat_st_blocks=yes
31763 else
31764   echo "$as_me: failed program was:" >&5
31765 sed 's/^/| /' conftest.$ac_ext >&5
31766
31767         cat >conftest.$ac_ext <<_ACEOF
31768 /* confdefs.h.  */
31769 _ACEOF
31770 cat confdefs.h >>conftest.$ac_ext
31771 cat >>conftest.$ac_ext <<_ACEOF
31772 /* end confdefs.h.  */
31773 $ac_includes_default
31774 int
31775 main ()
31776 {
31777 static struct stat ac_aggr;
31778 if (sizeof ac_aggr.st_blocks)
31779 return 0;
31780   ;
31781   return 0;
31782 }
31783 _ACEOF
31784 rm -f conftest.$ac_objext
31785 if { (ac_try="$ac_compile"
31786 case "(($ac_try" in
31787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788   *) ac_try_echo=$ac_try;;
31789 esac
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791   (eval "$ac_compile") 2>conftest.er1
31792   ac_status=$?
31793   grep -v '^ *+' conftest.er1 >conftest.err
31794   rm -f conftest.er1
31795   cat conftest.err >&5
31796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797   (exit $ac_status); } && {
31798          test -z "$ac_c_werror_flag" ||
31799          test ! -s conftest.err
31800        } && test -s conftest.$ac_objext; then
31801   ac_cv_member_struct_stat_st_blocks=yes
31802 else
31803   echo "$as_me: failed program was:" >&5
31804 sed 's/^/| /' conftest.$ac_ext >&5
31805
31806         ac_cv_member_struct_stat_st_blocks=no
31807 fi
31808
31809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31810 fi
31811
31812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31813 fi
31814 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31815 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31816 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31817
31818 cat >>confdefs.h <<_ACEOF
31819 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31820 _ACEOF
31821
31822
31823 cat >>confdefs.h <<\_ACEOF
31824 #define HAVE_ST_BLOCKS 1
31825 _ACEOF
31826
31827 else
31828   case " $LIBOBJS " in
31829   *" fileblocks.$ac_objext "* ) ;;
31830   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31831  ;;
31832 esac
31833
31834 fi
31835
31836
31837 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31838 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31839 if test "${ac_cv_struct_tm+set}" = set; then
31840   echo $ECHO_N "(cached) $ECHO_C" >&6
31841 else
31842   cat >conftest.$ac_ext <<_ACEOF
31843 /* confdefs.h.  */
31844 _ACEOF
31845 cat confdefs.h >>conftest.$ac_ext
31846 cat >>conftest.$ac_ext <<_ACEOF
31847 /* end confdefs.h.  */
31848 #include <sys/types.h>
31849 #include <time.h>
31850
31851 int
31852 main ()
31853 {
31854 struct tm tm;
31855                                      int *p = &tm.tm_sec;
31856                                      return !p;
31857   ;
31858   return 0;
31859 }
31860 _ACEOF
31861 rm -f conftest.$ac_objext
31862 if { (ac_try="$ac_compile"
31863 case "(($ac_try" in
31864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31865   *) ac_try_echo=$ac_try;;
31866 esac
31867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868   (eval "$ac_compile") 2>conftest.er1
31869   ac_status=$?
31870   grep -v '^ *+' conftest.er1 >conftest.err
31871   rm -f conftest.er1
31872   cat conftest.err >&5
31873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874   (exit $ac_status); } && {
31875          test -z "$ac_c_werror_flag" ||
31876          test ! -s conftest.err
31877        } && test -s conftest.$ac_objext; then
31878   ac_cv_struct_tm=time.h
31879 else
31880   echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31882
31883         ac_cv_struct_tm=sys/time.h
31884 fi
31885
31886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31887 fi
31888 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31889 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31890 if test $ac_cv_struct_tm = sys/time.h; then
31891
31892 cat >>confdefs.h <<\_ACEOF
31893 #define TM_IN_SYS_TIME 1
31894 _ACEOF
31895
31896 fi
31897
31898 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31899 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31900 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31901   echo $ECHO_N "(cached) $ECHO_C" >&6
31902 else
31903   cat >conftest.$ac_ext <<_ACEOF
31904 /* confdefs.h.  */
31905 _ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h.  */
31909 #include <sys/types.h>
31910 #include <$ac_cv_struct_tm>
31911
31912
31913 int
31914 main ()
31915 {
31916 static struct tm ac_aggr;
31917 if (ac_aggr.tm_zone)
31918 return 0;
31919   ;
31920   return 0;
31921 }
31922 _ACEOF
31923 rm -f conftest.$ac_objext
31924 if { (ac_try="$ac_compile"
31925 case "(($ac_try" in
31926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927   *) ac_try_echo=$ac_try;;
31928 esac
31929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930   (eval "$ac_compile") 2>conftest.er1
31931   ac_status=$?
31932   grep -v '^ *+' conftest.er1 >conftest.err
31933   rm -f conftest.er1
31934   cat conftest.err >&5
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); } && {
31937          test -z "$ac_c_werror_flag" ||
31938          test ! -s conftest.err
31939        } && test -s conftest.$ac_objext; then
31940   ac_cv_member_struct_tm_tm_zone=yes
31941 else
31942   echo "$as_me: failed program was:" >&5
31943 sed 's/^/| /' conftest.$ac_ext >&5
31944
31945         cat >conftest.$ac_ext <<_ACEOF
31946 /* confdefs.h.  */
31947 _ACEOF
31948 cat confdefs.h >>conftest.$ac_ext
31949 cat >>conftest.$ac_ext <<_ACEOF
31950 /* end confdefs.h.  */
31951 #include <sys/types.h>
31952 #include <$ac_cv_struct_tm>
31953
31954
31955 int
31956 main ()
31957 {
31958 static struct tm ac_aggr;
31959 if (sizeof ac_aggr.tm_zone)
31960 return 0;
31961   ;
31962   return 0;
31963 }
31964 _ACEOF
31965 rm -f conftest.$ac_objext
31966 if { (ac_try="$ac_compile"
31967 case "(($ac_try" in
31968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31969   *) ac_try_echo=$ac_try;;
31970 esac
31971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31972   (eval "$ac_compile") 2>conftest.er1
31973   ac_status=$?
31974   grep -v '^ *+' conftest.er1 >conftest.err
31975   rm -f conftest.er1
31976   cat conftest.err >&5
31977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978   (exit $ac_status); } && {
31979          test -z "$ac_c_werror_flag" ||
31980          test ! -s conftest.err
31981        } && test -s conftest.$ac_objext; then
31982   ac_cv_member_struct_tm_tm_zone=yes
31983 else
31984   echo "$as_me: failed program was:" >&5
31985 sed 's/^/| /' conftest.$ac_ext >&5
31986
31987         ac_cv_member_struct_tm_tm_zone=no
31988 fi
31989
31990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31991 fi
31992
31993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31994 fi
31995 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31996 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31997 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31998
31999 cat >>confdefs.h <<_ACEOF
32000 #define HAVE_STRUCT_TM_TM_ZONE 1
32001 _ACEOF
32002
32003
32004 fi
32005
32006 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32007
32008 cat >>confdefs.h <<\_ACEOF
32009 #define HAVE_TM_ZONE 1
32010 _ACEOF
32011
32012 else
32013   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32014 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32015 if test "${ac_cv_have_decl_tzname+set}" = set; then
32016   echo $ECHO_N "(cached) $ECHO_C" >&6
32017 else
32018   cat >conftest.$ac_ext <<_ACEOF
32019 /* confdefs.h.  */
32020 _ACEOF
32021 cat confdefs.h >>conftest.$ac_ext
32022 cat >>conftest.$ac_ext <<_ACEOF
32023 /* end confdefs.h.  */
32024 #include <time.h>
32025
32026 int
32027 main ()
32028 {
32029 #ifndef tzname
32030   (void) tzname;
32031 #endif
32032
32033   ;
32034   return 0;
32035 }
32036 _ACEOF
32037 rm -f conftest.$ac_objext
32038 if { (ac_try="$ac_compile"
32039 case "(($ac_try" in
32040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32041   *) ac_try_echo=$ac_try;;
32042 esac
32043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32044   (eval "$ac_compile") 2>conftest.er1
32045   ac_status=$?
32046   grep -v '^ *+' conftest.er1 >conftest.err
32047   rm -f conftest.er1
32048   cat conftest.err >&5
32049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050   (exit $ac_status); } && {
32051          test -z "$ac_c_werror_flag" ||
32052          test ! -s conftest.err
32053        } && test -s conftest.$ac_objext; then
32054   ac_cv_have_decl_tzname=yes
32055 else
32056   echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32058
32059         ac_cv_have_decl_tzname=no
32060 fi
32061
32062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32063 fi
32064 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32065 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32066 if test $ac_cv_have_decl_tzname = yes; then
32067
32068 cat >>confdefs.h <<_ACEOF
32069 #define HAVE_DECL_TZNAME 1
32070 _ACEOF
32071
32072
32073 else
32074   cat >>confdefs.h <<_ACEOF
32075 #define HAVE_DECL_TZNAME 0
32076 _ACEOF
32077
32078
32079 fi
32080
32081
32082   { echo "$as_me:$LINENO: checking for tzname" >&5
32083 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32084 if test "${ac_cv_var_tzname+set}" = set; then
32085   echo $ECHO_N "(cached) $ECHO_C" >&6
32086 else
32087   cat >conftest.$ac_ext <<_ACEOF
32088 /* confdefs.h.  */
32089 _ACEOF
32090 cat confdefs.h >>conftest.$ac_ext
32091 cat >>conftest.$ac_ext <<_ACEOF
32092 /* end confdefs.h.  */
32093 #include <time.h>
32094 #if !HAVE_DECL_TZNAME
32095 extern char *tzname[];
32096 #endif
32097
32098 int
32099 main ()
32100 {
32101 return tzname[0][0];
32102   ;
32103   return 0;
32104 }
32105 _ACEOF
32106 rm -f conftest.$ac_objext conftest$ac_exeext
32107 if { (ac_try="$ac_link"
32108 case "(($ac_try" in
32109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110   *) ac_try_echo=$ac_try;;
32111 esac
32112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113   (eval "$ac_link") 2>conftest.er1
32114   ac_status=$?
32115   grep -v '^ *+' conftest.er1 >conftest.err
32116   rm -f conftest.er1
32117   cat conftest.err >&5
32118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119   (exit $ac_status); } && {
32120          test -z "$ac_c_werror_flag" ||
32121          test ! -s conftest.err
32122        } && test -s conftest$ac_exeext &&
32123        $as_test_x conftest$ac_exeext; then
32124   ac_cv_var_tzname=yes
32125 else
32126   echo "$as_me: failed program was:" >&5
32127 sed 's/^/| /' conftest.$ac_ext >&5
32128
32129         ac_cv_var_tzname=no
32130 fi
32131
32132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32133       conftest$ac_exeext conftest.$ac_ext
32134 fi
32135 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32136 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32137   if test $ac_cv_var_tzname = yes; then
32138
32139 cat >>confdefs.h <<\_ACEOF
32140 #define HAVE_TZNAME 1
32141 _ACEOF
32142
32143   fi
32144 fi
32145
32146
32147 { echo "$as_me:$LINENO: checking for utime.h" >&5
32148 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32149 if test "${ba_cv_header_utime_h+set}" = set; then
32150   echo $ECHO_N "(cached) $ECHO_C" >&6
32151 else
32152
32153        cat >conftest.$ac_ext <<_ACEOF
32154 /* confdefs.h.  */
32155 _ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h.  */
32159
32160               #include <sys/types.h>
32161               #include <utime.h>
32162
32163 int
32164 main ()
32165 {
32166
32167               struct utimbuf foo
32168
32169   ;
32170   return 0;
32171 }
32172 _ACEOF
32173 rm -f conftest.$ac_objext
32174 if { (ac_try="$ac_compile"
32175 case "(($ac_try" in
32176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32177   *) ac_try_echo=$ac_try;;
32178 esac
32179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32180   (eval "$ac_compile") 2>conftest.er1
32181   ac_status=$?
32182   grep -v '^ *+' conftest.er1 >conftest.err
32183   rm -f conftest.er1
32184   cat conftest.err >&5
32185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186   (exit $ac_status); } && {
32187          test -z "$ac_c_werror_flag" ||
32188          test ! -s conftest.err
32189        } && test -s conftest.$ac_objext; then
32190
32191               ba_cv_header_utime_h=yes
32192
32193 else
32194   echo "$as_me: failed program was:" >&5
32195 sed 's/^/| /' conftest.$ac_ext >&5
32196
32197
32198               ba_cv_header_utime_h=no
32199
32200
32201 fi
32202
32203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32204
32205
32206 fi
32207 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32208 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32209 test $ba_cv_header_utime_h = yes &&
32210 cat >>confdefs.h <<\_ACEOF
32211 #define HAVE_UTIME_H 1
32212 _ACEOF
32213
32214
32215 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32216 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32217 if test "${ba_cv_header_socklen_t+set}" = set; then
32218   echo $ECHO_N "(cached) $ECHO_C" >&6
32219 else
32220
32221        cat >conftest.$ac_ext <<_ACEOF
32222 /* confdefs.h.  */
32223 _ACEOF
32224 cat confdefs.h >>conftest.$ac_ext
32225 cat >>conftest.$ac_ext <<_ACEOF
32226 /* end confdefs.h.  */
32227
32228               #include <sys/types.h>
32229               #include <sys/socket.h>
32230
32231 int
32232 main ()
32233 {
32234
32235               socklen_t x
32236
32237   ;
32238   return 0;
32239 }
32240 _ACEOF
32241 rm -f conftest.$ac_objext
32242 if { (ac_try="$ac_compile"
32243 case "(($ac_try" in
32244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245   *) ac_try_echo=$ac_try;;
32246 esac
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248   (eval "$ac_compile") 2>conftest.er1
32249   ac_status=$?
32250   grep -v '^ *+' conftest.er1 >conftest.err
32251   rm -f conftest.er1
32252   cat conftest.err >&5
32253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254   (exit $ac_status); } && {
32255          test -z "$ac_c_werror_flag" ||
32256          test ! -s conftest.err
32257        } && test -s conftest.$ac_objext; then
32258
32259              ba_cv_header_socklen_t=yes
32260
32261 else
32262   echo "$as_me: failed program was:" >&5
32263 sed 's/^/| /' conftest.$ac_ext >&5
32264
32265
32266              ba_cv_header_socklen_t=no
32267
32268
32269 fi
32270
32271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32272
32273
32274 fi
32275 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32276 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32277 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32278 #define HAVE_SOCKLEN_T 1
32279 _ACEOF
32280
32281
32282 { echo "$as_me:$LINENO: checking for bigendian" >&5
32283 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32284 if test "${ba_cv_bigendian+set}" = set; then
32285   echo $ECHO_N "(cached) $ECHO_C" >&6
32286 else
32287
32288        if test "$cross_compiling" = yes; then
32289
32290              ba_cv_bigendian=no
32291
32292
32293 else
32294   cat >conftest.$ac_ext <<_ACEOF
32295 /* confdefs.h.  */
32296 _ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h.  */
32300
32301               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32302
32303 _ACEOF
32304 rm -f conftest$ac_exeext
32305 if { (ac_try="$ac_link"
32306 case "(($ac_try" in
32307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308   *) ac_try_echo=$ac_try;;
32309 esac
32310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311   (eval "$ac_link") 2>&5
32312   ac_status=$?
32313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32315   { (case "(($ac_try" in
32316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317   *) ac_try_echo=$ac_try;;
32318 esac
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320   (eval "$ac_try") 2>&5
32321   ac_status=$?
32322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323   (exit $ac_status); }; }; then
32324
32325              ba_cv_bigendian=yes
32326
32327 else
32328   echo "$as_me: program exited with status $ac_status" >&5
32329 echo "$as_me: failed program was:" >&5
32330 sed 's/^/| /' conftest.$ac_ext >&5
32331
32332 ( exit $ac_status )
32333
32334              ba_cv_bigendian=no
32335
32336 fi
32337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32338 fi
32339
32340
32341
32342
32343 fi
32344 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32345 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32346 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32347 #define HAVE_BIGENDIAN 1
32348 _ACEOF
32349
32350
32351 ac_ext=cpp
32352 ac_cpp='$CXXCPP $CPPFLAGS'
32353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32356
32357 { echo "$as_me:$LINENO: checking for typeof" >&5
32358 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32359 if test "${ba_cv_have_typeof+set}" = set; then
32360   echo $ECHO_N "(cached) $ECHO_C" >&6
32361 else
32362
32363        if test "$cross_compiling" = yes; then
32364
32365               ba_cv_have_typeof=no
32366
32367
32368 else
32369   cat >conftest.$ac_ext <<_ACEOF
32370 /* confdefs.h.  */
32371 _ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h.  */
32375
32376               main(){char *a = 0; a = (typeof a)a;}
32377
32378 _ACEOF
32379 rm -f conftest$ac_exeext
32380 if { (ac_try="$ac_link"
32381 case "(($ac_try" in
32382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383   *) ac_try_echo=$ac_try;;
32384 esac
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386   (eval "$ac_link") 2>&5
32387   ac_status=$?
32388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32390   { (case "(($ac_try" in
32391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32392   *) ac_try_echo=$ac_try;;
32393 esac
32394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32395   (eval "$ac_try") 2>&5
32396   ac_status=$?
32397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398   (exit $ac_status); }; }; then
32399
32400               ba_cv_have_typeof=yes
32401
32402 else
32403   echo "$as_me: program exited with status $ac_status" >&5
32404 echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32406
32407 ( exit $ac_status )
32408
32409               ba_cv_have_typeof=no
32410
32411 fi
32412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32413 fi
32414
32415
32416
32417
32418 fi
32419 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32420 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32421 test $ba_cv_have_typeof = yes &&
32422 cat >>confdefs.h <<\_ACEOF
32423 #define HAVE_TYPEOF 1
32424 _ACEOF
32425
32426 ac_ext=c
32427 ac_cpp='$CPP $CPPFLAGS'
32428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32431
32432
32433 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32434 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32435 if test "${ac_cv_c_const+set}" = set; then
32436   echo $ECHO_N "(cached) $ECHO_C" >&6
32437 else
32438   cat >conftest.$ac_ext <<_ACEOF
32439 /* confdefs.h.  */
32440 _ACEOF
32441 cat confdefs.h >>conftest.$ac_ext
32442 cat >>conftest.$ac_ext <<_ACEOF
32443 /* end confdefs.h.  */
32444
32445 int
32446 main ()
32447 {
32448 /* FIXME: Include the comments suggested by Paul. */
32449 #ifndef __cplusplus
32450   /* Ultrix mips cc rejects this.  */
32451   typedef int charset[2];
32452   const charset cs;
32453   /* SunOS 4.1.1 cc rejects this.  */
32454   char const *const *pcpcc;
32455   char **ppc;
32456   /* NEC SVR4.0.2 mips cc rejects this.  */
32457   struct point {int x, y;};
32458   static struct point const zero = {0,0};
32459   /* AIX XL C 1.02.0.0 rejects this.
32460      It does not let you subtract one const X* pointer from another in
32461      an arm of an if-expression whose if-part is not a constant
32462      expression */
32463   const char *g = "string";
32464   pcpcc = &g + (g ? g-g : 0);
32465   /* HPUX 7.0 cc rejects these. */
32466   ++pcpcc;
32467   ppc = (char**) pcpcc;
32468   pcpcc = (char const *const *) ppc;
32469   { /* SCO 3.2v4 cc rejects this.  */
32470     char *t;
32471     char const *s = 0 ? (char *) 0 : (char const *) 0;
32472
32473     *t++ = 0;
32474     if (s) return 0;
32475   }
32476   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32477     int x[] = {25, 17};
32478     const int *foo = &x[0];
32479     ++foo;
32480   }
32481   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32482     typedef const int *iptr;
32483     iptr p = 0;
32484     ++p;
32485   }
32486   { /* AIX XL C 1.02.0.0 rejects this saying
32487        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32488     struct s { int j; const int *ap[3]; };
32489     struct s *b; b->j = 5;
32490   }
32491   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32492     const int foo = 10;
32493     if (!foo) return 0;
32494   }
32495   return !cs[0] && !zero.x;
32496 #endif
32497
32498   ;
32499   return 0;
32500 }
32501 _ACEOF
32502 rm -f conftest.$ac_objext
32503 if { (ac_try="$ac_compile"
32504 case "(($ac_try" in
32505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506   *) ac_try_echo=$ac_try;;
32507 esac
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509   (eval "$ac_compile") 2>conftest.er1
32510   ac_status=$?
32511   grep -v '^ *+' conftest.er1 >conftest.err
32512   rm -f conftest.er1
32513   cat conftest.err >&5
32514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515   (exit $ac_status); } && {
32516          test -z "$ac_c_werror_flag" ||
32517          test ! -s conftest.err
32518        } && test -s conftest.$ac_objext; then
32519   ac_cv_c_const=yes
32520 else
32521   echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32523
32524         ac_cv_c_const=no
32525 fi
32526
32527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32528 fi
32529 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32530 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32531 if test $ac_cv_c_const = no; then
32532
32533 cat >>confdefs.h <<\_ACEOF
32534 #define const
32535 _ACEOF
32536
32537 fi
32538
32539
32540 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32541 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32542 fstype=no
32543 # The order of these tests is important.
32544 cat >conftest.$ac_ext <<_ACEOF
32545 /* confdefs.h.  */
32546 _ACEOF
32547 cat confdefs.h >>conftest.$ac_ext
32548 cat >>conftest.$ac_ext <<_ACEOF
32549 /* end confdefs.h.  */
32550
32551        #include <sys/statvfs.h>
32552        #include <sys/fstyp.h>
32553
32554 _ACEOF
32555 if { (ac_try="$ac_cpp conftest.$ac_ext"
32556 case "(($ac_try" in
32557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558   *) ac_try_echo=$ac_try;;
32559 esac
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32562   ac_status=$?
32563   grep -v '^ *+' conftest.er1 >conftest.err
32564   rm -f conftest.er1
32565   cat conftest.err >&5
32566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567   (exit $ac_status); } >/dev/null && {
32568          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32569          test ! -s conftest.err
32570        }; then
32571   cat >>confdefs.h <<\_ACEOF
32572 #define FSTYPE_STATVFS 1
32573 _ACEOF
32574  fstype=SVR4
32575
32576 else
32577   echo "$as_me: failed program was:" >&5
32578 sed 's/^/| /' conftest.$ac_ext >&5
32579
32580
32581 fi
32582
32583 rm -f conftest.err conftest.$ac_ext
32584 if test $fstype = no; then
32585    cat >conftest.$ac_ext <<_ACEOF
32586 /* confdefs.h.  */
32587 _ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h.  */
32591
32592           #include <sys/statfs.h>
32593           #include <sys/fstyp.h>
32594
32595 _ACEOF
32596 if { (ac_try="$ac_cpp conftest.$ac_ext"
32597 case "(($ac_try" in
32598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599   *) ac_try_echo=$ac_try;;
32600 esac
32601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32603   ac_status=$?
32604   grep -v '^ *+' conftest.er1 >conftest.err
32605   rm -f conftest.er1
32606   cat conftest.err >&5
32607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608   (exit $ac_status); } >/dev/null && {
32609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32610          test ! -s conftest.err
32611        }; then
32612   cat >>confdefs.h <<\_ACEOF
32613 #define FSTYPE_USG_STATFS 1
32614 _ACEOF
32615  fstype=SVR3
32616
32617 else
32618   echo "$as_me: failed program was:" >&5
32619 sed 's/^/| /' conftest.$ac_ext >&5
32620
32621
32622 fi
32623
32624 rm -f conftest.err conftest.$ac_ext
32625 fi
32626 if test $fstype = no; then
32627    cat >conftest.$ac_ext <<_ACEOF
32628 /* confdefs.h.  */
32629 _ACEOF
32630 cat confdefs.h >>conftest.$ac_ext
32631 cat >>conftest.$ac_ext <<_ACEOF
32632 /* end confdefs.h.  */
32633
32634           #include <sys/statfs.h>
32635           #include <sys/vmount.h>
32636
32637 _ACEOF
32638 if { (ac_try="$ac_cpp conftest.$ac_ext"
32639 case "(($ac_try" in
32640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32641   *) ac_try_echo=$ac_try;;
32642 esac
32643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32645   ac_status=$?
32646   grep -v '^ *+' conftest.er1 >conftest.err
32647   rm -f conftest.er1
32648   cat conftest.err >&5
32649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650   (exit $ac_status); } >/dev/null && {
32651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32652          test ! -s conftest.err
32653        }; then
32654   cat >>confdefs.h <<\_ACEOF
32655 #define FSTYPE_AIX_STATFS 1
32656 _ACEOF
32657  fstype=AIX
32658
32659 else
32660   echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32662
32663
32664 fi
32665
32666 rm -f conftest.err conftest.$ac_ext
32667 fi
32668 if test $fstype = no; then
32669    cat >conftest.$ac_ext <<_ACEOF
32670 /* confdefs.h.  */
32671 _ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h.  */
32675
32676           #include <mntent.h>
32677
32678 _ACEOF
32679 if { (ac_try="$ac_cpp conftest.$ac_ext"
32680 case "(($ac_try" in
32681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682   *) ac_try_echo=$ac_try;;
32683 esac
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32686   ac_status=$?
32687   grep -v '^ *+' conftest.er1 >conftest.err
32688   rm -f conftest.er1
32689   cat conftest.err >&5
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); } >/dev/null && {
32692          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32693          test ! -s conftest.err
32694        }; then
32695   cat >>confdefs.h <<\_ACEOF
32696 #define FSTYPE_MNTENT 1
32697 _ACEOF
32698  fstype=4.3BSD
32699
32700 else
32701   echo "$as_me: failed program was:" >&5
32702 sed 's/^/| /' conftest.$ac_ext >&5
32703
32704
32705 fi
32706
32707 rm -f conftest.err conftest.$ac_ext
32708 fi
32709 if test $fstype = no; then
32710    cat >conftest.$ac_ext <<_ACEOF
32711 /* confdefs.h.  */
32712 _ACEOF
32713 cat confdefs.h >>conftest.$ac_ext
32714 cat >>conftest.$ac_ext <<_ACEOF
32715 /* end confdefs.h.  */
32716 #include <sys/mount.h>
32717
32718 _ACEOF
32719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32720   $EGREP "f_type;" >/dev/null 2>&1; then
32721   cat >>confdefs.h <<\_ACEOF
32722 #define FSTYPE_STATFS 1
32723 _ACEOF
32724  fstype=4.4BSD/OSF1
32725 fi
32726 rm -f conftest*
32727
32728 fi
32729 if test $fstype = no; then
32730    cat >conftest.$ac_ext <<_ACEOF
32731 /* confdefs.h.  */
32732 _ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h.  */
32736
32737           #include <sys/mount.h>
32738           #include <sys/fs_types.h>
32739
32740 _ACEOF
32741 if { (ac_try="$ac_cpp conftest.$ac_ext"
32742 case "(($ac_try" in
32743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32744   *) ac_try_echo=$ac_try;;
32745 esac
32746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32748   ac_status=$?
32749   grep -v '^ *+' conftest.er1 >conftest.err
32750   rm -f conftest.er1
32751   cat conftest.err >&5
32752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753   (exit $ac_status); } >/dev/null && {
32754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32755          test ! -s conftest.err
32756        }; then
32757   cat >>confdefs.h <<\_ACEOF
32758 #define FSTYPE_GETMNT 1
32759 _ACEOF
32760  fstype=Ultrix
32761
32762 else
32763   echo "$as_me: failed program was:" >&5
32764 sed 's/^/| /' conftest.$ac_ext >&5
32765
32766
32767 fi
32768
32769 rm -f conftest.err conftest.$ac_ext
32770 fi
32771 { echo "$as_me:$LINENO: result: $fstype" >&5
32772 echo "${ECHO_T}$fstype" >&6; }
32773
32774 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32775   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32776 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32777 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32778   echo $ECHO_N "(cached) $ECHO_C" >&6
32779 fi
32780 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32781 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32782 else
32783   # Is the header compilable?
32784 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32785 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32786 cat >conftest.$ac_ext <<_ACEOF
32787 /* confdefs.h.  */
32788 _ACEOF
32789 cat confdefs.h >>conftest.$ac_ext
32790 cat >>conftest.$ac_ext <<_ACEOF
32791 /* end confdefs.h.  */
32792 $ac_includes_default
32793 #include <sys/statvfs.h>
32794 _ACEOF
32795 rm -f conftest.$ac_objext
32796 if { (ac_try="$ac_compile"
32797 case "(($ac_try" in
32798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799   *) ac_try_echo=$ac_try;;
32800 esac
32801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802   (eval "$ac_compile") 2>conftest.er1
32803   ac_status=$?
32804   grep -v '^ *+' conftest.er1 >conftest.err
32805   rm -f conftest.er1
32806   cat conftest.err >&5
32807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808   (exit $ac_status); } && {
32809          test -z "$ac_c_werror_flag" ||
32810          test ! -s conftest.err
32811        } && test -s conftest.$ac_objext; then
32812   ac_header_compiler=yes
32813 else
32814   echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32816
32817         ac_header_compiler=no
32818 fi
32819
32820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32822 echo "${ECHO_T}$ac_header_compiler" >&6; }
32823
32824 # Is the header present?
32825 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32826 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32827 cat >conftest.$ac_ext <<_ACEOF
32828 /* confdefs.h.  */
32829 _ACEOF
32830 cat confdefs.h >>conftest.$ac_ext
32831 cat >>conftest.$ac_ext <<_ACEOF
32832 /* end confdefs.h.  */
32833 #include <sys/statvfs.h>
32834 _ACEOF
32835 if { (ac_try="$ac_cpp conftest.$ac_ext"
32836 case "(($ac_try" in
32837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838   *) ac_try_echo=$ac_try;;
32839 esac
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32842   ac_status=$?
32843   grep -v '^ *+' conftest.er1 >conftest.err
32844   rm -f conftest.er1
32845   cat conftest.err >&5
32846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847   (exit $ac_status); } >/dev/null && {
32848          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32849          test ! -s conftest.err
32850        }; then
32851   ac_header_preproc=yes
32852 else
32853   echo "$as_me: failed program was:" >&5
32854 sed 's/^/| /' conftest.$ac_ext >&5
32855
32856   ac_header_preproc=no
32857 fi
32858
32859 rm -f conftest.err conftest.$ac_ext
32860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32861 echo "${ECHO_T}$ac_header_preproc" >&6; }
32862
32863 # So?  What about this header?
32864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32865   yes:no: )
32866     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32867 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32868     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32869 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32870     ac_header_preproc=yes
32871     ;;
32872   no:yes:* )
32873     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32874 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32875     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32876 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32877     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32878 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32879     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32880 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32881     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32882 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32883     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32884 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32885
32886     ;;
32887 esac
32888 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32889 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32890 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32891   echo $ECHO_N "(cached) $ECHO_C" >&6
32892 else
32893   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32894 fi
32895 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32896 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32897
32898 fi
32899 if test $ac_cv_header_sys_statvfs_h = yes; then
32900
32901 cat >>confdefs.h <<\_ACEOF
32902 #define HAVE_SYS_STATVFS_H 1
32903 _ACEOF
32904
32905 fi
32906
32907
32908
32909 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32910 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32911 if test "${ac_cv_type_signal+set}" = set; then
32912   echo $ECHO_N "(cached) $ECHO_C" >&6
32913 else
32914   cat >conftest.$ac_ext <<_ACEOF
32915 /* confdefs.h.  */
32916 _ACEOF
32917 cat confdefs.h >>conftest.$ac_ext
32918 cat >>conftest.$ac_ext <<_ACEOF
32919 /* end confdefs.h.  */
32920 #include <sys/types.h>
32921 #include <signal.h>
32922
32923 int
32924 main ()
32925 {
32926 return *(signal (0, 0)) (0) == 1;
32927   ;
32928   return 0;
32929 }
32930 _ACEOF
32931 rm -f conftest.$ac_objext
32932 if { (ac_try="$ac_compile"
32933 case "(($ac_try" in
32934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32935   *) ac_try_echo=$ac_try;;
32936 esac
32937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32938   (eval "$ac_compile") 2>conftest.er1
32939   ac_status=$?
32940   grep -v '^ *+' conftest.er1 >conftest.err
32941   rm -f conftest.er1
32942   cat conftest.err >&5
32943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944   (exit $ac_status); } && {
32945          test -z "$ac_c_werror_flag" ||
32946          test ! -s conftest.err
32947        } && test -s conftest.$ac_objext; then
32948   ac_cv_type_signal=int
32949 else
32950   echo "$as_me: failed program was:" >&5
32951 sed 's/^/| /' conftest.$ac_ext >&5
32952
32953         ac_cv_type_signal=void
32954 fi
32955
32956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32957 fi
32958 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32959 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32960
32961 cat >>confdefs.h <<_ACEOF
32962 #define RETSIGTYPE $ac_cv_type_signal
32963 _ACEOF
32964
32965
32966
32967   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32968 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32969   if test "${bash_cv_signal_vintage+set}" = set; then
32970   echo $ECHO_N "(cached) $ECHO_C" >&6
32971 else
32972
32973     cat >conftest.$ac_ext <<_ACEOF
32974 /* confdefs.h.  */
32975 _ACEOF
32976 cat confdefs.h >>conftest.$ac_ext
32977 cat >>conftest.$ac_ext <<_ACEOF
32978 /* end confdefs.h.  */
32979 #include <signal.h>
32980 int
32981 main ()
32982 {
32983
32984       sigset_t ss;
32985       struct sigaction sa;
32986       sigemptyset(&ss); sigsuspend(&ss);
32987       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32988       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32989
32990   ;
32991   return 0;
32992 }
32993 _ACEOF
32994 rm -f conftest.$ac_objext conftest$ac_exeext
32995 if { (ac_try="$ac_link"
32996 case "(($ac_try" in
32997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32998   *) ac_try_echo=$ac_try;;
32999 esac
33000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33001   (eval "$ac_link") 2>conftest.er1
33002   ac_status=$?
33003   grep -v '^ *+' conftest.er1 >conftest.err
33004   rm -f conftest.er1
33005   cat conftest.err >&5
33006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007   (exit $ac_status); } && {
33008          test -z "$ac_c_werror_flag" ||
33009          test ! -s conftest.err
33010        } && test -s conftest$ac_exeext &&
33011        $as_test_x conftest$ac_exeext; then
33012   bash_cv_signal_vintage="posix"
33013 else
33014   echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33016
33017
33018       cat >conftest.$ac_ext <<_ACEOF
33019 /* confdefs.h.  */
33020 _ACEOF
33021 cat confdefs.h >>conftest.$ac_ext
33022 cat >>conftest.$ac_ext <<_ACEOF
33023 /* end confdefs.h.  */
33024 #include <signal.h>
33025 int
33026 main ()
33027 {
33028
33029           int mask = sigmask(SIGINT);
33030           sigsetmask(mask); sigblock(mask); sigpause(mask);
33031
33032   ;
33033   return 0;
33034 }
33035 _ACEOF
33036 rm -f conftest.$ac_objext conftest$ac_exeext
33037 if { (ac_try="$ac_link"
33038 case "(($ac_try" in
33039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040   *) ac_try_echo=$ac_try;;
33041 esac
33042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043   (eval "$ac_link") 2>conftest.er1
33044   ac_status=$?
33045   grep -v '^ *+' conftest.er1 >conftest.err
33046   rm -f conftest.er1
33047   cat conftest.err >&5
33048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049   (exit $ac_status); } && {
33050          test -z "$ac_c_werror_flag" ||
33051          test ! -s conftest.err
33052        } && test -s conftest$ac_exeext &&
33053        $as_test_x conftest$ac_exeext; then
33054   bash_cv_signal_vintage="4.2bsd"
33055 else
33056   echo "$as_me: failed program was:" >&5
33057 sed 's/^/| /' conftest.$ac_ext >&5
33058
33059
33060         cat >conftest.$ac_ext <<_ACEOF
33061 /* confdefs.h.  */
33062 _ACEOF
33063 cat confdefs.h >>conftest.$ac_ext
33064 cat >>conftest.$ac_ext <<_ACEOF
33065 /* end confdefs.h.  */
33066
33067           #include <signal.h>
33068           RETSIGTYPE foo() { }
33069 int
33070 main ()
33071 {
33072
33073                   int mask = sigmask(SIGINT);
33074                   sigset(SIGINT, foo); sigrelse(SIGINT);
33075                   sighold(SIGINT); sigpause(SIGINT);
33076
33077   ;
33078   return 0;
33079 }
33080 _ACEOF
33081 rm -f conftest.$ac_objext conftest$ac_exeext
33082 if { (ac_try="$ac_link"
33083 case "(($ac_try" in
33084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085   *) ac_try_echo=$ac_try;;
33086 esac
33087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088   (eval "$ac_link") 2>conftest.er1
33089   ac_status=$?
33090   grep -v '^ *+' conftest.er1 >conftest.err
33091   rm -f conftest.er1
33092   cat conftest.err >&5
33093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094   (exit $ac_status); } && {
33095          test -z "$ac_c_werror_flag" ||
33096          test ! -s conftest.err
33097        } && test -s conftest$ac_exeext &&
33098        $as_test_x conftest$ac_exeext; then
33099   bash_cv_signal_vintage="svr3"
33100 else
33101   echo "$as_me: failed program was:" >&5
33102 sed 's/^/| /' conftest.$ac_ext >&5
33103
33104         bash_cv_signal_vintage="v7"
33105
33106 fi
33107
33108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33109       conftest$ac_exeext conftest.$ac_ext
33110
33111 fi
33112
33113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33114       conftest$ac_exeext conftest.$ac_ext
33115
33116 fi
33117
33118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33119       conftest$ac_exeext conftest.$ac_ext
33120
33121 fi
33122
33123   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33124 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33125   if test "$bash_cv_signal_vintage" = "posix"; then
33126     cat >>confdefs.h <<\_ACEOF
33127 #define HAVE_POSIX_SIGNALS 1
33128 _ACEOF
33129
33130   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33131     cat >>confdefs.h <<\_ACEOF
33132 #define HAVE_BSD_SIGNALS 1
33133 _ACEOF
33134
33135   elif test "$bash_cv_signal_vintage" = "svr3"; then
33136     cat >>confdefs.h <<\_ACEOF
33137 #define HAVE_USG_SIGHOLD 1
33138 _ACEOF
33139
33140   fi
33141
33142 { echo "$as_me:$LINENO: checking for mode_t" >&5
33143 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33144 if test "${ac_cv_type_mode_t+set}" = set; then
33145   echo $ECHO_N "(cached) $ECHO_C" >&6
33146 else
33147   cat >conftest.$ac_ext <<_ACEOF
33148 /* confdefs.h.  */
33149 _ACEOF
33150 cat confdefs.h >>conftest.$ac_ext
33151 cat >>conftest.$ac_ext <<_ACEOF
33152 /* end confdefs.h.  */
33153 $ac_includes_default
33154 typedef mode_t ac__type_new_;
33155 int
33156 main ()
33157 {
33158 if ((ac__type_new_ *) 0)
33159   return 0;
33160 if (sizeof (ac__type_new_))
33161   return 0;
33162   ;
33163   return 0;
33164 }
33165 _ACEOF
33166 rm -f conftest.$ac_objext
33167 if { (ac_try="$ac_compile"
33168 case "(($ac_try" in
33169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170   *) ac_try_echo=$ac_try;;
33171 esac
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173   (eval "$ac_compile") 2>conftest.er1
33174   ac_status=$?
33175   grep -v '^ *+' conftest.er1 >conftest.err
33176   rm -f conftest.er1
33177   cat conftest.err >&5
33178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179   (exit $ac_status); } && {
33180          test -z "$ac_c_werror_flag" ||
33181          test ! -s conftest.err
33182        } && test -s conftest.$ac_objext; then
33183   ac_cv_type_mode_t=yes
33184 else
33185   echo "$as_me: failed program was:" >&5
33186 sed 's/^/| /' conftest.$ac_ext >&5
33187
33188         ac_cv_type_mode_t=no
33189 fi
33190
33191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33192 fi
33193 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33194 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33195 if test $ac_cv_type_mode_t = yes; then
33196   :
33197 else
33198
33199 cat >>confdefs.h <<_ACEOF
33200 #define mode_t int
33201 _ACEOF
33202
33203 fi
33204
33205 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33206 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33207 if test "${ac_cv_type_uid_t+set}" = set; then
33208   echo $ECHO_N "(cached) $ECHO_C" >&6
33209 else
33210   cat >conftest.$ac_ext <<_ACEOF
33211 /* confdefs.h.  */
33212 _ACEOF
33213 cat confdefs.h >>conftest.$ac_ext
33214 cat >>conftest.$ac_ext <<_ACEOF
33215 /* end confdefs.h.  */
33216 #include <sys/types.h>
33217
33218 _ACEOF
33219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33220   $EGREP "uid_t" >/dev/null 2>&1; then
33221   ac_cv_type_uid_t=yes
33222 else
33223   ac_cv_type_uid_t=no
33224 fi
33225 rm -f conftest*
33226
33227 fi
33228 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33229 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33230 if test $ac_cv_type_uid_t = no; then
33231
33232 cat >>confdefs.h <<\_ACEOF
33233 #define uid_t int
33234 _ACEOF
33235
33236
33237 cat >>confdefs.h <<\_ACEOF
33238 #define gid_t int
33239 _ACEOF
33240
33241 fi
33242
33243 { echo "$as_me:$LINENO: checking for size_t" >&5
33244 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33245 if test "${ac_cv_type_size_t+set}" = set; then
33246   echo $ECHO_N "(cached) $ECHO_C" >&6
33247 else
33248   cat >conftest.$ac_ext <<_ACEOF
33249 /* confdefs.h.  */
33250 _ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h.  */
33254 $ac_includes_default
33255 typedef size_t ac__type_new_;
33256 int
33257 main ()
33258 {
33259 if ((ac__type_new_ *) 0)
33260   return 0;
33261 if (sizeof (ac__type_new_))
33262   return 0;
33263   ;
33264   return 0;
33265 }
33266 _ACEOF
33267 rm -f conftest.$ac_objext
33268 if { (ac_try="$ac_compile"
33269 case "(($ac_try" in
33270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271   *) ac_try_echo=$ac_try;;
33272 esac
33273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274   (eval "$ac_compile") 2>conftest.er1
33275   ac_status=$?
33276   grep -v '^ *+' conftest.er1 >conftest.err
33277   rm -f conftest.er1
33278   cat conftest.err >&5
33279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); } && {
33281          test -z "$ac_c_werror_flag" ||
33282          test ! -s conftest.err
33283        } && test -s conftest.$ac_objext; then
33284   ac_cv_type_size_t=yes
33285 else
33286   echo "$as_me: failed program was:" >&5
33287 sed 's/^/| /' conftest.$ac_ext >&5
33288
33289         ac_cv_type_size_t=no
33290 fi
33291
33292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33293 fi
33294 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33295 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33296 if test $ac_cv_type_size_t = yes; then
33297   :
33298 else
33299
33300 cat >>confdefs.h <<_ACEOF
33301 #define size_t unsigned int
33302 _ACEOF
33303
33304 fi
33305
33306 { echo "$as_me:$LINENO: checking for pid_t" >&5
33307 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33308 if test "${ac_cv_type_pid_t+set}" = set; then
33309   echo $ECHO_N "(cached) $ECHO_C" >&6
33310 else
33311   cat >conftest.$ac_ext <<_ACEOF
33312 /* confdefs.h.  */
33313 _ACEOF
33314 cat confdefs.h >>conftest.$ac_ext
33315 cat >>conftest.$ac_ext <<_ACEOF
33316 /* end confdefs.h.  */
33317 $ac_includes_default
33318 typedef pid_t ac__type_new_;
33319 int
33320 main ()
33321 {
33322 if ((ac__type_new_ *) 0)
33323   return 0;
33324 if (sizeof (ac__type_new_))
33325   return 0;
33326   ;
33327   return 0;
33328 }
33329 _ACEOF
33330 rm -f conftest.$ac_objext
33331 if { (ac_try="$ac_compile"
33332 case "(($ac_try" in
33333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334   *) ac_try_echo=$ac_try;;
33335 esac
33336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33337   (eval "$ac_compile") 2>conftest.er1
33338   ac_status=$?
33339   grep -v '^ *+' conftest.er1 >conftest.err
33340   rm -f conftest.er1
33341   cat conftest.err >&5
33342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343   (exit $ac_status); } && {
33344          test -z "$ac_c_werror_flag" ||
33345          test ! -s conftest.err
33346        } && test -s conftest.$ac_objext; then
33347   ac_cv_type_pid_t=yes
33348 else
33349   echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33351
33352         ac_cv_type_pid_t=no
33353 fi
33354
33355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33356 fi
33357 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33358 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33359 if test $ac_cv_type_pid_t = yes; then
33360   :
33361 else
33362
33363 cat >>confdefs.h <<_ACEOF
33364 #define pid_t int
33365 _ACEOF
33366
33367 fi
33368
33369 { echo "$as_me:$LINENO: checking for off_t" >&5
33370 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33371 if test "${ac_cv_type_off_t+set}" = set; then
33372   echo $ECHO_N "(cached) $ECHO_C" >&6
33373 else
33374   cat >conftest.$ac_ext <<_ACEOF
33375 /* confdefs.h.  */
33376 _ACEOF
33377 cat confdefs.h >>conftest.$ac_ext
33378 cat >>conftest.$ac_ext <<_ACEOF
33379 /* end confdefs.h.  */
33380 $ac_includes_default
33381 typedef off_t ac__type_new_;
33382 int
33383 main ()
33384 {
33385 if ((ac__type_new_ *) 0)
33386   return 0;
33387 if (sizeof (ac__type_new_))
33388   return 0;
33389   ;
33390   return 0;
33391 }
33392 _ACEOF
33393 rm -f conftest.$ac_objext
33394 if { (ac_try="$ac_compile"
33395 case "(($ac_try" in
33396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397   *) ac_try_echo=$ac_try;;
33398 esac
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400   (eval "$ac_compile") 2>conftest.er1
33401   ac_status=$?
33402   grep -v '^ *+' conftest.er1 >conftest.err
33403   rm -f conftest.er1
33404   cat conftest.err >&5
33405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406   (exit $ac_status); } && {
33407          test -z "$ac_c_werror_flag" ||
33408          test ! -s conftest.err
33409        } && test -s conftest.$ac_objext; then
33410   ac_cv_type_off_t=yes
33411 else
33412   echo "$as_me: failed program was:" >&5
33413 sed 's/^/| /' conftest.$ac_ext >&5
33414
33415         ac_cv_type_off_t=no
33416 fi
33417
33418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33419 fi
33420 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33421 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33422 if test $ac_cv_type_off_t = yes; then
33423   :
33424 else
33425
33426 cat >>confdefs.h <<_ACEOF
33427 #define off_t long int
33428 _ACEOF
33429
33430 fi
33431
33432 { echo "$as_me:$LINENO: checking for ino_t" >&5
33433 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33434 if test "${ac_cv_type_ino_t+set}" = set; then
33435   echo $ECHO_N "(cached) $ECHO_C" >&6
33436 else
33437   cat >conftest.$ac_ext <<_ACEOF
33438 /* confdefs.h.  */
33439 _ACEOF
33440 cat confdefs.h >>conftest.$ac_ext
33441 cat >>conftest.$ac_ext <<_ACEOF
33442 /* end confdefs.h.  */
33443 $ac_includes_default
33444 typedef ino_t ac__type_new_;
33445 int
33446 main ()
33447 {
33448 if ((ac__type_new_ *) 0)
33449   return 0;
33450 if (sizeof (ac__type_new_))
33451   return 0;
33452   ;
33453   return 0;
33454 }
33455 _ACEOF
33456 rm -f conftest.$ac_objext
33457 if { (ac_try="$ac_compile"
33458 case "(($ac_try" in
33459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460   *) ac_try_echo=$ac_try;;
33461 esac
33462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463   (eval "$ac_compile") 2>conftest.er1
33464   ac_status=$?
33465   grep -v '^ *+' conftest.er1 >conftest.err
33466   rm -f conftest.er1
33467   cat conftest.err >&5
33468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469   (exit $ac_status); } && {
33470          test -z "$ac_c_werror_flag" ||
33471          test ! -s conftest.err
33472        } && test -s conftest.$ac_objext; then
33473   ac_cv_type_ino_t=yes
33474 else
33475   echo "$as_me: failed program was:" >&5
33476 sed 's/^/| /' conftest.$ac_ext >&5
33477
33478         ac_cv_type_ino_t=no
33479 fi
33480
33481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33482 fi
33483 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33484 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33485 if test $ac_cv_type_ino_t = yes; then
33486   :
33487 else
33488
33489 cat >>confdefs.h <<_ACEOF
33490 #define ino_t unsigned long
33491 _ACEOF
33492
33493 fi
33494
33495 { echo "$as_me:$LINENO: checking for dev_t" >&5
33496 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33497 if test "${ac_cv_type_dev_t+set}" = set; then
33498   echo $ECHO_N "(cached) $ECHO_C" >&6
33499 else
33500   cat >conftest.$ac_ext <<_ACEOF
33501 /* confdefs.h.  */
33502 _ACEOF
33503 cat confdefs.h >>conftest.$ac_ext
33504 cat >>conftest.$ac_ext <<_ACEOF
33505 /* end confdefs.h.  */
33506 $ac_includes_default
33507 typedef dev_t ac__type_new_;
33508 int
33509 main ()
33510 {
33511 if ((ac__type_new_ *) 0)
33512   return 0;
33513 if (sizeof (ac__type_new_))
33514   return 0;
33515   ;
33516   return 0;
33517 }
33518 _ACEOF
33519 rm -f conftest.$ac_objext
33520 if { (ac_try="$ac_compile"
33521 case "(($ac_try" in
33522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33523   *) ac_try_echo=$ac_try;;
33524 esac
33525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33526   (eval "$ac_compile") 2>conftest.er1
33527   ac_status=$?
33528   grep -v '^ *+' conftest.er1 >conftest.err
33529   rm -f conftest.er1
33530   cat conftest.err >&5
33531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532   (exit $ac_status); } && {
33533          test -z "$ac_c_werror_flag" ||
33534          test ! -s conftest.err
33535        } && test -s conftest.$ac_objext; then
33536   ac_cv_type_dev_t=yes
33537 else
33538   echo "$as_me: failed program was:" >&5
33539 sed 's/^/| /' conftest.$ac_ext >&5
33540
33541         ac_cv_type_dev_t=no
33542 fi
33543
33544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33545 fi
33546 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33547 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33548 if test $ac_cv_type_dev_t = yes; then
33549   :
33550 else
33551
33552 cat >>confdefs.h <<_ACEOF
33553 #define dev_t unsigned long
33554 _ACEOF
33555
33556 fi
33557
33558 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33559 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33560 if test "${ac_cv_type_daddr_t+set}" = set; then
33561   echo $ECHO_N "(cached) $ECHO_C" >&6
33562 else
33563   cat >conftest.$ac_ext <<_ACEOF
33564 /* confdefs.h.  */
33565 _ACEOF
33566 cat confdefs.h >>conftest.$ac_ext
33567 cat >>conftest.$ac_ext <<_ACEOF
33568 /* end confdefs.h.  */
33569 $ac_includes_default
33570 typedef daddr_t ac__type_new_;
33571 int
33572 main ()
33573 {
33574 if ((ac__type_new_ *) 0)
33575   return 0;
33576 if (sizeof (ac__type_new_))
33577   return 0;
33578   ;
33579   return 0;
33580 }
33581 _ACEOF
33582 rm -f conftest.$ac_objext
33583 if { (ac_try="$ac_compile"
33584 case "(($ac_try" in
33585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33586   *) ac_try_echo=$ac_try;;
33587 esac
33588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33589   (eval "$ac_compile") 2>conftest.er1
33590   ac_status=$?
33591   grep -v '^ *+' conftest.er1 >conftest.err
33592   rm -f conftest.er1
33593   cat conftest.err >&5
33594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595   (exit $ac_status); } && {
33596          test -z "$ac_c_werror_flag" ||
33597          test ! -s conftest.err
33598        } && test -s conftest.$ac_objext; then
33599   ac_cv_type_daddr_t=yes
33600 else
33601   echo "$as_me: failed program was:" >&5
33602 sed 's/^/| /' conftest.$ac_ext >&5
33603
33604         ac_cv_type_daddr_t=no
33605 fi
33606
33607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33608 fi
33609 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33610 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33611 if test $ac_cv_type_daddr_t = yes; then
33612   :
33613 else
33614
33615 cat >>confdefs.h <<_ACEOF
33616 #define daddr_t long
33617 _ACEOF
33618
33619 fi
33620
33621 { echo "$as_me:$LINENO: checking for major_t" >&5
33622 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33623 if test "${ac_cv_type_major_t+set}" = set; then
33624   echo $ECHO_N "(cached) $ECHO_C" >&6
33625 else
33626   cat >conftest.$ac_ext <<_ACEOF
33627 /* confdefs.h.  */
33628 _ACEOF
33629 cat confdefs.h >>conftest.$ac_ext
33630 cat >>conftest.$ac_ext <<_ACEOF
33631 /* end confdefs.h.  */
33632 $ac_includes_default
33633 typedef major_t ac__type_new_;
33634 int
33635 main ()
33636 {
33637 if ((ac__type_new_ *) 0)
33638   return 0;
33639 if (sizeof (ac__type_new_))
33640   return 0;
33641   ;
33642   return 0;
33643 }
33644 _ACEOF
33645 rm -f conftest.$ac_objext
33646 if { (ac_try="$ac_compile"
33647 case "(($ac_try" in
33648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33649   *) ac_try_echo=$ac_try;;
33650 esac
33651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33652   (eval "$ac_compile") 2>conftest.er1
33653   ac_status=$?
33654   grep -v '^ *+' conftest.er1 >conftest.err
33655   rm -f conftest.er1
33656   cat conftest.err >&5
33657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658   (exit $ac_status); } && {
33659          test -z "$ac_c_werror_flag" ||
33660          test ! -s conftest.err
33661        } && test -s conftest.$ac_objext; then
33662   ac_cv_type_major_t=yes
33663 else
33664   echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33666
33667         ac_cv_type_major_t=no
33668 fi
33669
33670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33671 fi
33672 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33673 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33674 if test $ac_cv_type_major_t = yes; then
33675   :
33676 else
33677
33678 cat >>confdefs.h <<_ACEOF
33679 #define major_t int
33680 _ACEOF
33681
33682 fi
33683
33684 { echo "$as_me:$LINENO: checking for minor_t" >&5
33685 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33686 if test "${ac_cv_type_minor_t+set}" = set; then
33687   echo $ECHO_N "(cached) $ECHO_C" >&6
33688 else
33689   cat >conftest.$ac_ext <<_ACEOF
33690 /* confdefs.h.  */
33691 _ACEOF
33692 cat confdefs.h >>conftest.$ac_ext
33693 cat >>conftest.$ac_ext <<_ACEOF
33694 /* end confdefs.h.  */
33695 $ac_includes_default
33696 typedef minor_t ac__type_new_;
33697 int
33698 main ()
33699 {
33700 if ((ac__type_new_ *) 0)
33701   return 0;
33702 if (sizeof (ac__type_new_))
33703   return 0;
33704   ;
33705   return 0;
33706 }
33707 _ACEOF
33708 rm -f conftest.$ac_objext
33709 if { (ac_try="$ac_compile"
33710 case "(($ac_try" in
33711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33712   *) ac_try_echo=$ac_try;;
33713 esac
33714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33715   (eval "$ac_compile") 2>conftest.er1
33716   ac_status=$?
33717   grep -v '^ *+' conftest.er1 >conftest.err
33718   rm -f conftest.er1
33719   cat conftest.err >&5
33720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721   (exit $ac_status); } && {
33722          test -z "$ac_c_werror_flag" ||
33723          test ! -s conftest.err
33724        } && test -s conftest.$ac_objext; then
33725   ac_cv_type_minor_t=yes
33726 else
33727   echo "$as_me: failed program was:" >&5
33728 sed 's/^/| /' conftest.$ac_ext >&5
33729
33730         ac_cv_type_minor_t=no
33731 fi
33732
33733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33734 fi
33735 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33736 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33737 if test $ac_cv_type_minor_t = yes; then
33738   :
33739 else
33740
33741 cat >>confdefs.h <<_ACEOF
33742 #define minor_t int
33743 _ACEOF
33744
33745 fi
33746
33747 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33748 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33749 if test "${ac_cv_type_ssize_t+set}" = set; then
33750   echo $ECHO_N "(cached) $ECHO_C" >&6
33751 else
33752   cat >conftest.$ac_ext <<_ACEOF
33753 /* confdefs.h.  */
33754 _ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h.  */
33758 $ac_includes_default
33759 typedef ssize_t ac__type_new_;
33760 int
33761 main ()
33762 {
33763 if ((ac__type_new_ *) 0)
33764   return 0;
33765 if (sizeof (ac__type_new_))
33766   return 0;
33767   ;
33768   return 0;
33769 }
33770 _ACEOF
33771 rm -f conftest.$ac_objext
33772 if { (ac_try="$ac_compile"
33773 case "(($ac_try" in
33774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33775   *) ac_try_echo=$ac_try;;
33776 esac
33777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33778   (eval "$ac_compile") 2>conftest.er1
33779   ac_status=$?
33780   grep -v '^ *+' conftest.er1 >conftest.err
33781   rm -f conftest.er1
33782   cat conftest.err >&5
33783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784   (exit $ac_status); } && {
33785          test -z "$ac_c_werror_flag" ||
33786          test ! -s conftest.err
33787        } && test -s conftest.$ac_objext; then
33788   ac_cv_type_ssize_t=yes
33789 else
33790   echo "$as_me: failed program was:" >&5
33791 sed 's/^/| /' conftest.$ac_ext >&5
33792
33793         ac_cv_type_ssize_t=no
33794 fi
33795
33796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33797 fi
33798 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33799 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33800 if test $ac_cv_type_ssize_t = yes; then
33801   :
33802 else
33803
33804 cat >>confdefs.h <<_ACEOF
33805 #define ssize_t int
33806 _ACEOF
33807
33808 fi
33809
33810 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33811 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33812 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33813   echo $ECHO_N "(cached) $ECHO_C" >&6
33814 else
33815   cat >conftest.$ac_ext <<_ACEOF
33816 /* confdefs.h.  */
33817 _ACEOF
33818 cat confdefs.h >>conftest.$ac_ext
33819 cat >>conftest.$ac_ext <<_ACEOF
33820 /* end confdefs.h.  */
33821 $ac_includes_default
33822 int
33823 main ()
33824 {
33825 static struct stat ac_aggr;
33826 if (ac_aggr.st_blocks)
33827 return 0;
33828   ;
33829   return 0;
33830 }
33831 _ACEOF
33832 rm -f conftest.$ac_objext
33833 if { (ac_try="$ac_compile"
33834 case "(($ac_try" in
33835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33836   *) ac_try_echo=$ac_try;;
33837 esac
33838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33839   (eval "$ac_compile") 2>conftest.er1
33840   ac_status=$?
33841   grep -v '^ *+' conftest.er1 >conftest.err
33842   rm -f conftest.er1
33843   cat conftest.err >&5
33844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845   (exit $ac_status); } && {
33846          test -z "$ac_c_werror_flag" ||
33847          test ! -s conftest.err
33848        } && test -s conftest.$ac_objext; then
33849   ac_cv_member_struct_stat_st_blocks=yes
33850 else
33851   echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33853
33854         cat >conftest.$ac_ext <<_ACEOF
33855 /* confdefs.h.  */
33856 _ACEOF
33857 cat confdefs.h >>conftest.$ac_ext
33858 cat >>conftest.$ac_ext <<_ACEOF
33859 /* end confdefs.h.  */
33860 $ac_includes_default
33861 int
33862 main ()
33863 {
33864 static struct stat ac_aggr;
33865 if (sizeof ac_aggr.st_blocks)
33866 return 0;
33867   ;
33868   return 0;
33869 }
33870 _ACEOF
33871 rm -f conftest.$ac_objext
33872 if { (ac_try="$ac_compile"
33873 case "(($ac_try" in
33874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33875   *) ac_try_echo=$ac_try;;
33876 esac
33877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33878   (eval "$ac_compile") 2>conftest.er1
33879   ac_status=$?
33880   grep -v '^ *+' conftest.er1 >conftest.err
33881   rm -f conftest.er1
33882   cat conftest.err >&5
33883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884   (exit $ac_status); } && {
33885          test -z "$ac_c_werror_flag" ||
33886          test ! -s conftest.err
33887        } && test -s conftest.$ac_objext; then
33888   ac_cv_member_struct_stat_st_blocks=yes
33889 else
33890   echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33892
33893         ac_cv_member_struct_stat_st_blocks=no
33894 fi
33895
33896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33897 fi
33898
33899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33900 fi
33901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33902 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33903 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33904
33905 cat >>confdefs.h <<_ACEOF
33906 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33907 _ACEOF
33908
33909
33910 cat >>confdefs.h <<\_ACEOF
33911 #define HAVE_ST_BLOCKS 1
33912 _ACEOF
33913
33914 else
33915   case " $LIBOBJS " in
33916   *" fileblocks.$ac_objext "* ) ;;
33917   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33918  ;;
33919 esac
33920
33921 fi
33922
33923
33924 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33925 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33926 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33927   echo $ECHO_N "(cached) $ECHO_C" >&6
33928 else
33929   cat >conftest.$ac_ext <<_ACEOF
33930 /* confdefs.h.  */
33931 _ACEOF
33932 cat confdefs.h >>conftest.$ac_ext
33933 cat >>conftest.$ac_ext <<_ACEOF
33934 /* end confdefs.h.  */
33935 $ac_includes_default
33936 int
33937 main ()
33938 {
33939 static struct stat ac_aggr;
33940 if (ac_aggr.st_rdev)
33941 return 0;
33942   ;
33943   return 0;
33944 }
33945 _ACEOF
33946 rm -f conftest.$ac_objext
33947 if { (ac_try="$ac_compile"
33948 case "(($ac_try" in
33949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33950   *) ac_try_echo=$ac_try;;
33951 esac
33952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33953   (eval "$ac_compile") 2>conftest.er1
33954   ac_status=$?
33955   grep -v '^ *+' conftest.er1 >conftest.err
33956   rm -f conftest.er1
33957   cat conftest.err >&5
33958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959   (exit $ac_status); } && {
33960          test -z "$ac_c_werror_flag" ||
33961          test ! -s conftest.err
33962        } && test -s conftest.$ac_objext; then
33963   ac_cv_member_struct_stat_st_rdev=yes
33964 else
33965   echo "$as_me: failed program was:" >&5
33966 sed 's/^/| /' conftest.$ac_ext >&5
33967
33968         cat >conftest.$ac_ext <<_ACEOF
33969 /* confdefs.h.  */
33970 _ACEOF
33971 cat confdefs.h >>conftest.$ac_ext
33972 cat >>conftest.$ac_ext <<_ACEOF
33973 /* end confdefs.h.  */
33974 $ac_includes_default
33975 int
33976 main ()
33977 {
33978 static struct stat ac_aggr;
33979 if (sizeof ac_aggr.st_rdev)
33980 return 0;
33981   ;
33982   return 0;
33983 }
33984 _ACEOF
33985 rm -f conftest.$ac_objext
33986 if { (ac_try="$ac_compile"
33987 case "(($ac_try" in
33988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33989   *) ac_try_echo=$ac_try;;
33990 esac
33991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33992   (eval "$ac_compile") 2>conftest.er1
33993   ac_status=$?
33994   grep -v '^ *+' conftest.er1 >conftest.err
33995   rm -f conftest.er1
33996   cat conftest.err >&5
33997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998   (exit $ac_status); } && {
33999          test -z "$ac_c_werror_flag" ||
34000          test ! -s conftest.err
34001        } && test -s conftest.$ac_objext; then
34002   ac_cv_member_struct_stat_st_rdev=yes
34003 else
34004   echo "$as_me: failed program was:" >&5
34005 sed 's/^/| /' conftest.$ac_ext >&5
34006
34007         ac_cv_member_struct_stat_st_rdev=no
34008 fi
34009
34010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34011 fi
34012
34013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34014 fi
34015 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34016 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34017 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34018
34019 cat >>confdefs.h <<_ACEOF
34020 #define HAVE_STRUCT_STAT_ST_RDEV 1
34021 _ACEOF
34022
34023
34024 cat >>confdefs.h <<\_ACEOF
34025 #define HAVE_ST_RDEV 1
34026 _ACEOF
34027
34028 fi
34029
34030
34031 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34032 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34033 if test "${ac_cv_struct_tm+set}" = set; then
34034   echo $ECHO_N "(cached) $ECHO_C" >&6
34035 else
34036   cat >conftest.$ac_ext <<_ACEOF
34037 /* confdefs.h.  */
34038 _ACEOF
34039 cat confdefs.h >>conftest.$ac_ext
34040 cat >>conftest.$ac_ext <<_ACEOF
34041 /* end confdefs.h.  */
34042 #include <sys/types.h>
34043 #include <time.h>
34044
34045 int
34046 main ()
34047 {
34048 struct tm tm;
34049                                      int *p = &tm.tm_sec;
34050                                      return !p;
34051   ;
34052   return 0;
34053 }
34054 _ACEOF
34055 rm -f conftest.$ac_objext
34056 if { (ac_try="$ac_compile"
34057 case "(($ac_try" in
34058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34059   *) ac_try_echo=$ac_try;;
34060 esac
34061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34062   (eval "$ac_compile") 2>conftest.er1
34063   ac_status=$?
34064   grep -v '^ *+' conftest.er1 >conftest.err
34065   rm -f conftest.er1
34066   cat conftest.err >&5
34067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); } && {
34069          test -z "$ac_c_werror_flag" ||
34070          test ! -s conftest.err
34071        } && test -s conftest.$ac_objext; then
34072   ac_cv_struct_tm=time.h
34073 else
34074   echo "$as_me: failed program was:" >&5
34075 sed 's/^/| /' conftest.$ac_ext >&5
34076
34077         ac_cv_struct_tm=sys/time.h
34078 fi
34079
34080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34081 fi
34082 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34083 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34084 if test $ac_cv_struct_tm = sys/time.h; then
34085
34086 cat >>confdefs.h <<\_ACEOF
34087 #define TM_IN_SYS_TIME 1
34088 _ACEOF
34089
34090 fi
34091
34092 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34093 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34094 if test "${ac_cv_c_const+set}" = set; then
34095   echo $ECHO_N "(cached) $ECHO_C" >&6
34096 else
34097   cat >conftest.$ac_ext <<_ACEOF
34098 /* confdefs.h.  */
34099 _ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h.  */
34103
34104 int
34105 main ()
34106 {
34107 /* FIXME: Include the comments suggested by Paul. */
34108 #ifndef __cplusplus
34109   /* Ultrix mips cc rejects this.  */
34110   typedef int charset[2];
34111   const charset cs;
34112   /* SunOS 4.1.1 cc rejects this.  */
34113   char const *const *pcpcc;
34114   char **ppc;
34115   /* NEC SVR4.0.2 mips cc rejects this.  */
34116   struct point {int x, y;};
34117   static struct point const zero = {0,0};
34118   /* AIX XL C 1.02.0.0 rejects this.
34119      It does not let you subtract one const X* pointer from another in
34120      an arm of an if-expression whose if-part is not a constant
34121      expression */
34122   const char *g = "string";
34123   pcpcc = &g + (g ? g-g : 0);
34124   /* HPUX 7.0 cc rejects these. */
34125   ++pcpcc;
34126   ppc = (char**) pcpcc;
34127   pcpcc = (char const *const *) ppc;
34128   { /* SCO 3.2v4 cc rejects this.  */
34129     char *t;
34130     char const *s = 0 ? (char *) 0 : (char const *) 0;
34131
34132     *t++ = 0;
34133     if (s) return 0;
34134   }
34135   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34136     int x[] = {25, 17};
34137     const int *foo = &x[0];
34138     ++foo;
34139   }
34140   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34141     typedef const int *iptr;
34142     iptr p = 0;
34143     ++p;
34144   }
34145   { /* AIX XL C 1.02.0.0 rejects this saying
34146        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34147     struct s { int j; const int *ap[3]; };
34148     struct s *b; b->j = 5;
34149   }
34150   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34151     const int foo = 10;
34152     if (!foo) return 0;
34153   }
34154   return !cs[0] && !zero.x;
34155 #endif
34156
34157   ;
34158   return 0;
34159 }
34160 _ACEOF
34161 rm -f conftest.$ac_objext
34162 if { (ac_try="$ac_compile"
34163 case "(($ac_try" in
34164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165   *) ac_try_echo=$ac_try;;
34166 esac
34167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34168   (eval "$ac_compile") 2>conftest.er1
34169   ac_status=$?
34170   grep -v '^ *+' conftest.er1 >conftest.err
34171   rm -f conftest.er1
34172   cat conftest.err >&5
34173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174   (exit $ac_status); } && {
34175          test -z "$ac_c_werror_flag" ||
34176          test ! -s conftest.err
34177        } && test -s conftest.$ac_objext; then
34178   ac_cv_c_const=yes
34179 else
34180   echo "$as_me: failed program was:" >&5
34181 sed 's/^/| /' conftest.$ac_ext >&5
34182
34183         ac_cv_c_const=no
34184 fi
34185
34186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34187 fi
34188 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34189 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34190 if test $ac_cv_c_const = no; then
34191
34192 cat >>confdefs.h <<\_ACEOF
34193 #define const
34194 _ACEOF
34195
34196 fi
34197
34198
34199 { echo "$as_me:$LINENO: checking for char" >&5
34200 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34201 if test "${ac_cv_type_char+set}" = set; then
34202   echo $ECHO_N "(cached) $ECHO_C" >&6
34203 else
34204   cat >conftest.$ac_ext <<_ACEOF
34205 /* confdefs.h.  */
34206 _ACEOF
34207 cat confdefs.h >>conftest.$ac_ext
34208 cat >>conftest.$ac_ext <<_ACEOF
34209 /* end confdefs.h.  */
34210 $ac_includes_default
34211 typedef char ac__type_new_;
34212 int
34213 main ()
34214 {
34215 if ((ac__type_new_ *) 0)
34216   return 0;
34217 if (sizeof (ac__type_new_))
34218   return 0;
34219   ;
34220   return 0;
34221 }
34222 _ACEOF
34223 rm -f conftest.$ac_objext
34224 if { (ac_try="$ac_compile"
34225 case "(($ac_try" in
34226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34227   *) ac_try_echo=$ac_try;;
34228 esac
34229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34230   (eval "$ac_compile") 2>conftest.er1
34231   ac_status=$?
34232   grep -v '^ *+' conftest.er1 >conftest.err
34233   rm -f conftest.er1
34234   cat conftest.err >&5
34235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236   (exit $ac_status); } && {
34237          test -z "$ac_c_werror_flag" ||
34238          test ! -s conftest.err
34239        } && test -s conftest.$ac_objext; then
34240   ac_cv_type_char=yes
34241 else
34242   echo "$as_me: failed program was:" >&5
34243 sed 's/^/| /' conftest.$ac_ext >&5
34244
34245         ac_cv_type_char=no
34246 fi
34247
34248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34249 fi
34250 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34251 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34252
34253 # The cast to long int works around a bug in the HP C Compiler
34254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34256 # This bug is HP SR number 8606223364.
34257 { echo "$as_me:$LINENO: checking size of char" >&5
34258 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34259 if test "${ac_cv_sizeof_char+set}" = set; then
34260   echo $ECHO_N "(cached) $ECHO_C" >&6
34261 else
34262   if test "$cross_compiling" = yes; then
34263   # Depending upon the size, compute the lo and hi bounds.
34264 cat >conftest.$ac_ext <<_ACEOF
34265 /* confdefs.h.  */
34266 _ACEOF
34267 cat confdefs.h >>conftest.$ac_ext
34268 cat >>conftest.$ac_ext <<_ACEOF
34269 /* end confdefs.h.  */
34270 $ac_includes_default
34271    typedef char ac__type_sizeof_;
34272 int
34273 main ()
34274 {
34275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34276 test_array [0] = 0
34277
34278   ;
34279   return 0;
34280 }
34281 _ACEOF
34282 rm -f conftest.$ac_objext
34283 if { (ac_try="$ac_compile"
34284 case "(($ac_try" in
34285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34286   *) ac_try_echo=$ac_try;;
34287 esac
34288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34289   (eval "$ac_compile") 2>conftest.er1
34290   ac_status=$?
34291   grep -v '^ *+' conftest.er1 >conftest.err
34292   rm -f conftest.er1
34293   cat conftest.err >&5
34294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295   (exit $ac_status); } && {
34296          test -z "$ac_c_werror_flag" ||
34297          test ! -s conftest.err
34298        } && test -s conftest.$ac_objext; then
34299   ac_lo=0 ac_mid=0
34300   while :; do
34301     cat >conftest.$ac_ext <<_ACEOF
34302 /* confdefs.h.  */
34303 _ACEOF
34304 cat confdefs.h >>conftest.$ac_ext
34305 cat >>conftest.$ac_ext <<_ACEOF
34306 /* end confdefs.h.  */
34307 $ac_includes_default
34308    typedef char ac__type_sizeof_;
34309 int
34310 main ()
34311 {
34312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34313 test_array [0] = 0
34314
34315   ;
34316   return 0;
34317 }
34318 _ACEOF
34319 rm -f conftest.$ac_objext
34320 if { (ac_try="$ac_compile"
34321 case "(($ac_try" in
34322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34323   *) ac_try_echo=$ac_try;;
34324 esac
34325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34326   (eval "$ac_compile") 2>conftest.er1
34327   ac_status=$?
34328   grep -v '^ *+' conftest.er1 >conftest.err
34329   rm -f conftest.er1
34330   cat conftest.err >&5
34331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332   (exit $ac_status); } && {
34333          test -z "$ac_c_werror_flag" ||
34334          test ! -s conftest.err
34335        } && test -s conftest.$ac_objext; then
34336   ac_hi=$ac_mid; break
34337 else
34338   echo "$as_me: failed program was:" >&5
34339 sed 's/^/| /' conftest.$ac_ext >&5
34340
34341         ac_lo=`expr $ac_mid + 1`
34342                         if test $ac_lo -le $ac_mid; then
34343                           ac_lo= ac_hi=
34344                           break
34345                         fi
34346                         ac_mid=`expr 2 '*' $ac_mid + 1`
34347 fi
34348
34349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34350   done
34351 else
34352   echo "$as_me: failed program was:" >&5
34353 sed 's/^/| /' conftest.$ac_ext >&5
34354
34355         cat >conftest.$ac_ext <<_ACEOF
34356 /* confdefs.h.  */
34357 _ACEOF
34358 cat confdefs.h >>conftest.$ac_ext
34359 cat >>conftest.$ac_ext <<_ACEOF
34360 /* end confdefs.h.  */
34361 $ac_includes_default
34362    typedef char ac__type_sizeof_;
34363 int
34364 main ()
34365 {
34366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34367 test_array [0] = 0
34368
34369   ;
34370   return 0;
34371 }
34372 _ACEOF
34373 rm -f conftest.$ac_objext
34374 if { (ac_try="$ac_compile"
34375 case "(($ac_try" in
34376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377   *) ac_try_echo=$ac_try;;
34378 esac
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380   (eval "$ac_compile") 2>conftest.er1
34381   ac_status=$?
34382   grep -v '^ *+' conftest.er1 >conftest.err
34383   rm -f conftest.er1
34384   cat conftest.err >&5
34385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386   (exit $ac_status); } && {
34387          test -z "$ac_c_werror_flag" ||
34388          test ! -s conftest.err
34389        } && test -s conftest.$ac_objext; then
34390   ac_hi=-1 ac_mid=-1
34391   while :; do
34392     cat >conftest.$ac_ext <<_ACEOF
34393 /* confdefs.h.  */
34394 _ACEOF
34395 cat confdefs.h >>conftest.$ac_ext
34396 cat >>conftest.$ac_ext <<_ACEOF
34397 /* end confdefs.h.  */
34398 $ac_includes_default
34399    typedef char ac__type_sizeof_;
34400 int
34401 main ()
34402 {
34403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34404 test_array [0] = 0
34405
34406   ;
34407   return 0;
34408 }
34409 _ACEOF
34410 rm -f conftest.$ac_objext
34411 if { (ac_try="$ac_compile"
34412 case "(($ac_try" in
34413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34414   *) ac_try_echo=$ac_try;;
34415 esac
34416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34417   (eval "$ac_compile") 2>conftest.er1
34418   ac_status=$?
34419   grep -v '^ *+' conftest.er1 >conftest.err
34420   rm -f conftest.er1
34421   cat conftest.err >&5
34422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423   (exit $ac_status); } && {
34424          test -z "$ac_c_werror_flag" ||
34425          test ! -s conftest.err
34426        } && test -s conftest.$ac_objext; then
34427   ac_lo=$ac_mid; break
34428 else
34429   echo "$as_me: failed program was:" >&5
34430 sed 's/^/| /' conftest.$ac_ext >&5
34431
34432         ac_hi=`expr '(' $ac_mid ')' - 1`
34433                         if test $ac_mid -le $ac_hi; then
34434                           ac_lo= ac_hi=
34435                           break
34436                         fi
34437                         ac_mid=`expr 2 '*' $ac_mid`
34438 fi
34439
34440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34441   done
34442 else
34443   echo "$as_me: failed program was:" >&5
34444 sed 's/^/| /' conftest.$ac_ext >&5
34445
34446         ac_lo= ac_hi=
34447 fi
34448
34449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34450 fi
34451
34452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34453 # Binary search between lo and hi bounds.
34454 while test "x$ac_lo" != "x$ac_hi"; do
34455   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34456   cat >conftest.$ac_ext <<_ACEOF
34457 /* confdefs.h.  */
34458 _ACEOF
34459 cat confdefs.h >>conftest.$ac_ext
34460 cat >>conftest.$ac_ext <<_ACEOF
34461 /* end confdefs.h.  */
34462 $ac_includes_default
34463    typedef char ac__type_sizeof_;
34464 int
34465 main ()
34466 {
34467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34468 test_array [0] = 0
34469
34470   ;
34471   return 0;
34472 }
34473 _ACEOF
34474 rm -f conftest.$ac_objext
34475 if { (ac_try="$ac_compile"
34476 case "(($ac_try" in
34477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34478   *) ac_try_echo=$ac_try;;
34479 esac
34480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34481   (eval "$ac_compile") 2>conftest.er1
34482   ac_status=$?
34483   grep -v '^ *+' conftest.er1 >conftest.err
34484   rm -f conftest.er1
34485   cat conftest.err >&5
34486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487   (exit $ac_status); } && {
34488          test -z "$ac_c_werror_flag" ||
34489          test ! -s conftest.err
34490        } && test -s conftest.$ac_objext; then
34491   ac_hi=$ac_mid
34492 else
34493   echo "$as_me: failed program was:" >&5
34494 sed 's/^/| /' conftest.$ac_ext >&5
34495
34496         ac_lo=`expr '(' $ac_mid ')' + 1`
34497 fi
34498
34499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34500 done
34501 case $ac_lo in
34502 ?*) ac_cv_sizeof_char=$ac_lo;;
34503 '') if test "$ac_cv_type_char" = yes; then
34504      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34505 See \`config.log' for more details." >&5
34506 echo "$as_me: error: cannot compute sizeof (char)
34507 See \`config.log' for more details." >&2;}
34508    { (exit 77); exit 77; }; }
34509    else
34510      ac_cv_sizeof_char=0
34511    fi ;;
34512 esac
34513 else
34514   cat >conftest.$ac_ext <<_ACEOF
34515 /* confdefs.h.  */
34516 _ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h.  */
34520 $ac_includes_default
34521    typedef char ac__type_sizeof_;
34522 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34523 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34524 #include <stdio.h>
34525 #include <stdlib.h>
34526 int
34527 main ()
34528 {
34529
34530   FILE *f = fopen ("conftest.val", "w");
34531   if (! f)
34532     return 1;
34533   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34534     {
34535       long int i = longval ();
34536       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34537         return 1;
34538       fprintf (f, "%ld\n", i);
34539     }
34540   else
34541     {
34542       unsigned long int i = ulongval ();
34543       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34544         return 1;
34545       fprintf (f, "%lu\n", i);
34546     }
34547   return ferror (f) || fclose (f) != 0;
34548
34549   ;
34550   return 0;
34551 }
34552 _ACEOF
34553 rm -f conftest$ac_exeext
34554 if { (ac_try="$ac_link"
34555 case "(($ac_try" in
34556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34557   *) ac_try_echo=$ac_try;;
34558 esac
34559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34560   (eval "$ac_link") 2>&5
34561   ac_status=$?
34562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34564   { (case "(($ac_try" in
34565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34566   *) ac_try_echo=$ac_try;;
34567 esac
34568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34569   (eval "$ac_try") 2>&5
34570   ac_status=$?
34571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572   (exit $ac_status); }; }; then
34573   ac_cv_sizeof_char=`cat conftest.val`
34574 else
34575   echo "$as_me: program exited with status $ac_status" >&5
34576 echo "$as_me: failed program was:" >&5
34577 sed 's/^/| /' conftest.$ac_ext >&5
34578
34579 ( exit $ac_status )
34580 if test "$ac_cv_type_char" = yes; then
34581      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34582 See \`config.log' for more details." >&5
34583 echo "$as_me: error: cannot compute sizeof (char)
34584 See \`config.log' for more details." >&2;}
34585    { (exit 77); exit 77; }; }
34586    else
34587      ac_cv_sizeof_char=0
34588    fi
34589 fi
34590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34591 fi
34592 rm -f conftest.val
34593 fi
34594 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34595 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34596
34597
34598
34599 cat >>confdefs.h <<_ACEOF
34600 #define SIZEOF_CHAR $ac_cv_sizeof_char
34601 _ACEOF
34602
34603
34604 { echo "$as_me:$LINENO: checking for short int" >&5
34605 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34606 if test "${ac_cv_type_short_int+set}" = set; then
34607   echo $ECHO_N "(cached) $ECHO_C" >&6
34608 else
34609   cat >conftest.$ac_ext <<_ACEOF
34610 /* confdefs.h.  */
34611 _ACEOF
34612 cat confdefs.h >>conftest.$ac_ext
34613 cat >>conftest.$ac_ext <<_ACEOF
34614 /* end confdefs.h.  */
34615 $ac_includes_default
34616 typedef short int ac__type_new_;
34617 int
34618 main ()
34619 {
34620 if ((ac__type_new_ *) 0)
34621   return 0;
34622 if (sizeof (ac__type_new_))
34623   return 0;
34624   ;
34625   return 0;
34626 }
34627 _ACEOF
34628 rm -f conftest.$ac_objext
34629 if { (ac_try="$ac_compile"
34630 case "(($ac_try" in
34631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34632   *) ac_try_echo=$ac_try;;
34633 esac
34634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34635   (eval "$ac_compile") 2>conftest.er1
34636   ac_status=$?
34637   grep -v '^ *+' conftest.er1 >conftest.err
34638   rm -f conftest.er1
34639   cat conftest.err >&5
34640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641   (exit $ac_status); } && {
34642          test -z "$ac_c_werror_flag" ||
34643          test ! -s conftest.err
34644        } && test -s conftest.$ac_objext; then
34645   ac_cv_type_short_int=yes
34646 else
34647   echo "$as_me: failed program was:" >&5
34648 sed 's/^/| /' conftest.$ac_ext >&5
34649
34650         ac_cv_type_short_int=no
34651 fi
34652
34653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34654 fi
34655 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34656 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34657
34658 # The cast to long int works around a bug in the HP C Compiler
34659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34661 # This bug is HP SR number 8606223364.
34662 { echo "$as_me:$LINENO: checking size of short int" >&5
34663 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34664 if test "${ac_cv_sizeof_short_int+set}" = set; then
34665   echo $ECHO_N "(cached) $ECHO_C" >&6
34666 else
34667   if test "$cross_compiling" = yes; then
34668   # Depending upon the size, compute the lo and hi bounds.
34669 cat >conftest.$ac_ext <<_ACEOF
34670 /* confdefs.h.  */
34671 _ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h.  */
34675 $ac_includes_default
34676    typedef short int ac__type_sizeof_;
34677 int
34678 main ()
34679 {
34680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34681 test_array [0] = 0
34682
34683   ;
34684   return 0;
34685 }
34686 _ACEOF
34687 rm -f conftest.$ac_objext
34688 if { (ac_try="$ac_compile"
34689 case "(($ac_try" in
34690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34691   *) ac_try_echo=$ac_try;;
34692 esac
34693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34694   (eval "$ac_compile") 2>conftest.er1
34695   ac_status=$?
34696   grep -v '^ *+' conftest.er1 >conftest.err
34697   rm -f conftest.er1
34698   cat conftest.err >&5
34699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700   (exit $ac_status); } && {
34701          test -z "$ac_c_werror_flag" ||
34702          test ! -s conftest.err
34703        } && test -s conftest.$ac_objext; then
34704   ac_lo=0 ac_mid=0
34705   while :; do
34706     cat >conftest.$ac_ext <<_ACEOF
34707 /* confdefs.h.  */
34708 _ACEOF
34709 cat confdefs.h >>conftest.$ac_ext
34710 cat >>conftest.$ac_ext <<_ACEOF
34711 /* end confdefs.h.  */
34712 $ac_includes_default
34713    typedef short int ac__type_sizeof_;
34714 int
34715 main ()
34716 {
34717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34718 test_array [0] = 0
34719
34720   ;
34721   return 0;
34722 }
34723 _ACEOF
34724 rm -f conftest.$ac_objext
34725 if { (ac_try="$ac_compile"
34726 case "(($ac_try" in
34727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34728   *) ac_try_echo=$ac_try;;
34729 esac
34730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34731   (eval "$ac_compile") 2>conftest.er1
34732   ac_status=$?
34733   grep -v '^ *+' conftest.er1 >conftest.err
34734   rm -f conftest.er1
34735   cat conftest.err >&5
34736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737   (exit $ac_status); } && {
34738          test -z "$ac_c_werror_flag" ||
34739          test ! -s conftest.err
34740        } && test -s conftest.$ac_objext; then
34741   ac_hi=$ac_mid; break
34742 else
34743   echo "$as_me: failed program was:" >&5
34744 sed 's/^/| /' conftest.$ac_ext >&5
34745
34746         ac_lo=`expr $ac_mid + 1`
34747                         if test $ac_lo -le $ac_mid; then
34748                           ac_lo= ac_hi=
34749                           break
34750                         fi
34751                         ac_mid=`expr 2 '*' $ac_mid + 1`
34752 fi
34753
34754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34755   done
34756 else
34757   echo "$as_me: failed program was:" >&5
34758 sed 's/^/| /' conftest.$ac_ext >&5
34759
34760         cat >conftest.$ac_ext <<_ACEOF
34761 /* confdefs.h.  */
34762 _ACEOF
34763 cat confdefs.h >>conftest.$ac_ext
34764 cat >>conftest.$ac_ext <<_ACEOF
34765 /* end confdefs.h.  */
34766 $ac_includes_default
34767    typedef short int ac__type_sizeof_;
34768 int
34769 main ()
34770 {
34771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34772 test_array [0] = 0
34773
34774   ;
34775   return 0;
34776 }
34777 _ACEOF
34778 rm -f conftest.$ac_objext
34779 if { (ac_try="$ac_compile"
34780 case "(($ac_try" in
34781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34782   *) ac_try_echo=$ac_try;;
34783 esac
34784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34785   (eval "$ac_compile") 2>conftest.er1
34786   ac_status=$?
34787   grep -v '^ *+' conftest.er1 >conftest.err
34788   rm -f conftest.er1
34789   cat conftest.err >&5
34790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791   (exit $ac_status); } && {
34792          test -z "$ac_c_werror_flag" ||
34793          test ! -s conftest.err
34794        } && test -s conftest.$ac_objext; then
34795   ac_hi=-1 ac_mid=-1
34796   while :; do
34797     cat >conftest.$ac_ext <<_ACEOF
34798 /* confdefs.h.  */
34799 _ACEOF
34800 cat confdefs.h >>conftest.$ac_ext
34801 cat >>conftest.$ac_ext <<_ACEOF
34802 /* end confdefs.h.  */
34803 $ac_includes_default
34804    typedef short int ac__type_sizeof_;
34805 int
34806 main ()
34807 {
34808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34809 test_array [0] = 0
34810
34811   ;
34812   return 0;
34813 }
34814 _ACEOF
34815 rm -f conftest.$ac_objext
34816 if { (ac_try="$ac_compile"
34817 case "(($ac_try" in
34818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34819   *) ac_try_echo=$ac_try;;
34820 esac
34821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34822   (eval "$ac_compile") 2>conftest.er1
34823   ac_status=$?
34824   grep -v '^ *+' conftest.er1 >conftest.err
34825   rm -f conftest.er1
34826   cat conftest.err >&5
34827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34828   (exit $ac_status); } && {
34829          test -z "$ac_c_werror_flag" ||
34830          test ! -s conftest.err
34831        } && test -s conftest.$ac_objext; then
34832   ac_lo=$ac_mid; break
34833 else
34834   echo "$as_me: failed program was:" >&5
34835 sed 's/^/| /' conftest.$ac_ext >&5
34836
34837         ac_hi=`expr '(' $ac_mid ')' - 1`
34838                         if test $ac_mid -le $ac_hi; then
34839                           ac_lo= ac_hi=
34840                           break
34841                         fi
34842                         ac_mid=`expr 2 '*' $ac_mid`
34843 fi
34844
34845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34846   done
34847 else
34848   echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34850
34851         ac_lo= ac_hi=
34852 fi
34853
34854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34855 fi
34856
34857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34858 # Binary search between lo and hi bounds.
34859 while test "x$ac_lo" != "x$ac_hi"; do
34860   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34861   cat >conftest.$ac_ext <<_ACEOF
34862 /* confdefs.h.  */
34863 _ACEOF
34864 cat confdefs.h >>conftest.$ac_ext
34865 cat >>conftest.$ac_ext <<_ACEOF
34866 /* end confdefs.h.  */
34867 $ac_includes_default
34868    typedef short int ac__type_sizeof_;
34869 int
34870 main ()
34871 {
34872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34873 test_array [0] = 0
34874
34875   ;
34876   return 0;
34877 }
34878 _ACEOF
34879 rm -f conftest.$ac_objext
34880 if { (ac_try="$ac_compile"
34881 case "(($ac_try" in
34882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34883   *) ac_try_echo=$ac_try;;
34884 esac
34885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34886   (eval "$ac_compile") 2>conftest.er1
34887   ac_status=$?
34888   grep -v '^ *+' conftest.er1 >conftest.err
34889   rm -f conftest.er1
34890   cat conftest.err >&5
34891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892   (exit $ac_status); } && {
34893          test -z "$ac_c_werror_flag" ||
34894          test ! -s conftest.err
34895        } && test -s conftest.$ac_objext; then
34896   ac_hi=$ac_mid
34897 else
34898   echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34900
34901         ac_lo=`expr '(' $ac_mid ')' + 1`
34902 fi
34903
34904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34905 done
34906 case $ac_lo in
34907 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34908 '') if test "$ac_cv_type_short_int" = yes; then
34909      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34910 See \`config.log' for more details." >&5
34911 echo "$as_me: error: cannot compute sizeof (short int)
34912 See \`config.log' for more details." >&2;}
34913    { (exit 77); exit 77; }; }
34914    else
34915      ac_cv_sizeof_short_int=0
34916    fi ;;
34917 esac
34918 else
34919   cat >conftest.$ac_ext <<_ACEOF
34920 /* confdefs.h.  */
34921 _ACEOF
34922 cat confdefs.h >>conftest.$ac_ext
34923 cat >>conftest.$ac_ext <<_ACEOF
34924 /* end confdefs.h.  */
34925 $ac_includes_default
34926    typedef short int ac__type_sizeof_;
34927 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34928 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34929 #include <stdio.h>
34930 #include <stdlib.h>
34931 int
34932 main ()
34933 {
34934
34935   FILE *f = fopen ("conftest.val", "w");
34936   if (! f)
34937     return 1;
34938   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34939     {
34940       long int i = longval ();
34941       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34942         return 1;
34943       fprintf (f, "%ld\n", i);
34944     }
34945   else
34946     {
34947       unsigned long int i = ulongval ();
34948       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34949         return 1;
34950       fprintf (f, "%lu\n", i);
34951     }
34952   return ferror (f) || fclose (f) != 0;
34953
34954   ;
34955   return 0;
34956 }
34957 _ACEOF
34958 rm -f conftest$ac_exeext
34959 if { (ac_try="$ac_link"
34960 case "(($ac_try" in
34961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34962   *) ac_try_echo=$ac_try;;
34963 esac
34964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965   (eval "$ac_link") 2>&5
34966   ac_status=$?
34967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34969   { (case "(($ac_try" in
34970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34971   *) ac_try_echo=$ac_try;;
34972 esac
34973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34974   (eval "$ac_try") 2>&5
34975   ac_status=$?
34976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977   (exit $ac_status); }; }; then
34978   ac_cv_sizeof_short_int=`cat conftest.val`
34979 else
34980   echo "$as_me: program exited with status $ac_status" >&5
34981 echo "$as_me: failed program was:" >&5
34982 sed 's/^/| /' conftest.$ac_ext >&5
34983
34984 ( exit $ac_status )
34985 if test "$ac_cv_type_short_int" = yes; then
34986      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34987 See \`config.log' for more details." >&5
34988 echo "$as_me: error: cannot compute sizeof (short int)
34989 See \`config.log' for more details." >&2;}
34990    { (exit 77); exit 77; }; }
34991    else
34992      ac_cv_sizeof_short_int=0
34993    fi
34994 fi
34995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34996 fi
34997 rm -f conftest.val
34998 fi
34999 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35000 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35001
35002
35003
35004 cat >>confdefs.h <<_ACEOF
35005 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35006 _ACEOF
35007
35008
35009 { echo "$as_me:$LINENO: checking for int" >&5
35010 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35011 if test "${ac_cv_type_int+set}" = set; then
35012   echo $ECHO_N "(cached) $ECHO_C" >&6
35013 else
35014   cat >conftest.$ac_ext <<_ACEOF
35015 /* confdefs.h.  */
35016 _ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h.  */
35020 $ac_includes_default
35021 typedef int ac__type_new_;
35022 int
35023 main ()
35024 {
35025 if ((ac__type_new_ *) 0)
35026   return 0;
35027 if (sizeof (ac__type_new_))
35028   return 0;
35029   ;
35030   return 0;
35031 }
35032 _ACEOF
35033 rm -f conftest.$ac_objext
35034 if { (ac_try="$ac_compile"
35035 case "(($ac_try" in
35036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35037   *) ac_try_echo=$ac_try;;
35038 esac
35039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35040   (eval "$ac_compile") 2>conftest.er1
35041   ac_status=$?
35042   grep -v '^ *+' conftest.er1 >conftest.err
35043   rm -f conftest.er1
35044   cat conftest.err >&5
35045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046   (exit $ac_status); } && {
35047          test -z "$ac_c_werror_flag" ||
35048          test ! -s conftest.err
35049        } && test -s conftest.$ac_objext; then
35050   ac_cv_type_int=yes
35051 else
35052   echo "$as_me: failed program was:" >&5
35053 sed 's/^/| /' conftest.$ac_ext >&5
35054
35055         ac_cv_type_int=no
35056 fi
35057
35058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35059 fi
35060 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35061 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35062
35063 # The cast to long int works around a bug in the HP C Compiler
35064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35066 # This bug is HP SR number 8606223364.
35067 { echo "$as_me:$LINENO: checking size of int" >&5
35068 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35069 if test "${ac_cv_sizeof_int+set}" = set; then
35070   echo $ECHO_N "(cached) $ECHO_C" >&6
35071 else
35072   if test "$cross_compiling" = yes; then
35073   # Depending upon the size, compute the lo and hi bounds.
35074 cat >conftest.$ac_ext <<_ACEOF
35075 /* confdefs.h.  */
35076 _ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h.  */
35080 $ac_includes_default
35081    typedef int ac__type_sizeof_;
35082 int
35083 main ()
35084 {
35085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35086 test_array [0] = 0
35087
35088   ;
35089   return 0;
35090 }
35091 _ACEOF
35092 rm -f conftest.$ac_objext
35093 if { (ac_try="$ac_compile"
35094 case "(($ac_try" in
35095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35096   *) ac_try_echo=$ac_try;;
35097 esac
35098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35099   (eval "$ac_compile") 2>conftest.er1
35100   ac_status=$?
35101   grep -v '^ *+' conftest.er1 >conftest.err
35102   rm -f conftest.er1
35103   cat conftest.err >&5
35104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105   (exit $ac_status); } && {
35106          test -z "$ac_c_werror_flag" ||
35107          test ! -s conftest.err
35108        } && test -s conftest.$ac_objext; then
35109   ac_lo=0 ac_mid=0
35110   while :; do
35111     cat >conftest.$ac_ext <<_ACEOF
35112 /* confdefs.h.  */
35113 _ACEOF
35114 cat confdefs.h >>conftest.$ac_ext
35115 cat >>conftest.$ac_ext <<_ACEOF
35116 /* end confdefs.h.  */
35117 $ac_includes_default
35118    typedef int ac__type_sizeof_;
35119 int
35120 main ()
35121 {
35122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35123 test_array [0] = 0
35124
35125   ;
35126   return 0;
35127 }
35128 _ACEOF
35129 rm -f conftest.$ac_objext
35130 if { (ac_try="$ac_compile"
35131 case "(($ac_try" in
35132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35133   *) ac_try_echo=$ac_try;;
35134 esac
35135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35136   (eval "$ac_compile") 2>conftest.er1
35137   ac_status=$?
35138   grep -v '^ *+' conftest.er1 >conftest.err
35139   rm -f conftest.er1
35140   cat conftest.err >&5
35141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142   (exit $ac_status); } && {
35143          test -z "$ac_c_werror_flag" ||
35144          test ! -s conftest.err
35145        } && test -s conftest.$ac_objext; then
35146   ac_hi=$ac_mid; break
35147 else
35148   echo "$as_me: failed program was:" >&5
35149 sed 's/^/| /' conftest.$ac_ext >&5
35150
35151         ac_lo=`expr $ac_mid + 1`
35152                         if test $ac_lo -le $ac_mid; then
35153                           ac_lo= ac_hi=
35154                           break
35155                         fi
35156                         ac_mid=`expr 2 '*' $ac_mid + 1`
35157 fi
35158
35159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35160   done
35161 else
35162   echo "$as_me: failed program was:" >&5
35163 sed 's/^/| /' conftest.$ac_ext >&5
35164
35165         cat >conftest.$ac_ext <<_ACEOF
35166 /* confdefs.h.  */
35167 _ACEOF
35168 cat confdefs.h >>conftest.$ac_ext
35169 cat >>conftest.$ac_ext <<_ACEOF
35170 /* end confdefs.h.  */
35171 $ac_includes_default
35172    typedef int ac__type_sizeof_;
35173 int
35174 main ()
35175 {
35176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35177 test_array [0] = 0
35178
35179   ;
35180   return 0;
35181 }
35182 _ACEOF
35183 rm -f conftest.$ac_objext
35184 if { (ac_try="$ac_compile"
35185 case "(($ac_try" in
35186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35187   *) ac_try_echo=$ac_try;;
35188 esac
35189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35190   (eval "$ac_compile") 2>conftest.er1
35191   ac_status=$?
35192   grep -v '^ *+' conftest.er1 >conftest.err
35193   rm -f conftest.er1
35194   cat conftest.err >&5
35195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196   (exit $ac_status); } && {
35197          test -z "$ac_c_werror_flag" ||
35198          test ! -s conftest.err
35199        } && test -s conftest.$ac_objext; then
35200   ac_hi=-1 ac_mid=-1
35201   while :; do
35202     cat >conftest.$ac_ext <<_ACEOF
35203 /* confdefs.h.  */
35204 _ACEOF
35205 cat confdefs.h >>conftest.$ac_ext
35206 cat >>conftest.$ac_ext <<_ACEOF
35207 /* end confdefs.h.  */
35208 $ac_includes_default
35209    typedef int ac__type_sizeof_;
35210 int
35211 main ()
35212 {
35213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35214 test_array [0] = 0
35215
35216   ;
35217   return 0;
35218 }
35219 _ACEOF
35220 rm -f conftest.$ac_objext
35221 if { (ac_try="$ac_compile"
35222 case "(($ac_try" in
35223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35224   *) ac_try_echo=$ac_try;;
35225 esac
35226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35227   (eval "$ac_compile") 2>conftest.er1
35228   ac_status=$?
35229   grep -v '^ *+' conftest.er1 >conftest.err
35230   rm -f conftest.er1
35231   cat conftest.err >&5
35232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35233   (exit $ac_status); } && {
35234          test -z "$ac_c_werror_flag" ||
35235          test ! -s conftest.err
35236        } && test -s conftest.$ac_objext; then
35237   ac_lo=$ac_mid; break
35238 else
35239   echo "$as_me: failed program was:" >&5
35240 sed 's/^/| /' conftest.$ac_ext >&5
35241
35242         ac_hi=`expr '(' $ac_mid ')' - 1`
35243                         if test $ac_mid -le $ac_hi; then
35244                           ac_lo= ac_hi=
35245                           break
35246                         fi
35247                         ac_mid=`expr 2 '*' $ac_mid`
35248 fi
35249
35250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35251   done
35252 else
35253   echo "$as_me: failed program was:" >&5
35254 sed 's/^/| /' conftest.$ac_ext >&5
35255
35256         ac_lo= ac_hi=
35257 fi
35258
35259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35260 fi
35261
35262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35263 # Binary search between lo and hi bounds.
35264 while test "x$ac_lo" != "x$ac_hi"; do
35265   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35266   cat >conftest.$ac_ext <<_ACEOF
35267 /* confdefs.h.  */
35268 _ACEOF
35269 cat confdefs.h >>conftest.$ac_ext
35270 cat >>conftest.$ac_ext <<_ACEOF
35271 /* end confdefs.h.  */
35272 $ac_includes_default
35273    typedef int ac__type_sizeof_;
35274 int
35275 main ()
35276 {
35277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35278 test_array [0] = 0
35279
35280   ;
35281   return 0;
35282 }
35283 _ACEOF
35284 rm -f conftest.$ac_objext
35285 if { (ac_try="$ac_compile"
35286 case "(($ac_try" in
35287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35288   *) ac_try_echo=$ac_try;;
35289 esac
35290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35291   (eval "$ac_compile") 2>conftest.er1
35292   ac_status=$?
35293   grep -v '^ *+' conftest.er1 >conftest.err
35294   rm -f conftest.er1
35295   cat conftest.err >&5
35296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297   (exit $ac_status); } && {
35298          test -z "$ac_c_werror_flag" ||
35299          test ! -s conftest.err
35300        } && test -s conftest.$ac_objext; then
35301   ac_hi=$ac_mid
35302 else
35303   echo "$as_me: failed program was:" >&5
35304 sed 's/^/| /' conftest.$ac_ext >&5
35305
35306         ac_lo=`expr '(' $ac_mid ')' + 1`
35307 fi
35308
35309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35310 done
35311 case $ac_lo in
35312 ?*) ac_cv_sizeof_int=$ac_lo;;
35313 '') if test "$ac_cv_type_int" = yes; then
35314      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35315 See \`config.log' for more details." >&5
35316 echo "$as_me: error: cannot compute sizeof (int)
35317 See \`config.log' for more details." >&2;}
35318    { (exit 77); exit 77; }; }
35319    else
35320      ac_cv_sizeof_int=0
35321    fi ;;
35322 esac
35323 else
35324   cat >conftest.$ac_ext <<_ACEOF
35325 /* confdefs.h.  */
35326 _ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h.  */
35330 $ac_includes_default
35331    typedef int ac__type_sizeof_;
35332 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35333 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35334 #include <stdio.h>
35335 #include <stdlib.h>
35336 int
35337 main ()
35338 {
35339
35340   FILE *f = fopen ("conftest.val", "w");
35341   if (! f)
35342     return 1;
35343   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35344     {
35345       long int i = longval ();
35346       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35347         return 1;
35348       fprintf (f, "%ld\n", i);
35349     }
35350   else
35351     {
35352       unsigned long int i = ulongval ();
35353       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35354         return 1;
35355       fprintf (f, "%lu\n", i);
35356     }
35357   return ferror (f) || fclose (f) != 0;
35358
35359   ;
35360   return 0;
35361 }
35362 _ACEOF
35363 rm -f conftest$ac_exeext
35364 if { (ac_try="$ac_link"
35365 case "(($ac_try" in
35366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35367   *) ac_try_echo=$ac_try;;
35368 esac
35369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35370   (eval "$ac_link") 2>&5
35371   ac_status=$?
35372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35374   { (case "(($ac_try" in
35375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35376   *) ac_try_echo=$ac_try;;
35377 esac
35378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35379   (eval "$ac_try") 2>&5
35380   ac_status=$?
35381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382   (exit $ac_status); }; }; then
35383   ac_cv_sizeof_int=`cat conftest.val`
35384 else
35385   echo "$as_me: program exited with status $ac_status" >&5
35386 echo "$as_me: failed program was:" >&5
35387 sed 's/^/| /' conftest.$ac_ext >&5
35388
35389 ( exit $ac_status )
35390 if test "$ac_cv_type_int" = yes; then
35391      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35392 See \`config.log' for more details." >&5
35393 echo "$as_me: error: cannot compute sizeof (int)
35394 See \`config.log' for more details." >&2;}
35395    { (exit 77); exit 77; }; }
35396    else
35397      ac_cv_sizeof_int=0
35398    fi
35399 fi
35400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35401 fi
35402 rm -f conftest.val
35403 fi
35404 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35405 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35406
35407
35408
35409 cat >>confdefs.h <<_ACEOF
35410 #define SIZEOF_INT $ac_cv_sizeof_int
35411 _ACEOF
35412
35413
35414 { echo "$as_me:$LINENO: checking for long int" >&5
35415 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35416 if test "${ac_cv_type_long_int+set}" = set; then
35417   echo $ECHO_N "(cached) $ECHO_C" >&6
35418 else
35419   cat >conftest.$ac_ext <<_ACEOF
35420 /* confdefs.h.  */
35421 _ACEOF
35422 cat confdefs.h >>conftest.$ac_ext
35423 cat >>conftest.$ac_ext <<_ACEOF
35424 /* end confdefs.h.  */
35425 $ac_includes_default
35426 typedef long int ac__type_new_;
35427 int
35428 main ()
35429 {
35430 if ((ac__type_new_ *) 0)
35431   return 0;
35432 if (sizeof (ac__type_new_))
35433   return 0;
35434   ;
35435   return 0;
35436 }
35437 _ACEOF
35438 rm -f conftest.$ac_objext
35439 if { (ac_try="$ac_compile"
35440 case "(($ac_try" in
35441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35442   *) ac_try_echo=$ac_try;;
35443 esac
35444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35445   (eval "$ac_compile") 2>conftest.er1
35446   ac_status=$?
35447   grep -v '^ *+' conftest.er1 >conftest.err
35448   rm -f conftest.er1
35449   cat conftest.err >&5
35450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451   (exit $ac_status); } && {
35452          test -z "$ac_c_werror_flag" ||
35453          test ! -s conftest.err
35454        } && test -s conftest.$ac_objext; then
35455   ac_cv_type_long_int=yes
35456 else
35457   echo "$as_me: failed program was:" >&5
35458 sed 's/^/| /' conftest.$ac_ext >&5
35459
35460         ac_cv_type_long_int=no
35461 fi
35462
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35464 fi
35465 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35466 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35467
35468 # The cast to long int works around a bug in the HP C Compiler
35469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35471 # This bug is HP SR number 8606223364.
35472 { echo "$as_me:$LINENO: checking size of long int" >&5
35473 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35474 if test "${ac_cv_sizeof_long_int+set}" = set; then
35475   echo $ECHO_N "(cached) $ECHO_C" >&6
35476 else
35477   if test "$cross_compiling" = yes; then
35478   # Depending upon the size, compute the lo and hi bounds.
35479 cat >conftest.$ac_ext <<_ACEOF
35480 /* confdefs.h.  */
35481 _ACEOF
35482 cat confdefs.h >>conftest.$ac_ext
35483 cat >>conftest.$ac_ext <<_ACEOF
35484 /* end confdefs.h.  */
35485 $ac_includes_default
35486    typedef long int ac__type_sizeof_;
35487 int
35488 main ()
35489 {
35490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35491 test_array [0] = 0
35492
35493   ;
35494   return 0;
35495 }
35496 _ACEOF
35497 rm -f conftest.$ac_objext
35498 if { (ac_try="$ac_compile"
35499 case "(($ac_try" in
35500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35501   *) ac_try_echo=$ac_try;;
35502 esac
35503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35504   (eval "$ac_compile") 2>conftest.er1
35505   ac_status=$?
35506   grep -v '^ *+' conftest.er1 >conftest.err
35507   rm -f conftest.er1
35508   cat conftest.err >&5
35509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510   (exit $ac_status); } && {
35511          test -z "$ac_c_werror_flag" ||
35512          test ! -s conftest.err
35513        } && test -s conftest.$ac_objext; then
35514   ac_lo=0 ac_mid=0
35515   while :; do
35516     cat >conftest.$ac_ext <<_ACEOF
35517 /* confdefs.h.  */
35518 _ACEOF
35519 cat confdefs.h >>conftest.$ac_ext
35520 cat >>conftest.$ac_ext <<_ACEOF
35521 /* end confdefs.h.  */
35522 $ac_includes_default
35523    typedef long int ac__type_sizeof_;
35524 int
35525 main ()
35526 {
35527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35528 test_array [0] = 0
35529
35530   ;
35531   return 0;
35532 }
35533 _ACEOF
35534 rm -f conftest.$ac_objext
35535 if { (ac_try="$ac_compile"
35536 case "(($ac_try" in
35537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35538   *) ac_try_echo=$ac_try;;
35539 esac
35540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35541   (eval "$ac_compile") 2>conftest.er1
35542   ac_status=$?
35543   grep -v '^ *+' conftest.er1 >conftest.err
35544   rm -f conftest.er1
35545   cat conftest.err >&5
35546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547   (exit $ac_status); } && {
35548          test -z "$ac_c_werror_flag" ||
35549          test ! -s conftest.err
35550        } && test -s conftest.$ac_objext; then
35551   ac_hi=$ac_mid; break
35552 else
35553   echo "$as_me: failed program was:" >&5
35554 sed 's/^/| /' conftest.$ac_ext >&5
35555
35556         ac_lo=`expr $ac_mid + 1`
35557                         if test $ac_lo -le $ac_mid; then
35558                           ac_lo= ac_hi=
35559                           break
35560                         fi
35561                         ac_mid=`expr 2 '*' $ac_mid + 1`
35562 fi
35563
35564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35565   done
35566 else
35567   echo "$as_me: failed program was:" >&5
35568 sed 's/^/| /' conftest.$ac_ext >&5
35569
35570         cat >conftest.$ac_ext <<_ACEOF
35571 /* confdefs.h.  */
35572 _ACEOF
35573 cat confdefs.h >>conftest.$ac_ext
35574 cat >>conftest.$ac_ext <<_ACEOF
35575 /* end confdefs.h.  */
35576 $ac_includes_default
35577    typedef long int ac__type_sizeof_;
35578 int
35579 main ()
35580 {
35581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35582 test_array [0] = 0
35583
35584   ;
35585   return 0;
35586 }
35587 _ACEOF
35588 rm -f conftest.$ac_objext
35589 if { (ac_try="$ac_compile"
35590 case "(($ac_try" in
35591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35592   *) ac_try_echo=$ac_try;;
35593 esac
35594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35595   (eval "$ac_compile") 2>conftest.er1
35596   ac_status=$?
35597   grep -v '^ *+' conftest.er1 >conftest.err
35598   rm -f conftest.er1
35599   cat conftest.err >&5
35600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601   (exit $ac_status); } && {
35602          test -z "$ac_c_werror_flag" ||
35603          test ! -s conftest.err
35604        } && test -s conftest.$ac_objext; then
35605   ac_hi=-1 ac_mid=-1
35606   while :; do
35607     cat >conftest.$ac_ext <<_ACEOF
35608 /* confdefs.h.  */
35609 _ACEOF
35610 cat confdefs.h >>conftest.$ac_ext
35611 cat >>conftest.$ac_ext <<_ACEOF
35612 /* end confdefs.h.  */
35613 $ac_includes_default
35614    typedef long int ac__type_sizeof_;
35615 int
35616 main ()
35617 {
35618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35619 test_array [0] = 0
35620
35621   ;
35622   return 0;
35623 }
35624 _ACEOF
35625 rm -f conftest.$ac_objext
35626 if { (ac_try="$ac_compile"
35627 case "(($ac_try" in
35628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35629   *) ac_try_echo=$ac_try;;
35630 esac
35631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35632   (eval "$ac_compile") 2>conftest.er1
35633   ac_status=$?
35634   grep -v '^ *+' conftest.er1 >conftest.err
35635   rm -f conftest.er1
35636   cat conftest.err >&5
35637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638   (exit $ac_status); } && {
35639          test -z "$ac_c_werror_flag" ||
35640          test ! -s conftest.err
35641        } && test -s conftest.$ac_objext; then
35642   ac_lo=$ac_mid; break
35643 else
35644   echo "$as_me: failed program was:" >&5
35645 sed 's/^/| /' conftest.$ac_ext >&5
35646
35647         ac_hi=`expr '(' $ac_mid ')' - 1`
35648                         if test $ac_mid -le $ac_hi; then
35649                           ac_lo= ac_hi=
35650                           break
35651                         fi
35652                         ac_mid=`expr 2 '*' $ac_mid`
35653 fi
35654
35655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35656   done
35657 else
35658   echo "$as_me: failed program was:" >&5
35659 sed 's/^/| /' conftest.$ac_ext >&5
35660
35661         ac_lo= ac_hi=
35662 fi
35663
35664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35665 fi
35666
35667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35668 # Binary search between lo and hi bounds.
35669 while test "x$ac_lo" != "x$ac_hi"; do
35670   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35671   cat >conftest.$ac_ext <<_ACEOF
35672 /* confdefs.h.  */
35673 _ACEOF
35674 cat confdefs.h >>conftest.$ac_ext
35675 cat >>conftest.$ac_ext <<_ACEOF
35676 /* end confdefs.h.  */
35677 $ac_includes_default
35678    typedef long int ac__type_sizeof_;
35679 int
35680 main ()
35681 {
35682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35683 test_array [0] = 0
35684
35685   ;
35686   return 0;
35687 }
35688 _ACEOF
35689 rm -f conftest.$ac_objext
35690 if { (ac_try="$ac_compile"
35691 case "(($ac_try" in
35692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35693   *) ac_try_echo=$ac_try;;
35694 esac
35695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35696   (eval "$ac_compile") 2>conftest.er1
35697   ac_status=$?
35698   grep -v '^ *+' conftest.er1 >conftest.err
35699   rm -f conftest.er1
35700   cat conftest.err >&5
35701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35702   (exit $ac_status); } && {
35703          test -z "$ac_c_werror_flag" ||
35704          test ! -s conftest.err
35705        } && test -s conftest.$ac_objext; then
35706   ac_hi=$ac_mid
35707 else
35708   echo "$as_me: failed program was:" >&5
35709 sed 's/^/| /' conftest.$ac_ext >&5
35710
35711         ac_lo=`expr '(' $ac_mid ')' + 1`
35712 fi
35713
35714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35715 done
35716 case $ac_lo in
35717 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35718 '') if test "$ac_cv_type_long_int" = yes; then
35719      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35720 See \`config.log' for more details." >&5
35721 echo "$as_me: error: cannot compute sizeof (long int)
35722 See \`config.log' for more details." >&2;}
35723    { (exit 77); exit 77; }; }
35724    else
35725      ac_cv_sizeof_long_int=0
35726    fi ;;
35727 esac
35728 else
35729   cat >conftest.$ac_ext <<_ACEOF
35730 /* confdefs.h.  */
35731 _ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h.  */
35735 $ac_includes_default
35736    typedef long int ac__type_sizeof_;
35737 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35738 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35739 #include <stdio.h>
35740 #include <stdlib.h>
35741 int
35742 main ()
35743 {
35744
35745   FILE *f = fopen ("conftest.val", "w");
35746   if (! f)
35747     return 1;
35748   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35749     {
35750       long int i = longval ();
35751       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35752         return 1;
35753       fprintf (f, "%ld\n", i);
35754     }
35755   else
35756     {
35757       unsigned long int i = ulongval ();
35758       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35759         return 1;
35760       fprintf (f, "%lu\n", i);
35761     }
35762   return ferror (f) || fclose (f) != 0;
35763
35764   ;
35765   return 0;
35766 }
35767 _ACEOF
35768 rm -f conftest$ac_exeext
35769 if { (ac_try="$ac_link"
35770 case "(($ac_try" in
35771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35772   *) ac_try_echo=$ac_try;;
35773 esac
35774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35775   (eval "$ac_link") 2>&5
35776   ac_status=$?
35777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35779   { (case "(($ac_try" in
35780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35781   *) ac_try_echo=$ac_try;;
35782 esac
35783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35784   (eval "$ac_try") 2>&5
35785   ac_status=$?
35786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787   (exit $ac_status); }; }; then
35788   ac_cv_sizeof_long_int=`cat conftest.val`
35789 else
35790   echo "$as_me: program exited with status $ac_status" >&5
35791 echo "$as_me: failed program was:" >&5
35792 sed 's/^/| /' conftest.$ac_ext >&5
35793
35794 ( exit $ac_status )
35795 if test "$ac_cv_type_long_int" = yes; then
35796      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35797 See \`config.log' for more details." >&5
35798 echo "$as_me: error: cannot compute sizeof (long int)
35799 See \`config.log' for more details." >&2;}
35800    { (exit 77); exit 77; }; }
35801    else
35802      ac_cv_sizeof_long_int=0
35803    fi
35804 fi
35805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35806 fi
35807 rm -f conftest.val
35808 fi
35809 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35810 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35811
35812
35813
35814 cat >>confdefs.h <<_ACEOF
35815 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35816 _ACEOF
35817
35818
35819 { echo "$as_me:$LINENO: checking for long long int" >&5
35820 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35821 if test "${ac_cv_type_long_long_int+set}" = set; then
35822   echo $ECHO_N "(cached) $ECHO_C" >&6
35823 else
35824   cat >conftest.$ac_ext <<_ACEOF
35825 /* confdefs.h.  */
35826 _ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h.  */
35830 $ac_includes_default
35831 typedef long long int ac__type_new_;
35832 int
35833 main ()
35834 {
35835 if ((ac__type_new_ *) 0)
35836   return 0;
35837 if (sizeof (ac__type_new_))
35838   return 0;
35839   ;
35840   return 0;
35841 }
35842 _ACEOF
35843 rm -f conftest.$ac_objext
35844 if { (ac_try="$ac_compile"
35845 case "(($ac_try" in
35846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35847   *) ac_try_echo=$ac_try;;
35848 esac
35849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35850   (eval "$ac_compile") 2>conftest.er1
35851   ac_status=$?
35852   grep -v '^ *+' conftest.er1 >conftest.err
35853   rm -f conftest.er1
35854   cat conftest.err >&5
35855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856   (exit $ac_status); } && {
35857          test -z "$ac_c_werror_flag" ||
35858          test ! -s conftest.err
35859        } && test -s conftest.$ac_objext; then
35860   ac_cv_type_long_long_int=yes
35861 else
35862   echo "$as_me: failed program was:" >&5
35863 sed 's/^/| /' conftest.$ac_ext >&5
35864
35865         ac_cv_type_long_long_int=no
35866 fi
35867
35868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35869 fi
35870 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35871 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35872
35873 # The cast to long int works around a bug in the HP C Compiler
35874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35876 # This bug is HP SR number 8606223364.
35877 { echo "$as_me:$LINENO: checking size of long long int" >&5
35878 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35879 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35880   echo $ECHO_N "(cached) $ECHO_C" >&6
35881 else
35882   if test "$cross_compiling" = yes; then
35883   # Depending upon the size, compute the lo and hi bounds.
35884 cat >conftest.$ac_ext <<_ACEOF
35885 /* confdefs.h.  */
35886 _ACEOF
35887 cat confdefs.h >>conftest.$ac_ext
35888 cat >>conftest.$ac_ext <<_ACEOF
35889 /* end confdefs.h.  */
35890 $ac_includes_default
35891    typedef long long int ac__type_sizeof_;
35892 int
35893 main ()
35894 {
35895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35896 test_array [0] = 0
35897
35898   ;
35899   return 0;
35900 }
35901 _ACEOF
35902 rm -f conftest.$ac_objext
35903 if { (ac_try="$ac_compile"
35904 case "(($ac_try" in
35905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35906   *) ac_try_echo=$ac_try;;
35907 esac
35908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35909   (eval "$ac_compile") 2>conftest.er1
35910   ac_status=$?
35911   grep -v '^ *+' conftest.er1 >conftest.err
35912   rm -f conftest.er1
35913   cat conftest.err >&5
35914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915   (exit $ac_status); } && {
35916          test -z "$ac_c_werror_flag" ||
35917          test ! -s conftest.err
35918        } && test -s conftest.$ac_objext; then
35919   ac_lo=0 ac_mid=0
35920   while :; do
35921     cat >conftest.$ac_ext <<_ACEOF
35922 /* confdefs.h.  */
35923 _ACEOF
35924 cat confdefs.h >>conftest.$ac_ext
35925 cat >>conftest.$ac_ext <<_ACEOF
35926 /* end confdefs.h.  */
35927 $ac_includes_default
35928    typedef long long int ac__type_sizeof_;
35929 int
35930 main ()
35931 {
35932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35933 test_array [0] = 0
35934
35935   ;
35936   return 0;
35937 }
35938 _ACEOF
35939 rm -f conftest.$ac_objext
35940 if { (ac_try="$ac_compile"
35941 case "(($ac_try" in
35942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35943   *) ac_try_echo=$ac_try;;
35944 esac
35945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35946   (eval "$ac_compile") 2>conftest.er1
35947   ac_status=$?
35948   grep -v '^ *+' conftest.er1 >conftest.err
35949   rm -f conftest.er1
35950   cat conftest.err >&5
35951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952   (exit $ac_status); } && {
35953          test -z "$ac_c_werror_flag" ||
35954          test ! -s conftest.err
35955        } && test -s conftest.$ac_objext; then
35956   ac_hi=$ac_mid; break
35957 else
35958   echo "$as_me: failed program was:" >&5
35959 sed 's/^/| /' conftest.$ac_ext >&5
35960
35961         ac_lo=`expr $ac_mid + 1`
35962                         if test $ac_lo -le $ac_mid; then
35963                           ac_lo= ac_hi=
35964                           break
35965                         fi
35966                         ac_mid=`expr 2 '*' $ac_mid + 1`
35967 fi
35968
35969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35970   done
35971 else
35972   echo "$as_me: failed program was:" >&5
35973 sed 's/^/| /' conftest.$ac_ext >&5
35974
35975         cat >conftest.$ac_ext <<_ACEOF
35976 /* confdefs.h.  */
35977 _ACEOF
35978 cat confdefs.h >>conftest.$ac_ext
35979 cat >>conftest.$ac_ext <<_ACEOF
35980 /* end confdefs.h.  */
35981 $ac_includes_default
35982    typedef long long int ac__type_sizeof_;
35983 int
35984 main ()
35985 {
35986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35987 test_array [0] = 0
35988
35989   ;
35990   return 0;
35991 }
35992 _ACEOF
35993 rm -f conftest.$ac_objext
35994 if { (ac_try="$ac_compile"
35995 case "(($ac_try" in
35996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35997   *) ac_try_echo=$ac_try;;
35998 esac
35999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36000   (eval "$ac_compile") 2>conftest.er1
36001   ac_status=$?
36002   grep -v '^ *+' conftest.er1 >conftest.err
36003   rm -f conftest.er1
36004   cat conftest.err >&5
36005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006   (exit $ac_status); } && {
36007          test -z "$ac_c_werror_flag" ||
36008          test ! -s conftest.err
36009        } && test -s conftest.$ac_objext; then
36010   ac_hi=-1 ac_mid=-1
36011   while :; do
36012     cat >conftest.$ac_ext <<_ACEOF
36013 /* confdefs.h.  */
36014 _ACEOF
36015 cat confdefs.h >>conftest.$ac_ext
36016 cat >>conftest.$ac_ext <<_ACEOF
36017 /* end confdefs.h.  */
36018 $ac_includes_default
36019    typedef long long int ac__type_sizeof_;
36020 int
36021 main ()
36022 {
36023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36024 test_array [0] = 0
36025
36026   ;
36027   return 0;
36028 }
36029 _ACEOF
36030 rm -f conftest.$ac_objext
36031 if { (ac_try="$ac_compile"
36032 case "(($ac_try" in
36033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36034   *) ac_try_echo=$ac_try;;
36035 esac
36036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36037   (eval "$ac_compile") 2>conftest.er1
36038   ac_status=$?
36039   grep -v '^ *+' conftest.er1 >conftest.err
36040   rm -f conftest.er1
36041   cat conftest.err >&5
36042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043   (exit $ac_status); } && {
36044          test -z "$ac_c_werror_flag" ||
36045          test ! -s conftest.err
36046        } && test -s conftest.$ac_objext; then
36047   ac_lo=$ac_mid; break
36048 else
36049   echo "$as_me: failed program was:" >&5
36050 sed 's/^/| /' conftest.$ac_ext >&5
36051
36052         ac_hi=`expr '(' $ac_mid ')' - 1`
36053                         if test $ac_mid -le $ac_hi; then
36054                           ac_lo= ac_hi=
36055                           break
36056                         fi
36057                         ac_mid=`expr 2 '*' $ac_mid`
36058 fi
36059
36060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36061   done
36062 else
36063   echo "$as_me: failed program was:" >&5
36064 sed 's/^/| /' conftest.$ac_ext >&5
36065
36066         ac_lo= ac_hi=
36067 fi
36068
36069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36070 fi
36071
36072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36073 # Binary search between lo and hi bounds.
36074 while test "x$ac_lo" != "x$ac_hi"; do
36075   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36076   cat >conftest.$ac_ext <<_ACEOF
36077 /* confdefs.h.  */
36078 _ACEOF
36079 cat confdefs.h >>conftest.$ac_ext
36080 cat >>conftest.$ac_ext <<_ACEOF
36081 /* end confdefs.h.  */
36082 $ac_includes_default
36083    typedef long long int ac__type_sizeof_;
36084 int
36085 main ()
36086 {
36087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36088 test_array [0] = 0
36089
36090   ;
36091   return 0;
36092 }
36093 _ACEOF
36094 rm -f conftest.$ac_objext
36095 if { (ac_try="$ac_compile"
36096 case "(($ac_try" in
36097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36098   *) ac_try_echo=$ac_try;;
36099 esac
36100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36101   (eval "$ac_compile") 2>conftest.er1
36102   ac_status=$?
36103   grep -v '^ *+' conftest.er1 >conftest.err
36104   rm -f conftest.er1
36105   cat conftest.err >&5
36106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107   (exit $ac_status); } && {
36108          test -z "$ac_c_werror_flag" ||
36109          test ! -s conftest.err
36110        } && test -s conftest.$ac_objext; then
36111   ac_hi=$ac_mid
36112 else
36113   echo "$as_me: failed program was:" >&5
36114 sed 's/^/| /' conftest.$ac_ext >&5
36115
36116         ac_lo=`expr '(' $ac_mid ')' + 1`
36117 fi
36118
36119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36120 done
36121 case $ac_lo in
36122 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36123 '') if test "$ac_cv_type_long_long_int" = yes; then
36124      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36125 See \`config.log' for more details." >&5
36126 echo "$as_me: error: cannot compute sizeof (long long int)
36127 See \`config.log' for more details." >&2;}
36128    { (exit 77); exit 77; }; }
36129    else
36130      ac_cv_sizeof_long_long_int=0
36131    fi ;;
36132 esac
36133 else
36134   cat >conftest.$ac_ext <<_ACEOF
36135 /* confdefs.h.  */
36136 _ACEOF
36137 cat confdefs.h >>conftest.$ac_ext
36138 cat >>conftest.$ac_ext <<_ACEOF
36139 /* end confdefs.h.  */
36140 $ac_includes_default
36141    typedef long long int ac__type_sizeof_;
36142 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36143 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36144 #include <stdio.h>
36145 #include <stdlib.h>
36146 int
36147 main ()
36148 {
36149
36150   FILE *f = fopen ("conftest.val", "w");
36151   if (! f)
36152     return 1;
36153   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36154     {
36155       long int i = longval ();
36156       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36157         return 1;
36158       fprintf (f, "%ld\n", i);
36159     }
36160   else
36161     {
36162       unsigned long int i = ulongval ();
36163       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36164         return 1;
36165       fprintf (f, "%lu\n", i);
36166     }
36167   return ferror (f) || fclose (f) != 0;
36168
36169   ;
36170   return 0;
36171 }
36172 _ACEOF
36173 rm -f conftest$ac_exeext
36174 if { (ac_try="$ac_link"
36175 case "(($ac_try" in
36176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36177   *) ac_try_echo=$ac_try;;
36178 esac
36179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36180   (eval "$ac_link") 2>&5
36181   ac_status=$?
36182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36184   { (case "(($ac_try" in
36185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36186   *) ac_try_echo=$ac_try;;
36187 esac
36188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36189   (eval "$ac_try") 2>&5
36190   ac_status=$?
36191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192   (exit $ac_status); }; }; then
36193   ac_cv_sizeof_long_long_int=`cat conftest.val`
36194 else
36195   echo "$as_me: program exited with status $ac_status" >&5
36196 echo "$as_me: failed program was:" >&5
36197 sed 's/^/| /' conftest.$ac_ext >&5
36198
36199 ( exit $ac_status )
36200 if test "$ac_cv_type_long_long_int" = yes; then
36201      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36202 See \`config.log' for more details." >&5
36203 echo "$as_me: error: cannot compute sizeof (long long int)
36204 See \`config.log' for more details." >&2;}
36205    { (exit 77); exit 77; }; }
36206    else
36207      ac_cv_sizeof_long_long_int=0
36208    fi
36209 fi
36210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36211 fi
36212 rm -f conftest.val
36213 fi
36214 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36215 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36216
36217
36218
36219 cat >>confdefs.h <<_ACEOF
36220 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36221 _ACEOF
36222
36223
36224 { echo "$as_me:$LINENO: checking for int *" >&5
36225 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36226 if test "${ac_cv_type_int_p+set}" = set; then
36227   echo $ECHO_N "(cached) $ECHO_C" >&6
36228 else
36229   cat >conftest.$ac_ext <<_ACEOF
36230 /* confdefs.h.  */
36231 _ACEOF
36232 cat confdefs.h >>conftest.$ac_ext
36233 cat >>conftest.$ac_ext <<_ACEOF
36234 /* end confdefs.h.  */
36235 $ac_includes_default
36236 typedef int * ac__type_new_;
36237 int
36238 main ()
36239 {
36240 if ((ac__type_new_ *) 0)
36241   return 0;
36242 if (sizeof (ac__type_new_))
36243   return 0;
36244   ;
36245   return 0;
36246 }
36247 _ACEOF
36248 rm -f conftest.$ac_objext
36249 if { (ac_try="$ac_compile"
36250 case "(($ac_try" in
36251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36252   *) ac_try_echo=$ac_try;;
36253 esac
36254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36255   (eval "$ac_compile") 2>conftest.er1
36256   ac_status=$?
36257   grep -v '^ *+' conftest.er1 >conftest.err
36258   rm -f conftest.er1
36259   cat conftest.err >&5
36260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261   (exit $ac_status); } && {
36262          test -z "$ac_c_werror_flag" ||
36263          test ! -s conftest.err
36264        } && test -s conftest.$ac_objext; then
36265   ac_cv_type_int_p=yes
36266 else
36267   echo "$as_me: failed program was:" >&5
36268 sed 's/^/| /' conftest.$ac_ext >&5
36269
36270         ac_cv_type_int_p=no
36271 fi
36272
36273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36274 fi
36275 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36276 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36277
36278 # The cast to long int works around a bug in the HP C Compiler
36279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36281 # This bug is HP SR number 8606223364.
36282 { echo "$as_me:$LINENO: checking size of int *" >&5
36283 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36284 if test "${ac_cv_sizeof_int_p+set}" = set; then
36285   echo $ECHO_N "(cached) $ECHO_C" >&6
36286 else
36287   if test "$cross_compiling" = yes; then
36288   # Depending upon the size, compute the lo and hi bounds.
36289 cat >conftest.$ac_ext <<_ACEOF
36290 /* confdefs.h.  */
36291 _ACEOF
36292 cat confdefs.h >>conftest.$ac_ext
36293 cat >>conftest.$ac_ext <<_ACEOF
36294 /* end confdefs.h.  */
36295 $ac_includes_default
36296    typedef int * ac__type_sizeof_;
36297 int
36298 main ()
36299 {
36300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36301 test_array [0] = 0
36302
36303   ;
36304   return 0;
36305 }
36306 _ACEOF
36307 rm -f conftest.$ac_objext
36308 if { (ac_try="$ac_compile"
36309 case "(($ac_try" in
36310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36311   *) ac_try_echo=$ac_try;;
36312 esac
36313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36314   (eval "$ac_compile") 2>conftest.er1
36315   ac_status=$?
36316   grep -v '^ *+' conftest.er1 >conftest.err
36317   rm -f conftest.er1
36318   cat conftest.err >&5
36319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320   (exit $ac_status); } && {
36321          test -z "$ac_c_werror_flag" ||
36322          test ! -s conftest.err
36323        } && test -s conftest.$ac_objext; then
36324   ac_lo=0 ac_mid=0
36325   while :; do
36326     cat >conftest.$ac_ext <<_ACEOF
36327 /* confdefs.h.  */
36328 _ACEOF
36329 cat confdefs.h >>conftest.$ac_ext
36330 cat >>conftest.$ac_ext <<_ACEOF
36331 /* end confdefs.h.  */
36332 $ac_includes_default
36333    typedef int * ac__type_sizeof_;
36334 int
36335 main ()
36336 {
36337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36338 test_array [0] = 0
36339
36340   ;
36341   return 0;
36342 }
36343 _ACEOF
36344 rm -f conftest.$ac_objext
36345 if { (ac_try="$ac_compile"
36346 case "(($ac_try" in
36347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36348   *) ac_try_echo=$ac_try;;
36349 esac
36350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36351   (eval "$ac_compile") 2>conftest.er1
36352   ac_status=$?
36353   grep -v '^ *+' conftest.er1 >conftest.err
36354   rm -f conftest.er1
36355   cat conftest.err >&5
36356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36357   (exit $ac_status); } && {
36358          test -z "$ac_c_werror_flag" ||
36359          test ! -s conftest.err
36360        } && test -s conftest.$ac_objext; then
36361   ac_hi=$ac_mid; break
36362 else
36363   echo "$as_me: failed program was:" >&5
36364 sed 's/^/| /' conftest.$ac_ext >&5
36365
36366         ac_lo=`expr $ac_mid + 1`
36367                         if test $ac_lo -le $ac_mid; then
36368                           ac_lo= ac_hi=
36369                           break
36370                         fi
36371                         ac_mid=`expr 2 '*' $ac_mid + 1`
36372 fi
36373
36374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36375   done
36376 else
36377   echo "$as_me: failed program was:" >&5
36378 sed 's/^/| /' conftest.$ac_ext >&5
36379
36380         cat >conftest.$ac_ext <<_ACEOF
36381 /* confdefs.h.  */
36382 _ACEOF
36383 cat confdefs.h >>conftest.$ac_ext
36384 cat >>conftest.$ac_ext <<_ACEOF
36385 /* end confdefs.h.  */
36386 $ac_includes_default
36387    typedef int * ac__type_sizeof_;
36388 int
36389 main ()
36390 {
36391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36392 test_array [0] = 0
36393
36394   ;
36395   return 0;
36396 }
36397 _ACEOF
36398 rm -f conftest.$ac_objext
36399 if { (ac_try="$ac_compile"
36400 case "(($ac_try" in
36401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36402   *) ac_try_echo=$ac_try;;
36403 esac
36404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36405   (eval "$ac_compile") 2>conftest.er1
36406   ac_status=$?
36407   grep -v '^ *+' conftest.er1 >conftest.err
36408   rm -f conftest.er1
36409   cat conftest.err >&5
36410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411   (exit $ac_status); } && {
36412          test -z "$ac_c_werror_flag" ||
36413          test ! -s conftest.err
36414        } && test -s conftest.$ac_objext; then
36415   ac_hi=-1 ac_mid=-1
36416   while :; do
36417     cat >conftest.$ac_ext <<_ACEOF
36418 /* confdefs.h.  */
36419 _ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h.  */
36423 $ac_includes_default
36424    typedef int * ac__type_sizeof_;
36425 int
36426 main ()
36427 {
36428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36429 test_array [0] = 0
36430
36431   ;
36432   return 0;
36433 }
36434 _ACEOF
36435 rm -f conftest.$ac_objext
36436 if { (ac_try="$ac_compile"
36437 case "(($ac_try" in
36438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36439   *) ac_try_echo=$ac_try;;
36440 esac
36441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36442   (eval "$ac_compile") 2>conftest.er1
36443   ac_status=$?
36444   grep -v '^ *+' conftest.er1 >conftest.err
36445   rm -f conftest.er1
36446   cat conftest.err >&5
36447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448   (exit $ac_status); } && {
36449          test -z "$ac_c_werror_flag" ||
36450          test ! -s conftest.err
36451        } && test -s conftest.$ac_objext; then
36452   ac_lo=$ac_mid; break
36453 else
36454   echo "$as_me: failed program was:" >&5
36455 sed 's/^/| /' conftest.$ac_ext >&5
36456
36457         ac_hi=`expr '(' $ac_mid ')' - 1`
36458                         if test $ac_mid -le $ac_hi; then
36459                           ac_lo= ac_hi=
36460                           break
36461                         fi
36462                         ac_mid=`expr 2 '*' $ac_mid`
36463 fi
36464
36465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36466   done
36467 else
36468   echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36470
36471         ac_lo= ac_hi=
36472 fi
36473
36474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36475 fi
36476
36477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36478 # Binary search between lo and hi bounds.
36479 while test "x$ac_lo" != "x$ac_hi"; do
36480   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36481   cat >conftest.$ac_ext <<_ACEOF
36482 /* confdefs.h.  */
36483 _ACEOF
36484 cat confdefs.h >>conftest.$ac_ext
36485 cat >>conftest.$ac_ext <<_ACEOF
36486 /* end confdefs.h.  */
36487 $ac_includes_default
36488    typedef int * ac__type_sizeof_;
36489 int
36490 main ()
36491 {
36492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36493 test_array [0] = 0
36494
36495   ;
36496   return 0;
36497 }
36498 _ACEOF
36499 rm -f conftest.$ac_objext
36500 if { (ac_try="$ac_compile"
36501 case "(($ac_try" in
36502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36503   *) ac_try_echo=$ac_try;;
36504 esac
36505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36506   (eval "$ac_compile") 2>conftest.er1
36507   ac_status=$?
36508   grep -v '^ *+' conftest.er1 >conftest.err
36509   rm -f conftest.er1
36510   cat conftest.err >&5
36511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512   (exit $ac_status); } && {
36513          test -z "$ac_c_werror_flag" ||
36514          test ! -s conftest.err
36515        } && test -s conftest.$ac_objext; then
36516   ac_hi=$ac_mid
36517 else
36518   echo "$as_me: failed program was:" >&5
36519 sed 's/^/| /' conftest.$ac_ext >&5
36520
36521         ac_lo=`expr '(' $ac_mid ')' + 1`
36522 fi
36523
36524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36525 done
36526 case $ac_lo in
36527 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36528 '') if test "$ac_cv_type_int_p" = yes; then
36529      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36530 See \`config.log' for more details." >&5
36531 echo "$as_me: error: cannot compute sizeof (int *)
36532 See \`config.log' for more details." >&2;}
36533    { (exit 77); exit 77; }; }
36534    else
36535      ac_cv_sizeof_int_p=0
36536    fi ;;
36537 esac
36538 else
36539   cat >conftest.$ac_ext <<_ACEOF
36540 /* confdefs.h.  */
36541 _ACEOF
36542 cat confdefs.h >>conftest.$ac_ext
36543 cat >>conftest.$ac_ext <<_ACEOF
36544 /* end confdefs.h.  */
36545 $ac_includes_default
36546    typedef int * ac__type_sizeof_;
36547 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36548 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36549 #include <stdio.h>
36550 #include <stdlib.h>
36551 int
36552 main ()
36553 {
36554
36555   FILE *f = fopen ("conftest.val", "w");
36556   if (! f)
36557     return 1;
36558   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36559     {
36560       long int i = longval ();
36561       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36562         return 1;
36563       fprintf (f, "%ld\n", i);
36564     }
36565   else
36566     {
36567       unsigned long int i = ulongval ();
36568       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36569         return 1;
36570       fprintf (f, "%lu\n", i);
36571     }
36572   return ferror (f) || fclose (f) != 0;
36573
36574   ;
36575   return 0;
36576 }
36577 _ACEOF
36578 rm -f conftest$ac_exeext
36579 if { (ac_try="$ac_link"
36580 case "(($ac_try" in
36581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36582   *) ac_try_echo=$ac_try;;
36583 esac
36584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36585   (eval "$ac_link") 2>&5
36586   ac_status=$?
36587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36589   { (case "(($ac_try" in
36590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36591   *) ac_try_echo=$ac_try;;
36592 esac
36593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36594   (eval "$ac_try") 2>&5
36595   ac_status=$?
36596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597   (exit $ac_status); }; }; then
36598   ac_cv_sizeof_int_p=`cat conftest.val`
36599 else
36600   echo "$as_me: program exited with status $ac_status" >&5
36601 echo "$as_me: failed program was:" >&5
36602 sed 's/^/| /' conftest.$ac_ext >&5
36603
36604 ( exit $ac_status )
36605 if test "$ac_cv_type_int_p" = yes; then
36606      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36607 See \`config.log' for more details." >&5
36608 echo "$as_me: error: cannot compute sizeof (int *)
36609 See \`config.log' for more details." >&2;}
36610    { (exit 77); exit 77; }; }
36611    else
36612      ac_cv_sizeof_int_p=0
36613    fi
36614 fi
36615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36616 fi
36617 rm -f conftest.val
36618 fi
36619 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36620 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36621
36622
36623
36624 cat >>confdefs.h <<_ACEOF
36625 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36626 _ACEOF
36627
36628
36629
36630 { echo "$as_me:$LINENO: checking for u_int type" >&5
36631 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36632 if test "${ac_cv_have_u_int+set}" = set; then
36633   echo $ECHO_N "(cached) $ECHO_C" >&6
36634 else
36635
36636        cat >conftest.$ac_ext <<_ACEOF
36637 /* confdefs.h.  */
36638 _ACEOF
36639 cat confdefs.h >>conftest.$ac_ext
36640 cat >>conftest.$ac_ext <<_ACEOF
36641 /* end confdefs.h.  */
36642
36643               #include <sys/types.h>
36644
36645 int
36646 main ()
36647 {
36648
36649               u_int a; a = 1;
36650
36651   ;
36652   return 0;
36653 }
36654 _ACEOF
36655 rm -f conftest.$ac_objext
36656 if { (ac_try="$ac_compile"
36657 case "(($ac_try" in
36658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36659   *) ac_try_echo=$ac_try;;
36660 esac
36661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36662   (eval "$ac_compile") 2>conftest.er1
36663   ac_status=$?
36664   grep -v '^ *+' conftest.er1 >conftest.err
36665   rm -f conftest.er1
36666   cat conftest.err >&5
36667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668   (exit $ac_status); } && {
36669          test -z "$ac_c_werror_flag" ||
36670          test ! -s conftest.err
36671        } && test -s conftest.$ac_objext; then
36672
36673               ac_cv_have_u_int="yes"
36674
36675 else
36676   echo "$as_me: failed program was:" >&5
36677 sed 's/^/| /' conftest.$ac_ext >&5
36678
36679
36680               ac_cv_have_u_int="no"
36681
36682
36683 fi
36684
36685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36686
36687
36688 fi
36689 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36690 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36691 if test "x$ac_cv_have_u_int" = "xyes" ; then
36692    cat >>confdefs.h <<\_ACEOF
36693 #define HAVE_U_INT 1
36694 _ACEOF
36695
36696    have_u_int=1
36697 fi
36698
36699 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36700 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36701 if test "${ac_cv_have_intmax_t+set}" = set; then
36702   echo $ECHO_N "(cached) $ECHO_C" >&6
36703 else
36704
36705        cat >conftest.$ac_ext <<_ACEOF
36706 /* confdefs.h.  */
36707 _ACEOF
36708 cat confdefs.h >>conftest.$ac_ext
36709 cat >>conftest.$ac_ext <<_ACEOF
36710 /* end confdefs.h.  */
36711
36712               #include <sys/types.h>
36713
36714 int
36715 main ()
36716 {
36717
36718               intmax_t a; a = 1;
36719
36720   ;
36721   return 0;
36722 }
36723 _ACEOF
36724 rm -f conftest.$ac_objext
36725 if { (ac_try="$ac_compile"
36726 case "(($ac_try" in
36727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728   *) ac_try_echo=$ac_try;;
36729 esac
36730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36731   (eval "$ac_compile") 2>conftest.er1
36732   ac_status=$?
36733   grep -v '^ *+' conftest.er1 >conftest.err
36734   rm -f conftest.er1
36735   cat conftest.err >&5
36736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737   (exit $ac_status); } && {
36738          test -z "$ac_c_werror_flag" ||
36739          test ! -s conftest.err
36740        } && test -s conftest.$ac_objext; then
36741
36742               ac_cv_have_intmax_t="yes"
36743
36744 else
36745   echo "$as_me: failed program was:" >&5
36746 sed 's/^/| /' conftest.$ac_ext >&5
36747
36748
36749               cat >conftest.$ac_ext <<_ACEOF
36750 /* confdefs.h.  */
36751 _ACEOF
36752 cat confdefs.h >>conftest.$ac_ext
36753 cat >>conftest.$ac_ext <<_ACEOF
36754 /* end confdefs.h.  */
36755
36756                      #include <stdint.h>
36757
36758 int
36759 main ()
36760 {
36761
36762                      intmax_t a; a = 1;
36763
36764   ;
36765   return 0;
36766 }
36767 _ACEOF
36768 rm -f conftest.$ac_objext
36769 if { (ac_try="$ac_compile"
36770 case "(($ac_try" in
36771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36772   *) ac_try_echo=$ac_try;;
36773 esac
36774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36775   (eval "$ac_compile") 2>conftest.er1
36776   ac_status=$?
36777   grep -v '^ *+' conftest.er1 >conftest.err
36778   rm -f conftest.er1
36779   cat conftest.err >&5
36780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781   (exit $ac_status); } && {
36782          test -z "$ac_c_werror_flag" ||
36783          test ! -s conftest.err
36784        } && test -s conftest.$ac_objext; then
36785
36786                      ac_cv_have_intmax_t="yes"
36787
36788 else
36789   echo "$as_me: failed program was:" >&5
36790 sed 's/^/| /' conftest.$ac_ext >&5
36791
36792
36793                      ac_cv_have_intmax_t="no"
36794
36795
36796 fi
36797
36798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36799
36800
36801 fi
36802
36803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36804
36805
36806 fi
36807 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36808 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36809 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36810    cat >>confdefs.h <<\_ACEOF
36811 #define HAVE_INTMAX_T 1
36812 _ACEOF
36813
36814    have_intmax_t=1
36815 fi
36816
36817 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36818 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36819 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36820   echo $ECHO_N "(cached) $ECHO_C" >&6
36821 else
36822
36823        cat >conftest.$ac_ext <<_ACEOF
36824 /* confdefs.h.  */
36825 _ACEOF
36826 cat confdefs.h >>conftest.$ac_ext
36827 cat >>conftest.$ac_ext <<_ACEOF
36828 /* end confdefs.h.  */
36829
36830               #include <sys/types.h>
36831
36832 int
36833 main ()
36834 {
36835
36836               u_intmax_t a; a = 1;
36837
36838   ;
36839   return 0;
36840 }
36841 _ACEOF
36842 rm -f conftest.$ac_objext
36843 if { (ac_try="$ac_compile"
36844 case "(($ac_try" in
36845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36846   *) ac_try_echo=$ac_try;;
36847 esac
36848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36849   (eval "$ac_compile") 2>conftest.er1
36850   ac_status=$?
36851   grep -v '^ *+' conftest.er1 >conftest.err
36852   rm -f conftest.er1
36853   cat conftest.err >&5
36854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855   (exit $ac_status); } && {
36856          test -z "$ac_c_werror_flag" ||
36857          test ! -s conftest.err
36858        } && test -s conftest.$ac_objext; then
36859
36860               ac_cv_have_u_intmax_t="yes"
36861
36862 else
36863   echo "$as_me: failed program was:" >&5
36864 sed 's/^/| /' conftest.$ac_ext >&5
36865
36866
36867               cat >conftest.$ac_ext <<_ACEOF
36868 /* confdefs.h.  */
36869 _ACEOF
36870 cat confdefs.h >>conftest.$ac_ext
36871 cat >>conftest.$ac_ext <<_ACEOF
36872 /* end confdefs.h.  */
36873
36874                      #include <stdint.h>
36875
36876 int
36877 main ()
36878 {
36879
36880                     u_intmax_t a; a = 1;
36881
36882   ;
36883   return 0;
36884 }
36885 _ACEOF
36886 rm -f conftest.$ac_objext
36887 if { (ac_try="$ac_compile"
36888 case "(($ac_try" in
36889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36890   *) ac_try_echo=$ac_try;;
36891 esac
36892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36893   (eval "$ac_compile") 2>conftest.er1
36894   ac_status=$?
36895   grep -v '^ *+' conftest.er1 >conftest.err
36896   rm -f conftest.er1
36897   cat conftest.err >&5
36898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36899   (exit $ac_status); } && {
36900          test -z "$ac_c_werror_flag" ||
36901          test ! -s conftest.err
36902        } && test -s conftest.$ac_objext; then
36903
36904                     ac_cv_have_u_intmax_t="yes"
36905
36906 else
36907   echo "$as_me: failed program was:" >&5
36908 sed 's/^/| /' conftest.$ac_ext >&5
36909
36910
36911                     ac_cv_have_u_intmax_t="no"
36912
36913
36914 fi
36915
36916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36917
36918
36919 fi
36920
36921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36922
36923
36924 fi
36925 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36926 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36927 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36928    cat >>confdefs.h <<\_ACEOF
36929 #define HAVE_U_INTMAX_T 1
36930 _ACEOF
36931
36932    have_u_intmax_t=1
36933 fi
36934
36935 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36936 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36937 if test "${ac_cv_have_intxx_t+set}" = set; then
36938   echo $ECHO_N "(cached) $ECHO_C" >&6
36939 else
36940
36941        cat >conftest.$ac_ext <<_ACEOF
36942 /* confdefs.h.  */
36943 _ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h.  */
36947
36948               #include <sys/types.h>
36949
36950 int
36951 main ()
36952 {
36953
36954               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36955
36956   ;
36957   return 0;
36958 }
36959 _ACEOF
36960 rm -f conftest.$ac_objext
36961 if { (ac_try="$ac_compile"
36962 case "(($ac_try" in
36963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36964   *) ac_try_echo=$ac_try;;
36965 esac
36966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36967   (eval "$ac_compile") 2>conftest.er1
36968   ac_status=$?
36969   grep -v '^ *+' conftest.er1 >conftest.err
36970   rm -f conftest.er1
36971   cat conftest.err >&5
36972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36973   (exit $ac_status); } && {
36974          test -z "$ac_c_werror_flag" ||
36975          test ! -s conftest.err
36976        } && test -s conftest.$ac_objext; then
36977
36978               ac_cv_have_intxx_t="yes"
36979
36980 else
36981   echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36983
36984
36985               ac_cv_have_intxx_t="no"
36986
36987
36988 fi
36989
36990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36991
36992
36993 fi
36994 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36995 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36996 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36997    cat >>confdefs.h <<\_ACEOF
36998 #define HAVE_INTXX_T 1
36999 _ACEOF
37000
37001    have_intxx_t=1
37002 fi
37003
37004 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37005 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37006 if test "${ac_cv_have_int64_t+set}" = set; then
37007   echo $ECHO_N "(cached) $ECHO_C" >&6
37008 else
37009
37010        cat >conftest.$ac_ext <<_ACEOF
37011 /* confdefs.h.  */
37012 _ACEOF
37013 cat confdefs.h >>conftest.$ac_ext
37014 cat >>conftest.$ac_ext <<_ACEOF
37015 /* end confdefs.h.  */
37016
37017               #include <sys/types.h>
37018
37019 int
37020 main ()
37021 {
37022
37023               int64_t a; a = 1;
37024
37025   ;
37026   return 0;
37027 }
37028 _ACEOF
37029 rm -f conftest.$ac_objext
37030 if { (ac_try="$ac_compile"
37031 case "(($ac_try" in
37032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37033   *) ac_try_echo=$ac_try;;
37034 esac
37035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37036   (eval "$ac_compile") 2>conftest.er1
37037   ac_status=$?
37038   grep -v '^ *+' conftest.er1 >conftest.err
37039   rm -f conftest.er1
37040   cat conftest.err >&5
37041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042   (exit $ac_status); } && {
37043          test -z "$ac_c_werror_flag" ||
37044          test ! -s conftest.err
37045        } && test -s conftest.$ac_objext; then
37046
37047               ac_cv_have_int64_t="yes"
37048
37049 else
37050   echo "$as_me: failed program was:" >&5
37051 sed 's/^/| /' conftest.$ac_ext >&5
37052
37053
37054               ac_cv_have_int64_t="no"
37055
37056
37057 fi
37058
37059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37060
37061
37062 fi
37063 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37064 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37065 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37066    cat >>confdefs.h <<\_ACEOF
37067 #define HAVE_INT64_T 1
37068 _ACEOF
37069
37070    have_int64_t=1
37071 fi
37072
37073 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37074 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37075 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37076   echo $ECHO_N "(cached) $ECHO_C" >&6
37077 else
37078
37079        cat >conftest.$ac_ext <<_ACEOF
37080 /* confdefs.h.  */
37081 _ACEOF
37082 cat confdefs.h >>conftest.$ac_ext
37083 cat >>conftest.$ac_ext <<_ACEOF
37084 /* end confdefs.h.  */
37085
37086               #include <sys/types.h>
37087
37088 int
37089 main ()
37090 {
37091
37092               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37093
37094   ;
37095   return 0;
37096 }
37097 _ACEOF
37098 rm -f conftest.$ac_objext
37099 if { (ac_try="$ac_compile"
37100 case "(($ac_try" in
37101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37102   *) ac_try_echo=$ac_try;;
37103 esac
37104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37105   (eval "$ac_compile") 2>conftest.er1
37106   ac_status=$?
37107   grep -v '^ *+' conftest.er1 >conftest.err
37108   rm -f conftest.er1
37109   cat conftest.err >&5
37110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111   (exit $ac_status); } && {
37112          test -z "$ac_c_werror_flag" ||
37113          test ! -s conftest.err
37114        } && test -s conftest.$ac_objext; then
37115
37116              ac_cv_have_u_intxx_t="yes"
37117
37118 else
37119   echo "$as_me: failed program was:" >&5
37120 sed 's/^/| /' conftest.$ac_ext >&5
37121
37122
37123              ac_cv_have_u_intxx_t="no"
37124
37125
37126 fi
37127
37128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37129
37130
37131 fi
37132 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37133 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37134 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37135    cat >>confdefs.h <<\_ACEOF
37136 #define HAVE_U_INTXX_T 1
37137 _ACEOF
37138
37139    have_u_intxx_t=1
37140 fi
37141
37142 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37143 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37144 if test "${ac_cv_have_u_int64_t+set}" = set; then
37145   echo $ECHO_N "(cached) $ECHO_C" >&6
37146 else
37147
37148        cat >conftest.$ac_ext <<_ACEOF
37149 /* confdefs.h.  */
37150 _ACEOF
37151 cat confdefs.h >>conftest.$ac_ext
37152 cat >>conftest.$ac_ext <<_ACEOF
37153 /* end confdefs.h.  */
37154
37155               #include <sys/types.h>
37156
37157 int
37158 main ()
37159 {
37160
37161               u_int64_t a; a = 1;
37162
37163   ;
37164   return 0;
37165 }
37166 _ACEOF
37167 rm -f conftest.$ac_objext
37168 if { (ac_try="$ac_compile"
37169 case "(($ac_try" in
37170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37171   *) ac_try_echo=$ac_try;;
37172 esac
37173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37174   (eval "$ac_compile") 2>conftest.er1
37175   ac_status=$?
37176   grep -v '^ *+' conftest.er1 >conftest.err
37177   rm -f conftest.er1
37178   cat conftest.err >&5
37179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180   (exit $ac_status); } && {
37181          test -z "$ac_c_werror_flag" ||
37182          test ! -s conftest.err
37183        } && test -s conftest.$ac_objext; then
37184
37185              ac_cv_have_u_int64_t="yes"
37186
37187 else
37188   echo "$as_me: failed program was:" >&5
37189 sed 's/^/| /' conftest.$ac_ext >&5
37190
37191
37192              ac_cv_have_u_int64_t="no"
37193
37194
37195 fi
37196
37197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37198
37199
37200 fi
37201 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37202 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37203 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37204    cat >>confdefs.h <<\_ACEOF
37205 #define HAVE_U_INT64_T 1
37206 _ACEOF
37207
37208    have_u_int64_t=1
37209 fi
37210
37211 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37212     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37213 then
37214    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37215 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37216    cat >conftest.$ac_ext <<_ACEOF
37217 /* confdefs.h.  */
37218 _ACEOF
37219 cat confdefs.h >>conftest.$ac_ext
37220 cat >>conftest.$ac_ext <<_ACEOF
37221 /* end confdefs.h.  */
37222
37223           #include <sys/bitypes.h>
37224
37225 int
37226 main ()
37227 {
37228
37229           int8_t a; int16_t b; int32_t c;
37230           u_int8_t e; u_int16_t f; u_int32_t g;
37231           a = b = c = e = f = g = 1;
37232
37233   ;
37234   return 0;
37235 }
37236 _ACEOF
37237 rm -f conftest.$ac_objext
37238 if { (ac_try="$ac_compile"
37239 case "(($ac_try" in
37240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37241   *) ac_try_echo=$ac_try;;
37242 esac
37243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37244   (eval "$ac_compile") 2>conftest.er1
37245   ac_status=$?
37246   grep -v '^ *+' conftest.er1 >conftest.err
37247   rm -f conftest.er1
37248   cat conftest.err >&5
37249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250   (exit $ac_status); } && {
37251          test -z "$ac_c_werror_flag" ||
37252          test ! -s conftest.err
37253        } && test -s conftest.$ac_objext; then
37254
37255           cat >>confdefs.h <<\_ACEOF
37256 #define HAVE_U_INTXX_T 1
37257 _ACEOF
37258
37259           cat >>confdefs.h <<\_ACEOF
37260 #define HAVE_INTXX_T 1
37261 _ACEOF
37262
37263           cat >>confdefs.h <<\_ACEOF
37264 #define HAVE_SYS_BITYPES_H 1
37265 _ACEOF
37266
37267           { echo "$as_me:$LINENO: result: yes" >&5
37268 echo "${ECHO_T}yes" >&6; }
37269
37270 else
37271   echo "$as_me: failed program was:" >&5
37272 sed 's/^/| /' conftest.$ac_ext >&5
37273
37274
37275           { echo "$as_me:$LINENO: result: no" >&5
37276 echo "${ECHO_T}no" >&6; }
37277
37278
37279 fi
37280
37281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37282 fi
37283
37284 if test -z "$have_u_intxx_t" ; then
37285    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37286 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37287 if test "${ac_cv_have_uintxx_t+set}" = set; then
37288   echo $ECHO_N "(cached) $ECHO_C" >&6
37289 else
37290
37291           cat >conftest.$ac_ext <<_ACEOF
37292 /* confdefs.h.  */
37293 _ACEOF
37294 cat confdefs.h >>conftest.$ac_ext
37295 cat >>conftest.$ac_ext <<_ACEOF
37296 /* end confdefs.h.  */
37297
37298                  #include <sys/types.h>
37299
37300 int
37301 main ()
37302 {
37303
37304                  uint8_t a; uint16_t b;
37305                  uint32_t c; a = b = c = 1;
37306
37307   ;
37308   return 0;
37309 }
37310 _ACEOF
37311 rm -f conftest.$ac_objext
37312 if { (ac_try="$ac_compile"
37313 case "(($ac_try" in
37314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37315   *) ac_try_echo=$ac_try;;
37316 esac
37317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37318   (eval "$ac_compile") 2>conftest.er1
37319   ac_status=$?
37320   grep -v '^ *+' conftest.er1 >conftest.err
37321   rm -f conftest.er1
37322   cat conftest.err >&5
37323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37324   (exit $ac_status); } && {
37325          test -z "$ac_c_werror_flag" ||
37326          test ! -s conftest.err
37327        } && test -s conftest.$ac_objext; then
37328
37329                 ac_cv_have_uintxx_t="yes"
37330
37331 else
37332   echo "$as_me: failed program was:" >&5
37333 sed 's/^/| /' conftest.$ac_ext >&5
37334
37335
37336                 ac_cv_have_uintxx_t="no"
37337
37338
37339 fi
37340
37341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37342
37343
37344 fi
37345 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37346 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37347    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37348       cat >>confdefs.h <<\_ACEOF
37349 #define HAVE_UINTXX_T 1
37350 _ACEOF
37351
37352    fi
37353 fi
37354
37355 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37356     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37357 then
37358    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37359 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37360    cat >conftest.$ac_ext <<_ACEOF
37361 /* confdefs.h.  */
37362 _ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h.  */
37366
37367           #include <sys/bitypes.h>
37368
37369 int
37370 main ()
37371 {
37372
37373           int64_t a; u_int64_t b;
37374           a = b = 1;
37375
37376   ;
37377   return 0;
37378 }
37379 _ACEOF
37380 rm -f conftest.$ac_objext
37381 if { (ac_try="$ac_compile"
37382 case "(($ac_try" in
37383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37384   *) ac_try_echo=$ac_try;;
37385 esac
37386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37387   (eval "$ac_compile") 2>conftest.er1
37388   ac_status=$?
37389   grep -v '^ *+' conftest.er1 >conftest.err
37390   rm -f conftest.er1
37391   cat conftest.err >&5
37392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393   (exit $ac_status); } && {
37394          test -z "$ac_c_werror_flag" ||
37395          test ! -s conftest.err
37396        } && test -s conftest.$ac_objext; then
37397
37398           cat >>confdefs.h <<\_ACEOF
37399 #define HAVE_U_INT64_T 1
37400 _ACEOF
37401
37402           cat >>confdefs.h <<\_ACEOF
37403 #define HAVE_INT64_T 1
37404 _ACEOF
37405
37406           { echo "$as_me:$LINENO: result: yes" >&5
37407 echo "${ECHO_T}yes" >&6; }
37408
37409 else
37410   echo "$as_me: failed program was:" >&5
37411 sed 's/^/| /' conftest.$ac_ext >&5
37412
37413
37414           { echo "$as_me:$LINENO: result: no" >&5
37415 echo "${ECHO_T}no" >&6; }
37416
37417
37418 fi
37419
37420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37421 fi
37422
37423 if (test -z "$have_uintxx_t" && \
37424     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37425 then
37426    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37427 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37428    cat >conftest.$ac_ext <<_ACEOF
37429 /* confdefs.h.  */
37430 _ACEOF
37431 cat confdefs.h >>conftest.$ac_ext
37432 cat >>conftest.$ac_ext <<_ACEOF
37433 /* end confdefs.h.  */
37434
37435           #include <sys/bitypes.h>
37436
37437 int
37438 main ()
37439 {
37440
37441           uint8_t a; uint16_t b;
37442           uint32_t c; a = b = c = 1;
37443
37444   ;
37445   return 0;
37446 }
37447 _ACEOF
37448 rm -f conftest.$ac_objext
37449 if { (ac_try="$ac_compile"
37450 case "(($ac_try" in
37451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37452   *) ac_try_echo=$ac_try;;
37453 esac
37454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37455   (eval "$ac_compile") 2>conftest.er1
37456   ac_status=$?
37457   grep -v '^ *+' conftest.er1 >conftest.err
37458   rm -f conftest.er1
37459   cat conftest.err >&5
37460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461   (exit $ac_status); } && {
37462          test -z "$ac_c_werror_flag" ||
37463          test ! -s conftest.err
37464        } && test -s conftest.$ac_objext; then
37465
37466           cat >>confdefs.h <<\_ACEOF
37467 #define HAVE_UINTXX_T 1
37468 _ACEOF
37469
37470           { echo "$as_me:$LINENO: result: yes" >&5
37471 echo "${ECHO_T}yes" >&6; }
37472
37473 else
37474   echo "$as_me: failed program was:" >&5
37475 sed 's/^/| /' conftest.$ac_ext >&5
37476
37477
37478           { echo "$as_me:$LINENO: result: no" >&5
37479 echo "${ECHO_T}no" >&6; }
37480
37481
37482 fi
37483
37484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37485 fi
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495
37496
37497
37498
37499
37500 for ac_func in \
37501    fork \
37502    getcwd \
37503    gethostname \
37504    getpid \
37505    gettimeofday \
37506    setpgid \
37507    setpgrp \
37508    setsid \
37509    signal \
37510    strerror \
37511    strncmp \
37512    strncpy \
37513    vfprintf \
37514
37515 do
37516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37520   echo $ECHO_N "(cached) $ECHO_C" >&6
37521 else
37522   cat >conftest.$ac_ext <<_ACEOF
37523 /* confdefs.h.  */
37524 _ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h.  */
37528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37530 #define $ac_func innocuous_$ac_func
37531
37532 /* System header to define __stub macros and hopefully few prototypes,
37533     which can conflict with char $ac_func (); below.
37534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37535     <limits.h> exists even on freestanding compilers.  */
37536
37537 #ifdef __STDC__
37538 # include <limits.h>
37539 #else
37540 # include <assert.h>
37541 #endif
37542
37543 #undef $ac_func
37544
37545 /* Override any GCC internal prototype to avoid an error.
37546    Use char because int might match the return type of a GCC
37547    builtin and then its argument prototype would still apply.  */
37548 #ifdef __cplusplus
37549 extern "C"
37550 #endif
37551 char $ac_func ();
37552 /* The GNU C library defines this for functions which it implements
37553     to always fail with ENOSYS.  Some functions are actually named
37554     something starting with __ and the normal name is an alias.  */
37555 #if defined __stub_$ac_func || defined __stub___$ac_func
37556 choke me
37557 #endif
37558
37559 int
37560 main ()
37561 {
37562 return $ac_func ();
37563   ;
37564   return 0;
37565 }
37566 _ACEOF
37567 rm -f conftest.$ac_objext conftest$ac_exeext
37568 if { (ac_try="$ac_link"
37569 case "(($ac_try" in
37570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37571   *) ac_try_echo=$ac_try;;
37572 esac
37573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37574   (eval "$ac_link") 2>conftest.er1
37575   ac_status=$?
37576   grep -v '^ *+' conftest.er1 >conftest.err
37577   rm -f conftest.er1
37578   cat conftest.err >&5
37579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580   (exit $ac_status); } && {
37581          test -z "$ac_c_werror_flag" ||
37582          test ! -s conftest.err
37583        } && test -s conftest$ac_exeext &&
37584        $as_test_x conftest$ac_exeext; then
37585   eval "$as_ac_var=yes"
37586 else
37587   echo "$as_me: failed program was:" >&5
37588 sed 's/^/| /' conftest.$ac_ext >&5
37589
37590         eval "$as_ac_var=no"
37591 fi
37592
37593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37594       conftest$ac_exeext conftest.$ac_ext
37595 fi
37596 ac_res=`eval echo '${'$as_ac_var'}'`
37597                { echo "$as_me:$LINENO: result: $ac_res" >&5
37598 echo "${ECHO_T}$ac_res" >&6; }
37599 if test `eval echo '${'$as_ac_var'}'` = yes; then
37600   cat >>confdefs.h <<_ACEOF
37601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37602 _ACEOF
37603
37604 else
37605   echo 'configure: cannot find needed function.'; exit 1
37606
37607 fi
37608 done
37609
37610
37611
37612 for ac_func in fchdir
37613 do
37614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37618   echo $ECHO_N "(cached) $ECHO_C" >&6
37619 else
37620   cat >conftest.$ac_ext <<_ACEOF
37621 /* confdefs.h.  */
37622 _ACEOF
37623 cat confdefs.h >>conftest.$ac_ext
37624 cat >>conftest.$ac_ext <<_ACEOF
37625 /* end confdefs.h.  */
37626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37628 #define $ac_func innocuous_$ac_func
37629
37630 /* System header to define __stub macros and hopefully few prototypes,
37631     which can conflict with char $ac_func (); below.
37632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37633     <limits.h> exists even on freestanding compilers.  */
37634
37635 #ifdef __STDC__
37636 # include <limits.h>
37637 #else
37638 # include <assert.h>
37639 #endif
37640
37641 #undef $ac_func
37642
37643 /* Override any GCC internal prototype to avoid an error.
37644    Use char because int might match the return type of a GCC
37645    builtin and then its argument prototype would still apply.  */
37646 #ifdef __cplusplus
37647 extern "C"
37648 #endif
37649 char $ac_func ();
37650 /* The GNU C library defines this for functions which it implements
37651     to always fail with ENOSYS.  Some functions are actually named
37652     something starting with __ and the normal name is an alias.  */
37653 #if defined __stub_$ac_func || defined __stub___$ac_func
37654 choke me
37655 #endif
37656
37657 int
37658 main ()
37659 {
37660 return $ac_func ();
37661   ;
37662   return 0;
37663 }
37664 _ACEOF
37665 rm -f conftest.$ac_objext conftest$ac_exeext
37666 if { (ac_try="$ac_link"
37667 case "(($ac_try" in
37668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37669   *) ac_try_echo=$ac_try;;
37670 esac
37671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37672   (eval "$ac_link") 2>conftest.er1
37673   ac_status=$?
37674   grep -v '^ *+' conftest.er1 >conftest.err
37675   rm -f conftest.er1
37676   cat conftest.err >&5
37677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678   (exit $ac_status); } && {
37679          test -z "$ac_c_werror_flag" ||
37680          test ! -s conftest.err
37681        } && test -s conftest$ac_exeext &&
37682        $as_test_x conftest$ac_exeext; then
37683   eval "$as_ac_var=yes"
37684 else
37685   echo "$as_me: failed program was:" >&5
37686 sed 's/^/| /' conftest.$ac_ext >&5
37687
37688         eval "$as_ac_var=no"
37689 fi
37690
37691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37692       conftest$ac_exeext conftest.$ac_ext
37693 fi
37694 ac_res=`eval echo '${'$as_ac_var'}'`
37695                { echo "$as_me:$LINENO: result: $ac_res" >&5
37696 echo "${ECHO_T}$ac_res" >&6; }
37697 if test `eval echo '${'$as_ac_var'}'` = yes; then
37698   cat >>confdefs.h <<_ACEOF
37699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37700 _ACEOF
37701  cat >>confdefs.h <<\_ACEOF
37702 #define HAVE_FCHDIR 1
37703 _ACEOF
37704
37705 fi
37706 done
37707
37708
37709 for ac_func in strtoll
37710 do
37711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37715   echo $ECHO_N "(cached) $ECHO_C" >&6
37716 else
37717   cat >conftest.$ac_ext <<_ACEOF
37718 /* confdefs.h.  */
37719 _ACEOF
37720 cat confdefs.h >>conftest.$ac_ext
37721 cat >>conftest.$ac_ext <<_ACEOF
37722 /* end confdefs.h.  */
37723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37725 #define $ac_func innocuous_$ac_func
37726
37727 /* System header to define __stub macros and hopefully few prototypes,
37728     which can conflict with char $ac_func (); below.
37729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37730     <limits.h> exists even on freestanding compilers.  */
37731
37732 #ifdef __STDC__
37733 # include <limits.h>
37734 #else
37735 # include <assert.h>
37736 #endif
37737
37738 #undef $ac_func
37739
37740 /* Override any GCC internal prototype to avoid an error.
37741    Use char because int might match the return type of a GCC
37742    builtin and then its argument prototype would still apply.  */
37743 #ifdef __cplusplus
37744 extern "C"
37745 #endif
37746 char $ac_func ();
37747 /* The GNU C library defines this for functions which it implements
37748     to always fail with ENOSYS.  Some functions are actually named
37749     something starting with __ and the normal name is an alias.  */
37750 #if defined __stub_$ac_func || defined __stub___$ac_func
37751 choke me
37752 #endif
37753
37754 int
37755 main ()
37756 {
37757 return $ac_func ();
37758   ;
37759   return 0;
37760 }
37761 _ACEOF
37762 rm -f conftest.$ac_objext conftest$ac_exeext
37763 if { (ac_try="$ac_link"
37764 case "(($ac_try" in
37765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37766   *) ac_try_echo=$ac_try;;
37767 esac
37768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37769   (eval "$ac_link") 2>conftest.er1
37770   ac_status=$?
37771   grep -v '^ *+' conftest.er1 >conftest.err
37772   rm -f conftest.er1
37773   cat conftest.err >&5
37774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775   (exit $ac_status); } && {
37776          test -z "$ac_c_werror_flag" ||
37777          test ! -s conftest.err
37778        } && test -s conftest$ac_exeext &&
37779        $as_test_x conftest$ac_exeext; then
37780   eval "$as_ac_var=yes"
37781 else
37782   echo "$as_me: failed program was:" >&5
37783 sed 's/^/| /' conftest.$ac_ext >&5
37784
37785         eval "$as_ac_var=no"
37786 fi
37787
37788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37789       conftest$ac_exeext conftest.$ac_ext
37790 fi
37791 ac_res=`eval echo '${'$as_ac_var'}'`
37792                { echo "$as_me:$LINENO: result: $ac_res" >&5
37793 echo "${ECHO_T}$ac_res" >&6; }
37794 if test `eval echo '${'$as_ac_var'}'` = yes; then
37795   cat >>confdefs.h <<_ACEOF
37796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37797 _ACEOF
37798  cat >>confdefs.h <<\_ACEOF
37799 #define HAVE_STRTOLL 1
37800 _ACEOF
37801
37802 fi
37803 done
37804
37805
37806 for ac_func in posix_fadvise
37807 do
37808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37812   echo $ECHO_N "(cached) $ECHO_C" >&6
37813 else
37814   cat >conftest.$ac_ext <<_ACEOF
37815 /* confdefs.h.  */
37816 _ACEOF
37817 cat confdefs.h >>conftest.$ac_ext
37818 cat >>conftest.$ac_ext <<_ACEOF
37819 /* end confdefs.h.  */
37820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37822 #define $ac_func innocuous_$ac_func
37823
37824 /* System header to define __stub macros and hopefully few prototypes,
37825     which can conflict with char $ac_func (); below.
37826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37827     <limits.h> exists even on freestanding compilers.  */
37828
37829 #ifdef __STDC__
37830 # include <limits.h>
37831 #else
37832 # include <assert.h>
37833 #endif
37834
37835 #undef $ac_func
37836
37837 /* Override any GCC internal prototype to avoid an error.
37838    Use char because int might match the return type of a GCC
37839    builtin and then its argument prototype would still apply.  */
37840 #ifdef __cplusplus
37841 extern "C"
37842 #endif
37843 char $ac_func ();
37844 /* The GNU C library defines this for functions which it implements
37845     to always fail with ENOSYS.  Some functions are actually named
37846     something starting with __ and the normal name is an alias.  */
37847 #if defined __stub_$ac_func || defined __stub___$ac_func
37848 choke me
37849 #endif
37850
37851 int
37852 main ()
37853 {
37854 return $ac_func ();
37855   ;
37856   return 0;
37857 }
37858 _ACEOF
37859 rm -f conftest.$ac_objext conftest$ac_exeext
37860 if { (ac_try="$ac_link"
37861 case "(($ac_try" in
37862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37863   *) ac_try_echo=$ac_try;;
37864 esac
37865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37866   (eval "$ac_link") 2>conftest.er1
37867   ac_status=$?
37868   grep -v '^ *+' conftest.er1 >conftest.err
37869   rm -f conftest.er1
37870   cat conftest.err >&5
37871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872   (exit $ac_status); } && {
37873          test -z "$ac_c_werror_flag" ||
37874          test ! -s conftest.err
37875        } && test -s conftest$ac_exeext &&
37876        $as_test_x conftest$ac_exeext; then
37877   eval "$as_ac_var=yes"
37878 else
37879   echo "$as_me: failed program was:" >&5
37880 sed 's/^/| /' conftest.$ac_ext >&5
37881
37882         eval "$as_ac_var=no"
37883 fi
37884
37885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37886       conftest$ac_exeext conftest.$ac_ext
37887 fi
37888 ac_res=`eval echo '${'$as_ac_var'}'`
37889                { echo "$as_me:$LINENO: result: $ac_res" >&5
37890 echo "${ECHO_T}$ac_res" >&6; }
37891 if test `eval echo '${'$as_ac_var'}'` = yes; then
37892   cat >>confdefs.h <<_ACEOF
37893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37894 _ACEOF
37895
37896 fi
37897 done
37898
37899
37900 for ac_func in fdatasync
37901 do
37902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37906   echo $ECHO_N "(cached) $ECHO_C" >&6
37907 else
37908   cat >conftest.$ac_ext <<_ACEOF
37909 /* confdefs.h.  */
37910 _ACEOF
37911 cat confdefs.h >>conftest.$ac_ext
37912 cat >>conftest.$ac_ext <<_ACEOF
37913 /* end confdefs.h.  */
37914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37916 #define $ac_func innocuous_$ac_func
37917
37918 /* System header to define __stub macros and hopefully few prototypes,
37919     which can conflict with char $ac_func (); below.
37920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37921     <limits.h> exists even on freestanding compilers.  */
37922
37923 #ifdef __STDC__
37924 # include <limits.h>
37925 #else
37926 # include <assert.h>
37927 #endif
37928
37929 #undef $ac_func
37930
37931 /* Override any GCC internal prototype to avoid an error.
37932    Use char because int might match the return type of a GCC
37933    builtin and then its argument prototype would still apply.  */
37934 #ifdef __cplusplus
37935 extern "C"
37936 #endif
37937 char $ac_func ();
37938 /* The GNU C library defines this for functions which it implements
37939     to always fail with ENOSYS.  Some functions are actually named
37940     something starting with __ and the normal name is an alias.  */
37941 #if defined __stub_$ac_func || defined __stub___$ac_func
37942 choke me
37943 #endif
37944
37945 int
37946 main ()
37947 {
37948 return $ac_func ();
37949   ;
37950   return 0;
37951 }
37952 _ACEOF
37953 rm -f conftest.$ac_objext conftest$ac_exeext
37954 if { (ac_try="$ac_link"
37955 case "(($ac_try" in
37956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37957   *) ac_try_echo=$ac_try;;
37958 esac
37959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37960   (eval "$ac_link") 2>conftest.er1
37961   ac_status=$?
37962   grep -v '^ *+' conftest.er1 >conftest.err
37963   rm -f conftest.er1
37964   cat conftest.err >&5
37965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37966   (exit $ac_status); } && {
37967          test -z "$ac_c_werror_flag" ||
37968          test ! -s conftest.err
37969        } && test -s conftest$ac_exeext &&
37970        $as_test_x conftest$ac_exeext; then
37971   eval "$as_ac_var=yes"
37972 else
37973   echo "$as_me: failed program was:" >&5
37974 sed 's/^/| /' conftest.$ac_ext >&5
37975
37976         eval "$as_ac_var=no"
37977 fi
37978
37979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37980       conftest$ac_exeext conftest.$ac_ext
37981 fi
37982 ac_res=`eval echo '${'$as_ac_var'}'`
37983                { echo "$as_me:$LINENO: result: $ac_res" >&5
37984 echo "${ECHO_T}$ac_res" >&6; }
37985 if test `eval echo '${'$as_ac_var'}'` = yes; then
37986   cat >>confdefs.h <<_ACEOF
37987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37988 _ACEOF
37989
37990 fi
37991 done
37992
37993
37994
37995 for ac_func in chflags
37996 do
37997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38001   echo $ECHO_N "(cached) $ECHO_C" >&6
38002 else
38003   cat >conftest.$ac_ext <<_ACEOF
38004 /* confdefs.h.  */
38005 _ACEOF
38006 cat confdefs.h >>conftest.$ac_ext
38007 cat >>conftest.$ac_ext <<_ACEOF
38008 /* end confdefs.h.  */
38009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38011 #define $ac_func innocuous_$ac_func
38012
38013 /* System header to define __stub macros and hopefully few prototypes,
38014     which can conflict with char $ac_func (); below.
38015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38016     <limits.h> exists even on freestanding compilers.  */
38017
38018 #ifdef __STDC__
38019 # include <limits.h>
38020 #else
38021 # include <assert.h>
38022 #endif
38023
38024 #undef $ac_func
38025
38026 /* Override any GCC internal prototype to avoid an error.
38027    Use char because int might match the return type of a GCC
38028    builtin and then its argument prototype would still apply.  */
38029 #ifdef __cplusplus
38030 extern "C"
38031 #endif
38032 char $ac_func ();
38033 /* The GNU C library defines this for functions which it implements
38034     to always fail with ENOSYS.  Some functions are actually named
38035     something starting with __ and the normal name is an alias.  */
38036 #if defined __stub_$ac_func || defined __stub___$ac_func
38037 choke me
38038 #endif
38039
38040 int
38041 main ()
38042 {
38043 return $ac_func ();
38044   ;
38045   return 0;
38046 }
38047 _ACEOF
38048 rm -f conftest.$ac_objext conftest$ac_exeext
38049 if { (ac_try="$ac_link"
38050 case "(($ac_try" in
38051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38052   *) ac_try_echo=$ac_try;;
38053 esac
38054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38055   (eval "$ac_link") 2>conftest.er1
38056   ac_status=$?
38057   grep -v '^ *+' conftest.er1 >conftest.err
38058   rm -f conftest.er1
38059   cat conftest.err >&5
38060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061   (exit $ac_status); } && {
38062          test -z "$ac_c_werror_flag" ||
38063          test ! -s conftest.err
38064        } && test -s conftest$ac_exeext &&
38065        $as_test_x conftest$ac_exeext; then
38066   eval "$as_ac_var=yes"
38067 else
38068   echo "$as_me: failed program was:" >&5
38069 sed 's/^/| /' conftest.$ac_ext >&5
38070
38071         eval "$as_ac_var=no"
38072 fi
38073
38074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38075       conftest$ac_exeext conftest.$ac_ext
38076 fi
38077 ac_res=`eval echo '${'$as_ac_var'}'`
38078                { echo "$as_me:$LINENO: result: $ac_res" >&5
38079 echo "${ECHO_T}$ac_res" >&6; }
38080 if test `eval echo '${'$as_ac_var'}'` = yes; then
38081   cat >>confdefs.h <<_ACEOF
38082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38083 _ACEOF
38084
38085 fi
38086 done
38087
38088
38089
38090
38091
38092
38093 for ac_func in snprintf vsnprintf gethostid fseeko
38094 do
38095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38099   echo $ECHO_N "(cached) $ECHO_C" >&6
38100 else
38101   cat >conftest.$ac_ext <<_ACEOF
38102 /* confdefs.h.  */
38103 _ACEOF
38104 cat confdefs.h >>conftest.$ac_ext
38105 cat >>conftest.$ac_ext <<_ACEOF
38106 /* end confdefs.h.  */
38107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38109 #define $ac_func innocuous_$ac_func
38110
38111 /* System header to define __stub macros and hopefully few prototypes,
38112     which can conflict with char $ac_func (); below.
38113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38114     <limits.h> exists even on freestanding compilers.  */
38115
38116 #ifdef __STDC__
38117 # include <limits.h>
38118 #else
38119 # include <assert.h>
38120 #endif
38121
38122 #undef $ac_func
38123
38124 /* Override any GCC internal prototype to avoid an error.
38125    Use char because int might match the return type of a GCC
38126    builtin and then its argument prototype would still apply.  */
38127 #ifdef __cplusplus
38128 extern "C"
38129 #endif
38130 char $ac_func ();
38131 /* The GNU C library defines this for functions which it implements
38132     to always fail with ENOSYS.  Some functions are actually named
38133     something starting with __ and the normal name is an alias.  */
38134 #if defined __stub_$ac_func || defined __stub___$ac_func
38135 choke me
38136 #endif
38137
38138 int
38139 main ()
38140 {
38141 return $ac_func ();
38142   ;
38143   return 0;
38144 }
38145 _ACEOF
38146 rm -f conftest.$ac_objext conftest$ac_exeext
38147 if { (ac_try="$ac_link"
38148 case "(($ac_try" in
38149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38150   *) ac_try_echo=$ac_try;;
38151 esac
38152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38153   (eval "$ac_link") 2>conftest.er1
38154   ac_status=$?
38155   grep -v '^ *+' conftest.er1 >conftest.err
38156   rm -f conftest.er1
38157   cat conftest.err >&5
38158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38159   (exit $ac_status); } && {
38160          test -z "$ac_c_werror_flag" ||
38161          test ! -s conftest.err
38162        } && test -s conftest$ac_exeext &&
38163        $as_test_x conftest$ac_exeext; then
38164   eval "$as_ac_var=yes"
38165 else
38166   echo "$as_me: failed program was:" >&5
38167 sed 's/^/| /' conftest.$ac_ext >&5
38168
38169         eval "$as_ac_var=no"
38170 fi
38171
38172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38173       conftest$ac_exeext conftest.$ac_ext
38174 fi
38175 ac_res=`eval echo '${'$as_ac_var'}'`
38176                { echo "$as_me:$LINENO: result: $ac_res" >&5
38177 echo "${ECHO_T}$ac_res" >&6; }
38178 if test `eval echo '${'$as_ac_var'}'` = yes; then
38179   cat >>confdefs.h <<_ACEOF
38180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38181 _ACEOF
38182
38183 fi
38184 done
38185
38186
38187 { echo "$as_me:$LINENO: checking for va_copy" >&5
38188 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38189 if test "${ba_cv_va_copy+set}" = set; then
38190   echo $ECHO_N "(cached) $ECHO_C" >&6
38191 else
38192
38193        cat >conftest.$ac_ext <<_ACEOF
38194 /* confdefs.h.  */
38195 _ACEOF
38196 cat confdefs.h >>conftest.$ac_ext
38197 cat >>conftest.$ac_ext <<_ACEOF
38198 /* end confdefs.h.  */
38199
38200               #include <stdarg.h>
38201               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38202               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38203
38204 int
38205 main ()
38206 {
38207
38208               call_use_va_copy(1,2,3)
38209
38210   ;
38211   return 0;
38212 }
38213 _ACEOF
38214 rm -f conftest.$ac_objext conftest$ac_exeext
38215 if { (ac_try="$ac_link"
38216 case "(($ac_try" in
38217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38218   *) ac_try_echo=$ac_try;;
38219 esac
38220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38221   (eval "$ac_link") 2>conftest.er1
38222   ac_status=$?
38223   grep -v '^ *+' conftest.er1 >conftest.err
38224   rm -f conftest.er1
38225   cat conftest.err >&5
38226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227   (exit $ac_status); } && {
38228          test -z "$ac_c_werror_flag" ||
38229          test ! -s conftest.err
38230        } && test -s conftest$ac_exeext &&
38231        $as_test_x conftest$ac_exeext; then
38232
38233               ba_cv_va_copy=yes,
38234
38235 else
38236   echo "$as_me: failed program was:" >&5
38237 sed 's/^/| /' conftest.$ac_ext >&5
38238
38239
38240               ba_cv_va_copy=no
38241
38242
38243 fi
38244
38245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38246       conftest$ac_exeext conftest.$ac_ext
38247
38248
38249 fi
38250 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38251 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38252 test $ba_cv_va_copy = yes &&
38253 cat >>confdefs.h <<\_ACEOF
38254 #define HAVE_VA_COPY 1
38255 _ACEOF
38256
38257
38258
38259
38260
38261
38262 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38263 do
38264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38268   echo $ECHO_N "(cached) $ECHO_C" >&6
38269 else
38270   cat >conftest.$ac_ext <<_ACEOF
38271 /* confdefs.h.  */
38272 _ACEOF
38273 cat confdefs.h >>conftest.$ac_ext
38274 cat >>conftest.$ac_ext <<_ACEOF
38275 /* end confdefs.h.  */
38276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38278 #define $ac_func innocuous_$ac_func
38279
38280 /* System header to define __stub macros and hopefully few prototypes,
38281     which can conflict with char $ac_func (); below.
38282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38283     <limits.h> exists even on freestanding compilers.  */
38284
38285 #ifdef __STDC__
38286 # include <limits.h>
38287 #else
38288 # include <assert.h>
38289 #endif
38290
38291 #undef $ac_func
38292
38293 /* Override any GCC internal prototype to avoid an error.
38294    Use char because int might match the return type of a GCC
38295    builtin and then its argument prototype would still apply.  */
38296 #ifdef __cplusplus
38297 extern "C"
38298 #endif
38299 char $ac_func ();
38300 /* The GNU C library defines this for functions which it implements
38301     to always fail with ENOSYS.  Some functions are actually named
38302     something starting with __ and the normal name is an alias.  */
38303 #if defined __stub_$ac_func || defined __stub___$ac_func
38304 choke me
38305 #endif
38306
38307 int
38308 main ()
38309 {
38310 return $ac_func ();
38311   ;
38312   return 0;
38313 }
38314 _ACEOF
38315 rm -f conftest.$ac_objext conftest$ac_exeext
38316 if { (ac_try="$ac_link"
38317 case "(($ac_try" in
38318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38319   *) ac_try_echo=$ac_try;;
38320 esac
38321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38322   (eval "$ac_link") 2>conftest.er1
38323   ac_status=$?
38324   grep -v '^ *+' conftest.er1 >conftest.err
38325   rm -f conftest.er1
38326   cat conftest.err >&5
38327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328   (exit $ac_status); } && {
38329          test -z "$ac_c_werror_flag" ||
38330          test ! -s conftest.err
38331        } && test -s conftest$ac_exeext &&
38332        $as_test_x conftest$ac_exeext; then
38333   eval "$as_ac_var=yes"
38334 else
38335   echo "$as_me: failed program was:" >&5
38336 sed 's/^/| /' conftest.$ac_ext >&5
38337
38338         eval "$as_ac_var=no"
38339 fi
38340
38341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38342       conftest$ac_exeext conftest.$ac_ext
38343 fi
38344 ac_res=`eval echo '${'$as_ac_var'}'`
38345                { echo "$as_me:$LINENO: result: $ac_res" >&5
38346 echo "${ECHO_T}$ac_res" >&6; }
38347 if test `eval echo '${'$as_ac_var'}'` = yes; then
38348   cat >>confdefs.h <<_ACEOF
38349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38350 _ACEOF
38351
38352 fi
38353 done
38354
38355
38356 # If resolver functions are not in libc check for -lnsl or -lresolv.
38357 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38358 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38359 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38360   echo $ECHO_N "(cached) $ECHO_C" >&6
38361 else
38362   cat >conftest.$ac_ext <<_ACEOF
38363 /* confdefs.h.  */
38364 _ACEOF
38365 cat confdefs.h >>conftest.$ac_ext
38366 cat >>conftest.$ac_ext <<_ACEOF
38367 /* end confdefs.h.  */
38368 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38370 #define gethostbyname_r innocuous_gethostbyname_r
38371
38372 /* System header to define __stub macros and hopefully few prototypes,
38373     which can conflict with char gethostbyname_r (); below.
38374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38375     <limits.h> exists even on freestanding compilers.  */
38376
38377 #ifdef __STDC__
38378 # include <limits.h>
38379 #else
38380 # include <assert.h>
38381 #endif
38382
38383 #undef gethostbyname_r
38384
38385 /* Override any GCC internal prototype to avoid an error.
38386    Use char because int might match the return type of a GCC
38387    builtin and then its argument prototype would still apply.  */
38388 #ifdef __cplusplus
38389 extern "C"
38390 #endif
38391 char gethostbyname_r ();
38392 /* The GNU C library defines this for functions which it implements
38393     to always fail with ENOSYS.  Some functions are actually named
38394     something starting with __ and the normal name is an alias.  */
38395 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38396 choke me
38397 #endif
38398
38399 int
38400 main ()
38401 {
38402 return gethostbyname_r ();
38403   ;
38404   return 0;
38405 }
38406 _ACEOF
38407 rm -f conftest.$ac_objext conftest$ac_exeext
38408 if { (ac_try="$ac_link"
38409 case "(($ac_try" in
38410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38411   *) ac_try_echo=$ac_try;;
38412 esac
38413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38414   (eval "$ac_link") 2>conftest.er1
38415   ac_status=$?
38416   grep -v '^ *+' conftest.er1 >conftest.err
38417   rm -f conftest.er1
38418   cat conftest.err >&5
38419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420   (exit $ac_status); } && {
38421          test -z "$ac_c_werror_flag" ||
38422          test ! -s conftest.err
38423        } && test -s conftest$ac_exeext &&
38424        $as_test_x conftest$ac_exeext; then
38425   ac_cv_func_gethostbyname_r=yes
38426 else
38427   echo "$as_me: failed program was:" >&5
38428 sed 's/^/| /' conftest.$ac_ext >&5
38429
38430         ac_cv_func_gethostbyname_r=no
38431 fi
38432
38433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38434       conftest$ac_exeext conftest.$ac_ext
38435 fi
38436 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38437 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38438 if test $ac_cv_func_gethostbyname_r = yes; then
38439   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38440 echo "${ECHO_T}using libc's resolver" >&6; }
38441 else
38442
38443 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38444 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38445 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38446   echo $ECHO_N "(cached) $ECHO_C" >&6
38447 else
38448   ac_check_lib_save_LIBS=$LIBS
38449 LIBS="-lnsl  $LIBS"
38450 cat >conftest.$ac_ext <<_ACEOF
38451 /* confdefs.h.  */
38452 _ACEOF
38453 cat confdefs.h >>conftest.$ac_ext
38454 cat >>conftest.$ac_ext <<_ACEOF
38455 /* end confdefs.h.  */
38456
38457 /* Override any GCC internal prototype to avoid an error.
38458    Use char because int might match the return type of a GCC
38459    builtin and then its argument prototype would still apply.  */
38460 #ifdef __cplusplus
38461 extern "C"
38462 #endif
38463 char gethostbyname_r ();
38464 int
38465 main ()
38466 {
38467 return gethostbyname_r ();
38468   ;
38469   return 0;
38470 }
38471 _ACEOF
38472 rm -f conftest.$ac_objext conftest$ac_exeext
38473 if { (ac_try="$ac_link"
38474 case "(($ac_try" in
38475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38476   *) ac_try_echo=$ac_try;;
38477 esac
38478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38479   (eval "$ac_link") 2>conftest.er1
38480   ac_status=$?
38481   grep -v '^ *+' conftest.er1 >conftest.err
38482   rm -f conftest.er1
38483   cat conftest.err >&5
38484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485   (exit $ac_status); } && {
38486          test -z "$ac_c_werror_flag" ||
38487          test ! -s conftest.err
38488        } && test -s conftest$ac_exeext &&
38489        $as_test_x conftest$ac_exeext; then
38490   ac_cv_lib_nsl_gethostbyname_r=yes
38491 else
38492   echo "$as_me: failed program was:" >&5
38493 sed 's/^/| /' conftest.$ac_ext >&5
38494
38495         ac_cv_lib_nsl_gethostbyname_r=no
38496 fi
38497
38498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38499       conftest$ac_exeext conftest.$ac_ext
38500 LIBS=$ac_check_lib_save_LIBS
38501 fi
38502 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38503 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38504 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38505   cat >>confdefs.h <<_ACEOF
38506 #define HAVE_LIBNSL 1
38507 _ACEOF
38508
38509   LIBS="-lnsl $LIBS"
38510
38511 fi
38512
38513
38514 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38515 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38516 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38517   echo $ECHO_N "(cached) $ECHO_C" >&6
38518 else
38519   ac_check_lib_save_LIBS=$LIBS
38520 LIBS="-lresolv  $LIBS"
38521 cat >conftest.$ac_ext <<_ACEOF
38522 /* confdefs.h.  */
38523 _ACEOF
38524 cat confdefs.h >>conftest.$ac_ext
38525 cat >>conftest.$ac_ext <<_ACEOF
38526 /* end confdefs.h.  */
38527
38528 /* Override any GCC internal prototype to avoid an error.
38529    Use char because int might match the return type of a GCC
38530    builtin and then its argument prototype would still apply.  */
38531 #ifdef __cplusplus
38532 extern "C"
38533 #endif
38534 char gethostbyname_r ();
38535 int
38536 main ()
38537 {
38538 return gethostbyname_r ();
38539   ;
38540   return 0;
38541 }
38542 _ACEOF
38543 rm -f conftest.$ac_objext conftest$ac_exeext
38544 if { (ac_try="$ac_link"
38545 case "(($ac_try" in
38546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38547   *) ac_try_echo=$ac_try;;
38548 esac
38549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38550   (eval "$ac_link") 2>conftest.er1
38551   ac_status=$?
38552   grep -v '^ *+' conftest.er1 >conftest.err
38553   rm -f conftest.er1
38554   cat conftest.err >&5
38555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556   (exit $ac_status); } && {
38557          test -z "$ac_c_werror_flag" ||
38558          test ! -s conftest.err
38559        } && test -s conftest$ac_exeext &&
38560        $as_test_x conftest$ac_exeext; then
38561   ac_cv_lib_resolv_gethostbyname_r=yes
38562 else
38563   echo "$as_me: failed program was:" >&5
38564 sed 's/^/| /' conftest.$ac_ext >&5
38565
38566         ac_cv_lib_resolv_gethostbyname_r=no
38567 fi
38568
38569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38570       conftest$ac_exeext conftest.$ac_ext
38571 LIBS=$ac_check_lib_save_LIBS
38572 fi
38573 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38574 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38575 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38576   cat >>confdefs.h <<_ACEOF
38577 #define HAVE_LIBRESOLV 1
38578 _ACEOF
38579
38580   LIBS="-lresolv $LIBS"
38581
38582 fi
38583
38584 fi
38585
38586
38587
38588 for ac_func in inet_pton
38589 do
38590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38594   echo $ECHO_N "(cached) $ECHO_C" >&6
38595 else
38596   cat >conftest.$ac_ext <<_ACEOF
38597 /* confdefs.h.  */
38598 _ACEOF
38599 cat confdefs.h >>conftest.$ac_ext
38600 cat >>conftest.$ac_ext <<_ACEOF
38601 /* end confdefs.h.  */
38602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38604 #define $ac_func innocuous_$ac_func
38605
38606 /* System header to define __stub macros and hopefully few prototypes,
38607     which can conflict with char $ac_func (); below.
38608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38609     <limits.h> exists even on freestanding compilers.  */
38610
38611 #ifdef __STDC__
38612 # include <limits.h>
38613 #else
38614 # include <assert.h>
38615 #endif
38616
38617 #undef $ac_func
38618
38619 /* Override any GCC internal prototype to avoid an error.
38620    Use char because int might match the return type of a GCC
38621    builtin and then its argument prototype would still apply.  */
38622 #ifdef __cplusplus
38623 extern "C"
38624 #endif
38625 char $ac_func ();
38626 /* The GNU C library defines this for functions which it implements
38627     to always fail with ENOSYS.  Some functions are actually named
38628     something starting with __ and the normal name is an alias.  */
38629 #if defined __stub_$ac_func || defined __stub___$ac_func
38630 choke me
38631 #endif
38632
38633 int
38634 main ()
38635 {
38636 return $ac_func ();
38637   ;
38638   return 0;
38639 }
38640 _ACEOF
38641 rm -f conftest.$ac_objext conftest$ac_exeext
38642 if { (ac_try="$ac_link"
38643 case "(($ac_try" in
38644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38645   *) ac_try_echo=$ac_try;;
38646 esac
38647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38648   (eval "$ac_link") 2>conftest.er1
38649   ac_status=$?
38650   grep -v '^ *+' conftest.er1 >conftest.err
38651   rm -f conftest.er1
38652   cat conftest.err >&5
38653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38654   (exit $ac_status); } && {
38655          test -z "$ac_c_werror_flag" ||
38656          test ! -s conftest.err
38657        } && test -s conftest$ac_exeext &&
38658        $as_test_x conftest$ac_exeext; then
38659   eval "$as_ac_var=yes"
38660 else
38661   echo "$as_me: failed program was:" >&5
38662 sed 's/^/| /' conftest.$ac_ext >&5
38663
38664         eval "$as_ac_var=no"
38665 fi
38666
38667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38668       conftest$ac_exeext conftest.$ac_ext
38669 fi
38670 ac_res=`eval echo '${'$as_ac_var'}'`
38671                { echo "$as_me:$LINENO: result: $ac_res" >&5
38672 echo "${ECHO_T}$ac_res" >&6; }
38673 if test `eval echo '${'$as_ac_var'}'` = yes; then
38674   cat >>confdefs.h <<_ACEOF
38675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38676 _ACEOF
38677  cat >>confdefs.h <<\_ACEOF
38678 #define HAVE_INET_PTON 1
38679 _ACEOF
38680
38681 fi
38682 done
38683
38684
38685 for ac_func in inet_ntop
38686 do
38687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38691   echo $ECHO_N "(cached) $ECHO_C" >&6
38692 else
38693   cat >conftest.$ac_ext <<_ACEOF
38694 /* confdefs.h.  */
38695 _ACEOF
38696 cat confdefs.h >>conftest.$ac_ext
38697 cat >>conftest.$ac_ext <<_ACEOF
38698 /* end confdefs.h.  */
38699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38701 #define $ac_func innocuous_$ac_func
38702
38703 /* System header to define __stub macros and hopefully few prototypes,
38704     which can conflict with char $ac_func (); below.
38705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38706     <limits.h> exists even on freestanding compilers.  */
38707
38708 #ifdef __STDC__
38709 # include <limits.h>
38710 #else
38711 # include <assert.h>
38712 #endif
38713
38714 #undef $ac_func
38715
38716 /* Override any GCC internal prototype to avoid an error.
38717    Use char because int might match the return type of a GCC
38718    builtin and then its argument prototype would still apply.  */
38719 #ifdef __cplusplus
38720 extern "C"
38721 #endif
38722 char $ac_func ();
38723 /* The GNU C library defines this for functions which it implements
38724     to always fail with ENOSYS.  Some functions are actually named
38725     something starting with __ and the normal name is an alias.  */
38726 #if defined __stub_$ac_func || defined __stub___$ac_func
38727 choke me
38728 #endif
38729
38730 int
38731 main ()
38732 {
38733 return $ac_func ();
38734   ;
38735   return 0;
38736 }
38737 _ACEOF
38738 rm -f conftest.$ac_objext conftest$ac_exeext
38739 if { (ac_try="$ac_link"
38740 case "(($ac_try" in
38741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38742   *) ac_try_echo=$ac_try;;
38743 esac
38744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38745   (eval "$ac_link") 2>conftest.er1
38746   ac_status=$?
38747   grep -v '^ *+' conftest.er1 >conftest.err
38748   rm -f conftest.er1
38749   cat conftest.err >&5
38750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751   (exit $ac_status); } && {
38752          test -z "$ac_c_werror_flag" ||
38753          test ! -s conftest.err
38754        } && test -s conftest$ac_exeext &&
38755        $as_test_x conftest$ac_exeext; then
38756   eval "$as_ac_var=yes"
38757 else
38758   echo "$as_me: failed program was:" >&5
38759 sed 's/^/| /' conftest.$ac_ext >&5
38760
38761         eval "$as_ac_var=no"
38762 fi
38763
38764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38765       conftest$ac_exeext conftest.$ac_ext
38766 fi
38767 ac_res=`eval echo '${'$as_ac_var'}'`
38768                { echo "$as_me:$LINENO: result: $ac_res" >&5
38769 echo "${ECHO_T}$ac_res" >&6; }
38770 if test `eval echo '${'$as_ac_var'}'` = yes; then
38771   cat >>confdefs.h <<_ACEOF
38772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38773 _ACEOF
38774  cat >>confdefs.h <<\_ACEOF
38775 #define HAVE_INET_NTOP 1
38776 _ACEOF
38777
38778 fi
38779 done
38780
38781
38782 for ac_func in gethostbyname2
38783 do
38784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38788   echo $ECHO_N "(cached) $ECHO_C" >&6
38789 else
38790   cat >conftest.$ac_ext <<_ACEOF
38791 /* confdefs.h.  */
38792 _ACEOF
38793 cat confdefs.h >>conftest.$ac_ext
38794 cat >>conftest.$ac_ext <<_ACEOF
38795 /* end confdefs.h.  */
38796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38798 #define $ac_func innocuous_$ac_func
38799
38800 /* System header to define __stub macros and hopefully few prototypes,
38801     which can conflict with char $ac_func (); below.
38802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38803     <limits.h> exists even on freestanding compilers.  */
38804
38805 #ifdef __STDC__
38806 # include <limits.h>
38807 #else
38808 # include <assert.h>
38809 #endif
38810
38811 #undef $ac_func
38812
38813 /* Override any GCC internal prototype to avoid an error.
38814    Use char because int might match the return type of a GCC
38815    builtin and then its argument prototype would still apply.  */
38816 #ifdef __cplusplus
38817 extern "C"
38818 #endif
38819 char $ac_func ();
38820 /* The GNU C library defines this for functions which it implements
38821     to always fail with ENOSYS.  Some functions are actually named
38822     something starting with __ and the normal name is an alias.  */
38823 #if defined __stub_$ac_func || defined __stub___$ac_func
38824 choke me
38825 #endif
38826
38827 int
38828 main ()
38829 {
38830 return $ac_func ();
38831   ;
38832   return 0;
38833 }
38834 _ACEOF
38835 rm -f conftest.$ac_objext conftest$ac_exeext
38836 if { (ac_try="$ac_link"
38837 case "(($ac_try" in
38838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38839   *) ac_try_echo=$ac_try;;
38840 esac
38841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38842   (eval "$ac_link") 2>conftest.er1
38843   ac_status=$?
38844   grep -v '^ *+' conftest.er1 >conftest.err
38845   rm -f conftest.er1
38846   cat conftest.err >&5
38847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848   (exit $ac_status); } && {
38849          test -z "$ac_c_werror_flag" ||
38850          test ! -s conftest.err
38851        } && test -s conftest$ac_exeext &&
38852        $as_test_x conftest$ac_exeext; then
38853   eval "$as_ac_var=yes"
38854 else
38855   echo "$as_me: failed program was:" >&5
38856 sed 's/^/| /' conftest.$ac_ext >&5
38857
38858         eval "$as_ac_var=no"
38859 fi
38860
38861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38862       conftest$ac_exeext conftest.$ac_ext
38863 fi
38864 ac_res=`eval echo '${'$as_ac_var'}'`
38865                { echo "$as_me:$LINENO: result: $ac_res" >&5
38866 echo "${ECHO_T}$ac_res" >&6; }
38867 if test `eval echo '${'$as_ac_var'}'` = yes; then
38868   cat >>confdefs.h <<_ACEOF
38869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38870 _ACEOF
38871  cat >>confdefs.h <<\_ACEOF
38872 #define HAVE_GETHOSTBYNAME2 1
38873 _ACEOF
38874
38875 fi
38876 done
38877
38878
38879 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38880 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38881 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38882   echo $ECHO_N "(cached) $ECHO_C" >&6
38883 else
38884
38885        cat >conftest.$ac_ext <<_ACEOF
38886 /* confdefs.h.  */
38887 _ACEOF
38888 cat confdefs.h >>conftest.$ac_ext
38889 cat >>conftest.$ac_ext <<_ACEOF
38890 /* end confdefs.h.  */
38891
38892               #include <sys/socket.h>
38893
38894 int
38895 main ()
38896 {
38897
38898               struct sockaddr s; s.sa_len;
38899
38900   ;
38901   return 0;
38902 }
38903 _ACEOF
38904 rm -f conftest.$ac_objext
38905 if { (ac_try="$ac_compile"
38906 case "(($ac_try" in
38907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38908   *) ac_try_echo=$ac_try;;
38909 esac
38910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38911   (eval "$ac_compile") 2>conftest.er1
38912   ac_status=$?
38913   grep -v '^ *+' conftest.er1 >conftest.err
38914   rm -f conftest.er1
38915   cat conftest.err >&5
38916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917   (exit $ac_status); } && {
38918          test -z "$ac_c_werror_flag" ||
38919          test ! -s conftest.err
38920        } && test -s conftest.$ac_objext; then
38921
38922              ac_cv_struct_sockaddr_sa_len=yes
38923
38924 else
38925   echo "$as_me: failed program was:" >&5
38926 sed 's/^/| /' conftest.$ac_ext >&5
38927
38928         ac_cv_struct_sockaddr_sa_len=no
38929
38930
38931 fi
38932
38933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38934
38935
38936 fi
38937 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38938 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38939
38940 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38941
38942 cat >>confdefs.h <<\_ACEOF
38943 #define HAVE_SA_LEN 1
38944 _ACEOF
38945
38946 fi
38947
38948
38949 for ac_func in strftime
38950 do
38951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38955   echo $ECHO_N "(cached) $ECHO_C" >&6
38956 else
38957   cat >conftest.$ac_ext <<_ACEOF
38958 /* confdefs.h.  */
38959 _ACEOF
38960 cat confdefs.h >>conftest.$ac_ext
38961 cat >>conftest.$ac_ext <<_ACEOF
38962 /* end confdefs.h.  */
38963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38965 #define $ac_func innocuous_$ac_func
38966
38967 /* System header to define __stub macros and hopefully few prototypes,
38968     which can conflict with char $ac_func (); below.
38969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38970     <limits.h> exists even on freestanding compilers.  */
38971
38972 #ifdef __STDC__
38973 # include <limits.h>
38974 #else
38975 # include <assert.h>
38976 #endif
38977
38978 #undef $ac_func
38979
38980 /* Override any GCC internal prototype to avoid an error.
38981    Use char because int might match the return type of a GCC
38982    builtin and then its argument prototype would still apply.  */
38983 #ifdef __cplusplus
38984 extern "C"
38985 #endif
38986 char $ac_func ();
38987 /* The GNU C library defines this for functions which it implements
38988     to always fail with ENOSYS.  Some functions are actually named
38989     something starting with __ and the normal name is an alias.  */
38990 #if defined __stub_$ac_func || defined __stub___$ac_func
38991 choke me
38992 #endif
38993
38994 int
38995 main ()
38996 {
38997 return $ac_func ();
38998   ;
38999   return 0;
39000 }
39001 _ACEOF
39002 rm -f conftest.$ac_objext conftest$ac_exeext
39003 if { (ac_try="$ac_link"
39004 case "(($ac_try" in
39005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39006   *) ac_try_echo=$ac_try;;
39007 esac
39008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39009   (eval "$ac_link") 2>conftest.er1
39010   ac_status=$?
39011   grep -v '^ *+' conftest.er1 >conftest.err
39012   rm -f conftest.er1
39013   cat conftest.err >&5
39014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015   (exit $ac_status); } && {
39016          test -z "$ac_c_werror_flag" ||
39017          test ! -s conftest.err
39018        } && test -s conftest$ac_exeext &&
39019        $as_test_x conftest$ac_exeext; then
39020   eval "$as_ac_var=yes"
39021 else
39022   echo "$as_me: failed program was:" >&5
39023 sed 's/^/| /' conftest.$ac_ext >&5
39024
39025         eval "$as_ac_var=no"
39026 fi
39027
39028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39029       conftest$ac_exeext conftest.$ac_ext
39030 fi
39031 ac_res=`eval echo '${'$as_ac_var'}'`
39032                { echo "$as_me:$LINENO: result: $ac_res" >&5
39033 echo "${ECHO_T}$ac_res" >&6; }
39034 if test `eval echo '${'$as_ac_var'}'` = yes; then
39035   cat >>confdefs.h <<_ACEOF
39036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39037 _ACEOF
39038
39039 else
39040   # strftime is in -lintl on SCO UNIX.
39041 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39042 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39043 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39044   echo $ECHO_N "(cached) $ECHO_C" >&6
39045 else
39046   ac_check_lib_save_LIBS=$LIBS
39047 LIBS="-lintl  $LIBS"
39048 cat >conftest.$ac_ext <<_ACEOF
39049 /* confdefs.h.  */
39050 _ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h.  */
39054
39055 /* Override any GCC internal prototype to avoid an error.
39056    Use char because int might match the return type of a GCC
39057    builtin and then its argument prototype would still apply.  */
39058 #ifdef __cplusplus
39059 extern "C"
39060 #endif
39061 char strftime ();
39062 int
39063 main ()
39064 {
39065 return strftime ();
39066   ;
39067   return 0;
39068 }
39069 _ACEOF
39070 rm -f conftest.$ac_objext conftest$ac_exeext
39071 if { (ac_try="$ac_link"
39072 case "(($ac_try" in
39073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39074   *) ac_try_echo=$ac_try;;
39075 esac
39076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39077   (eval "$ac_link") 2>conftest.er1
39078   ac_status=$?
39079   grep -v '^ *+' conftest.er1 >conftest.err
39080   rm -f conftest.er1
39081   cat conftest.err >&5
39082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39083   (exit $ac_status); } && {
39084          test -z "$ac_c_werror_flag" ||
39085          test ! -s conftest.err
39086        } && test -s conftest$ac_exeext &&
39087        $as_test_x conftest$ac_exeext; then
39088   ac_cv_lib_intl_strftime=yes
39089 else
39090   echo "$as_me: failed program was:" >&5
39091 sed 's/^/| /' conftest.$ac_ext >&5
39092
39093         ac_cv_lib_intl_strftime=no
39094 fi
39095
39096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39097       conftest$ac_exeext conftest.$ac_ext
39098 LIBS=$ac_check_lib_save_LIBS
39099 fi
39100 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39101 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39102 if test $ac_cv_lib_intl_strftime = yes; then
39103   cat >>confdefs.h <<\_ACEOF
39104 #define HAVE_STRFTIME 1
39105 _ACEOF
39106
39107 LIBS="-lintl $LIBS"
39108 fi
39109
39110 fi
39111 done
39112
39113
39114 for ac_func in vprintf
39115 do
39116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39120   echo $ECHO_N "(cached) $ECHO_C" >&6
39121 else
39122   cat >conftest.$ac_ext <<_ACEOF
39123 /* confdefs.h.  */
39124 _ACEOF
39125 cat confdefs.h >>conftest.$ac_ext
39126 cat >>conftest.$ac_ext <<_ACEOF
39127 /* end confdefs.h.  */
39128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39130 #define $ac_func innocuous_$ac_func
39131
39132 /* System header to define __stub macros and hopefully few prototypes,
39133     which can conflict with char $ac_func (); below.
39134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39135     <limits.h> exists even on freestanding compilers.  */
39136
39137 #ifdef __STDC__
39138 # include <limits.h>
39139 #else
39140 # include <assert.h>
39141 #endif
39142
39143 #undef $ac_func
39144
39145 /* Override any GCC internal prototype to avoid an error.
39146    Use char because int might match the return type of a GCC
39147    builtin and then its argument prototype would still apply.  */
39148 #ifdef __cplusplus
39149 extern "C"
39150 #endif
39151 char $ac_func ();
39152 /* The GNU C library defines this for functions which it implements
39153     to always fail with ENOSYS.  Some functions are actually named
39154     something starting with __ and the normal name is an alias.  */
39155 #if defined __stub_$ac_func || defined __stub___$ac_func
39156 choke me
39157 #endif
39158
39159 int
39160 main ()
39161 {
39162 return $ac_func ();
39163   ;
39164   return 0;
39165 }
39166 _ACEOF
39167 rm -f conftest.$ac_objext conftest$ac_exeext
39168 if { (ac_try="$ac_link"
39169 case "(($ac_try" in
39170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39171   *) ac_try_echo=$ac_try;;
39172 esac
39173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39174   (eval "$ac_link") 2>conftest.er1
39175   ac_status=$?
39176   grep -v '^ *+' conftest.er1 >conftest.err
39177   rm -f conftest.er1
39178   cat conftest.err >&5
39179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180   (exit $ac_status); } && {
39181          test -z "$ac_c_werror_flag" ||
39182          test ! -s conftest.err
39183        } && test -s conftest$ac_exeext &&
39184        $as_test_x conftest$ac_exeext; then
39185   eval "$as_ac_var=yes"
39186 else
39187   echo "$as_me: failed program was:" >&5
39188 sed 's/^/| /' conftest.$ac_ext >&5
39189
39190         eval "$as_ac_var=no"
39191 fi
39192
39193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39194       conftest$ac_exeext conftest.$ac_ext
39195 fi
39196 ac_res=`eval echo '${'$as_ac_var'}'`
39197                { echo "$as_me:$LINENO: result: $ac_res" >&5
39198 echo "${ECHO_T}$ac_res" >&6; }
39199 if test `eval echo '${'$as_ac_var'}'` = yes; then
39200   cat >>confdefs.h <<_ACEOF
39201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39202 _ACEOF
39203
39204 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39205 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39206 if test "${ac_cv_func__doprnt+set}" = set; then
39207   echo $ECHO_N "(cached) $ECHO_C" >&6
39208 else
39209   cat >conftest.$ac_ext <<_ACEOF
39210 /* confdefs.h.  */
39211 _ACEOF
39212 cat confdefs.h >>conftest.$ac_ext
39213 cat >>conftest.$ac_ext <<_ACEOF
39214 /* end confdefs.h.  */
39215 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39217 #define _doprnt innocuous__doprnt
39218
39219 /* System header to define __stub macros and hopefully few prototypes,
39220     which can conflict with char _doprnt (); below.
39221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39222     <limits.h> exists even on freestanding compilers.  */
39223
39224 #ifdef __STDC__
39225 # include <limits.h>
39226 #else
39227 # include <assert.h>
39228 #endif
39229
39230 #undef _doprnt
39231
39232 /* Override any GCC internal prototype to avoid an error.
39233    Use char because int might match the return type of a GCC
39234    builtin and then its argument prototype would still apply.  */
39235 #ifdef __cplusplus
39236 extern "C"
39237 #endif
39238 char _doprnt ();
39239 /* The GNU C library defines this for functions which it implements
39240     to always fail with ENOSYS.  Some functions are actually named
39241     something starting with __ and the normal name is an alias.  */
39242 #if defined __stub__doprnt || defined __stub____doprnt
39243 choke me
39244 #endif
39245
39246 int
39247 main ()
39248 {
39249 return _doprnt ();
39250   ;
39251   return 0;
39252 }
39253 _ACEOF
39254 rm -f conftest.$ac_objext conftest$ac_exeext
39255 if { (ac_try="$ac_link"
39256 case "(($ac_try" in
39257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39258   *) ac_try_echo=$ac_try;;
39259 esac
39260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39261   (eval "$ac_link") 2>conftest.er1
39262   ac_status=$?
39263   grep -v '^ *+' conftest.er1 >conftest.err
39264   rm -f conftest.er1
39265   cat conftest.err >&5
39266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267   (exit $ac_status); } && {
39268          test -z "$ac_c_werror_flag" ||
39269          test ! -s conftest.err
39270        } && test -s conftest$ac_exeext &&
39271        $as_test_x conftest$ac_exeext; then
39272   ac_cv_func__doprnt=yes
39273 else
39274   echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.$ac_ext >&5
39276
39277         ac_cv_func__doprnt=no
39278 fi
39279
39280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39281       conftest$ac_exeext conftest.$ac_ext
39282 fi
39283 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39284 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39285 if test $ac_cv_func__doprnt = yes; then
39286
39287 cat >>confdefs.h <<\_ACEOF
39288 #define HAVE_DOPRNT 1
39289 _ACEOF
39290
39291 fi
39292
39293 fi
39294 done
39295
39296
39297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39298 # for constant arguments.  Useless!
39299 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39300 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39301 if test "${ac_cv_working_alloca_h+set}" = set; then
39302   echo $ECHO_N "(cached) $ECHO_C" >&6
39303 else
39304   cat >conftest.$ac_ext <<_ACEOF
39305 /* confdefs.h.  */
39306 _ACEOF
39307 cat confdefs.h >>conftest.$ac_ext
39308 cat >>conftest.$ac_ext <<_ACEOF
39309 /* end confdefs.h.  */
39310 #include <alloca.h>
39311 int
39312 main ()
39313 {
39314 char *p = (char *) alloca (2 * sizeof (int));
39315                           if (p) return 0;
39316   ;
39317   return 0;
39318 }
39319 _ACEOF
39320 rm -f conftest.$ac_objext conftest$ac_exeext
39321 if { (ac_try="$ac_link"
39322 case "(($ac_try" in
39323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39324   *) ac_try_echo=$ac_try;;
39325 esac
39326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39327   (eval "$ac_link") 2>conftest.er1
39328   ac_status=$?
39329   grep -v '^ *+' conftest.er1 >conftest.err
39330   rm -f conftest.er1
39331   cat conftest.err >&5
39332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333   (exit $ac_status); } && {
39334          test -z "$ac_c_werror_flag" ||
39335          test ! -s conftest.err
39336        } && test -s conftest$ac_exeext &&
39337        $as_test_x conftest$ac_exeext; then
39338   ac_cv_working_alloca_h=yes
39339 else
39340   echo "$as_me: failed program was:" >&5
39341 sed 's/^/| /' conftest.$ac_ext >&5
39342
39343         ac_cv_working_alloca_h=no
39344 fi
39345
39346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39347       conftest$ac_exeext conftest.$ac_ext
39348 fi
39349 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39350 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39351 if test $ac_cv_working_alloca_h = yes; then
39352
39353 cat >>confdefs.h <<\_ACEOF
39354 #define HAVE_ALLOCA_H 1
39355 _ACEOF
39356
39357 fi
39358
39359 { echo "$as_me:$LINENO: checking for alloca" >&5
39360 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39361 if test "${ac_cv_func_alloca_works+set}" = set; then
39362   echo $ECHO_N "(cached) $ECHO_C" >&6
39363 else
39364   cat >conftest.$ac_ext <<_ACEOF
39365 /* confdefs.h.  */
39366 _ACEOF
39367 cat confdefs.h >>conftest.$ac_ext
39368 cat >>conftest.$ac_ext <<_ACEOF
39369 /* end confdefs.h.  */
39370 #ifdef __GNUC__
39371 # define alloca __builtin_alloca
39372 #else
39373 # ifdef _MSC_VER
39374 #  include <malloc.h>
39375 #  define alloca _alloca
39376 # else
39377 #  ifdef HAVE_ALLOCA_H
39378 #   include <alloca.h>
39379 #  else
39380 #   ifdef _AIX
39381  #pragma alloca
39382 #   else
39383 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39384 char *alloca ();
39385 #    endif
39386 #   endif
39387 #  endif
39388 # endif
39389 #endif
39390
39391 int
39392 main ()
39393 {
39394 char *p = (char *) alloca (1);
39395                                     if (p) return 0;
39396   ;
39397   return 0;
39398 }
39399 _ACEOF
39400 rm -f conftest.$ac_objext conftest$ac_exeext
39401 if { (ac_try="$ac_link"
39402 case "(($ac_try" in
39403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39404   *) ac_try_echo=$ac_try;;
39405 esac
39406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39407   (eval "$ac_link") 2>conftest.er1
39408   ac_status=$?
39409   grep -v '^ *+' conftest.er1 >conftest.err
39410   rm -f conftest.er1
39411   cat conftest.err >&5
39412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413   (exit $ac_status); } && {
39414          test -z "$ac_c_werror_flag" ||
39415          test ! -s conftest.err
39416        } && test -s conftest$ac_exeext &&
39417        $as_test_x conftest$ac_exeext; then
39418   ac_cv_func_alloca_works=yes
39419 else
39420   echo "$as_me: failed program was:" >&5
39421 sed 's/^/| /' conftest.$ac_ext >&5
39422
39423         ac_cv_func_alloca_works=no
39424 fi
39425
39426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39427       conftest$ac_exeext conftest.$ac_ext
39428 fi
39429 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39430 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39431
39432 if test $ac_cv_func_alloca_works = yes; then
39433
39434 cat >>confdefs.h <<\_ACEOF
39435 #define HAVE_ALLOCA 1
39436 _ACEOF
39437
39438 else
39439   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39440 # that cause trouble.  Some versions do not even contain alloca or
39441 # contain a buggy version.  If you still want to use their alloca,
39442 # use ar to extract alloca.o from them instead of compiling alloca.c.
39443
39444 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39445
39446 cat >>confdefs.h <<\_ACEOF
39447 #define C_ALLOCA 1
39448 _ACEOF
39449
39450
39451 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39452 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39453 if test "${ac_cv_os_cray+set}" = set; then
39454   echo $ECHO_N "(cached) $ECHO_C" >&6
39455 else
39456   cat >conftest.$ac_ext <<_ACEOF
39457 /* confdefs.h.  */
39458 _ACEOF
39459 cat confdefs.h >>conftest.$ac_ext
39460 cat >>conftest.$ac_ext <<_ACEOF
39461 /* end confdefs.h.  */
39462 #if defined CRAY && ! defined CRAY2
39463 webecray
39464 #else
39465 wenotbecray
39466 #endif
39467
39468 _ACEOF
39469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39470   $EGREP "webecray" >/dev/null 2>&1; then
39471   ac_cv_os_cray=yes
39472 else
39473   ac_cv_os_cray=no
39474 fi
39475 rm -f conftest*
39476
39477 fi
39478 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39479 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39480 if test $ac_cv_os_cray = yes; then
39481   for ac_func in _getb67 GETB67 getb67; do
39482     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39486   echo $ECHO_N "(cached) $ECHO_C" >&6
39487 else
39488   cat >conftest.$ac_ext <<_ACEOF
39489 /* confdefs.h.  */
39490 _ACEOF
39491 cat confdefs.h >>conftest.$ac_ext
39492 cat >>conftest.$ac_ext <<_ACEOF
39493 /* end confdefs.h.  */
39494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39496 #define $ac_func innocuous_$ac_func
39497
39498 /* System header to define __stub macros and hopefully few prototypes,
39499     which can conflict with char $ac_func (); below.
39500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39501     <limits.h> exists even on freestanding compilers.  */
39502
39503 #ifdef __STDC__
39504 # include <limits.h>
39505 #else
39506 # include <assert.h>
39507 #endif
39508
39509 #undef $ac_func
39510
39511 /* Override any GCC internal prototype to avoid an error.
39512    Use char because int might match the return type of a GCC
39513    builtin and then its argument prototype would still apply.  */
39514 #ifdef __cplusplus
39515 extern "C"
39516 #endif
39517 char $ac_func ();
39518 /* The GNU C library defines this for functions which it implements
39519     to always fail with ENOSYS.  Some functions are actually named
39520     something starting with __ and the normal name is an alias.  */
39521 #if defined __stub_$ac_func || defined __stub___$ac_func
39522 choke me
39523 #endif
39524
39525 int
39526 main ()
39527 {
39528 return $ac_func ();
39529   ;
39530   return 0;
39531 }
39532 _ACEOF
39533 rm -f conftest.$ac_objext conftest$ac_exeext
39534 if { (ac_try="$ac_link"
39535 case "(($ac_try" in
39536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39537   *) ac_try_echo=$ac_try;;
39538 esac
39539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39540   (eval "$ac_link") 2>conftest.er1
39541   ac_status=$?
39542   grep -v '^ *+' conftest.er1 >conftest.err
39543   rm -f conftest.er1
39544   cat conftest.err >&5
39545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546   (exit $ac_status); } && {
39547          test -z "$ac_c_werror_flag" ||
39548          test ! -s conftest.err
39549        } && test -s conftest$ac_exeext &&
39550        $as_test_x conftest$ac_exeext; then
39551   eval "$as_ac_var=yes"
39552 else
39553   echo "$as_me: failed program was:" >&5
39554 sed 's/^/| /' conftest.$ac_ext >&5
39555
39556         eval "$as_ac_var=no"
39557 fi
39558
39559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39560       conftest$ac_exeext conftest.$ac_ext
39561 fi
39562 ac_res=`eval echo '${'$as_ac_var'}'`
39563                { echo "$as_me:$LINENO: result: $ac_res" >&5
39564 echo "${ECHO_T}$ac_res" >&6; }
39565 if test `eval echo '${'$as_ac_var'}'` = yes; then
39566
39567 cat >>confdefs.h <<_ACEOF
39568 #define CRAY_STACKSEG_END $ac_func
39569 _ACEOF
39570
39571     break
39572 fi
39573
39574   done
39575 fi
39576
39577 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39578 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39579 if test "${ac_cv_c_stack_direction+set}" = set; then
39580   echo $ECHO_N "(cached) $ECHO_C" >&6
39581 else
39582   if test "$cross_compiling" = yes; then
39583   ac_cv_c_stack_direction=0
39584 else
39585   cat >conftest.$ac_ext <<_ACEOF
39586 /* confdefs.h.  */
39587 _ACEOF
39588 cat confdefs.h >>conftest.$ac_ext
39589 cat >>conftest.$ac_ext <<_ACEOF
39590 /* end confdefs.h.  */
39591 $ac_includes_default
39592 int
39593 find_stack_direction ()
39594 {
39595   static char *addr = 0;
39596   auto char dummy;
39597   if (addr == 0)
39598     {
39599       addr = &dummy;
39600       return find_stack_direction ();
39601     }
39602   else
39603     return (&dummy > addr) ? 1 : -1;
39604 }
39605
39606 int
39607 main ()
39608 {
39609   return find_stack_direction () < 0;
39610 }
39611 _ACEOF
39612 rm -f conftest$ac_exeext
39613 if { (ac_try="$ac_link"
39614 case "(($ac_try" in
39615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39616   *) ac_try_echo=$ac_try;;
39617 esac
39618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39619   (eval "$ac_link") 2>&5
39620   ac_status=$?
39621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39623   { (case "(($ac_try" in
39624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39625   *) ac_try_echo=$ac_try;;
39626 esac
39627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39628   (eval "$ac_try") 2>&5
39629   ac_status=$?
39630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631   (exit $ac_status); }; }; then
39632   ac_cv_c_stack_direction=1
39633 else
39634   echo "$as_me: program exited with status $ac_status" >&5
39635 echo "$as_me: failed program was:" >&5
39636 sed 's/^/| /' conftest.$ac_ext >&5
39637
39638 ( exit $ac_status )
39639 ac_cv_c_stack_direction=-1
39640 fi
39641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39642 fi
39643
39644
39645 fi
39646 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39647 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39648
39649 cat >>confdefs.h <<_ACEOF
39650 #define STACK_DIRECTION $ac_cv_c_stack_direction
39651 _ACEOF
39652
39653
39654 fi
39655
39656 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39657 # -lseq on Dynix/PTX, -lgen on Unixware.
39658 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39659 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39660 if test "${ac_cv_search_getmntent+set}" = set; then
39661   echo $ECHO_N "(cached) $ECHO_C" >&6
39662 else
39663   ac_func_search_save_LIBS=$LIBS
39664 cat >conftest.$ac_ext <<_ACEOF
39665 /* confdefs.h.  */
39666 _ACEOF
39667 cat confdefs.h >>conftest.$ac_ext
39668 cat >>conftest.$ac_ext <<_ACEOF
39669 /* end confdefs.h.  */
39670
39671 /* Override any GCC internal prototype to avoid an error.
39672    Use char because int might match the return type of a GCC
39673    builtin and then its argument prototype would still apply.  */
39674 #ifdef __cplusplus
39675 extern "C"
39676 #endif
39677 char getmntent ();
39678 int
39679 main ()
39680 {
39681 return getmntent ();
39682   ;
39683   return 0;
39684 }
39685 _ACEOF
39686 for ac_lib in '' sun seq gen; do
39687   if test -z "$ac_lib"; then
39688     ac_res="none required"
39689   else
39690     ac_res=-l$ac_lib
39691     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39692   fi
39693   rm -f conftest.$ac_objext conftest$ac_exeext
39694 if { (ac_try="$ac_link"
39695 case "(($ac_try" in
39696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39697   *) ac_try_echo=$ac_try;;
39698 esac
39699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39700   (eval "$ac_link") 2>conftest.er1
39701   ac_status=$?
39702   grep -v '^ *+' conftest.er1 >conftest.err
39703   rm -f conftest.er1
39704   cat conftest.err >&5
39705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39706   (exit $ac_status); } && {
39707          test -z "$ac_c_werror_flag" ||
39708          test ! -s conftest.err
39709        } && test -s conftest$ac_exeext &&
39710        $as_test_x conftest$ac_exeext; then
39711   ac_cv_search_getmntent=$ac_res
39712 else
39713   echo "$as_me: failed program was:" >&5
39714 sed 's/^/| /' conftest.$ac_ext >&5
39715
39716
39717 fi
39718
39719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39720       conftest$ac_exeext
39721   if test "${ac_cv_search_getmntent+set}" = set; then
39722   break
39723 fi
39724 done
39725 if test "${ac_cv_search_getmntent+set}" = set; then
39726   :
39727 else
39728   ac_cv_search_getmntent=no
39729 fi
39730 rm conftest.$ac_ext
39731 LIBS=$ac_func_search_save_LIBS
39732 fi
39733 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39734 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39735 ac_res=$ac_cv_search_getmntent
39736 if test "$ac_res" != no; then
39737   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39738   ac_cv_func_getmntent=yes
39739
39740 cat >>confdefs.h <<\_ACEOF
39741 #define HAVE_GETMNTENT 1
39742 _ACEOF
39743
39744 else
39745   ac_cv_func_getmntent=no
39746 fi
39747
39748
39749 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39750 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39751 if test "${ac_cv_func_closedir_void+set}" = set; then
39752   echo $ECHO_N "(cached) $ECHO_C" >&6
39753 else
39754   if test "$cross_compiling" = yes; then
39755   ac_cv_func_closedir_void=yes
39756 else
39757   cat >conftest.$ac_ext <<_ACEOF
39758 /* confdefs.h.  */
39759 _ACEOF
39760 cat confdefs.h >>conftest.$ac_ext
39761 cat >>conftest.$ac_ext <<_ACEOF
39762 /* end confdefs.h.  */
39763 $ac_includes_default
39764 #include <$ac_header_dirent>
39765 #ifndef __cplusplus
39766 int closedir ();
39767 #endif
39768
39769 int
39770 main ()
39771 {
39772 return closedir (opendir (".")) != 0;
39773   ;
39774   return 0;
39775 }
39776 _ACEOF
39777 rm -f conftest$ac_exeext
39778 if { (ac_try="$ac_link"
39779 case "(($ac_try" in
39780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39781   *) ac_try_echo=$ac_try;;
39782 esac
39783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39784   (eval "$ac_link") 2>&5
39785   ac_status=$?
39786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39788   { (case "(($ac_try" in
39789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39790   *) ac_try_echo=$ac_try;;
39791 esac
39792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39793   (eval "$ac_try") 2>&5
39794   ac_status=$?
39795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39796   (exit $ac_status); }; }; then
39797   ac_cv_func_closedir_void=no
39798 else
39799   echo "$as_me: program exited with status $ac_status" >&5
39800 echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39802
39803 ( exit $ac_status )
39804 ac_cv_func_closedir_void=yes
39805 fi
39806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39807 fi
39808
39809
39810 fi
39811 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39812 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39813 if test $ac_cv_func_closedir_void = yes; then
39814
39815 cat >>confdefs.h <<\_ACEOF
39816 #define CLOSEDIR_VOID 1
39817 _ACEOF
39818
39819 fi
39820
39821 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39822 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39823 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39824   echo $ECHO_N "(cached) $ECHO_C" >&6
39825 else
39826   if test "$cross_compiling" = yes; then
39827   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39828 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39829    { (exit 1); exit 1; }; }
39830 else
39831   cat >conftest.$ac_ext <<_ACEOF
39832 /* confdefs.h.  */
39833 _ACEOF
39834 cat confdefs.h >>conftest.$ac_ext
39835 cat >>conftest.$ac_ext <<_ACEOF
39836 /* end confdefs.h.  */
39837 $ac_includes_default
39838 int
39839 main ()
39840 {
39841 /* If this system has a BSD-style setpgrp which takes arguments,
39842   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39843   exit successfully. */
39844   return setpgrp (1,1) != -1;
39845   ;
39846   return 0;
39847 }
39848 _ACEOF
39849 rm -f conftest$ac_exeext
39850 if { (ac_try="$ac_link"
39851 case "(($ac_try" in
39852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39853   *) ac_try_echo=$ac_try;;
39854 esac
39855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39856   (eval "$ac_link") 2>&5
39857   ac_status=$?
39858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39860   { (case "(($ac_try" in
39861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39862   *) ac_try_echo=$ac_try;;
39863 esac
39864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39865   (eval "$ac_try") 2>&5
39866   ac_status=$?
39867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868   (exit $ac_status); }; }; then
39869   ac_cv_func_setpgrp_void=no
39870 else
39871   echo "$as_me: program exited with status $ac_status" >&5
39872 echo "$as_me: failed program was:" >&5
39873 sed 's/^/| /' conftest.$ac_ext >&5
39874
39875 ( exit $ac_status )
39876 ac_cv_func_setpgrp_void=yes
39877 fi
39878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39879 fi
39880
39881
39882 fi
39883 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39884 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39885 if test $ac_cv_func_setpgrp_void = yes; then
39886
39887 cat >>confdefs.h <<\_ACEOF
39888 #define SETPGRP_VOID 1
39889 _ACEOF
39890
39891 fi
39892             # AC_FUNC_FNMATCH    dnl use local version
39893
39894 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39895 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39896 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39897   echo $ECHO_N "(cached) $ECHO_C" >&6
39898 else
39899   ac_check_lib_save_LIBS=$LIBS
39900 LIBS="-lintl  $LIBS"
39901 cat >conftest.$ac_ext <<_ACEOF
39902 /* confdefs.h.  */
39903 _ACEOF
39904 cat confdefs.h >>conftest.$ac_ext
39905 cat >>conftest.$ac_ext <<_ACEOF
39906 /* end confdefs.h.  */
39907
39908 /* Override any GCC internal prototype to avoid an error.
39909    Use char because int might match the return type of a GCC
39910    builtin and then its argument prototype would still apply.  */
39911 #ifdef __cplusplus
39912 extern "C"
39913 #endif
39914 char gettext ();
39915 int
39916 main ()
39917 {
39918 return gettext ();
39919   ;
39920   return 0;
39921 }
39922 _ACEOF
39923 rm -f conftest.$ac_objext conftest$ac_exeext
39924 if { (ac_try="$ac_link"
39925 case "(($ac_try" in
39926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39927   *) ac_try_echo=$ac_try;;
39928 esac
39929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39930   (eval "$ac_link") 2>conftest.er1
39931   ac_status=$?
39932   grep -v '^ *+' conftest.er1 >conftest.err
39933   rm -f conftest.er1
39934   cat conftest.err >&5
39935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936   (exit $ac_status); } && {
39937          test -z "$ac_c_werror_flag" ||
39938          test ! -s conftest.err
39939        } && test -s conftest$ac_exeext &&
39940        $as_test_x conftest$ac_exeext; then
39941   ac_cv_lib_intl_gettext=yes
39942 else
39943   echo "$as_me: failed program was:" >&5
39944 sed 's/^/| /' conftest.$ac_ext >&5
39945
39946         ac_cv_lib_intl_gettext=no
39947 fi
39948
39949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39950       conftest$ac_exeext conftest.$ac_ext
39951 LIBS=$ac_check_lib_save_LIBS
39952 fi
39953 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39954 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39955 if test $ac_cv_lib_intl_gettext = yes; then
39956   LIBS="$LIBS -lintl"
39957 fi
39958
39959
39960
39961 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39962 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39963 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39964   echo $ECHO_N "(cached) $ECHO_C" >&6
39965 else
39966   ac_check_lib_save_LIBS=$LIBS
39967 LIBS="-lsun  $LIBS"
39968 cat >conftest.$ac_ext <<_ACEOF
39969 /* confdefs.h.  */
39970 _ACEOF
39971 cat confdefs.h >>conftest.$ac_ext
39972 cat >>conftest.$ac_ext <<_ACEOF
39973 /* end confdefs.h.  */
39974
39975 /* Override any GCC internal prototype to avoid an error.
39976    Use char because int might match the return type of a GCC
39977    builtin and then its argument prototype would still apply.  */
39978 #ifdef __cplusplus
39979 extern "C"
39980 #endif
39981 char getpwnam ();
39982 int
39983 main ()
39984 {
39985 return getpwnam ();
39986   ;
39987   return 0;
39988 }
39989 _ACEOF
39990 rm -f conftest.$ac_objext conftest$ac_exeext
39991 if { (ac_try="$ac_link"
39992 case "(($ac_try" in
39993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39994   *) ac_try_echo=$ac_try;;
39995 esac
39996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39997   (eval "$ac_link") 2>conftest.er1
39998   ac_status=$?
39999   grep -v '^ *+' conftest.er1 >conftest.err
40000   rm -f conftest.er1
40001   cat conftest.err >&5
40002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003   (exit $ac_status); } && {
40004          test -z "$ac_c_werror_flag" ||
40005          test ! -s conftest.err
40006        } && test -s conftest$ac_exeext &&
40007        $as_test_x conftest$ac_exeext; then
40008   ac_cv_lib_sun_getpwnam=yes
40009 else
40010   echo "$as_me: failed program was:" >&5
40011 sed 's/^/| /' conftest.$ac_ext >&5
40012
40013         ac_cv_lib_sun_getpwnam=no
40014 fi
40015
40016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40017       conftest$ac_exeext conftest.$ac_ext
40018 LIBS=$ac_check_lib_save_LIBS
40019 fi
40020 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40021 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40022 if test $ac_cv_lib_sun_getpwnam = yes; then
40023   cat >>confdefs.h <<_ACEOF
40024 #define HAVE_LIBSUN 1
40025 _ACEOF
40026
40027   LIBS="-lsun $LIBS"
40028
40029 fi
40030
40031
40032
40033 for ac_header in zlib.h
40034 do
40035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40037   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40040   echo $ECHO_N "(cached) $ECHO_C" >&6
40041 fi
40042 ac_res=`eval echo '${'$as_ac_Header'}'`
40043                { echo "$as_me:$LINENO: result: $ac_res" >&5
40044 echo "${ECHO_T}$ac_res" >&6; }
40045 else
40046   # Is the header compilable?
40047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40049 cat >conftest.$ac_ext <<_ACEOF
40050 /* confdefs.h.  */
40051 _ACEOF
40052 cat confdefs.h >>conftest.$ac_ext
40053 cat >>conftest.$ac_ext <<_ACEOF
40054 /* end confdefs.h.  */
40055 $ac_includes_default
40056 #include <$ac_header>
40057 _ACEOF
40058 rm -f conftest.$ac_objext
40059 if { (ac_try="$ac_compile"
40060 case "(($ac_try" in
40061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40062   *) ac_try_echo=$ac_try;;
40063 esac
40064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40065   (eval "$ac_compile") 2>conftest.er1
40066   ac_status=$?
40067   grep -v '^ *+' conftest.er1 >conftest.err
40068   rm -f conftest.er1
40069   cat conftest.err >&5
40070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40071   (exit $ac_status); } && {
40072          test -z "$ac_c_werror_flag" ||
40073          test ! -s conftest.err
40074        } && test -s conftest.$ac_objext; then
40075   ac_header_compiler=yes
40076 else
40077   echo "$as_me: failed program was:" >&5
40078 sed 's/^/| /' conftest.$ac_ext >&5
40079
40080         ac_header_compiler=no
40081 fi
40082
40083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40085 echo "${ECHO_T}$ac_header_compiler" >&6; }
40086
40087 # Is the header present?
40088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40090 cat >conftest.$ac_ext <<_ACEOF
40091 /* confdefs.h.  */
40092 _ACEOF
40093 cat confdefs.h >>conftest.$ac_ext
40094 cat >>conftest.$ac_ext <<_ACEOF
40095 /* end confdefs.h.  */
40096 #include <$ac_header>
40097 _ACEOF
40098 if { (ac_try="$ac_cpp conftest.$ac_ext"
40099 case "(($ac_try" in
40100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40101   *) ac_try_echo=$ac_try;;
40102 esac
40103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40105   ac_status=$?
40106   grep -v '^ *+' conftest.er1 >conftest.err
40107   rm -f conftest.er1
40108   cat conftest.err >&5
40109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40110   (exit $ac_status); } >/dev/null && {
40111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40112          test ! -s conftest.err
40113        }; then
40114   ac_header_preproc=yes
40115 else
40116   echo "$as_me: failed program was:" >&5
40117 sed 's/^/| /' conftest.$ac_ext >&5
40118
40119   ac_header_preproc=no
40120 fi
40121
40122 rm -f conftest.err conftest.$ac_ext
40123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40124 echo "${ECHO_T}$ac_header_preproc" >&6; }
40125
40126 # So?  What about this header?
40127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40128   yes:no: )
40129     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40133     ac_header_preproc=yes
40134     ;;
40135   no:yes:* )
40136     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40138     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40139 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40140     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40142     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40143 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40146     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40148
40149     ;;
40150 esac
40151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40154   echo $ECHO_N "(cached) $ECHO_C" >&6
40155 else
40156   eval "$as_ac_Header=\$ac_header_preproc"
40157 fi
40158 ac_res=`eval echo '${'$as_ac_Header'}'`
40159                { echo "$as_me:$LINENO: result: $ac_res" >&5
40160 echo "${ECHO_T}$ac_res" >&6; }
40161
40162 fi
40163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40164   cat >>confdefs.h <<_ACEOF
40165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40166 _ACEOF
40167
40168 fi
40169
40170 done
40171
40172 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40173 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40174 if test "${ac_cv_lib_z_deflate+set}" = set; then
40175   echo $ECHO_N "(cached) $ECHO_C" >&6
40176 else
40177   ac_check_lib_save_LIBS=$LIBS
40178 LIBS="-lz  $LIBS"
40179 cat >conftest.$ac_ext <<_ACEOF
40180 /* confdefs.h.  */
40181 _ACEOF
40182 cat confdefs.h >>conftest.$ac_ext
40183 cat >>conftest.$ac_ext <<_ACEOF
40184 /* end confdefs.h.  */
40185
40186 /* Override any GCC internal prototype to avoid an error.
40187    Use char because int might match the return type of a GCC
40188    builtin and then its argument prototype would still apply.  */
40189 #ifdef __cplusplus
40190 extern "C"
40191 #endif
40192 char deflate ();
40193 int
40194 main ()
40195 {
40196 return deflate ();
40197   ;
40198   return 0;
40199 }
40200 _ACEOF
40201 rm -f conftest.$ac_objext conftest$ac_exeext
40202 if { (ac_try="$ac_link"
40203 case "(($ac_try" in
40204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40205   *) ac_try_echo=$ac_try;;
40206 esac
40207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40208   (eval "$ac_link") 2>conftest.er1
40209   ac_status=$?
40210   grep -v '^ *+' conftest.er1 >conftest.err
40211   rm -f conftest.er1
40212   cat conftest.err >&5
40213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214   (exit $ac_status); } && {
40215          test -z "$ac_c_werror_flag" ||
40216          test ! -s conftest.err
40217        } && test -s conftest$ac_exeext &&
40218        $as_test_x conftest$ac_exeext; then
40219   ac_cv_lib_z_deflate=yes
40220 else
40221   echo "$as_me: failed program was:" >&5
40222 sed 's/^/| /' conftest.$ac_ext >&5
40223
40224         ac_cv_lib_z_deflate=no
40225 fi
40226
40227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40228       conftest$ac_exeext conftest.$ac_ext
40229 LIBS=$ac_check_lib_save_LIBS
40230 fi
40231 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40232 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40233 if test $ac_cv_lib_z_deflate = yes; then
40234   FDLIBS="-lz"
40235 fi
40236
40237 have_zlib=no
40238 if test x$FDLIBS = x-lz; then
40239    cat >>confdefs.h <<\_ACEOF
40240 #define HAVE_LIBZ 1
40241 _ACEOF
40242
40243    have_zlib=yes
40244 fi
40245
40246 support_acl=yes
40247 # Check whether --enable-acl was given.
40248 if test "${enable_acl+set}" = set; then
40249   enableval=$enable_acl;
40250        if test x$enableval = xno; then
40251           support_acl=no
40252        fi
40253
40254
40255 fi
40256
40257
40258 have_acl=no
40259 have_extended_acl=no
40260 if test x$support_acl = xyes; then
40261    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40262   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40263 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40264 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40265   echo $ECHO_N "(cached) $ECHO_C" >&6
40266 fi
40267 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40268 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40269 else
40270   # Is the header compilable?
40271 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40272 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40273 cat >conftest.$ac_ext <<_ACEOF
40274 /* confdefs.h.  */
40275 _ACEOF
40276 cat confdefs.h >>conftest.$ac_ext
40277 cat >>conftest.$ac_ext <<_ACEOF
40278 /* end confdefs.h.  */
40279 $ac_includes_default
40280 #include <sys/acl.h>
40281 _ACEOF
40282 rm -f conftest.$ac_objext
40283 if { (ac_try="$ac_compile"
40284 case "(($ac_try" in
40285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40286   *) ac_try_echo=$ac_try;;
40287 esac
40288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40289   (eval "$ac_compile") 2>conftest.er1
40290   ac_status=$?
40291   grep -v '^ *+' conftest.er1 >conftest.err
40292   rm -f conftest.er1
40293   cat conftest.err >&5
40294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295   (exit $ac_status); } && {
40296          test -z "$ac_c_werror_flag" ||
40297          test ! -s conftest.err
40298        } && test -s conftest.$ac_objext; then
40299   ac_header_compiler=yes
40300 else
40301   echo "$as_me: failed program was:" >&5
40302 sed 's/^/| /' conftest.$ac_ext >&5
40303
40304         ac_header_compiler=no
40305 fi
40306
40307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40309 echo "${ECHO_T}$ac_header_compiler" >&6; }
40310
40311 # Is the header present?
40312 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40313 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40314 cat >conftest.$ac_ext <<_ACEOF
40315 /* confdefs.h.  */
40316 _ACEOF
40317 cat confdefs.h >>conftest.$ac_ext
40318 cat >>conftest.$ac_ext <<_ACEOF
40319 /* end confdefs.h.  */
40320 #include <sys/acl.h>
40321 _ACEOF
40322 if { (ac_try="$ac_cpp conftest.$ac_ext"
40323 case "(($ac_try" in
40324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40325   *) ac_try_echo=$ac_try;;
40326 esac
40327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40329   ac_status=$?
40330   grep -v '^ *+' conftest.er1 >conftest.err
40331   rm -f conftest.er1
40332   cat conftest.err >&5
40333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334   (exit $ac_status); } >/dev/null && {
40335          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40336          test ! -s conftest.err
40337        }; then
40338   ac_header_preproc=yes
40339 else
40340   echo "$as_me: failed program was:" >&5
40341 sed 's/^/| /' conftest.$ac_ext >&5
40342
40343   ac_header_preproc=no
40344 fi
40345
40346 rm -f conftest.err conftest.$ac_ext
40347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40348 echo "${ECHO_T}$ac_header_preproc" >&6; }
40349
40350 # So?  What about this header?
40351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40352   yes:no: )
40353     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40354 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40355     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40356 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40357     ac_header_preproc=yes
40358     ;;
40359   no:yes:* )
40360     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40361 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40362     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40363 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40364     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40365 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40366     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40367 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40368     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40369 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40370     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40371 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40372
40373     ;;
40374 esac
40375 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40376 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40377 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40378   echo $ECHO_N "(cached) $ECHO_C" >&6
40379 else
40380   ac_cv_header_sys_acl_h=$ac_header_preproc
40381 fi
40382 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40383 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40384
40385 fi
40386 if test $ac_cv_header_sys_acl_h = yes; then
40387
40388 cat >>confdefs.h <<\_ACEOF
40389 #define HAVE_SYS_ACL_H 1
40390 _ACEOF
40391
40392 fi
40393
40394
40395    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40396 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40397 if test "${ac_cv_func_acl_get_file+set}" = set; then
40398   echo $ECHO_N "(cached) $ECHO_C" >&6
40399 else
40400   cat >conftest.$ac_ext <<_ACEOF
40401 /* confdefs.h.  */
40402 _ACEOF
40403 cat confdefs.h >>conftest.$ac_ext
40404 cat >>conftest.$ac_ext <<_ACEOF
40405 /* end confdefs.h.  */
40406 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40408 #define acl_get_file innocuous_acl_get_file
40409
40410 /* System header to define __stub macros and hopefully few prototypes,
40411     which can conflict with char acl_get_file (); below.
40412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40413     <limits.h> exists even on freestanding compilers.  */
40414
40415 #ifdef __STDC__
40416 # include <limits.h>
40417 #else
40418 # include <assert.h>
40419 #endif
40420
40421 #undef acl_get_file
40422
40423 /* Override any GCC internal prototype to avoid an error.
40424    Use char because int might match the return type of a GCC
40425    builtin and then its argument prototype would still apply.  */
40426 #ifdef __cplusplus
40427 extern "C"
40428 #endif
40429 char acl_get_file ();
40430 /* The GNU C library defines this for functions which it implements
40431     to always fail with ENOSYS.  Some functions are actually named
40432     something starting with __ and the normal name is an alias.  */
40433 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40434 choke me
40435 #endif
40436
40437 int
40438 main ()
40439 {
40440 return acl_get_file ();
40441   ;
40442   return 0;
40443 }
40444 _ACEOF
40445 rm -f conftest.$ac_objext conftest$ac_exeext
40446 if { (ac_try="$ac_link"
40447 case "(($ac_try" in
40448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40449   *) ac_try_echo=$ac_try;;
40450 esac
40451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40452   (eval "$ac_link") 2>conftest.er1
40453   ac_status=$?
40454   grep -v '^ *+' conftest.er1 >conftest.err
40455   rm -f conftest.er1
40456   cat conftest.err >&5
40457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458   (exit $ac_status); } && {
40459          test -z "$ac_c_werror_flag" ||
40460          test ! -s conftest.err
40461        } && test -s conftest$ac_exeext &&
40462        $as_test_x conftest$ac_exeext; then
40463   ac_cv_func_acl_get_file=yes
40464 else
40465   echo "$as_me: failed program was:" >&5
40466 sed 's/^/| /' conftest.$ac_ext >&5
40467
40468         ac_cv_func_acl_get_file=no
40469 fi
40470
40471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40472       conftest$ac_exeext conftest.$ac_ext
40473 fi
40474 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40475 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40476 if test $ac_cv_func_acl_get_file = yes; then
40477
40478           have_acl=yes
40479
40480 else
40481
40482           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40483 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40484 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40485   echo $ECHO_N "(cached) $ECHO_C" >&6
40486 else
40487   ac_check_lib_save_LIBS=$LIBS
40488 LIBS="-lacl  $LIBS"
40489 cat >conftest.$ac_ext <<_ACEOF
40490 /* confdefs.h.  */
40491 _ACEOF
40492 cat confdefs.h >>conftest.$ac_ext
40493 cat >>conftest.$ac_ext <<_ACEOF
40494 /* end confdefs.h.  */
40495
40496 /* Override any GCC internal prototype to avoid an error.
40497    Use char because int might match the return type of a GCC
40498    builtin and then its argument prototype would still apply.  */
40499 #ifdef __cplusplus
40500 extern "C"
40501 #endif
40502 char acl_get_file ();
40503 int
40504 main ()
40505 {
40506 return acl_get_file ();
40507   ;
40508   return 0;
40509 }
40510 _ACEOF
40511 rm -f conftest.$ac_objext conftest$ac_exeext
40512 if { (ac_try="$ac_link"
40513 case "(($ac_try" in
40514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40515   *) ac_try_echo=$ac_try;;
40516 esac
40517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40518   (eval "$ac_link") 2>conftest.er1
40519   ac_status=$?
40520   grep -v '^ *+' conftest.er1 >conftest.err
40521   rm -f conftest.er1
40522   cat conftest.err >&5
40523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524   (exit $ac_status); } && {
40525          test -z "$ac_c_werror_flag" ||
40526          test ! -s conftest.err
40527        } && test -s conftest$ac_exeext &&
40528        $as_test_x conftest$ac_exeext; then
40529   ac_cv_lib_acl_acl_get_file=yes
40530 else
40531   echo "$as_me: failed program was:" >&5
40532 sed 's/^/| /' conftest.$ac_ext >&5
40533
40534         ac_cv_lib_acl_acl_get_file=no
40535 fi
40536
40537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40538       conftest$ac_exeext conftest.$ac_ext
40539 LIBS=$ac_check_lib_save_LIBS
40540 fi
40541 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40542 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40543 if test $ac_cv_lib_acl_acl_get_file = yes; then
40544
40545                  have_acl=yes;
40546                  FDLIBS="-lacl $FDLIBS"
40547
40548 else
40549
40550                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40551 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40552 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40553   echo $ECHO_N "(cached) $ECHO_C" >&6
40554 else
40555   ac_check_lib_save_LIBS=$LIBS
40556 LIBS="-lpacl  $LIBS"
40557 cat >conftest.$ac_ext <<_ACEOF
40558 /* confdefs.h.  */
40559 _ACEOF
40560 cat confdefs.h >>conftest.$ac_ext
40561 cat >>conftest.$ac_ext <<_ACEOF
40562 /* end confdefs.h.  */
40563
40564 /* Override any GCC internal prototype to avoid an error.
40565    Use char because int might match the return type of a GCC
40566    builtin and then its argument prototype would still apply.  */
40567 #ifdef __cplusplus
40568 extern "C"
40569 #endif
40570 char acl_get_file ();
40571 int
40572 main ()
40573 {
40574 return acl_get_file ();
40575   ;
40576   return 0;
40577 }
40578 _ACEOF
40579 rm -f conftest.$ac_objext conftest$ac_exeext
40580 if { (ac_try="$ac_link"
40581 case "(($ac_try" in
40582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40583   *) ac_try_echo=$ac_try;;
40584 esac
40585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40586   (eval "$ac_link") 2>conftest.er1
40587   ac_status=$?
40588   grep -v '^ *+' conftest.er1 >conftest.err
40589   rm -f conftest.er1
40590   cat conftest.err >&5
40591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40592   (exit $ac_status); } && {
40593          test -z "$ac_c_werror_flag" ||
40594          test ! -s conftest.err
40595        } && test -s conftest$ac_exeext &&
40596        $as_test_x conftest$ac_exeext; then
40597   ac_cv_lib_pacl_acl_get_file=yes
40598 else
40599   echo "$as_me: failed program was:" >&5
40600 sed 's/^/| /' conftest.$ac_ext >&5
40601
40602         ac_cv_lib_pacl_acl_get_file=no
40603 fi
40604
40605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40606       conftest$ac_exeext conftest.$ac_ext
40607 LIBS=$ac_check_lib_save_LIBS
40608 fi
40609 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40610 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40611 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40612
40613                         have_acl=yes;
40614                         FDLIBS="-lpacl $FDLIBS"
40615
40616 else
40617
40618                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40619 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40620 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40621   echo $ECHO_N "(cached) $ECHO_C" >&6
40622 else
40623   ac_check_lib_save_LIBS=$LIBS
40624 LIBS="-lsec  $LIBS"
40625 cat >conftest.$ac_ext <<_ACEOF
40626 /* confdefs.h.  */
40627 _ACEOF
40628 cat confdefs.h >>conftest.$ac_ext
40629 cat >>conftest.$ac_ext <<_ACEOF
40630 /* end confdefs.h.  */
40631
40632 /* Override any GCC internal prototype to avoid an error.
40633    Use char because int might match the return type of a GCC
40634    builtin and then its argument prototype would still apply.  */
40635 #ifdef __cplusplus
40636 extern "C"
40637 #endif
40638 char acltotext ();
40639 int
40640 main ()
40641 {
40642 return acltotext ();
40643   ;
40644   return 0;
40645 }
40646 _ACEOF
40647 rm -f conftest.$ac_objext conftest$ac_exeext
40648 if { (ac_try="$ac_link"
40649 case "(($ac_try" in
40650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40651   *) ac_try_echo=$ac_try;;
40652 esac
40653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40654   (eval "$ac_link") 2>conftest.er1
40655   ac_status=$?
40656   grep -v '^ *+' conftest.er1 >conftest.err
40657   rm -f conftest.er1
40658   cat conftest.err >&5
40659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40660   (exit $ac_status); } && {
40661          test -z "$ac_c_werror_flag" ||
40662          test ! -s conftest.err
40663        } && test -s conftest$ac_exeext &&
40664        $as_test_x conftest$ac_exeext; then
40665   ac_cv_lib_sec_acltotext=yes
40666 else
40667   echo "$as_me: failed program was:" >&5
40668 sed 's/^/| /' conftest.$ac_ext >&5
40669
40670         ac_cv_lib_sec_acltotext=no
40671 fi
40672
40673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40674       conftest$ac_exeext conftest.$ac_ext
40675 LIBS=$ac_check_lib_save_LIBS
40676 fi
40677 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40678 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40679 if test $ac_cv_lib_sec_acltotext = yes; then
40680
40681                                have_acl=yes;
40682                                FDLIBS="-lsec $FDLIBS"
40683
40684                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40685 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40686 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40687   echo $ECHO_N "(cached) $ECHO_C" >&6
40688 else
40689   ac_check_lib_save_LIBS=$LIBS
40690 LIBS="-lsec  $LIBS"
40691 cat >conftest.$ac_ext <<_ACEOF
40692 /* confdefs.h.  */
40693 _ACEOF
40694 cat confdefs.h >>conftest.$ac_ext
40695 cat >>conftest.$ac_ext <<_ACEOF
40696 /* end confdefs.h.  */
40697
40698 /* Override any GCC internal prototype to avoid an error.
40699    Use char because int might match the return type of a GCC
40700    builtin and then its argument prototype would still apply.  */
40701 #ifdef __cplusplus
40702 extern "C"
40703 #endif
40704 char acl_totext ();
40705 int
40706 main ()
40707 {
40708 return acl_totext ();
40709   ;
40710   return 0;
40711 }
40712 _ACEOF
40713 rm -f conftest.$ac_objext conftest$ac_exeext
40714 if { (ac_try="$ac_link"
40715 case "(($ac_try" in
40716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40717   *) ac_try_echo=$ac_try;;
40718 esac
40719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40720   (eval "$ac_link") 2>conftest.er1
40721   ac_status=$?
40722   grep -v '^ *+' conftest.er1 >conftest.err
40723   rm -f conftest.er1
40724   cat conftest.err >&5
40725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40726   (exit $ac_status); } && {
40727          test -z "$ac_c_werror_flag" ||
40728          test ! -s conftest.err
40729        } && test -s conftest$ac_exeext &&
40730        $as_test_x conftest$ac_exeext; then
40731   ac_cv_lib_sec_acl_totext=yes
40732 else
40733   echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40735
40736         ac_cv_lib_sec_acl_totext=no
40737 fi
40738
40739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40740       conftest$ac_exeext conftest.$ac_ext
40741 LIBS=$ac_check_lib_save_LIBS
40742 fi
40743 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40744 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40745 if test $ac_cv_lib_sec_acl_totext = yes; then
40746
40747                                       have_extended_acl=yes
40748
40749
40750 fi
40751
40752
40753
40754 fi
40755
40756
40757
40758 fi
40759
40760
40761
40762 fi
40763
40764
40765
40766 fi
40767
40768    if test $have_acl = yes; then
40769       cat >>confdefs.h <<\_ACEOF
40770 #define HAVE_ACL 1
40771 _ACEOF
40772
40773    fi
40774
40775    if test $have_extended_acl = yes; then
40776       cat >>confdefs.h <<\_ACEOF
40777 #define HAVE_EXTENDED_ACL 1
40778 _ACEOF
40779
40780    fi
40781 fi
40782
40783 support_xattr=yes
40784 # Check whether --enable-xattr was given.
40785 if test "${enable_xattr+set}" = set; then
40786   enableval=$enable_xattr;
40787        if test x$enableval = xno; then
40788           support_acl=no
40789        fi
40790
40791
40792 fi
40793
40794
40795 have_xattr=no
40796 if test x$support_xattr = xyes; then
40797    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40798   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40799 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40800 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40801   echo $ECHO_N "(cached) $ECHO_C" >&6
40802 fi
40803 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40804 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40805 else
40806   # Is the header compilable?
40807 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
40808 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
40809 cat >conftest.$ac_ext <<_ACEOF
40810 /* confdefs.h.  */
40811 _ACEOF
40812 cat confdefs.h >>conftest.$ac_ext
40813 cat >>conftest.$ac_ext <<_ACEOF
40814 /* end confdefs.h.  */
40815 $ac_includes_default
40816 #include <sys/xattr.h>
40817 _ACEOF
40818 rm -f conftest.$ac_objext
40819 if { (ac_try="$ac_compile"
40820 case "(($ac_try" in
40821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40822   *) ac_try_echo=$ac_try;;
40823 esac
40824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40825   (eval "$ac_compile") 2>conftest.er1
40826   ac_status=$?
40827   grep -v '^ *+' conftest.er1 >conftest.err
40828   rm -f conftest.er1
40829   cat conftest.err >&5
40830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40831   (exit $ac_status); } && {
40832          test -z "$ac_c_werror_flag" ||
40833          test ! -s conftest.err
40834        } && test -s conftest.$ac_objext; then
40835   ac_header_compiler=yes
40836 else
40837   echo "$as_me: failed program was:" >&5
40838 sed 's/^/| /' conftest.$ac_ext >&5
40839
40840         ac_header_compiler=no
40841 fi
40842
40843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40845 echo "${ECHO_T}$ac_header_compiler" >&6; }
40846
40847 # Is the header present?
40848 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
40849 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
40850 cat >conftest.$ac_ext <<_ACEOF
40851 /* confdefs.h.  */
40852 _ACEOF
40853 cat confdefs.h >>conftest.$ac_ext
40854 cat >>conftest.$ac_ext <<_ACEOF
40855 /* end confdefs.h.  */
40856 #include <sys/xattr.h>
40857 _ACEOF
40858 if { (ac_try="$ac_cpp conftest.$ac_ext"
40859 case "(($ac_try" in
40860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40861   *) ac_try_echo=$ac_try;;
40862 esac
40863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40865   ac_status=$?
40866   grep -v '^ *+' conftest.er1 >conftest.err
40867   rm -f conftest.er1
40868   cat conftest.err >&5
40869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40870   (exit $ac_status); } >/dev/null && {
40871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40872          test ! -s conftest.err
40873        }; then
40874   ac_header_preproc=yes
40875 else
40876   echo "$as_me: failed program was:" >&5
40877 sed 's/^/| /' conftest.$ac_ext >&5
40878
40879   ac_header_preproc=no
40880 fi
40881
40882 rm -f conftest.err conftest.$ac_ext
40883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40884 echo "${ECHO_T}$ac_header_preproc" >&6; }
40885
40886 # So?  What about this header?
40887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40888   yes:no: )
40889     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
40890 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40891     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
40892 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
40893     ac_header_preproc=yes
40894     ;;
40895   no:yes:* )
40896     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
40897 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
40898     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
40899 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
40900     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
40901 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
40902     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
40903 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40904     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
40905 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
40906     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
40907 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
40908
40909     ;;
40910 esac
40911 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40912 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40913 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40914   echo $ECHO_N "(cached) $ECHO_C" >&6
40915 else
40916   ac_cv_header_sys_xattr_h=$ac_header_preproc
40917 fi
40918 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40919 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40920
40921 fi
40922 if test $ac_cv_header_sys_xattr_h = yes; then
40923
40924 cat >>confdefs.h <<\_ACEOF
40925 #define HAVE_SYS_XATTR_H 1
40926 _ACEOF
40927
40928 fi
40929
40930
40931
40932
40933
40934 for ac_func in llistxattr lgetxattr lsetxattr
40935 do
40936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40940   echo $ECHO_N "(cached) $ECHO_C" >&6
40941 else
40942   cat >conftest.$ac_ext <<_ACEOF
40943 /* confdefs.h.  */
40944 _ACEOF
40945 cat confdefs.h >>conftest.$ac_ext
40946 cat >>conftest.$ac_ext <<_ACEOF
40947 /* end confdefs.h.  */
40948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40950 #define $ac_func innocuous_$ac_func
40951
40952 /* System header to define __stub macros and hopefully few prototypes,
40953     which can conflict with char $ac_func (); below.
40954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40955     <limits.h> exists even on freestanding compilers.  */
40956
40957 #ifdef __STDC__
40958 # include <limits.h>
40959 #else
40960 # include <assert.h>
40961 #endif
40962
40963 #undef $ac_func
40964
40965 /* Override any GCC internal prototype to avoid an error.
40966    Use char because int might match the return type of a GCC
40967    builtin and then its argument prototype would still apply.  */
40968 #ifdef __cplusplus
40969 extern "C"
40970 #endif
40971 char $ac_func ();
40972 /* The GNU C library defines this for functions which it implements
40973     to always fail with ENOSYS.  Some functions are actually named
40974     something starting with __ and the normal name is an alias.  */
40975 #if defined __stub_$ac_func || defined __stub___$ac_func
40976 choke me
40977 #endif
40978
40979 int
40980 main ()
40981 {
40982 return $ac_func ();
40983   ;
40984   return 0;
40985 }
40986 _ACEOF
40987 rm -f conftest.$ac_objext conftest$ac_exeext
40988 if { (ac_try="$ac_link"
40989 case "(($ac_try" in
40990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40991   *) ac_try_echo=$ac_try;;
40992 esac
40993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40994   (eval "$ac_link") 2>conftest.er1
40995   ac_status=$?
40996   grep -v '^ *+' conftest.er1 >conftest.err
40997   rm -f conftest.er1
40998   cat conftest.err >&5
40999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41000   (exit $ac_status); } && {
41001          test -z "$ac_c_werror_flag" ||
41002          test ! -s conftest.err
41003        } && test -s conftest$ac_exeext &&
41004        $as_test_x conftest$ac_exeext; then
41005   eval "$as_ac_var=yes"
41006 else
41007   echo "$as_me: failed program was:" >&5
41008 sed 's/^/| /' conftest.$ac_ext >&5
41009
41010         eval "$as_ac_var=no"
41011 fi
41012
41013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41014       conftest$ac_exeext conftest.$ac_ext
41015 fi
41016 ac_res=`eval echo '${'$as_ac_var'}'`
41017                { echo "$as_me:$LINENO: result: $ac_res" >&5
41018 echo "${ECHO_T}$ac_res" >&6; }
41019 if test `eval echo '${'$as_ac_var'}'` = yes; then
41020   cat >>confdefs.h <<_ACEOF
41021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41022 _ACEOF
41023
41024           have_xattr=yes
41025           cat >>confdefs.h <<\_ACEOF
41026 #define HAVE_LLISTXATTR 1
41027 _ACEOF
41028
41029           cat >>confdefs.h <<\_ACEOF
41030 #define HAVE_LGETXATTR 1
41031 _ACEOF
41032
41033           cat >>confdefs.h <<\_ACEOF
41034 #define HAVE_LSETXATTR 1
41035 _ACEOF
41036
41037
41038 else
41039
41040
41041
41042
41043 for ac_func in listxattr getxattr setxattr
41044 do
41045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41049   echo $ECHO_N "(cached) $ECHO_C" >&6
41050 else
41051   cat >conftest.$ac_ext <<_ACEOF
41052 /* confdefs.h.  */
41053 _ACEOF
41054 cat confdefs.h >>conftest.$ac_ext
41055 cat >>conftest.$ac_ext <<_ACEOF
41056 /* end confdefs.h.  */
41057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41059 #define $ac_func innocuous_$ac_func
41060
41061 /* System header to define __stub macros and hopefully few prototypes,
41062     which can conflict with char $ac_func (); below.
41063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41064     <limits.h> exists even on freestanding compilers.  */
41065
41066 #ifdef __STDC__
41067 # include <limits.h>
41068 #else
41069 # include <assert.h>
41070 #endif
41071
41072 #undef $ac_func
41073
41074 /* Override any GCC internal prototype to avoid an error.
41075    Use char because int might match the return type of a GCC
41076    builtin and then its argument prototype would still apply.  */
41077 #ifdef __cplusplus
41078 extern "C"
41079 #endif
41080 char $ac_func ();
41081 /* The GNU C library defines this for functions which it implements
41082     to always fail with ENOSYS.  Some functions are actually named
41083     something starting with __ and the normal name is an alias.  */
41084 #if defined __stub_$ac_func || defined __stub___$ac_func
41085 choke me
41086 #endif
41087
41088 int
41089 main ()
41090 {
41091 return $ac_func ();
41092   ;
41093   return 0;
41094 }
41095 _ACEOF
41096 rm -f conftest.$ac_objext conftest$ac_exeext
41097 if { (ac_try="$ac_link"
41098 case "(($ac_try" in
41099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41100   *) ac_try_echo=$ac_try;;
41101 esac
41102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41103   (eval "$ac_link") 2>conftest.er1
41104   ac_status=$?
41105   grep -v '^ *+' conftest.er1 >conftest.err
41106   rm -f conftest.er1
41107   cat conftest.err >&5
41108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41109   (exit $ac_status); } && {
41110          test -z "$ac_c_werror_flag" ||
41111          test ! -s conftest.err
41112        } && test -s conftest$ac_exeext &&
41113        $as_test_x conftest$ac_exeext; then
41114   eval "$as_ac_var=yes"
41115 else
41116   echo "$as_me: failed program was:" >&5
41117 sed 's/^/| /' conftest.$ac_ext >&5
41118
41119         eval "$as_ac_var=no"
41120 fi
41121
41122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41123       conftest$ac_exeext conftest.$ac_ext
41124 fi
41125 ac_res=`eval echo '${'$as_ac_var'}'`
41126                { echo "$as_me:$LINENO: result: $ac_res" >&5
41127 echo "${ECHO_T}$ac_res" >&6; }
41128 if test `eval echo '${'$as_ac_var'}'` = yes; then
41129   cat >>confdefs.h <<_ACEOF
41130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41131 _ACEOF
41132
41133                   have_xattr=yes
41134                   cat >>confdefs.h <<\_ACEOF
41135 #define HAVE_LISTXATTR 1
41136 _ACEOF
41137
41138                   cat >>confdefs.h <<\_ACEOF
41139 #define HAVE_GETXATTR 1
41140 _ACEOF
41141
41142                   cat >>confdefs.h <<\_ACEOF
41143 #define HAVE_SETXATTR 1
41144 _ACEOF
41145
41146
41147
41148 fi
41149 done
41150
41151
41152
41153 fi
41154 done
41155
41156
41157    if test $have_xattr = yes; then
41158       cat >>confdefs.h <<\_ACEOF
41159 #define HAVE_XATTR 1
41160 _ACEOF
41161
41162    fi
41163 fi
41164
41165 PTHREAD_LIB=""
41166 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
41167 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
41168 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
41169   echo $ECHO_N "(cached) $ECHO_C" >&6
41170 else
41171   ac_check_lib_save_LIBS=$LIBS
41172 LIBS="-lpthread  $LIBS"
41173 cat >conftest.$ac_ext <<_ACEOF
41174 /* confdefs.h.  */
41175 _ACEOF
41176 cat confdefs.h >>conftest.$ac_ext
41177 cat >>conftest.$ac_ext <<_ACEOF
41178 /* end confdefs.h.  */
41179
41180 /* Override any GCC internal prototype to avoid an error.
41181    Use char because int might match the return type of a GCC
41182    builtin and then its argument prototype would still apply.  */
41183 #ifdef __cplusplus
41184 extern "C"
41185 #endif
41186 char pthread_create ();
41187 int
41188 main ()
41189 {
41190 return pthread_create ();
41191   ;
41192   return 0;
41193 }
41194 _ACEOF
41195 rm -f conftest.$ac_objext conftest$ac_exeext
41196 if { (ac_try="$ac_link"
41197 case "(($ac_try" in
41198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41199   *) ac_try_echo=$ac_try;;
41200 esac
41201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41202   (eval "$ac_link") 2>conftest.er1
41203   ac_status=$?
41204   grep -v '^ *+' conftest.er1 >conftest.err
41205   rm -f conftest.er1
41206   cat conftest.err >&5
41207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41208   (exit $ac_status); } && {
41209          test -z "$ac_c_werror_flag" ||
41210          test ! -s conftest.err
41211        } && test -s conftest$ac_exeext &&
41212        $as_test_x conftest$ac_exeext; then
41213   ac_cv_lib_pthread_pthread_create=yes
41214 else
41215   echo "$as_me: failed program was:" >&5
41216 sed 's/^/| /' conftest.$ac_ext >&5
41217
41218         ac_cv_lib_pthread_pthread_create=no
41219 fi
41220
41221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41222       conftest$ac_exeext conftest.$ac_ext
41223 LIBS=$ac_check_lib_save_LIBS
41224 fi
41225 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
41226 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
41227 if test $ac_cv_lib_pthread_pthread_create = yes; then
41228   PTHREAD_LIB="-lpthread"
41229 else
41230
41231        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
41232 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
41233 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
41234   echo $ECHO_N "(cached) $ECHO_C" >&6
41235 else
41236   ac_check_lib_save_LIBS=$LIBS
41237 LIBS="-lpthreads  $LIBS"
41238 cat >conftest.$ac_ext <<_ACEOF
41239 /* confdefs.h.  */
41240 _ACEOF
41241 cat confdefs.h >>conftest.$ac_ext
41242 cat >>conftest.$ac_ext <<_ACEOF
41243 /* end confdefs.h.  */
41244
41245 /* Override any GCC internal prototype to avoid an error.
41246    Use char because int might match the return type of a GCC
41247    builtin and then its argument prototype would still apply.  */
41248 #ifdef __cplusplus
41249 extern "C"
41250 #endif
41251 char pthread_create ();
41252 int
41253 main ()
41254 {
41255 return pthread_create ();
41256   ;
41257   return 0;
41258 }
41259 _ACEOF
41260 rm -f conftest.$ac_objext conftest$ac_exeext
41261 if { (ac_try="$ac_link"
41262 case "(($ac_try" in
41263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41264   *) ac_try_echo=$ac_try;;
41265 esac
41266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41267   (eval "$ac_link") 2>conftest.er1
41268   ac_status=$?
41269   grep -v '^ *+' conftest.er1 >conftest.err
41270   rm -f conftest.er1
41271   cat conftest.err >&5
41272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273   (exit $ac_status); } && {
41274          test -z "$ac_c_werror_flag" ||
41275          test ! -s conftest.err
41276        } && test -s conftest$ac_exeext &&
41277        $as_test_x conftest$ac_exeext; then
41278   ac_cv_lib_pthreads_pthread_create=yes
41279 else
41280   echo "$as_me: failed program was:" >&5
41281 sed 's/^/| /' conftest.$ac_ext >&5
41282
41283         ac_cv_lib_pthreads_pthread_create=no
41284 fi
41285
41286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41287       conftest$ac_exeext conftest.$ac_ext
41288 LIBS=$ac_check_lib_save_LIBS
41289 fi
41290 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
41291 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
41292 if test $ac_cv_lib_pthreads_pthread_create = yes; then
41293   PTHREAD_LIB="-lpthreads"
41294 else
41295
41296               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
41297 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
41298 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
41299   echo $ECHO_N "(cached) $ECHO_C" >&6
41300 else
41301   ac_check_lib_save_LIBS=$LIBS
41302 LIBS="-lc_r  $LIBS"
41303 cat >conftest.$ac_ext <<_ACEOF
41304 /* confdefs.h.  */
41305 _ACEOF
41306 cat confdefs.h >>conftest.$ac_ext
41307 cat >>conftest.$ac_ext <<_ACEOF
41308 /* end confdefs.h.  */
41309
41310 /* Override any GCC internal prototype to avoid an error.
41311    Use char because int might match the return type of a GCC
41312    builtin and then its argument prototype would still apply.  */
41313 #ifdef __cplusplus
41314 extern "C"
41315 #endif
41316 char pthread_create ();
41317 int
41318 main ()
41319 {
41320 return pthread_create ();
41321   ;
41322   return 0;
41323 }
41324 _ACEOF
41325 rm -f conftest.$ac_objext conftest$ac_exeext
41326 if { (ac_try="$ac_link"
41327 case "(($ac_try" in
41328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41329   *) ac_try_echo=$ac_try;;
41330 esac
41331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41332   (eval "$ac_link") 2>conftest.er1
41333   ac_status=$?
41334   grep -v '^ *+' conftest.er1 >conftest.err
41335   rm -f conftest.er1
41336   cat conftest.err >&5
41337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338   (exit $ac_status); } && {
41339          test -z "$ac_c_werror_flag" ||
41340          test ! -s conftest.err
41341        } && test -s conftest$ac_exeext &&
41342        $as_test_x conftest$ac_exeext; then
41343   ac_cv_lib_c_r_pthread_create=yes
41344 else
41345   echo "$as_me: failed program was:" >&5
41346 sed 's/^/| /' conftest.$ac_ext >&5
41347
41348         ac_cv_lib_c_r_pthread_create=no
41349 fi
41350
41351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41352       conftest$ac_exeext conftest.$ac_ext
41353 LIBS=$ac_check_lib_save_LIBS
41354 fi
41355 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
41356 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
41357 if test $ac_cv_lib_c_r_pthread_create = yes; then
41358   PTHREAD_LIB="-lc_r"
41359 else
41360
41361                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
41362 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
41363 if test "${ac_cv_func_pthread_create+set}" = set; then
41364   echo $ECHO_N "(cached) $ECHO_C" >&6
41365 else
41366   cat >conftest.$ac_ext <<_ACEOF
41367 /* confdefs.h.  */
41368 _ACEOF
41369 cat confdefs.h >>conftest.$ac_ext
41370 cat >>conftest.$ac_ext <<_ACEOF
41371 /* end confdefs.h.  */
41372 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
41373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41374 #define pthread_create innocuous_pthread_create
41375
41376 /* System header to define __stub macros and hopefully few prototypes,
41377     which can conflict with char pthread_create (); below.
41378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41379     <limits.h> exists even on freestanding compilers.  */
41380
41381 #ifdef __STDC__
41382 # include <limits.h>
41383 #else
41384 # include <assert.h>
41385 #endif
41386
41387 #undef pthread_create
41388
41389 /* Override any GCC internal prototype to avoid an error.
41390    Use char because int might match the return type of a GCC
41391    builtin and then its argument prototype would still apply.  */
41392 #ifdef __cplusplus
41393 extern "C"
41394 #endif
41395 char pthread_create ();
41396 /* The GNU C library defines this for functions which it implements
41397     to always fail with ENOSYS.  Some functions are actually named
41398     something starting with __ and the normal name is an alias.  */
41399 #if defined __stub_pthread_create || defined __stub___pthread_create
41400 choke me
41401 #endif
41402
41403 int
41404 main ()
41405 {
41406 return pthread_create ();
41407   ;
41408   return 0;
41409 }
41410 _ACEOF
41411 rm -f conftest.$ac_objext conftest$ac_exeext
41412 if { (ac_try="$ac_link"
41413 case "(($ac_try" in
41414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41415   *) ac_try_echo=$ac_try;;
41416 esac
41417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41418   (eval "$ac_link") 2>conftest.er1
41419   ac_status=$?
41420   grep -v '^ *+' conftest.er1 >conftest.err
41421   rm -f conftest.er1
41422   cat conftest.err >&5
41423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41424   (exit $ac_status); } && {
41425          test -z "$ac_c_werror_flag" ||
41426          test ! -s conftest.err
41427        } && test -s conftest$ac_exeext &&
41428        $as_test_x conftest$ac_exeext; then
41429   ac_cv_func_pthread_create=yes
41430 else
41431   echo "$as_me: failed program was:" >&5
41432 sed 's/^/| /' conftest.$ac_ext >&5
41433
41434         ac_cv_func_pthread_create=no
41435 fi
41436
41437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41438       conftest$ac_exeext conftest.$ac_ext
41439 fi
41440 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
41441 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
41442
41443
41444
41445 fi
41446
41447
41448
41449 fi
41450
41451
41452
41453 fi
41454
41455
41456
41457 cat >>confdefs.h <<\_ACEOF
41458 #define FDLIBS 1
41459 _ACEOF
41460
41461
41462 CFLAGS=${CFLAGS--O}
41463
41464 if test x$have_gcc = xyes ; then
41465    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41466    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41467 fi
41468 LDFLAGS=${LDFLAGS--O}
41469 DB_LIBS="${SQL_LFLAGS}"
41470 CPPFLAGS="$CPPFLAGS"
41471 CFLAGS="$CFLAGS"
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
41486
41487
41488 OBJLIST=
41489
41490
41491 lld="lld"
41492 llu="llu"
41493
41494 WCFLAGS=
41495 WLDFLAGS=
41496
41497 PFILES="platforms/Makefile"
41498 PSCMD="ps -e"
41499 WIN32=
41500 MACOSX=
41501 hostname=`uname -n | cut -d '.' -f 1`
41502 if test x${hostname} = x ; then
41503    hostname="localhost"
41504 fi
41505 case "$DISTNAME" in
41506 aix)
41507    DISTVER=`uname -r`
41508    PSCMD="ps -e -o pid,comm"
41509    PFILES="${PFILES} \
41510       platforms/aix/Makefile"
41511    TAPEDRIVE="/dev/rmt0.1"
41512   ;;
41513 alpha)
41514    DISTVER=`uname -r`
41515    PTHREAD_LIB="-lpthread -lexc"
41516    if test "${CC}" = "gcc" ; then
41517       lld="lld"
41518       llu="llu"
41519    else
41520       lld="ld"
41521       llu="lu"
41522    fi
41523    TAPEDRIVE="/dev/nrmt0"
41524   ;;
41525 bsdi)
41526    DISTVER=`uname -a |awk '{print $3}'`
41527    TAPEDRIVE="/dev/nrmt0"
41528    PTHREAD_LIB="-pthread"
41529    CFLAGS="${CFLAGS} -pthread"
41530    PSCMD="ps -ax -o pid,command"
41531    lld="qd"
41532    llu="qu"
41533    PFILES="${PFILES} \
41534        platforms/bsdi/Makefile \
41535        platforms/bsdi/bacula-fd \
41536        platforms/bsdi/bacula-sd \
41537        platforms/bsdi/bacula-dir"
41538    largefile_support="yes"
41539   ;;
41540 cygwin)
41541    DISTVER=`uname -a |awk '{print $3}'`
41542    TAPEDRIVE="/dev/nrst0"
41543    WIN32=win32
41544    WCFLAGS="-mwindows"
41545    WLDFLAGS="-mwindows"
41546   ;;
41547 darwin)
41548    DISTVER=`uname -r`
41549    TAPEDRIVE="/dev/nst0"
41550    PSCMD="ps -e -o pid,command"
41551    MACOSX=macosx
41552    PFILES="${PFILES} \
41553       platforms/darwin/Makefile"
41554   ;;
41555 debian)
41556       ping -c 1 $hostname 2>&1 1>/dev/null
41557    if test ! $? = 0; then
41558       hostname="localhost"
41559    fi
41560    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41561       DISTNAME="ubuntu"
41562    fi
41563    DISTVER=`cat /etc/debian_version`
41564    if test -f /etc/lsb-release ; then
41565       . /etc/lsb-release
41566       if test "x$DISTRIB_ID" != "x" ; then
41567          DISTNAME=$DISTRIB_ID
41568       fi
41569       if test "x$DISTRIB_RELEASE" != "x" ; then
41570          DISTVER=$DISTRIB_RELEASE
41571       fi
41572    fi
41573    if test "$DISTNAME" = "Ubuntu" ; then
41574       DISTNAME="ubuntu"
41575    fi
41576    TAPEDRIVE="/dev/nst0"
41577    PSCMD="ps -e -o pid,command"
41578    if test "$DISTNAME" = "ubuntu" ; then
41579       PFILES="${PFILES} \
41580          platforms/ubuntu/Makefile \
41581          platforms/ubuntu/bacula-fd \
41582          platforms/ubuntu/bacula-sd \
41583          platforms/ubuntu/bacula-dir"
41584    else
41585       PFILES="${PFILES} \
41586          platforms/debian/Makefile \
41587          platforms/debian/bacula-fd \
41588          platforms/debian/bacula-sd \
41589          platforms/debian/bacula-dir"
41590    fi
41591   ;;
41592 freebsd)
41593       ping -c 1 $hostname 2>&1 1>/dev/null
41594    if test ! $? = 0; then
41595       hostname="localhost"
41596    fi
41597    DISTVER=`uname -a |awk '{print $3}'`
41598    VER=`echo $DISTVER | cut -c 1`
41599    if test x$VER = x4 ; then
41600       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41601       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41602    fi
41603    lld="qd"
41604    llu="qu"
41605    TAPEDRIVE="/dev/nrsa0"
41606    PSCMD="ps -ax -o pid,command"
41607    PFILES="${PFILES} \
41608        platforms/freebsd/Makefile \
41609        platforms/freebsd/bacula-fd \
41610        platforms/freebsd/bacula-sd \
41611        platforms/freebsd/bacula-dir"
41612    largefile_support="yes"
41613   ;;
41614 hpux)
41615    PSCMD="UNIX95=1; ps -e -o pid,comm"
41616    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41617    DISTVER=`uname -r`
41618    TAPEDRIVE="/dev/rmt/0hnb"
41619    PTHREAD_LIB="-lpthread"
41620    cat >>confdefs.h <<\_ACEOF
41621 #define _INCLUDE_LONGLONG 1
41622 _ACEOF
41623
41624   ;;
41625 irix)
41626    DISTVER=`uname -r`
41627    TAPEDRIVE="/dev/rmt/0cbn"
41628    PSCMD="ps -e -o pid,comm"
41629    PFILES="${PFILES} \
41630        platforms/irix/Makefile \
41631        platforms/irix/bacula-fd \
41632        platforms/irix/bacula-sd \
41633        platforms/irix/bacula-dir"
41634   ;;
41635 netbsd)
41636    DISTVER=`uname -a |awk '{print $3}'`
41637    lld="qd"
41638    llu="qu"
41639    TAPEDRIVE="/dev/nrst0"
41640    PSCMD="ps -ax -o pid,command"
41641    PTHREAD_LIB="-pthread"
41642    CFLAGS="${CFLAGS} -pthread"
41643   ;;
41644 openbsd)
41645    DISTVER=`uname -a |awk '{print $3}'`
41646    lld="qd"
41647    llu="qu"
41648    TAPEDRIVE="/dev/nrst0"
41649    PSCMD="ps -ax -o pid,command"
41650    PTHREAD_LIB="-pthread"
41651    CFLAGS="${CFLAGS} -pthread"
41652    PFILES="${PFILES} \
41653        platforms/openbsd/Makefile \
41654        platforms/openbsd/bacula-fd \
41655        platforms/openbsd/bacula-sd \
41656        platforms/openbsd/bacula-dir"
41657   ;;
41658 redhat)
41659       ping -c 1 $hostname 2>&1 1>/dev/null
41660    if test ! $? = 0; then
41661       hostname="localhost"
41662    fi
41663    if test -f /etc/whitebox-release ; then
41664       f=/etc/whitebox-release
41665    else
41666       f=/etc/redhat-release
41667    fi
41668    if test `cat $f | grep release |\
41669          cut -f 3 -d ' '`x = "Enterprise"x ; then
41670       DISTVER="Enterprise "`cat $f | grep release |\
41671           cut -f 6 -d ' '`
41672    else
41673        DISTVER=`cat /etc/redhat-release | grep release |\
41674            cut -f 5 -d ' '`
41675    fi
41676    TAPEDRIVE="/dev/nst0"
41677    PSCMD="ps -e -o pid,command"
41678    PFILES="${PFILES} \
41679        platforms/redhat/Makefile \
41680        platforms/redhat/bacula-fd \
41681        platforms/redhat/bacula-sd \
41682        platforms/redhat/bacula-dir \
41683        platforms/redhat/bacula.spec \
41684        "
41685   ;;
41686 mandrake)
41687       ping -c 1 $hostname 2>&1 1>/dev/null
41688    if test ! $? = 0; then
41689       hostname="localhost"
41690    fi
41691    DISTVER=`cat /etc/mandrake-release | grep release |\
41692       cut -f 5 -d ' '`
41693    TAPEDRIVE="/dev/nst0"
41694    PSCMD="ps -e -o pid,command"
41695    PFILES="${PFILES} \
41696        platforms/mandrake/Makefile \
41697        platforms/mandrake/bacula-fd \
41698        platforms/mandrake/bacula-sd \
41699        platforms/mandrake/bacula-dir \
41700        platforms/mandrake/bacula.spec \
41701        "
41702   ;;
41703 gentoo)
41704       ping -c 1 $hostname 2>&1 1>/dev/null
41705    if test ! $? = 0; then
41706       hostname="localhost"
41707    fi
41708    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41709    TAPEDRIVE="/dev/nst0"
41710    PSCMD="ps -e -o pid,command"
41711    PFILES="${PFILES} \
41712        platforms/gentoo/Makefile \
41713     platforms/gentoo/bacula-init \
41714        platforms/gentoo/bacula-fd \
41715        platforms/gentoo/bacula-sd \
41716        platforms/gentoo/bacula-dir"
41717   ;;
41718 slackware)
41719       ping -c 1 $hostname 2>&1 1>/dev/null
41720    if test ! $? = 0; then
41721       hostname="localhost"
41722    fi
41723    DISTVER=`cat /etc/slackware-version`
41724    TAPEDRIVE="/dev/nst0"
41725    PSCMD="ps -e -o pid,command"
41726    PFILES="${PFILES} \
41727        platforms/slackware/Makefile \
41728        platforms/slackware/rc.bacula-fd \
41729        platforms/slackware/rc.bacula-sd \
41730        platforms/slackware/rc.bacula-dir\
41731        platforms/slackware/functions.bacula"
41732   ;;
41733 solaris)
41734    DISTVER=`uname -r`
41735    TAPEDRIVE="/dev/rmt/0cbn"
41736    PSCMD="ps -e -o pid,comm"
41737    PFILES="${PFILES} \
41738        platforms/solaris/Makefile \
41739        platforms/solaris/bacula-fd \
41740        platforms/solaris/bacula-sd \
41741        platforms/solaris/bacula-dir"
41742    if test x$DISTVER = x5.6 ; then
41743        cat >>confdefs.h <<\_ACEOF
41744 #define HAVE_OLD_SOCKOPT 1
41745 _ACEOF
41746
41747    fi
41748    LIBS="$LIBS -lresolv"
41749   ;;
41750 suse)
41751       ping -c 1 $hostname 2>&1 1>/dev/null
41752    if test ! $? = 0; then
41753       hostname="localhost"
41754    fi
41755    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41756        cut -f 3 -d ' '`
41757    TAPEDRIVE="/dev/nst0"
41758    PSCMD="ps -e -o pid,command"
41759    PFILES="${PFILES} \
41760        platforms/suse/Makefile \
41761        platforms/suse/bacula-fd \
41762        platforms/suse/bacula-sd \
41763        platforms/suse/bacula-dir \
41764        platforms/suse/bacula \
41765        platforms/suse/bacula.spec"
41766   ;;
41767 suse5)
41768       ping -c 1 $hostname 2>&1 1>/dev/null
41769    if test ! $? = 0; then
41770       hostname="localhost"
41771    fi
41772    DISTNAME=suse
41773    DISTVER=5.x
41774    TAPEDRIVE="/dev/nst0"
41775    PSCMD="ps -e -o pid,command"
41776    PFILES="${PFILES} \
41777        platforms/suse/Makefile \
41778        platforms/suse/bacula-fd \
41779        platforms/suse/bacula-sd \
41780        platforms/suse/bacula-dir"
41781   ;;
41782 unknown)
41783    DISTVER=unknown
41784    TAPEDRIVE="/dev/nst0"
41785   ;;
41786 *)
41787   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41788   ;;
41789 esac
41790
41791
41792
41793 LIBS="$PTHREAD_LIB $LIBS"
41794
41795 cat >>confdefs.h <<_ACEOF
41796 #define lld "$lld"
41797 _ACEOF
41798
41799 cat >>confdefs.h <<_ACEOF
41800 #define llu "$llu"
41801 _ACEOF
41802
41803
41804
41805
41806
41807
41808
41809
41810 MCOMMON=./autoconf/Make.common
41811
41812
41813 if test "x${subsysdir}" = "x${sbindir}" ; then
41814    echo " "
41815    echo " "
41816    echo "You have set both --sbindir and --with-subsys-dir"
41817    echo "  equal to: ${subsysdir} "
41818    echo "This is not permitted. Please reconfigure."
41819    echo " "
41820    echo "Aborting configuration ..."
41821    echo " "
41822    echo " "
41823    exit 1
41824 fi
41825
41826 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile 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"
41827
41828 ac_config_commands="$ac_config_commands default"
41829
41830 cat >confcache <<\_ACEOF
41831 # This file is a shell script that caches the results of configure
41832 # tests run on this system so they can be shared between configure
41833 # scripts and configure runs, see configure's option --config-cache.
41834 # It is not useful on other systems.  If it contains results you don't
41835 # want to keep, you may remove or edit it.
41836 #
41837 # config.status only pays attention to the cache file if you give it
41838 # the --recheck option to rerun configure.
41839 #
41840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41842 # following values.
41843
41844 _ACEOF
41845
41846 # The following way of writing the cache mishandles newlines in values,
41847 # but we know of no workaround that is simple, portable, and efficient.
41848 # So, we kill variables containing newlines.
41849 # Ultrix sh set writes to stderr and can't be redirected directly,
41850 # and sets the high bit in the cache file unless we assign to the vars.
41851 (
41852   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41853     eval ac_val=\$$ac_var
41854     case $ac_val in #(
41855     *${as_nl}*)
41856       case $ac_var in #(
41857       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41859       esac
41860       case $ac_var in #(
41861       _ | IFS | as_nl) ;; #(
41862       *) $as_unset $ac_var ;;
41863       esac ;;
41864     esac
41865   done
41866
41867   (set) 2>&1 |
41868     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41869     *${as_nl}ac_space=\ *)
41870       # `set' does not quote correctly, so add quotes (double-quote
41871       # substitution turns \\\\ into \\, and sed turns \\ into \).
41872       sed -n \
41873         "s/'/'\\\\''/g;
41874           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41875       ;; #(
41876     *)
41877       # `set' quotes correctly as required by POSIX, so do not add quotes.
41878       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41879       ;;
41880     esac |
41881     sort
41882 ) |
41883   sed '
41884      /^ac_cv_env_/b end
41885      t clear
41886      :clear
41887      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41888      t end
41889      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41890      :end' >>confcache
41891 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41892   if test -w "$cache_file"; then
41893     test "x$cache_file" != "x/dev/null" &&
41894       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41895 echo "$as_me: updating cache $cache_file" >&6;}
41896     cat confcache >$cache_file
41897   else
41898     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41899 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41900   fi
41901 fi
41902 rm -f confcache
41903
41904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41905 # Let make expand exec_prefix.
41906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41907
41908 DEFS=-DHAVE_CONFIG_H
41909
41910 ac_libobjs=
41911 ac_ltlibobjs=
41912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41913   # 1. Remove the extension, and $U if already installed.
41914   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41915   ac_i=`echo "$ac_i" | sed "$ac_script"`
41916   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41917   #    will be set to the directory where LIBOBJS objects are built.
41918   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41919   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41920 done
41921 LIBOBJS=$ac_libobjs
41922
41923 LTLIBOBJS=$ac_ltlibobjs
41924
41925
41926
41927 : ${CONFIG_STATUS=./config.status}
41928 ac_clean_files_save=$ac_clean_files
41929 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41930 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41931 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41932 cat >$CONFIG_STATUS <<_ACEOF
41933 #! $SHELL
41934 # Generated by $as_me.
41935 # Run this file to recreate the current configuration.
41936 # Compiler output produced by configure, useful for debugging
41937 # configure, is in config.log if it exists.
41938
41939 debug=false
41940 ac_cs_recheck=false
41941 ac_cs_silent=false
41942 SHELL=\${CONFIG_SHELL-$SHELL}
41943 _ACEOF
41944
41945 cat >>$CONFIG_STATUS <<\_ACEOF
41946 ## --------------------- ##
41947 ## M4sh Initialization.  ##
41948 ## --------------------- ##
41949
41950 # Be more Bourne compatible
41951 DUALCASE=1; export DUALCASE # for MKS sh
41952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41953   emulate sh
41954   NULLCMD=:
41955   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41956   # is contrary to our usage.  Disable this feature.
41957   alias -g '${1+"$@"}'='"$@"'
41958   setopt NO_GLOB_SUBST
41959 else
41960   case `(set -o) 2>/dev/null` in
41961   *posix*) set -o posix ;;
41962 esac
41963
41964 fi
41965
41966
41967
41968
41969 # PATH needs CR
41970 # Avoid depending upon Character Ranges.
41971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41974 as_cr_digits='0123456789'
41975 as_cr_alnum=$as_cr_Letters$as_cr_digits
41976
41977 # The user is always right.
41978 if test "${PATH_SEPARATOR+set}" != set; then
41979   echo "#! /bin/sh" >conf$$.sh
41980   echo  "exit 0"   >>conf$$.sh
41981   chmod +x conf$$.sh
41982   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41983     PATH_SEPARATOR=';'
41984   else
41985     PATH_SEPARATOR=:
41986   fi
41987   rm -f conf$$.sh
41988 fi
41989
41990 # Support unset when possible.
41991 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41992   as_unset=unset
41993 else
41994   as_unset=false
41995 fi
41996
41997
41998 # IFS
41999 # We need space, tab and new line, in precisely that order.  Quoting is
42000 # there to prevent editors from complaining about space-tab.
42001 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42002 # splitting by setting IFS to empty value.)
42003 as_nl='
42004 '
42005 IFS=" ""        $as_nl"
42006
42007 # Find who we are.  Look in the path if we contain no directory separator.
42008 case $0 in
42009   *[\\/]* ) as_myself=$0 ;;
42010   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42011 for as_dir in $PATH
42012 do
42013   IFS=$as_save_IFS
42014   test -z "$as_dir" && as_dir=.
42015   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42016 done
42017 IFS=$as_save_IFS
42018
42019      ;;
42020 esac
42021 # We did not find ourselves, most probably we were run as `sh COMMAND'
42022 # in which case we are not to be found in the path.
42023 if test "x$as_myself" = x; then
42024   as_myself=$0
42025 fi
42026 if test ! -f "$as_myself"; then
42027   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42028   { (exit 1); exit 1; }
42029 fi
42030
42031 # Work around bugs in pre-3.0 UWIN ksh.
42032 for as_var in ENV MAIL MAILPATH
42033 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42034 done
42035 PS1='$ '
42036 PS2='> '
42037 PS4='+ '
42038
42039 # NLS nuisances.
42040 for as_var in \
42041   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42042   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42043   LC_TELEPHONE LC_TIME
42044 do
42045   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42046     eval $as_var=C; export $as_var
42047   else
42048     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42049   fi
42050 done
42051
42052 # Required to use basename.
42053 if expr a : '\(a\)' >/dev/null 2>&1 &&
42054    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42055   as_expr=expr
42056 else
42057   as_expr=false
42058 fi
42059
42060 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42061   as_basename=basename
42062 else
42063   as_basename=false
42064 fi
42065
42066
42067 # Name of the executable.
42068 as_me=`$as_basename -- "$0" ||
42069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42070          X"$0" : 'X\(//\)$' \| \
42071          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42072 echo X/"$0" |
42073     sed '/^.*\/\([^/][^/]*\)\/*$/{
42074             s//\1/
42075             q
42076           }
42077           /^X\/\(\/\/\)$/{
42078             s//\1/
42079             q
42080           }
42081           /^X\/\(\/\).*/{
42082             s//\1/
42083             q
42084           }
42085           s/.*/./; q'`
42086
42087 # CDPATH.
42088 $as_unset CDPATH
42089
42090
42091
42092   as_lineno_1=$LINENO
42093   as_lineno_2=$LINENO
42094   test "x$as_lineno_1" != "x$as_lineno_2" &&
42095   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42096
42097   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42098   # uniformly replaced by the line number.  The first 'sed' inserts a
42099   # line-number line after each line using $LINENO; the second 'sed'
42100   # does the real work.  The second script uses 'N' to pair each
42101   # line-number line with the line containing $LINENO, and appends
42102   # trailing '-' during substitution so that $LINENO is not a special
42103   # case at line end.
42104   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42105   # scripts with optimization help from Paolo Bonzini.  Blame Lee
42106   # E. McMahon (1931-1989) for sed's syntax.  :-)
42107   sed -n '
42108     p
42109     /[$]LINENO/=
42110   ' <$as_myself |
42111     sed '
42112       s/[$]LINENO.*/&-/
42113       t lineno
42114       b
42115       :lineno
42116       N
42117       :loop
42118       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42119       t loop
42120       s/-\n.*//
42121     ' >$as_me.lineno &&
42122   chmod +x "$as_me.lineno" ||
42123     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42124    { (exit 1); exit 1; }; }
42125
42126   # Don't try to exec as it changes $[0], causing all sort of problems
42127   # (the dirname of $[0] is not the place where we might find the
42128   # original and so on.  Autoconf is especially sensitive to this).
42129   . "./$as_me.lineno"
42130   # Exit status is that of the last command.
42131   exit
42132 }
42133
42134
42135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42136   as_dirname=dirname
42137 else
42138   as_dirname=false
42139 fi
42140
42141 ECHO_C= ECHO_N= ECHO_T=
42142 case `echo -n x` in
42143 -n*)
42144   case `echo 'x\c'` in
42145   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
42146   *)   ECHO_C='\c';;
42147   esac;;
42148 *)
42149   ECHO_N='-n';;
42150 esac
42151
42152 if expr a : '\(a\)' >/dev/null 2>&1 &&
42153    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42154   as_expr=expr
42155 else
42156   as_expr=false
42157 fi
42158
42159 rm -f conf$$ conf$$.exe conf$$.file
42160 if test -d conf$$.dir; then
42161   rm -f conf$$.dir/conf$$.file
42162 else
42163   rm -f conf$$.dir
42164   mkdir conf$$.dir
42165 fi
42166 echo >conf$$.file
42167 if ln -s conf$$.file conf$$ 2>/dev/null; then
42168   as_ln_s='ln -s'
42169   # ... but there are two gotchas:
42170   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42171   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42172   # In both cases, we have to default to `cp -p'.
42173   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42174     as_ln_s='cp -p'
42175 elif ln conf$$.file conf$$ 2>/dev/null; then
42176   as_ln_s=ln
42177 else
42178   as_ln_s='cp -p'
42179 fi
42180 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42181 rmdir conf$$.dir 2>/dev/null
42182
42183 if mkdir -p . 2>/dev/null; then
42184   as_mkdir_p=:
42185 else
42186   test -d ./-p && rmdir ./-p
42187   as_mkdir_p=false
42188 fi
42189
42190 if test -x / >/dev/null 2>&1; then
42191   as_test_x='test -x'
42192 else
42193   if ls -dL / >/dev/null 2>&1; then
42194     as_ls_L_option=L
42195   else
42196     as_ls_L_option=
42197   fi
42198   as_test_x='
42199     eval sh -c '\''
42200       if test -d "$1"; then
42201         test -d "$1/.";
42202       else
42203         case $1 in
42204         -*)set "./$1";;
42205         esac;
42206         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42207         ???[sx]*):;;*)false;;esac;fi
42208     '\'' sh
42209   '
42210 fi
42211 as_executable_p=$as_test_x
42212
42213 # Sed expression to map a string onto a valid CPP name.
42214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42215
42216 # Sed expression to map a string onto a valid variable name.
42217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42218
42219
42220 exec 6>&1
42221
42222 # Save the log message, to keep $[0] and so on meaningful, and to
42223 # report actual input values of CONFIG_FILES etc. instead of their
42224 # values after options handling.
42225 ac_log="
42226 This file was extended by $as_me, which was
42227 generated by GNU Autoconf 2.61.  Invocation command line was
42228
42229   CONFIG_FILES    = $CONFIG_FILES
42230   CONFIG_HEADERS  = $CONFIG_HEADERS
42231   CONFIG_LINKS    = $CONFIG_LINKS
42232   CONFIG_COMMANDS = $CONFIG_COMMANDS
42233   $ $0 $@
42234
42235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42236 "
42237
42238 _ACEOF
42239
42240 cat >>$CONFIG_STATUS <<_ACEOF
42241 # Files that config.status was made for.
42242 config_files="$ac_config_files"
42243 config_headers="$ac_config_headers"
42244 config_commands="$ac_config_commands"
42245
42246 _ACEOF
42247
42248 cat >>$CONFIG_STATUS <<\_ACEOF
42249 ac_cs_usage="\
42250 \`$as_me' instantiates files from templates according to the
42251 current configuration.
42252
42253 Usage: $0 [OPTIONS] [FILE]...
42254
42255   -h, --help       print this help, then exit
42256   -V, --version    print version number and configuration settings, then exit
42257   -q, --quiet      do not print progress messages
42258   -d, --debug      don't remove temporary files
42259       --recheck    update $as_me by reconfiguring in the same conditions
42260   --file=FILE[:TEMPLATE]
42261                    instantiate the configuration file FILE
42262   --header=FILE[:TEMPLATE]
42263                    instantiate the configuration header FILE
42264
42265 Configuration files:
42266 $config_files
42267
42268 Configuration headers:
42269 $config_headers
42270
42271 Configuration commands:
42272 $config_commands
42273
42274 Report bugs to <bug-autoconf@gnu.org>."
42275
42276 _ACEOF
42277 cat >>$CONFIG_STATUS <<_ACEOF
42278 ac_cs_version="\\
42279 config.status
42280 configured by $0, generated by GNU Autoconf 2.61,
42281   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42282
42283 Copyright (C) 2006 Free Software Foundation, Inc.
42284 This config.status script is free software; the Free Software Foundation
42285 gives unlimited permission to copy, distribute and modify it."
42286
42287 ac_pwd='$ac_pwd'
42288 srcdir='$srcdir'
42289 INSTALL='$INSTALL'
42290 _ACEOF
42291
42292 cat >>$CONFIG_STATUS <<\_ACEOF
42293 # If no file are specified by the user, then we need to provide default
42294 # value.  By we need to know if files were specified by the user.
42295 ac_need_defaults=:
42296 while test $# != 0
42297 do
42298   case $1 in
42299   --*=*)
42300     ac_option=`expr "X$1" : 'X\([^=]*\)='`
42301     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42302     ac_shift=:
42303     ;;
42304   *)
42305     ac_option=$1
42306     ac_optarg=$2
42307     ac_shift=shift
42308     ;;
42309   esac
42310
42311   case $ac_option in
42312   # Handling of the options.
42313   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42314     ac_cs_recheck=: ;;
42315   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42316     echo "$ac_cs_version"; exit ;;
42317   --debug | --debu | --deb | --de | --d | -d )
42318     debug=: ;;
42319   --file | --fil | --fi | --f )
42320     $ac_shift
42321     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42322     ac_need_defaults=false;;
42323   --header | --heade | --head | --hea )
42324     $ac_shift
42325     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42326     ac_need_defaults=false;;
42327   --he | --h)
42328     # Conflict between --help and --header
42329     { echo "$as_me: error: ambiguous option: $1
42330 Try \`$0 --help' for more information." >&2
42331    { (exit 1); exit 1; }; };;
42332   --help | --hel | -h )
42333     echo "$ac_cs_usage"; exit ;;
42334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42335   | -silent | --silent | --silen | --sile | --sil | --si | --s)
42336     ac_cs_silent=: ;;
42337
42338   # This is an error.
42339   -*) { echo "$as_me: error: unrecognized option: $1
42340 Try \`$0 --help' for more information." >&2
42341    { (exit 1); exit 1; }; } ;;
42342
42343   *) ac_config_targets="$ac_config_targets $1"
42344      ac_need_defaults=false ;;
42345
42346   esac
42347   shift
42348 done
42349
42350 ac_configure_extra_args=
42351
42352 if $ac_cs_silent; then
42353   exec 6>/dev/null
42354   ac_configure_extra_args="$ac_configure_extra_args --silent"
42355 fi
42356
42357 _ACEOF
42358 cat >>$CONFIG_STATUS <<_ACEOF
42359 if \$ac_cs_recheck; then
42360   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42361   CONFIG_SHELL=$SHELL
42362   export CONFIG_SHELL
42363   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42364 fi
42365
42366 _ACEOF
42367 cat >>$CONFIG_STATUS <<\_ACEOF
42368 exec 5>>config.log
42369 {
42370   echo
42371   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42372 ## Running $as_me. ##
42373 _ASBOX
42374   echo "$ac_log"
42375 } >&5
42376
42377 _ACEOF
42378 cat >>$CONFIG_STATUS <<_ACEOF
42379 #
42380 # INIT-COMMANDS
42381 #
42382
42383
42384 # The HP-UX ksh and POSIX shell print the target directory to stdout
42385 # if CDPATH is set.
42386 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42387
42388 sed_quote_subst='$sed_quote_subst'
42389 double_quote_subst='$double_quote_subst'
42390 delay_variable_subst='$delay_variable_subst'
42391 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
42392 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
42393 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
42394 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
42395 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
42396 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
42397 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
42398 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
42399 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
42400 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
42401 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
42402 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
42403 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
42404 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
42405 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
42406 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
42407 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
42408 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
42409 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
42410 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
42411 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
42412 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
42413 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
42414 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
42415 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
42416 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
42417 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
42418 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42419 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
42420 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
42421 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
42422 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
42423 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42424 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
42425 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
42426 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42427 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42428 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42429 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
42430 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42431 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
42432 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
42433 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
42434 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
42435 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"`'
42436 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"`'
42437 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
42438 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
42439 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
42440 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
42441 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
42442 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
42443 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
42444 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
42445 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
42446 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
42447 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
42448 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
42449 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
42450 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
42451 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
42452 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
42453 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42454 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42455 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
42456 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
42457 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42458 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42459 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
42460 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42461 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42462 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42463 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42464 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42465 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42466 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
42467 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42468 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42469 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42470 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
42471 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
42472 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
42473 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
42474 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
42475 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42476 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
42477 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
42478 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
42479 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
42480 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
42481 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42482 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42483 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42484 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42485 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
42486 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
42487 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
42488 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
42489 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
42490 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42491 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42492 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
42493 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42494 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
42495 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42496 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42497 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42498 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42499 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
42500 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42501 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42502 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42503 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42504 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42505 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42506 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42507 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42508 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42509 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42510 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42511 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42512 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42513 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42514 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42515 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42516 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42517 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42518 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42519 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42520 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42521 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42522 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42523 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42524 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42525 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42526 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42527 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42528 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42529 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42530 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42531 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42532 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42533 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42534 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42535 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42536 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42537 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42538 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42539 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42540 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42541 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42542 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42543 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42544 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42545 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42546 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42547 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42548 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42549 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42550 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42551 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42552 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42553 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42554 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42555 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42556 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42557 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42558 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42559 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42560 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42561 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42562
42563 LTCC='$LTCC'
42564 LTCFLAGS='$LTCFLAGS'
42565 compiler='$compiler_DEFAULT'
42566
42567 # Quote evaled strings.
42568 for var in SED \
42569 GREP \
42570 EGREP \
42571 FGREP \
42572 LD \
42573 NM \
42574 LN_S \
42575 lt_SP2NL \
42576 lt_NL2SP \
42577 reload_flag \
42578 OBJDUMP \
42579 deplibs_check_method \
42580 file_magic_cmd \
42581 AR \
42582 AR_FLAGS \
42583 STRIP \
42584 RANLIB \
42585 CC \
42586 CFLAGS \
42587 compiler \
42588 lt_cv_sys_global_symbol_pipe \
42589 lt_cv_sys_global_symbol_to_cdecl \
42590 lt_cv_sys_global_symbol_to_c_name_address \
42591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42592 SHELL \
42593 ECHO \
42594 lt_prog_compiler_no_builtin_flag \
42595 lt_prog_compiler_wl \
42596 lt_prog_compiler_pic \
42597 lt_prog_compiler_static \
42598 lt_cv_prog_compiler_c_o \
42599 need_locks \
42600 DSYMUTIL \
42601 NMEDIT \
42602 LIPO \
42603 OTOOL \
42604 OTOOL64 \
42605 shrext_cmds \
42606 export_dynamic_flag_spec \
42607 whole_archive_flag_spec \
42608 compiler_needs_object \
42609 with_gnu_ld \
42610 allow_undefined_flag \
42611 no_undefined_flag \
42612 hardcode_libdir_flag_spec \
42613 hardcode_libdir_flag_spec_ld \
42614 hardcode_libdir_separator \
42615 fix_srcfile_path \
42616 exclude_expsyms \
42617 include_expsyms \
42618 file_list_spec \
42619 variables_saved_for_relink \
42620 libname_spec \
42621 library_names_spec \
42622 soname_spec \
42623 finish_eval \
42624 old_striplib \
42625 striplib \
42626 compiler_lib_search_dirs \
42627 predep_objects \
42628 postdep_objects \
42629 predeps \
42630 postdeps \
42631 compiler_lib_search_path \
42632 LD_CXX \
42633 compiler_CXX \
42634 lt_prog_compiler_no_builtin_flag_CXX \
42635 lt_prog_compiler_wl_CXX \
42636 lt_prog_compiler_pic_CXX \
42637 lt_prog_compiler_static_CXX \
42638 lt_cv_prog_compiler_c_o_CXX \
42639 export_dynamic_flag_spec_CXX \
42640 whole_archive_flag_spec_CXX \
42641 compiler_needs_object_CXX \
42642 with_gnu_ld_CXX \
42643 allow_undefined_flag_CXX \
42644 no_undefined_flag_CXX \
42645 hardcode_libdir_flag_spec_CXX \
42646 hardcode_libdir_flag_spec_ld_CXX \
42647 hardcode_libdir_separator_CXX \
42648 fix_srcfile_path_CXX \
42649 exclude_expsyms_CXX \
42650 include_expsyms_CXX \
42651 file_list_spec_CXX \
42652 compiler_lib_search_dirs_CXX \
42653 predep_objects_CXX \
42654 postdep_objects_CXX \
42655 predeps_CXX \
42656 postdeps_CXX \
42657 compiler_lib_search_path_CXX; do
42658     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42659     *[\\\\\\\`\\"\\\$]*)
42660       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42661       ;;
42662     *)
42663       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42664       ;;
42665     esac
42666 done
42667
42668 # Double-quote double-evaled strings.
42669 for var in reload_cmds \
42670 old_postinstall_cmds \
42671 old_postuninstall_cmds \
42672 old_archive_cmds \
42673 extract_expsyms_cmds \
42674 old_archive_from_new_cmds \
42675 old_archive_from_expsyms_cmds \
42676 archive_cmds \
42677 archive_expsym_cmds \
42678 module_cmds \
42679 module_expsym_cmds \
42680 export_symbols_cmds \
42681 prelink_cmds \
42682 postinstall_cmds \
42683 postuninstall_cmds \
42684 finish_cmds \
42685 sys_lib_search_path_spec \
42686 sys_lib_dlsearch_path_spec \
42687 old_archive_cmds_CXX \
42688 old_archive_from_new_cmds_CXX \
42689 old_archive_from_expsyms_cmds_CXX \
42690 archive_cmds_CXX \
42691 archive_expsym_cmds_CXX \
42692 module_cmds_CXX \
42693 module_expsym_cmds_CXX \
42694 export_symbols_cmds_CXX \
42695 prelink_cmds_CXX; do
42696     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42697     *[\\\\\\\`\\"\\\$]*)
42698       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42699       ;;
42700     *)
42701       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42702       ;;
42703     esac
42704 done
42705
42706 # Fix-up fallback echo if it was mangled by the above quoting rules.
42707 case \$lt_ECHO in
42708 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42709   ;;
42710 esac
42711
42712 ac_aux_dir='$ac_aux_dir'
42713 xsi_shell='$xsi_shell'
42714 lt_shell_append='$lt_shell_append'
42715
42716 # See if we are running on zsh, and set the options which allow our
42717 # commands through without removal of \ escapes INIT.
42718 if test -n "\${ZSH_VERSION+set}" ; then
42719    setopt NO_GLOB_SUBST
42720 fi
42721
42722
42723     PACKAGE='$PACKAGE'
42724     VERSION='$VERSION'
42725     TIMESTAMP='$TIMESTAMP'
42726     RM='$RM'
42727     ofile='$ofile'
42728
42729
42730
42731
42732
42733 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42734     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42735     # from automake.
42736     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42737     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42738     LINGUAS="${LINGUAS-%UNSET%}"
42739
42740
42741 _ACEOF
42742
42743 cat >>$CONFIG_STATUS <<\_ACEOF
42744
42745 # Handling of arguments.
42746 for ac_config_target in $ac_config_targets
42747 do
42748   case $ac_config_target in
42749     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42750     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42751     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42752     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42753     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42754     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42755     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42756     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42757     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42758     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42759     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42760     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42761     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42762     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42763     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42764     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42765     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42766     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42767     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42768     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42769     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42770     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42771     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42772     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42773     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42774     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42775     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42776     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42777     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42778     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42779     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42780     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42781     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42782     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42783     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42784     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42785     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42786     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42787     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42788     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42789     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42790     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42791     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42792     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42793     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42794     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42795     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42796     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42797     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42798     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42799     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42800     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42801     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42802     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42803     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42804     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42805     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42806     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42807     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42808     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42809     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42810     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42811     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42812     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42813     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42814     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42815     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42816     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42817     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42818     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42819     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42820     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42821     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42822     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42823     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42824     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42825     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42826     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42827     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42828     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42829     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42830     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42831     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42832     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42833     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42834     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42835     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42836     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42837     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42838     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42839     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42840     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42841     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42842     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42843     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42844     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42845     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42846     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42847     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42848     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42849     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42850     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42851     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42852     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42853     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42854     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42855     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42856     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42857     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42858     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42859     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42860     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42861     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42862     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42863     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42864
42865   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42866 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42867    { (exit 1); exit 1; }; };;
42868   esac
42869 done
42870
42871
42872 # If the user did not use the arguments to specify the items to instantiate,
42873 # then the envvar interface is used.  Set only those that are not.
42874 # We use the long form for the default assignment because of an extremely
42875 # bizarre bug on SunOS 4.1.3.
42876 if $ac_need_defaults; then
42877   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42878   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42879   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42880 fi
42881
42882 # Have a temporary directory for convenience.  Make it in the build tree
42883 # simply because there is no reason against having it here, and in addition,
42884 # creating and moving files from /tmp can sometimes cause problems.
42885 # Hook for its removal unless debugging.
42886 # Note that there is a small window in which the directory will not be cleaned:
42887 # after its creation but before its name has been assigned to `$tmp'.
42888 $debug ||
42889 {
42890   tmp=
42891   trap 'exit_status=$?
42892   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42893 ' 0
42894   trap '{ (exit 1); exit 1; }' 1 2 13 15
42895 }
42896 # Create a (secure) tmp directory for tmp files.
42897
42898 {
42899   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42900   test -n "$tmp" && test -d "$tmp"
42901 }  ||
42902 {
42903   tmp=./conf$$-$RANDOM
42904   (umask 077 && mkdir "$tmp")
42905 } ||
42906 {
42907    echo "$me: cannot create a temporary directory in ." >&2
42908    { (exit 1); exit 1; }
42909 }
42910
42911 #
42912 # Set up the sed scripts for CONFIG_FILES section.
42913 #
42914
42915 # No need to generate the scripts if there are no CONFIG_FILES.
42916 # This happens for instance when ./config.status config.h
42917 if test -n "$CONFIG_FILES"; then
42918
42919 _ACEOF
42920
42921 # Create sed commands to just substitute file output variables.
42922
42923 # Remaining file output variables are in a fragment that also has non-file
42924 # output varibles.
42925
42926
42927
42928 ac_delim='%!_!# '
42929 for ac_last_try in false false false false false :; do
42930   cat >conf$$subs.sed <<_ACEOF
42931 SHELL!$SHELL$ac_delim
42932 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42933 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42934 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42935 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42936 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42937 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42938 exec_prefix!$exec_prefix$ac_delim
42939 prefix!$prefix$ac_delim
42940 program_transform_name!$program_transform_name$ac_delim
42941 bindir!$bindir$ac_delim
42942 sbindir!$sbindir$ac_delim
42943 libexecdir!$libexecdir$ac_delim
42944 datarootdir!$datarootdir$ac_delim
42945 datadir!$datadir$ac_delim
42946 sysconfdir!$sysconfdir$ac_delim
42947 sharedstatedir!$sharedstatedir$ac_delim
42948 localstatedir!$localstatedir$ac_delim
42949 includedir!$includedir$ac_delim
42950 oldincludedir!$oldincludedir$ac_delim
42951 docdir!$docdir$ac_delim
42952 infodir!$infodir$ac_delim
42953 htmldir!$htmldir$ac_delim
42954 dvidir!$dvidir$ac_delim
42955 pdfdir!$pdfdir$ac_delim
42956 psdir!$psdir$ac_delim
42957 libdir!$libdir$ac_delim
42958 localedir!$localedir$ac_delim
42959 mandir!$mandir$ac_delim
42960 DEFS!$DEFS$ac_delim
42961 ECHO_C!$ECHO_C$ac_delim
42962 ECHO_N!$ECHO_N$ac_delim
42963 ECHO_T!$ECHO_T$ac_delim
42964 LIBS!$LIBS$ac_delim
42965 build_alias!$build_alias$ac_delim
42966 host_alias!$host_alias$ac_delim
42967 target_alias!$target_alias$ac_delim
42968 BUILD_DIR!$BUILD_DIR$ac_delim
42969 TOP_DIR!$TOP_DIR$ac_delim
42970 TRUEPRG!$TRUEPRG$ac_delim
42971 FALSEPRG!$FALSEPRG$ac_delim
42972 VERSION!$VERSION$ac_delim
42973 DATE!$DATE$ac_delim
42974 LSMDATE!$LSMDATE$ac_delim
42975 BACULA!$BACULA$ac_delim
42976 post_host!$post_host$ac_delim
42977 CC!$CC$ac_delim
42978 CFLAGS!$CFLAGS$ac_delim
42979 LDFLAGS!$LDFLAGS$ac_delim
42980 CPPFLAGS!$CPPFLAGS$ac_delim
42981 ac_ct_CC!$ac_ct_CC$ac_delim
42982 EXEEXT!$EXEEXT$ac_delim
42983 OBJEXT!$OBJEXT$ac_delim
42984 CXX!$CXX$ac_delim
42985 CXXFLAGS!$CXXFLAGS$ac_delim
42986 ac_ct_CXX!$ac_ct_CXX$ac_delim
42987 CPP!$CPP$ac_delim
42988 GREP!$GREP$ac_delim
42989 EGREP!$EGREP$ac_delim
42990 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42991 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42992 INSTALL_DATA!$INSTALL_DATA$ac_delim
42993 MV!$MV$ac_delim
42994 REMOVE!$REMOVE$ac_delim
42995 CP!$CP$ac_delim
42996 SED!$SED$ac_delim
42997 ECHO!$ECHO$ac_delim
42998 CMP!$CMP$ac_delim
42999 TBL!$TBL$ac_delim
43000 AR!$AR$ac_delim
43001 OPENSSL!$OPENSSL$ac_delim
43002 MTX!$MTX$ac_delim
43003 DD!$DD$ac_delim
43004 MKISOFS!$MKISOFS$ac_delim
43005 PYTHON!$PYTHON$ac_delim
43006 GROWISOFS!$GROWISOFS$ac_delim
43007 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43008 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43009 PKGCONFIG!$PKGCONFIG$ac_delim
43010 QMAKE!$QMAKE$ac_delim
43011 QMAKEQT4!$QMAKEQT4$ac_delim
43012 WXCONFIG!$WXCONFIG$ac_delim
43013 WXFLAGS!$WXFLAGS$ac_delim
43014 CDRECORD!$CDRECORD$ac_delim
43015 PIDOF!$PIDOF$ac_delim
43016 AWK!$AWK$ac_delim
43017 ARFLAGS!$ARFLAGS$ac_delim
43018 MAKE_SHELL!$MAKE_SHELL$ac_delim
43019 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43020 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43021 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43022 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43023 LIBTOOL!$LIBTOOL$ac_delim
43024 build!$build$ac_delim
43025 _ACEOF
43026
43027   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43028     break
43029   elif $ac_last_try; then
43030     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43031 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43032    { (exit 1); exit 1; }; }
43033   else
43034     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43035   fi
43036 done
43037
43038 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43039 if test -n "$ac_eof"; then
43040   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43041   ac_eof=`expr $ac_eof + 1`
43042 fi
43043
43044 cat >>$CONFIG_STATUS <<_ACEOF
43045 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43047 /^[      ]*@MCOMMON@[    ]*$/{
43048 r $MCOMMON
43049 d
43050 }
43051 _ACEOF
43052 sed '
43053 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43054 s/^/s,@/; s/!/@,|#_!!_#|/
43055 :n
43056 t n
43057 s/'"$ac_delim"'$/,g/; t
43058 s/$/\\/; p
43059 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43060 ' >>$CONFIG_STATUS <conf$$subs.sed
43061 rm -f conf$$subs.sed
43062 cat >>$CONFIG_STATUS <<_ACEOF
43063 CEOF$ac_eof
43064 _ACEOF
43065
43066
43067 ac_delim='%!_!# '
43068 for ac_last_try in false false false false false :; do
43069   cat >conf$$subs.sed <<_ACEOF
43070 build_cpu!$build_cpu$ac_delim
43071 build_vendor!$build_vendor$ac_delim
43072 build_os!$build_os$ac_delim
43073 host!$host$ac_delim
43074 host_cpu!$host_cpu$ac_delim
43075 host_vendor!$host_vendor$ac_delim
43076 host_os!$host_os$ac_delim
43077 FGREP!$FGREP$ac_delim
43078 LD!$LD$ac_delim
43079 DUMPBIN!$DUMPBIN$ac_delim
43080 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43081 NM!$NM$ac_delim
43082 LN_S!$LN_S$ac_delim
43083 OBJDUMP!$OBJDUMP$ac_delim
43084 STRIP!$STRIP$ac_delim
43085 RANLIB!$RANLIB$ac_delim
43086 lt_ECHO!$lt_ECHO$ac_delim
43087 DSYMUTIL!$DSYMUTIL$ac_delim
43088 NMEDIT!$NMEDIT$ac_delim
43089 LIPO!$LIPO$ac_delim
43090 OTOOL!$OTOOL$ac_delim
43091 OTOOL64!$OTOOL64$ac_delim
43092 CXXCPP!$CXXCPP$ac_delim
43093 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
43094 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
43095 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
43096 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
43097 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
43098 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
43099 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
43100 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
43101 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
43102 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
43103 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
43104 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
43105 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
43106 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
43107 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
43108 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
43109 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
43110 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
43111 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
43112 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
43113 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
43114 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
43115 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
43116 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
43117 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
43118 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
43119 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
43120 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
43121 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
43122 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
43123 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
43124 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
43125 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
43126 SET_MAKE!$SET_MAKE$ac_delim
43127 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
43128 USE_NLS!$USE_NLS$ac_delim
43129 MSGFMT!$MSGFMT$ac_delim
43130 GMSGFMT!$GMSGFMT$ac_delim
43131 XGETTEXT!$XGETTEXT$ac_delim
43132 MSGMERGE!$MSGMERGE$ac_delim
43133 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43134 LIBICONV!$LIBICONV$ac_delim
43135 LTLIBICONV!$LTLIBICONV$ac_delim
43136 INTLLIBS!$INTLLIBS$ac_delim
43137 LIBINTL!$LIBINTL$ac_delim
43138 LTLIBINTL!$LTLIBINTL$ac_delim
43139 POSUB!$POSUB$ac_delim
43140 GLIBC2!$GLIBC2$ac_delim
43141 ALLOCA!$ALLOCA$ac_delim
43142 GLIBC21!$GLIBC21$ac_delim
43143 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
43144 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
43145 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
43146 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
43147 INTLBISON!$INTLBISON$ac_delim
43148 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
43149 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
43150 CATOBJEXT!$CATOBJEXT$ac_delim
43151 DATADIRNAME!$DATADIRNAME$ac_delim
43152 INSTOBJEXT!$INSTOBJEXT$ac_delim
43153 GENCAT!$GENCAT$ac_delim
43154 INTLOBJS!$INTLOBJS$ac_delim
43155 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
43156 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
43157 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
43158 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
43159 GNOME_LIBS!$GNOME_LIBS$ac_delim
43160 GNOME_DIR!$GNOME_DIR$ac_delim
43161 BAT_DIR!$BAT_DIR$ac_delim
43162 QWT_INC!$QWT_INC$ac_delim
43163 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
43164 QWT_LIB!$QWT_LIB$ac_delim
43165 QWT!$QWT$ac_delim
43166 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
43167 _ACEOF
43168
43169   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43170     break
43171   elif $ac_last_try; then
43172     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43174    { (exit 1); exit 1; }; }
43175   else
43176     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43177   fi
43178 done
43179
43180 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43181 if test -n "$ac_eof"; then
43182   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43183   ac_eof=`expr $ac_eof + 1`
43184 fi
43185
43186 cat >>$CONFIG_STATUS <<_ACEOF
43187 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43189 _ACEOF
43190 sed '
43191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43192 s/^/s,@/; s/!/@,|#_!!_#|/
43193 :n
43194 t n
43195 s/'"$ac_delim"'$/,g/; t
43196 s/$/\\/; p
43197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43198 ' >>$CONFIG_STATUS <conf$$subs.sed
43199 rm -f conf$$subs.sed
43200 cat >>$CONFIG_STATUS <<_ACEOF
43201 CEOF$ac_eof
43202 _ACEOF
43203
43204
43205 ac_delim='%!_!# '
43206 for ac_last_try in false false false false false :; do
43207   cat >conf$$subs.sed <<_ACEOF
43208 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
43209 WX_DIR!$WX_DIR$ac_delim
43210 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
43211 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
43212 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
43213 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
43214 STATIC_FD!$STATIC_FD$ac_delim
43215 STATIC_SD!$STATIC_SD$ac_delim
43216 STATIC_DIR!$STATIC_DIR$ac_delim
43217 STATIC_CONS!$STATIC_CONS$ac_delim
43218 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
43219 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
43220 ALL_DIRS!$ALL_DIRS$ac_delim
43221 DIRD_DIR!$DIRD_DIR$ac_delim
43222 DIR_TOOLS!$DIR_TOOLS$ac_delim
43223 STORED_DIR!$STORED_DIR$ac_delim
43224 CONS_INC!$CONS_INC$ac_delim
43225 CONS_OBJ!$CONS_OBJ$ac_delim
43226 CONS_SRC!$CONS_SRC$ac_delim
43227 CONS_LIBS!$CONS_LIBS$ac_delim
43228 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
43229 READLINE_SRC!$READLINE_SRC$ac_delim
43230 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
43231 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
43232 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
43233 OPENSSL_INC!$OPENSSL_INC$ac_delim
43234 working_dir!$working_dir$ac_delim
43235 archivedir!$archivedir$ac_delim
43236 scriptdir!$scriptdir$ac_delim
43237 plugindir!$plugindir$ac_delim
43238 dump_email!$dump_email$ac_delim
43239 job_email!$job_email$ac_delim
43240 smtp_host!$smtp_host$ac_delim
43241 piddir!$piddir$ac_delim
43242 subsysdir!$subsysdir$ac_delim
43243 baseport!$baseport$ac_delim
43244 dir_port!$dir_port$ac_delim
43245 fd_port!$fd_port$ac_delim
43246 sd_port!$sd_port$ac_delim
43247 dir_password!$dir_password$ac_delim
43248 fd_password!$fd_password$ac_delim
43249 sd_password!$sd_password$ac_delim
43250 mon_dir_password!$mon_dir_password$ac_delim
43251 mon_fd_password!$mon_fd_password$ac_delim
43252 mon_sd_password!$mon_sd_password$ac_delim
43253 db_name!$db_name$ac_delim
43254 db_user!$db_user$ac_delim
43255 db_password!$db_password$ac_delim
43256 db_port!$db_port$ac_delim
43257 dir_user!$dir_user$ac_delim
43258 dir_group!$dir_group$ac_delim
43259 sd_user!$sd_user$ac_delim
43260 sd_group!$sd_group$ac_delim
43261 fd_user!$fd_user$ac_delim
43262 fd_group!$fd_group$ac_delim
43263 SBINPERM!$SBINPERM$ac_delim
43264 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
43265 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
43266 SQL_BINDIR!$SQL_BINDIR$ac_delim
43267 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
43268 uncomment_dbi!$uncomment_dbi$ac_delim
43269 DB_PROG!$DB_PROG$ac_delim
43270 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
43271 cats!$cats$ac_delim
43272 DB_TYPE!$DB_TYPE$ac_delim
43273 GETCONF!$GETCONF$ac_delim
43274 XMKMF!$XMKMF$ac_delim
43275 X_CFLAGS!$X_CFLAGS$ac_delim
43276 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43277 X_LIBS!$X_LIBS$ac_delim
43278 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43279 LIBOBJS!$LIBOBJS$ac_delim
43280 FDLIBS!$FDLIBS$ac_delim
43281 DEBUG!$DEBUG$ac_delim
43282 DINCLUDE!$DINCLUDE$ac_delim
43283 DLIB!$DLIB$ac_delim
43284 DB_LIBS!$DB_LIBS$ac_delim
43285 WCFLAGS!$WCFLAGS$ac_delim
43286 WLDFLAGS!$WLDFLAGS$ac_delim
43287 WRAPLIBS!$WRAPLIBS$ac_delim
43288 OBJLIST!$OBJLIST$ac_delim
43289 hostname!$hostname$ac_delim
43290 TAPEDRIVE!$TAPEDRIVE$ac_delim
43291 PSCMD!$PSCMD$ac_delim
43292 WIN32!$WIN32$ac_delim
43293 MACOSX!$MACOSX$ac_delim
43294 DISTNAME!$DISTNAME$ac_delim
43295 DISTVER!$DISTVER$ac_delim
43296 LTLIBOBJS!$LTLIBOBJS$ac_delim
43297 _ACEOF
43298
43299   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
43300     break
43301   elif $ac_last_try; then
43302     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43303 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43304    { (exit 1); exit 1; }; }
43305   else
43306     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43307   fi
43308 done
43309
43310 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43311 if test -n "$ac_eof"; then
43312   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43313   ac_eof=`expr $ac_eof + 1`
43314 fi
43315
43316 cat >>$CONFIG_STATUS <<_ACEOF
43317 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43319 _ACEOF
43320 sed '
43321 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43322 s/^/s,@/; s/!/@,|#_!!_#|/
43323 :n
43324 t n
43325 s/'"$ac_delim"'$/,g/; t
43326 s/$/\\/; p
43327 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43328 ' >>$CONFIG_STATUS <conf$$subs.sed
43329 rm -f conf$$subs.sed
43330 cat >>$CONFIG_STATUS <<_ACEOF
43331 :end
43332 s/|#_!!_#|//g
43333 CEOF$ac_eof
43334 _ACEOF
43335
43336
43337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43339 # trailing colons and then remove the whole line if VPATH becomes empty
43340 # (actually we leave an empty line to preserve line numbers).
43341 if test "x$srcdir" = x.; then
43342   ac_vpsub='/^[  ]*VPATH[        ]*=/{
43343 s/:*\$(srcdir):*/:/
43344 s/:*\${srcdir}:*/:/
43345 s/:*@srcdir@:*/:/
43346 s/^\([^=]*=[     ]*\):*/\1/
43347 s/:*$//
43348 s/^[^=]*=[       ]*$//
43349 }'
43350 fi
43351
43352 cat >>$CONFIG_STATUS <<\_ACEOF
43353 fi # test -n "$CONFIG_FILES"
43354
43355
43356 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
43357 do
43358   case $ac_tag in
43359   :[FHLC]) ac_mode=$ac_tag; continue;;
43360   esac
43361   case $ac_mode$ac_tag in
43362   :[FHL]*:*);;
43363   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43364 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43365    { (exit 1); exit 1; }; };;
43366   :[FH]-) ac_tag=-:-;;
43367   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43368   esac
43369   ac_save_IFS=$IFS
43370   IFS=:
43371   set x $ac_tag
43372   IFS=$ac_save_IFS
43373   shift
43374   ac_file=$1
43375   shift
43376
43377   case $ac_mode in
43378   :L) ac_source=$1;;
43379   :[FH])
43380     ac_file_inputs=
43381     for ac_f
43382     do
43383       case $ac_f in
43384       -) ac_f="$tmp/stdin";;
43385       *) # Look for the file first in the build tree, then in the source tree
43386          # (if the path is not absolute).  The absolute path cannot be DOS-style,
43387          # because $ac_f cannot contain `:'.
43388          test -f "$ac_f" ||
43389            case $ac_f in
43390            [\\/$]*) false;;
43391            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43392            esac ||
43393            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43394 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43395    { (exit 1); exit 1; }; };;
43396       esac
43397       ac_file_inputs="$ac_file_inputs $ac_f"
43398     done
43399
43400     # Let's still pretend it is `configure' which instantiates (i.e., don't
43401     # use $as_me), people would be surprised to read:
43402     #    /* config.h.  Generated by config.status.  */
43403     configure_input="Generated from "`IFS=:
43404           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43405     if test x"$ac_file" != x-; then
43406       configure_input="$ac_file.  $configure_input"
43407       { echo "$as_me:$LINENO: creating $ac_file" >&5
43408 echo "$as_me: creating $ac_file" >&6;}
43409     fi
43410
43411     case $ac_tag in
43412     *:-:* | *:-) cat >"$tmp/stdin";;
43413     esac
43414     ;;
43415   esac
43416
43417   ac_dir=`$as_dirname -- "$ac_file" ||
43418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43419          X"$ac_file" : 'X\(//\)[^/]' \| \
43420          X"$ac_file" : 'X\(//\)$' \| \
43421          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43422 echo X"$ac_file" |
43423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43424             s//\1/
43425             q
43426           }
43427           /^X\(\/\/\)[^/].*/{
43428             s//\1/
43429             q
43430           }
43431           /^X\(\/\/\)$/{
43432             s//\1/
43433             q
43434           }
43435           /^X\(\/\).*/{
43436             s//\1/
43437             q
43438           }
43439           s/.*/./; q'`
43440   { as_dir="$ac_dir"
43441   case $as_dir in #(
43442   -*) as_dir=./$as_dir;;
43443   esac
43444   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43445     as_dirs=
43446     while :; do
43447       case $as_dir in #(
43448       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43449       *) as_qdir=$as_dir;;
43450       esac
43451       as_dirs="'$as_qdir' $as_dirs"
43452       as_dir=`$as_dirname -- "$as_dir" ||
43453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43454          X"$as_dir" : 'X\(//\)[^/]' \| \
43455          X"$as_dir" : 'X\(//\)$' \| \
43456          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43457 echo X"$as_dir" |
43458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43459             s//\1/
43460             q
43461           }
43462           /^X\(\/\/\)[^/].*/{
43463             s//\1/
43464             q
43465           }
43466           /^X\(\/\/\)$/{
43467             s//\1/
43468             q
43469           }
43470           /^X\(\/\).*/{
43471             s//\1/
43472             q
43473           }
43474           s/.*/./; q'`
43475       test -d "$as_dir" && break
43476     done
43477     test -z "$as_dirs" || eval "mkdir $as_dirs"
43478   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43479 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43480    { (exit 1); exit 1; }; }; }
43481   ac_builddir=.
43482
43483 case "$ac_dir" in
43484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43485 *)
43486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43487   # A ".." for each directory in $ac_dir_suffix.
43488   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43489   case $ac_top_builddir_sub in
43490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43492   esac ;;
43493 esac
43494 ac_abs_top_builddir=$ac_pwd
43495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43496 # for backward compatibility:
43497 ac_top_builddir=$ac_top_build_prefix
43498
43499 case $srcdir in
43500   .)  # We are building in place.
43501     ac_srcdir=.
43502     ac_top_srcdir=$ac_top_builddir_sub
43503     ac_abs_top_srcdir=$ac_pwd ;;
43504   [\\/]* | ?:[\\/]* )  # Absolute name.
43505     ac_srcdir=$srcdir$ac_dir_suffix;
43506     ac_top_srcdir=$srcdir
43507     ac_abs_top_srcdir=$srcdir ;;
43508   *) # Relative name.
43509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43510     ac_top_srcdir=$ac_top_build_prefix$srcdir
43511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43512 esac
43513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43514
43515
43516   case $ac_mode in
43517   :F)
43518   #
43519   # CONFIG_FILE
43520   #
43521
43522   case $INSTALL in
43523   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43524   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43525   esac
43526 _ACEOF
43527
43528 cat >>$CONFIG_STATUS <<\_ACEOF
43529 # If the template does not know about datarootdir, expand it.
43530 # FIXME: This hack should be removed a few years after 2.60.
43531 ac_datarootdir_hack=; ac_datarootdir_seen=
43532
43533 case `sed -n '/datarootdir/ {
43534   p
43535   q
43536 }
43537 /@datadir@/p
43538 /@docdir@/p
43539 /@infodir@/p
43540 /@localedir@/p
43541 /@mandir@/p
43542 ' $ac_file_inputs` in
43543 *datarootdir*) ac_datarootdir_seen=yes;;
43544 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43545   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43546 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43547 _ACEOF
43548 cat >>$CONFIG_STATUS <<_ACEOF
43549   ac_datarootdir_hack='
43550   s&@datadir@&$datadir&g
43551   s&@docdir@&$docdir&g
43552   s&@infodir@&$infodir&g
43553   s&@localedir@&$localedir&g
43554   s&@mandir@&$mandir&g
43555     s&\\\${datarootdir}&$datarootdir&g' ;;
43556 esac
43557 _ACEOF
43558
43559 # Neutralize VPATH when `$srcdir' = `.'.
43560 # Shell code in configure.ac might set extrasub.
43561 # FIXME: do we really want to maintain this feature?
43562 cat >>$CONFIG_STATUS <<_ACEOF
43563   sed "$ac_vpsub
43564 $extrasub
43565 _ACEOF
43566 cat >>$CONFIG_STATUS <<\_ACEOF
43567 :t
43568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43569 s&@configure_input@&$configure_input&;t t
43570 s&@top_builddir@&$ac_top_builddir_sub&;t t
43571 s&@srcdir@&$ac_srcdir&;t t
43572 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43573 s&@top_srcdir@&$ac_top_srcdir&;t t
43574 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43575 s&@builddir@&$ac_builddir&;t t
43576 s&@abs_builddir@&$ac_abs_builddir&;t t
43577 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43578 s&@INSTALL@&$ac_INSTALL&;t t
43579 $ac_datarootdir_hack
43580 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43581
43582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43583   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43584   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43585   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43586 which seems to be undefined.  Please make sure it is defined." >&5
43587 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43588 which seems to be undefined.  Please make sure it is defined." >&2;}
43589
43590   rm -f "$tmp/stdin"
43591   case $ac_file in
43592   -) cat "$tmp/out"; rm -f "$tmp/out";;
43593   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43594   esac
43595  ;;
43596   :H)
43597   #
43598   # CONFIG_HEADER
43599   #
43600 _ACEOF
43601
43602 # Transform confdefs.h into a sed script `conftest.defines', that
43603 # substitutes the proper values into config.h.in to produce config.h.
43604 rm -f conftest.defines conftest.tail
43605 # First, append a space to every undef/define line, to ease matching.
43606 echo 's/$/ /' >conftest.defines
43607 # Then, protect against being on the right side of a sed subst, or in
43608 # an unquoted here document, in config.status.  If some macros were
43609 # called several times there might be several #defines for the same
43610 # symbol, which is useless.  But do not sort them, since the last
43611 # AC_DEFINE must be honored.
43612 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43613 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43614 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43615 # PARAMS is the parameter list in the macro definition--in most cases, it's
43616 # just an empty string.
43617 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43618 ac_dB='\\)[      (].*,\\1define\\2'
43619 ac_dC=' '
43620 ac_dD=' ,'
43621
43622 uniq confdefs.h |
43623   sed -n '
43624         t rset
43625         :rset
43626         s/^[     ]*#[    ]*define[       ][      ]*//
43627         t ok
43628         d
43629         :ok
43630         s/[\\&,]/\\&/g
43631         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43632         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43633   ' >>conftest.defines
43634
43635 # Remove the space that was appended to ease matching.
43636 # Then replace #undef with comments.  This is necessary, for
43637 # example, in the case of _POSIX_SOURCE, which is predefined and required
43638 # on some systems where configure will not decide to define it.
43639 # (The regexp can be short, since the line contains either #define or #undef.)
43640 echo 's/ $//
43641 s,^[     #]*u.*,/* & */,' >>conftest.defines
43642
43643 # Break up conftest.defines:
43644 ac_max_sed_lines=50
43645
43646 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43647 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43648 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43649 # et cetera.
43650 ac_in='$ac_file_inputs'
43651 ac_out='"$tmp/out1"'
43652 ac_nxt='"$tmp/out2"'
43653
43654 while :
43655 do
43656   # Write a here document:
43657     cat >>$CONFIG_STATUS <<_ACEOF
43658     # First, check the format of the line:
43659     cat >"\$tmp/defines.sed" <<\\CEOF
43660 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43661 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43662 b
43663 :def
43664 _ACEOF
43665   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43666   echo 'CEOF
43667     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43668   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43669   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43670   grep . conftest.tail >/dev/null || break
43671   rm -f conftest.defines
43672   mv conftest.tail conftest.defines
43673 done
43674 rm -f conftest.defines conftest.tail
43675
43676 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43677 cat >>$CONFIG_STATUS <<\_ACEOF
43678   if test x"$ac_file" != x-; then
43679     echo "/* $configure_input  */" >"$tmp/config.h"
43680     cat "$ac_result" >>"$tmp/config.h"
43681     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43682       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43683 echo "$as_me: $ac_file is unchanged" >&6;}
43684     else
43685       rm -f $ac_file
43686       mv "$tmp/config.h" $ac_file
43687     fi
43688   else
43689     echo "/* $configure_input  */"
43690     cat "$ac_result"
43691   fi
43692   rm -f "$tmp/out12"
43693  ;;
43694
43695   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43696 echo "$as_me: executing $ac_file commands" >&6;}
43697  ;;
43698   esac
43699
43700
43701   case $ac_file$ac_mode in
43702     "libtool":C)
43703
43704     # See if we are running on zsh, and set the options which allow our
43705     # commands through without removal of \ escapes.
43706     if test -n "${ZSH_VERSION+set}" ; then
43707       setopt NO_GLOB_SUBST
43708     fi
43709
43710     cfgfile="${ofile}T"
43711     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43712     $RM "$cfgfile"
43713
43714     cat <<_LT_EOF >> "$cfgfile"
43715 #! $SHELL
43716
43717 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43718 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43720 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43721 #
43722 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43723 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43724 #   Written by Gordon Matzigkeit, 1996
43725 #
43726 #   This file is part of GNU Libtool.
43727 #
43728 # GNU Libtool is free software; you can redistribute it and/or
43729 # modify it under the terms of the GNU General Public License as
43730 # published by the Free Software Foundation; either version 2 of
43731 # the License, or (at your option) any later version.
43732 #
43733 # As a special exception to the GNU General Public License,
43734 # if you distribute this file as part of a program or library that
43735 # is built using GNU Libtool, you may include this file under the
43736 # same distribution terms that you use for the rest of that program.
43737 #
43738 # GNU Libtool is distributed in the hope that it will be useful,
43739 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43740 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43741 # GNU General Public License for more details.
43742 #
43743 # You should have received a copy of the GNU General Public License
43744 # along with GNU Libtool; see the file COPYING.  If not, a copy
43745 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43746 # obtained by writing to the Free Software Foundation, Inc.,
43747 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43748
43749
43750 # The names of the tagged configurations supported by this script.
43751 available_tags="CXX "
43752
43753 # ### BEGIN LIBTOOL CONFIG
43754
43755 # Which release of libtool.m4 was used?
43756 macro_version=$macro_version
43757 macro_revision=$macro_revision
43758
43759 # Whether or not to build shared libraries.
43760 build_libtool_libs=$enable_shared
43761
43762 # Whether or not to build static libraries.
43763 build_old_libs=$enable_static
43764
43765 # What type of objects to build.
43766 pic_mode=$pic_mode
43767
43768 # Whether or not to optimize for fast installation.
43769 fast_install=$enable_fast_install
43770
43771 # The host system.
43772 host_alias=$host_alias
43773 host=$host
43774 host_os=$host_os
43775
43776 # The build system.
43777 build_alias=$build_alias
43778 build=$build
43779 build_os=$build_os
43780
43781 # A sed program that does not truncate output.
43782 SED=$lt_SED
43783
43784 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43785 Xsed="\$SED -e 1s/^X//"
43786
43787 # A grep program that handles long lines.
43788 GREP=$lt_GREP
43789
43790 # An ERE matcher.
43791 EGREP=$lt_EGREP
43792
43793 # A literal string matcher.
43794 FGREP=$lt_FGREP
43795
43796 # A BSD- or MS-compatible name lister.
43797 NM=$lt_NM
43798
43799 # Whether we need soft or hard links.
43800 LN_S=$lt_LN_S
43801
43802 # What is the maximum length of a command?
43803 max_cmd_len=$max_cmd_len
43804
43805 # Object file suffix (normally "o").
43806 objext=$ac_objext
43807
43808 # Executable file suffix (normally "").
43809 exeext=$exeext
43810
43811 # whether the shell understands "unset".
43812 lt_unset=$lt_unset
43813
43814 # turn spaces into newlines.
43815 SP2NL=$lt_lt_SP2NL
43816
43817 # turn newlines into spaces.
43818 NL2SP=$lt_lt_NL2SP
43819
43820 # How to create reloadable object files.
43821 reload_flag=$lt_reload_flag
43822 reload_cmds=$lt_reload_cmds
43823
43824 # An object symbol dumper.
43825 OBJDUMP=$lt_OBJDUMP
43826
43827 # Method to check whether dependent libraries are shared objects.
43828 deplibs_check_method=$lt_deplibs_check_method
43829
43830 # Command to use when deplibs_check_method == "file_magic".
43831 file_magic_cmd=$lt_file_magic_cmd
43832
43833 # The archiver.
43834 AR=$lt_AR
43835 AR_FLAGS=$lt_AR_FLAGS
43836
43837 # A symbol stripping program.
43838 STRIP=$lt_STRIP
43839
43840 # Commands used to install an old-style archive.
43841 RANLIB=$lt_RANLIB
43842 old_postinstall_cmds=$lt_old_postinstall_cmds
43843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43844
43845 # A C compiler.
43846 LTCC=$lt_CC
43847
43848 # LTCC compiler flags.
43849 LTCFLAGS=$lt_CFLAGS
43850
43851 # Take the output of nm and produce a listing of raw symbols and C names.
43852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43853
43854 # Transform the output of nm in a proper C declaration.
43855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43856
43857 # Transform the output of nm in a C name address pair.
43858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43859
43860 # Transform the output of nm in a C name address pair when lib prefix is needed.
43861 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43862
43863 # The name of the directory that contains temporary libtool files.
43864 objdir=$objdir
43865
43866 # Shell to use when invoking shell scripts.
43867 SHELL=$lt_SHELL
43868
43869 # An echo program that does not interpret backslashes.
43870 ECHO=$lt_ECHO
43871
43872 # Used to examine libraries when file_magic_cmd begins with "file".
43873 MAGIC_CMD=$MAGIC_CMD
43874
43875 # Must we lock files when doing compilation?
43876 need_locks=$lt_need_locks
43877
43878 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43879 DSYMUTIL=$lt_DSYMUTIL
43880
43881 # Tool to change global to local symbols on Mac OS X.
43882 NMEDIT=$lt_NMEDIT
43883
43884 # Tool to manipulate fat objects and archives on Mac OS X.
43885 LIPO=$lt_LIPO
43886
43887 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43888 OTOOL=$lt_OTOOL
43889
43890 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43891 OTOOL64=$lt_OTOOL64
43892
43893 # Old archive suffix (normally "a").
43894 libext=$libext
43895
43896 # Shared library suffix (normally ".so").
43897 shrext_cmds=$lt_shrext_cmds
43898
43899 # The commands to extract the exported symbol list from a shared archive.
43900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43901
43902 # Variables whose values should be saved in libtool wrapper scripts and
43903 # restored at link time.
43904 variables_saved_for_relink=$lt_variables_saved_for_relink
43905
43906 # Do we need the "lib" prefix for modules?
43907 need_lib_prefix=$need_lib_prefix
43908
43909 # Do we need a version for libraries?
43910 need_version=$need_version
43911
43912 # Library versioning type.
43913 version_type=$version_type
43914
43915 # Shared library runtime path variable.
43916 runpath_var=$runpath_var
43917
43918 # Shared library path variable.
43919 shlibpath_var=$shlibpath_var
43920
43921 # Is shlibpath searched before the hard-coded library search path?
43922 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43923
43924 # Format of library name prefix.
43925 libname_spec=$lt_libname_spec
43926
43927 # List of archive names.  First name is the real one, the rest are links.
43928 # The last name is the one that the linker finds with -lNAME
43929 library_names_spec=$lt_library_names_spec
43930
43931 # The coded name of the library, if different from the real name.
43932 soname_spec=$lt_soname_spec
43933
43934 # Command to use after installation of a shared archive.
43935 postinstall_cmds=$lt_postinstall_cmds
43936
43937 # Command to use after uninstallation of a shared archive.
43938 postuninstall_cmds=$lt_postuninstall_cmds
43939
43940 # Commands used to finish a libtool library installation in a directory.
43941 finish_cmds=$lt_finish_cmds
43942
43943 # As "finish_cmds", except a single script fragment to be evaled but
43944 # not shown.
43945 finish_eval=$lt_finish_eval
43946
43947 # Whether we should hardcode library paths into libraries.
43948 hardcode_into_libs=$hardcode_into_libs
43949
43950 # Compile-time system search path for libraries.
43951 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43952
43953 # Run-time system search path for libraries.
43954 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43955
43956 # Whether dlopen is supported.
43957 dlopen_support=$enable_dlopen
43958
43959 # Whether dlopen of programs is supported.
43960 dlopen_self=$enable_dlopen_self
43961
43962 # Whether dlopen of statically linked programs is supported.
43963 dlopen_self_static=$enable_dlopen_self_static
43964
43965 # Commands to strip libraries.
43966 old_striplib=$lt_old_striplib
43967 striplib=$lt_striplib
43968
43969
43970 # The linker used to build libraries.
43971 LD=$lt_LD
43972
43973 # Commands used to build an old-style archive.
43974 old_archive_cmds=$lt_old_archive_cmds
43975
43976 # A language specific compiler.
43977 CC=$lt_compiler
43978
43979 # Is the compiler the GNU compiler?
43980 with_gcc=$GCC
43981
43982 # Compiler flag to turn off builtin functions.
43983 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43984
43985 # How to pass a linker flag through the compiler.
43986 wl=$lt_lt_prog_compiler_wl
43987
43988 # Additional compiler flags for building library objects.
43989 pic_flag=$lt_lt_prog_compiler_pic
43990
43991 # Compiler flag to prevent dynamic linking.
43992 link_static_flag=$lt_lt_prog_compiler_static
43993
43994 # Does compiler simultaneously support -c and -o options?
43995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43996
43997 # Whether or not to add -lc for building shared libraries.
43998 build_libtool_need_lc=$archive_cmds_need_lc
43999
44000 # Whether or not to disallow shared libs when runtime libs are static.
44001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44002
44003 # Compiler flag to allow reflexive dlopens.
44004 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44005
44006 # Compiler flag to generate shared objects directly from archives.
44007 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44008
44009 # Whether the compiler copes with passing no objects directly.
44010 compiler_needs_object=$lt_compiler_needs_object
44011
44012 # Create an old-style archive from a shared archive.
44013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44014
44015 # Create a temporary old-style archive to link instead of a shared archive.
44016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44017
44018 # Commands used to build a shared archive.
44019 archive_cmds=$lt_archive_cmds
44020 archive_expsym_cmds=$lt_archive_expsym_cmds
44021
44022 # Commands used to build a loadable module if different from building
44023 # a shared archive.
44024 module_cmds=$lt_module_cmds
44025 module_expsym_cmds=$lt_module_expsym_cmds
44026
44027 # Whether we are building with GNU ld or not.
44028 with_gnu_ld=$lt_with_gnu_ld
44029
44030 # Flag that allows shared libraries with undefined symbols to be built.
44031 allow_undefined_flag=$lt_allow_undefined_flag
44032
44033 # Flag that enforces no undefined symbols.
44034 no_undefined_flag=$lt_no_undefined_flag
44035
44036 # Flag to hardcode \$libdir into a binary during linking.
44037 # This must work even if \$libdir does not exist
44038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44039
44040 # If ld is used when linking, flag to hardcode \$libdir into a binary
44041 # during linking.  This must work even if \$libdir does not exist.
44042 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44043
44044 # Whether we need a single "-rpath" flag with a separated argument.
44045 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44046
44047 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44048 # DIR into the resulting binary.
44049 hardcode_direct=$hardcode_direct
44050
44051 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44052 # DIR into the resulting binary and the resulting library dependency is
44053 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44054 # library is relocated.
44055 hardcode_direct_absolute=$hardcode_direct_absolute
44056
44057 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44058 # into the resulting binary.
44059 hardcode_minus_L=$hardcode_minus_L
44060
44061 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44062 # into the resulting binary.
44063 hardcode_shlibpath_var=$hardcode_shlibpath_var
44064
44065 # Set to "yes" if building a shared library automatically hardcodes DIR
44066 # into the library and all subsequent libraries and executables linked
44067 # against it.
44068 hardcode_automatic=$hardcode_automatic
44069
44070 # Set to yes if linker adds runtime paths of dependent libraries
44071 # to runtime path list.
44072 inherit_rpath=$inherit_rpath
44073
44074 # Whether libtool must link a program against all its dependency libraries.
44075 link_all_deplibs=$link_all_deplibs
44076
44077 # Fix the shell variable \$srcfile for the compiler.
44078 fix_srcfile_path=$lt_fix_srcfile_path
44079
44080 # Set to "yes" if exported symbols are required.
44081 always_export_symbols=$always_export_symbols
44082
44083 # The commands to list exported symbols.
44084 export_symbols_cmds=$lt_export_symbols_cmds
44085
44086 # Symbols that should not be listed in the preloaded symbols.
44087 exclude_expsyms=$lt_exclude_expsyms
44088
44089 # Symbols that must always be exported.
44090 include_expsyms=$lt_include_expsyms
44091
44092 # Commands necessary for linking programs (against libraries) with templates.
44093 prelink_cmds=$lt_prelink_cmds
44094
44095 # Specify filename containing input files.
44096 file_list_spec=$lt_file_list_spec
44097
44098 # How to hardcode a shared library path into an executable.
44099 hardcode_action=$hardcode_action
44100
44101 # The directories searched by this compiler when creating a shared library.
44102 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
44103
44104 # Dependencies to place before and after the objects being linked to
44105 # create a shared library.
44106 predep_objects=$lt_predep_objects
44107 postdep_objects=$lt_postdep_objects
44108 predeps=$lt_predeps
44109 postdeps=$lt_postdeps
44110
44111 # The library search path used internally by the compiler when linking
44112 # a shared library.
44113 compiler_lib_search_path=$lt_compiler_lib_search_path
44114
44115 # ### END LIBTOOL CONFIG
44116
44117 _LT_EOF
44118
44119   case $host_os in
44120   aix3*)
44121     cat <<\_LT_EOF >> "$cfgfile"
44122 # AIX sometimes has problems with the GCC collect2 program.  For some
44123 # reason, if we set the COLLECT_NAMES environment variable, the problems
44124 # vanish in a puff of smoke.
44125 if test "X${COLLECT_NAMES+set}" != Xset; then
44126   COLLECT_NAMES=
44127   export COLLECT_NAMES
44128 fi
44129 _LT_EOF
44130     ;;
44131   esac
44132
44133
44134 ltmain="$ac_aux_dir/ltmain.sh"
44135
44136
44137   # We use sed instead of cat because bash on DJGPP gets confused if
44138   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
44139   # text mode, it properly converts lines to CR/LF.  This bash problem
44140   # is reportedly fixed, but why not run on old versions too?
44141   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
44142     || (rm -f "$cfgfile"; exit 1)
44143
44144   case $xsi_shell in
44145   yes)
44146     cat << \_LT_EOF >> "$cfgfile"
44147
44148 # func_dirname file append nondir_replacement
44149 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
44150 # otherwise set result to NONDIR_REPLACEMENT.
44151 func_dirname ()
44152 {
44153   case ${1} in
44154     */*) func_dirname_result="${1%/*}${2}" ;;
44155     *  ) func_dirname_result="${3}" ;;
44156   esac
44157 }
44158
44159 # func_basename file
44160 func_basename ()
44161 {
44162   func_basename_result="${1##*/}"
44163 }
44164
44165 # func_dirname_and_basename file append nondir_replacement
44166 # perform func_basename and func_dirname in a single function
44167 # call:
44168 #   dirname:  Compute the dirname of FILE.  If nonempty,
44169 #             add APPEND to the result, otherwise set result
44170 #             to NONDIR_REPLACEMENT.
44171 #             value returned in "$func_dirname_result"
44172 #   basename: Compute filename of FILE.
44173 #             value retuned in "$func_basename_result"
44174 # Implementation must be kept synchronized with func_dirname
44175 # and func_basename. For efficiency, we do not delegate to
44176 # those functions but instead duplicate the functionality here.
44177 func_dirname_and_basename ()
44178 {
44179   case ${1} in
44180     */*) func_dirname_result="${1%/*}${2}" ;;
44181     *  ) func_dirname_result="${3}" ;;
44182   esac
44183   func_basename_result="${1##*/}"
44184 }
44185
44186 # func_stripname prefix suffix name
44187 # strip PREFIX and SUFFIX off of NAME.
44188 # PREFIX and SUFFIX must not contain globbing or regex special
44189 # characters, hashes, percent signs, but SUFFIX may contain a leading
44190 # dot (in which case that matches only a dot).
44191 func_stripname ()
44192 {
44193   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
44194   # positional parameters, so assign one to ordinary parameter first.
44195   func_stripname_result=${3}
44196   func_stripname_result=${func_stripname_result#"${1}"}
44197   func_stripname_result=${func_stripname_result%"${2}"}
44198 }
44199
44200 # func_opt_split
44201 func_opt_split ()
44202 {
44203   func_opt_split_opt=${1%%=*}
44204   func_opt_split_arg=${1#*=}
44205 }
44206
44207 # func_lo2o object
44208 func_lo2o ()
44209 {
44210   case ${1} in
44211     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
44212     *)    func_lo2o_result=${1} ;;
44213   esac
44214 }
44215
44216 # func_xform libobj-or-source
44217 func_xform ()
44218 {
44219   func_xform_result=${1%.*}.lo
44220 }
44221
44222 # func_arith arithmetic-term...
44223 func_arith ()
44224 {
44225   func_arith_result=$(( $* ))
44226 }
44227
44228 # func_len string
44229 # STRING may not start with a hyphen.
44230 func_len ()
44231 {
44232   func_len_result=${#1}
44233 }
44234
44235 _LT_EOF
44236     ;;
44237   *) # Bourne compatible functions.
44238     cat << \_LT_EOF >> "$cfgfile"
44239
44240 # func_dirname file append nondir_replacement
44241 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
44242 # otherwise set result to NONDIR_REPLACEMENT.
44243 func_dirname ()
44244 {
44245   # Extract subdirectory from the argument.
44246   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
44247   if test "X$func_dirname_result" = "X${1}"; then
44248     func_dirname_result="${3}"
44249   else
44250     func_dirname_result="$func_dirname_result${2}"
44251   fi
44252 }
44253
44254 # func_basename file
44255 func_basename ()
44256 {
44257   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
44258 }
44259
44260
44261 # func_stripname prefix suffix name
44262 # strip PREFIX and SUFFIX off of NAME.
44263 # PREFIX and SUFFIX must not contain globbing or regex special
44264 # characters, hashes, percent signs, but SUFFIX may contain a leading
44265 # dot (in which case that matches only a dot).
44266 # func_strip_suffix prefix name
44267 func_stripname ()
44268 {
44269   case ${2} in
44270     .*) func_stripname_result=`$ECHO "X${3}" \
44271            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
44272     *)  func_stripname_result=`$ECHO "X${3}" \
44273            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
44274   esac
44275 }
44276
44277 # sed scripts:
44278 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
44279 my_sed_long_arg='1s/^-[^=]*=//'
44280
44281 # func_opt_split
44282 func_opt_split ()
44283 {
44284   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
44285   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
44286 }
44287
44288 # func_lo2o object
44289 func_lo2o ()
44290 {
44291   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
44292 }
44293
44294 # func_xform libobj-or-source
44295 func_xform ()
44296 {
44297   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
44298 }
44299
44300 # func_arith arithmetic-term...
44301 func_arith ()
44302 {
44303   func_arith_result=`expr "$@"`
44304 }
44305
44306 # func_len string
44307 # STRING may not start with a hyphen.
44308 func_len ()
44309 {
44310   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
44311 }
44312
44313 _LT_EOF
44314 esac
44315
44316 case $lt_shell_append in
44317   yes)
44318     cat << \_LT_EOF >> "$cfgfile"
44319
44320 # func_append var value
44321 # Append VALUE to the end of shell variable VAR.
44322 func_append ()
44323 {
44324   eval "$1+=\$2"
44325 }
44326 _LT_EOF
44327     ;;
44328   *)
44329     cat << \_LT_EOF >> "$cfgfile"
44330
44331 # func_append var value
44332 # Append VALUE to the end of shell variable VAR.
44333 func_append ()
44334 {
44335   eval "$1=\$$1\$2"
44336 }
44337
44338 _LT_EOF
44339     ;;
44340   esac
44341
44342
44343   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
44344     || (rm -f "$cfgfile"; exit 1)
44345
44346   mv -f "$cfgfile" "$ofile" ||
44347     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44348   chmod +x "$ofile"
44349
44350
44351     cat <<_LT_EOF >> "$ofile"
44352
44353 # ### BEGIN LIBTOOL TAG CONFIG: CXX
44354
44355 # The linker used to build libraries.
44356 LD=$lt_LD_CXX
44357
44358 # Commands used to build an old-style archive.
44359 old_archive_cmds=$lt_old_archive_cmds_CXX
44360
44361 # A language specific compiler.
44362 CC=$lt_compiler_CXX
44363
44364 # Is the compiler the GNU compiler?
44365 with_gcc=$GCC_CXX
44366
44367 # Compiler flag to turn off builtin functions.
44368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44369
44370 # How to pass a linker flag through the compiler.
44371 wl=$lt_lt_prog_compiler_wl_CXX
44372
44373 # Additional compiler flags for building library objects.
44374 pic_flag=$lt_lt_prog_compiler_pic_CXX
44375
44376 # Compiler flag to prevent dynamic linking.
44377 link_static_flag=$lt_lt_prog_compiler_static_CXX
44378
44379 # Does compiler simultaneously support -c and -o options?
44380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44381
44382 # Whether or not to add -lc for building shared libraries.
44383 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44384
44385 # Whether or not to disallow shared libs when runtime libs are static.
44386 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44387
44388 # Compiler flag to allow reflexive dlopens.
44389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44390
44391 # Compiler flag to generate shared objects directly from archives.
44392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44393
44394 # Whether the compiler copes with passing no objects directly.
44395 compiler_needs_object=$lt_compiler_needs_object_CXX
44396
44397 # Create an old-style archive from a shared archive.
44398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44399
44400 # Create a temporary old-style archive to link instead of a shared archive.
44401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44402
44403 # Commands used to build a shared archive.
44404 archive_cmds=$lt_archive_cmds_CXX
44405 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44406
44407 # Commands used to build a loadable module if different from building
44408 # a shared archive.
44409 module_cmds=$lt_module_cmds_CXX
44410 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44411
44412 # Whether we are building with GNU ld or not.
44413 with_gnu_ld=$lt_with_gnu_ld_CXX
44414
44415 # Flag that allows shared libraries with undefined symbols to be built.
44416 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44417
44418 # Flag that enforces no undefined symbols.
44419 no_undefined_flag=$lt_no_undefined_flag_CXX
44420
44421 # Flag to hardcode \$libdir into a binary during linking.
44422 # This must work even if \$libdir does not exist
44423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44424
44425 # If ld is used when linking, flag to hardcode \$libdir into a binary
44426 # during linking.  This must work even if \$libdir does not exist.
44427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44428
44429 # Whether we need a single "-rpath" flag with a separated argument.
44430 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44431
44432 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44433 # DIR into the resulting binary.
44434 hardcode_direct=$hardcode_direct_CXX
44435
44436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44437 # DIR into the resulting binary and the resulting library dependency is
44438 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44439 # library is relocated.
44440 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
44441
44442 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44443 # into the resulting binary.
44444 hardcode_minus_L=$hardcode_minus_L_CXX
44445
44446 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44447 # into the resulting binary.
44448 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44449
44450 # Set to "yes" if building a shared library automatically hardcodes DIR
44451 # into the library and all subsequent libraries and executables linked
44452 # against it.
44453 hardcode_automatic=$hardcode_automatic_CXX
44454
44455 # Set to yes if linker adds runtime paths of dependent libraries
44456 # to runtime path list.
44457 inherit_rpath=$inherit_rpath_CXX
44458
44459 # Whether libtool must link a program against all its dependency libraries.
44460 link_all_deplibs=$link_all_deplibs_CXX
44461
44462 # Fix the shell variable \$srcfile for the compiler.
44463 fix_srcfile_path=$lt_fix_srcfile_path_CXX
44464
44465 # Set to "yes" if exported symbols are required.
44466 always_export_symbols=$always_export_symbols_CXX
44467
44468 # The commands to list exported symbols.
44469 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44470
44471 # Symbols that should not be listed in the preloaded symbols.
44472 exclude_expsyms=$lt_exclude_expsyms_CXX
44473
44474 # Symbols that must always be exported.
44475 include_expsyms=$lt_include_expsyms_CXX
44476
44477 # Commands necessary for linking programs (against libraries) with templates.
44478 prelink_cmds=$lt_prelink_cmds_CXX
44479
44480 # Specify filename containing input files.
44481 file_list_spec=$lt_file_list_spec_CXX
44482
44483 # How to hardcode a shared library path into an executable.
44484 hardcode_action=$hardcode_action_CXX
44485
44486 # The directories searched by this compiler when creating a shared library.
44487 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
44488
44489 # Dependencies to place before and after the objects being linked to
44490 # create a shared library.
44491 predep_objects=$lt_predep_objects_CXX
44492 postdep_objects=$lt_postdep_objects_CXX
44493 predeps=$lt_predeps_CXX
44494 postdeps=$lt_postdeps_CXX
44495
44496 # The library search path used internally by the compiler when linking
44497 # a shared library.
44498 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44499
44500 # ### END LIBTOOL TAG CONFIG: CXX
44501 _LT_EOF
44502
44503  ;;
44504     "default-1":C)
44505     for ac_file in $CONFIG_FILES; do
44506       # Support "outfile[:infile[:infile...]]"
44507       case "$ac_file" in
44508         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44509       esac
44510       # PO directories have a Makefile.in generated from Makefile.in.in.
44511       case "$ac_file" in */Makefile.in)
44512         # Adjust a relative srcdir.
44513         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44514         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44515         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44516         # In autoconf-2.13 it is called $ac_given_srcdir.
44517         # In autoconf-2.50 it is called $srcdir.
44518         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44519         case "$ac_given_srcdir" in
44520           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44521           /*) top_srcdir="$ac_given_srcdir" ;;
44522           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
44523         esac
44524         # Treat a directory as a PO directory if and only if it has a
44525         # POTFILES.in file. This allows packages to have multiple PO
44526         # directories under different names or in different locations.
44527         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44528           rm -f "$ac_dir/POTFILES"
44529           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44530           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44531           POMAKEFILEDEPS="POTFILES.in"
44532           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44533           # on $ac_dir but don't depend on user-specified configuration
44534           # parameters.
44535           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44536             # The LINGUAS file contains the set of available languages.
44537             if test -n "$OBSOLETE_ALL_LINGUAS"; then
44538               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44539             fi
44540             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44541             # Hide the ALL_LINGUAS assigment from automake.
44542             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44543             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44544           else
44545             # The set of available languages was given in configure.in.
44546             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44547           fi
44548           # Compute POFILES
44549           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44550           # Compute UPDATEPOFILES
44551           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44552           # Compute DUMMYPOFILES
44553           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44554           # Compute GMOFILES
44555           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44556           case "$ac_given_srcdir" in
44557             .) srcdirpre= ;;
44558             *) srcdirpre='$(srcdir)/' ;;
44559           esac
44560           POFILES=
44561           UPDATEPOFILES=
44562           DUMMYPOFILES=
44563           GMOFILES=
44564           for lang in $ALL_LINGUAS; do
44565             POFILES="$POFILES $srcdirpre$lang.po"
44566             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44567             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44568             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44569           done
44570           # CATALOGS depends on both $ac_dir and the user's LINGUAS
44571           # environment variable.
44572           INST_LINGUAS=
44573           if test -n "$ALL_LINGUAS"; then
44574             for presentlang in $ALL_LINGUAS; do
44575               useit=no
44576               if test "%UNSET%" != "$LINGUAS"; then
44577                 desiredlanguages="$LINGUAS"
44578               else
44579                 desiredlanguages="$ALL_LINGUAS"
44580               fi
44581               for desiredlang in $desiredlanguages; do
44582                 # Use the presentlang catalog if desiredlang is
44583                 #   a. equal to presentlang, or
44584                 #   b. a variant of presentlang (because in this case,
44585                 #      presentlang can be used as a fallback for messages
44586                 #      which are not translated in the desiredlang catalog).
44587                 case "$desiredlang" in
44588                   "$presentlang"*) useit=yes;;
44589                 esac
44590               done
44591               if test $useit = yes; then
44592                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44593               fi
44594             done
44595           fi
44596           CATALOGS=
44597           if test -n "$INST_LINGUAS"; then
44598             for lang in $INST_LINGUAS; do
44599               CATALOGS="$CATALOGS $lang.gmo"
44600             done
44601           fi
44602           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44603           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"
44604           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44605             if test -f "$f"; then
44606               case "$f" in
44607                 *.orig | *.bak | *~) ;;
44608                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44609               esac
44610             fi
44611           done
44612         fi
44613         ;;
44614       esac
44615     done ;;
44616     "default":C)
44617  ;;
44618
44619   esac
44620 done # for ac_tag
44621
44622
44623 { (exit 0); exit 0; }
44624 _ACEOF
44625 chmod +x $CONFIG_STATUS
44626 ac_clean_files=$ac_clean_files_save
44627
44628
44629 # configure is writing to config.log, and then calls config.status.
44630 # config.status does its own redirection, appending to config.log.
44631 # Unfortunately, on DOS this fails, as config.log is still kept open
44632 # by configure, so config.status won't be able to write to it; its
44633 # output is simply discarded.  So we exec the FD to /dev/null,
44634 # effectively closing config.log, so it can be properly (re)opened and
44635 # appended to by config.status.  When coming back to configure, we
44636 # need to make the FD available again.
44637 if test "$no_create" != yes; then
44638   ac_cs_success=:
44639   ac_config_status_args=
44640   test "$silent" = yes &&
44641     ac_config_status_args="$ac_config_status_args --quiet"
44642   exec 5>/dev/null
44643   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44644   exec 5>>config.log
44645   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44646   # would make configure fail if this is the last instruction.
44647   $ac_cs_success || { (exit 1); exit 1; }
44648 fi
44649
44650
44651 if test "${support_bat}" = "yes" ; then
44652    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44653       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44654       exit 1
44655    fi
44656
44657    QMAKEBIN="qmake"
44658
44659    if test "x$QMAKEQT4" != "xnone"; then
44660        QMAKEBIN=qmake-qt4
44661    fi
44662
44663    cd src/qt-console
44664    chmod 755 install_conf_file build-depkgs-qt-console
44665    echo "Creating bat Makefile"
44666    $QMAKEBIN
44667    make clean
44668    cd ${BUILD_DIR}
44669 fi
44670
44671 if test X"$GCC" = "Xyes" ; then
44672   echo "Doing make of dependencies"
44673   ${MAKE:-make} depend
44674 fi
44675
44676 cd scripts
44677 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44678 chmod 755 dvd-handler dvd-simulator
44679 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44680 cd ..
44681
44682 c=updatedb
44683 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44684 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44685
44686 c=src/cats
44687
44688 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44689 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44690
44691 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44692 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44693
44694 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44695 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44696
44697 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44698 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44699
44700 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44701 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44702
44703 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44704 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44705
44706 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44707 chmod 755 $c/sqlite
44708 chmod 755 $c/mysql
44709
44710 chmod 755 src/win32/build-depkgs-mingw32
44711
44712 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44713    largefile_support="yes"
44714 fi
44715
44716 if test X"$GCC" = "Xyes" ; then
44717                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44718    if test "x${CCVERSION}" = "x" ; then
44719       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44720    fi
44721    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44722    if test x"${CXXVERSION}" = x ; then
44723       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44724    fi
44725 fi
44726
44727 # clean up any old junk
44728 echo " "
44729 echo "Cleaning up"
44730 echo " "
44731 make clean
44732
44733 if test "x${db_type}" = "xInternal" ; then
44734    echo " "
44735    echo " "
44736    echo "You have not specified either --enable-client-only or one of the"
44737    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44738    echo "  This is not permitted. Please reconfigure."
44739    echo " "
44740    echo "Aborting the configuration ..."
44741    echo " "
44742    echo " "
44743    exit 1
44744 fi
44745
44746 echo "
44747 Configuration on `date`:
44748
44749    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44750    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44751    Source code location:    ${srcdir}
44752    Install binaries:        ${sbindir}
44753    Install libraries:       ${libdir}
44754    Install config files:    ${sysconfdir}
44755    Scripts directory:       ${scriptdir}
44756    Archive directory:       ${archivedir}
44757    Working directory:       ${working_dir}
44758    PID directory:           ${piddir}
44759    Subsys directory:        ${subsysdir}
44760    Man directory:           ${mandir}
44761    Data directory:          ${datarootdir}
44762    Plugin directory:        ${plugindir}
44763    C Compiler:              ${CC} ${CCVERSION}
44764    C++ Compiler:            ${CXX} ${CXXVERSION}
44765    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44766    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44767    Libraries:               ${LIBS}
44768    Statically Linked Tools: ${support_static_tools}
44769    Statically Linked FD:    ${support_static_fd}
44770    Statically Linked SD:    ${support_static_sd}
44771    Statically Linked DIR:   ${support_static_dir}
44772    Statically Linked CONS:  ${support_static_cons}
44773    Database type:           ${db_type}
44774    Database port:           ${db_port}
44775    Database lib:            ${DB_LIBS}
44776    Database name:           ${db_name}
44777    Database user:           ${db_user}
44778
44779    Job Output Email:        ${job_email}
44780    Traceback Email:         ${dump_email}
44781    SMTP Host Address:       ${smtp_host}
44782
44783    Director Port:           ${dir_port}
44784    File daemon Port:        ${fd_port}
44785    Storage daemon Port:     ${sd_port}
44786
44787    Director User:           ${dir_user}
44788    Director Group:          ${dir_group}
44789    Storage Daemon User:     ${sd_user}
44790    Storage DaemonGroup:     ${sd_group}
44791    File Daemon User:        ${fd_user}
44792    File Daemon Group:       ${fd_group}
44793
44794    SQL binaries Directory   ${SQL_BINDIR}
44795
44796    Large file support:      $largefile_support
44797    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44798    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44799    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44800    TLS support:             ${support_tls}
44801    Encryption support:      ${support_crypto}
44802    ZLIB support:            ${have_zlib}
44803    enable-smartalloc:       ${support_smartalloc}
44804    enable-lockmgr:          ${support_lockmgr}
44805    bat support:             ${support_bat} ${QWT_LDFLAGS}
44806    enable-gnome:            ${support_gnome} ${gnome_version}
44807    enable-bwx-console:      ${support_wx_console} ${wx_version}
44808    enable-tray-monitor:     ${support_tray_monitor}
44809    client-only:             ${build_client_only}
44810    build-dird:              ${build_dird}
44811    build-stored:            ${build_stored}
44812    ACL support:             ${have_acl}
44813    XATTR support:           ${have_xattr}
44814    Python support:          ${support_python} ${PYTHON_LIBS}
44815    Batch insert enabled:    ${support_batch_insert}
44816
44817   " > config.out
44818
44819 cat config.out