]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Merge my changes and previous ones
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 GMAKE
850 WXCONFIG
851 WXFLAGS
852 CDRECORD
853 PIDOF
854 AWK
855 ARFLAGS
856 MAKE_SHELL
857 LOCAL_LIBS
858 LOCAL_CFLAGS
859 LOCAL_LDFLAGS
860 LOCAL_DEFS
861 LIBTOOL
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 FGREP
871 LD
872 DUMPBIN
873 ac_ct_DUMPBIN
874 NM
875 LN_S
876 OBJDUMP
877 STRIP
878 RANLIB
879 lt_ECHO
880 DSYMUTIL
881 NMEDIT
882 LIPO
883 OTOOL
884 OTOOL64
885 CXXCPP
886 DEFAULT_OBJECT_TYPE
887 DEFAULT_ARCHIVE_TYPE
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
891 LIBTOOL_CLEAN_TARGET
892 QMAKE_LIBTOOL
893 FD_PLUGIN_DIR
894 INCLUDE_INSTALL_TARGET
895 INCLUDE_UNINSTALL_TARGET
896 HAVE_SUN_OS_TRUE
897 HAVE_SUN_OS_FALSE
898 HAVE_OSF1_OS_TRUE
899 HAVE_OSF1_OS_FALSE
900 HAVE_AIX_OS_TRUE
901 HAVE_AIX_OS_FALSE
902 HAVE_HPUX_OS_TRUE
903 HAVE_HPUX_OS_FALSE
904 HAVE_LINUX_OS_TRUE
905 HAVE_LINUX_OS_FALSE
906 HAVE_FREEBSD_OS_TRUE
907 HAVE_FREEBSD_OS_FALSE
908 HAVE_NETBSD_OS_TRUE
909 HAVE_NETBSD_OS_FALSE
910 HAVE_OPENBSD_OS_TRUE
911 HAVE_OPENBSD_OS_FALSE
912 HAVE_BSDI_OS_TRUE
913 HAVE_BSDI_OS_FALSE
914 HAVE_SGI_OS_TRUE
915 HAVE_SGI_OS_FALSE
916 HAVE_IRIX_OS_TRUE
917 HAVE_IRIX_OS_FALSE
918 HAVE_DARWIN_OS_TRUE
919 HAVE_DARWIN_OS_FALSE
920 SET_MAKE
921 MKINSTALLDIRS
922 USE_NLS
923 MSGFMT
924 GMSGFMT
925 XGETTEXT
926 MSGMERGE
927 INTL_MACOSX_LIBS
928 LIBICONV
929 LTLIBICONV
930 INTLLIBS
931 LIBINTL
932 LTLIBINTL
933 POSUB
934 GLIBC2
935 ALLOCA
936 GLIBC21
937 HAVE_POSIX_PRINTF
938 HAVE_ASPRINTF
939 HAVE_SNPRINTF
940 HAVE_WPRINTF
941 INTLBISON
942 BUILD_INCLUDED_LIBINTL
943 USE_INCLUDED_LIBINTL
944 CATOBJEXT
945 DATADIRNAME
946 INSTOBJEXT
947 GENCAT
948 INTLOBJS
949 INTL_LIBTOOL_SUFFIX_PREFIX
950 BAT_DIR
951 QWT_INC
952 QWT_LDFLAGS
953 QWT_LIB
954 QWT
955 WXCONS_CPPFLAGS
956 WXCONS_LDFLAGS
957 WX_DIR
958 TRAY_MONITOR_CPPFLAGS
959 TRAY_MONITOR_LDFLAGS
960 TRAY_MONITOR_DIR
961 TTOOL_LDFLAGS
962 STATIC_FD
963 STATIC_SD
964 STATIC_DIR
965 STATIC_CONS
966 STATIC_GNOME_CONS
967 STATIC_WX_CONS
968 ALL_DIRS
969 DIRD_DIR
970 DIR_TOOLS
971 STORED_DIR
972 CONS_INC
973 CONS_OBJ
974 CONS_SRC
975 CONS_LIBS
976 CONS_LDFLAGS
977 READLINE_SRC
978 PYTHON_LIBS
979 PYTHON_INCDIR
980 OPENSSL_LIBS
981 OPENSSL_INC
982 working_dir
983 archivedir
984 basename
985 hostname
986 scriptdir
987 bsrdir
988 logdir
989 plugindir
990 dump_email
991 job_email
992 smtp_host
993 piddir
994 subsysdir
995 baseport
996 dir_port
997 fd_port
998 sd_port
999 dir_password
1000 fd_password
1001 sd_password
1002 mon_dir_password
1003 mon_fd_password
1004 mon_sd_password
1005 db_name
1006 db_user
1007 db_password
1008 db_port
1009 dir_user
1010 dir_group
1011 sd_user
1012 sd_group
1013 fd_user
1014 fd_group
1015 SBINPERM
1016 SQL_LFLAGS
1017 SQL_INCLUDE
1018 SQL_BINDIR
1019 DBI_DBD_DRIVERDIR
1020 uncomment_dbi
1021 DB_PROG
1022 DB_PROG_LIB
1023 cats
1024 DB_TYPE
1025 GETCONF
1026 XMKMF
1027 X_CFLAGS
1028 X_PRE_LIBS
1029 X_LIBS
1030 X_EXTRA_LIBS
1031 LIBOBJS
1032 CAP_LIBS
1033 FDLIBS
1034 DEBUG
1035 DINCLUDE
1036 DLIB
1037 DB_LIBS
1038 WCFLAGS
1039 WLDFLAGS
1040 WRAPLIBS
1041 OBJLIST
1042 TAPEDRIVE
1043 PSCMD
1044 WIN32
1045 MACOSX
1046 DISTNAME
1047 DISTVER
1048 LTLIBOBJS'
1049 ac_subst_files='MCOMMON'
1050       ac_precious_vars='build_alias
1051 host_alias
1052 target_alias
1053 CC
1054 CFLAGS
1055 LDFLAGS
1056 LIBS
1057 CPPFLAGS
1058 CXX
1059 CXXFLAGS
1060 CCC
1061 CPP
1062 WXCONFIG
1063 WXFLAGS
1064 CXXCPP
1065 XMKMF'
1066
1067
1068 # Initialize some variables set by options.
1069 ac_init_help=
1070 ac_init_version=false
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1074 exec_prefix=NONE
1075 no_create=
1076 no_recursion=
1077 prefix=NONE
1078 program_prefix=NONE
1079 program_suffix=NONE
1080 program_transform_name=s,x,x,
1081 silent=
1082 site=
1083 srcdir=
1084 verbose=
1085 x_includes=NONE
1086 x_libraries=NONE
1087
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE}'
1105 infodir='${datarootdir}/info'
1106 htmldir='${docdir}'
1107 dvidir='${docdir}'
1108 pdfdir='${docdir}'
1109 psdir='${docdir}'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1113
1114 ac_prev=
1115 ac_dashdash=
1116 for ac_option
1117 do
1118   # If the previous option needs an argument, assign it.
1119   if test -n "$ac_prev"; then
1120     eval $ac_prev=\$ac_option
1121     ac_prev=
1122     continue
1123   fi
1124
1125   case $ac_option in
1126   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127   *)    ac_optarg=yes ;;
1128   esac
1129
1130   # Accept the important Cygnus configure options, so we can diagnose typos.
1131
1132   case $ac_dashdash$ac_option in
1133   --)
1134     ac_dashdash=yes ;;
1135
1136   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137     ac_prev=bindir ;;
1138   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1139     bindir=$ac_optarg ;;
1140
1141   -build | --build | --buil | --bui | --bu)
1142     ac_prev=build_alias ;;
1143   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1144     build_alias=$ac_optarg ;;
1145
1146   -cache-file | --cache-file | --cache-fil | --cache-fi \
1147   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1148     ac_prev=cache_file ;;
1149   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1150   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1151     cache_file=$ac_optarg ;;
1152
1153   --config-cache | -C)
1154     cache_file=config.cache ;;
1155
1156   -datadir | --datadir | --datadi | --datad)
1157     ac_prev=datadir ;;
1158   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1159     datadir=$ac_optarg ;;
1160
1161   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1162   | --dataroo | --dataro | --datar)
1163     ac_prev=datarootdir ;;
1164   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1165   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1166     datarootdir=$ac_optarg ;;
1167
1168   -disable-* | --disable-*)
1169     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1173    { (exit 1); exit 1; }; }
1174     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1175     eval enable_$ac_feature=no ;;
1176
1177   -docdir | --docdir | --docdi | --doc | --do)
1178     ac_prev=docdir ;;
1179   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180     docdir=$ac_optarg ;;
1181
1182   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183     ac_prev=dvidir ;;
1184   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185     dvidir=$ac_optarg ;;
1186
1187   -enable-* | --enable-*)
1188     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1192    { (exit 1); exit 1; }; }
1193     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1194     eval enable_$ac_feature=\$ac_optarg ;;
1195
1196   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198   | --exec | --exe | --ex)
1199     ac_prev=exec_prefix ;;
1200   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202   | --exec=* | --exe=* | --ex=*)
1203     exec_prefix=$ac_optarg ;;
1204
1205   -gas | --gas | --ga | --g)
1206     # Obsolete; use --with-gas.
1207     with_gas=yes ;;
1208
1209   -help | --help | --hel | --he | -h)
1210     ac_init_help=long ;;
1211   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212     ac_init_help=recursive ;;
1213   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214     ac_init_help=short ;;
1215
1216   -host | --host | --hos | --ho)
1217     ac_prev=host_alias ;;
1218   -host=* | --host=* | --hos=* | --ho=*)
1219     host_alias=$ac_optarg ;;
1220
1221   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222     ac_prev=htmldir ;;
1223   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224   | --ht=*)
1225     htmldir=$ac_optarg ;;
1226
1227   -includedir | --includedir | --includedi | --included | --include \
1228   | --includ | --inclu | --incl | --inc)
1229     ac_prev=includedir ;;
1230   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231   | --includ=* | --inclu=* | --incl=* | --inc=*)
1232     includedir=$ac_optarg ;;
1233
1234   -infodir | --infodir | --infodi | --infod | --info | --inf)
1235     ac_prev=infodir ;;
1236   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237     infodir=$ac_optarg ;;
1238
1239   -libdir | --libdir | --libdi | --libd)
1240     ac_prev=libdir ;;
1241   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242     libdir=$ac_optarg ;;
1243
1244   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245   | --libexe | --libex | --libe)
1246     ac_prev=libexecdir ;;
1247   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248   | --libexe=* | --libex=* | --libe=*)
1249     libexecdir=$ac_optarg ;;
1250
1251   -localedir | --localedir | --localedi | --localed | --locale)
1252     ac_prev=localedir ;;
1253   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254     localedir=$ac_optarg ;;
1255
1256   -localstatedir | --localstatedir | --localstatedi | --localstated \
1257   | --localstate | --localstat | --localsta | --localst | --locals)
1258     ac_prev=localstatedir ;;
1259   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261     localstatedir=$ac_optarg ;;
1262
1263   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264     ac_prev=mandir ;;
1265   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266     mandir=$ac_optarg ;;
1267
1268   -nfp | --nfp | --nf)
1269     # Obsolete; use --without-fp.
1270     with_fp=no ;;
1271
1272   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273   | --no-cr | --no-c | -n)
1274     no_create=yes ;;
1275
1276   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1278     no_recursion=yes ;;
1279
1280   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282   | --oldin | --oldi | --old | --ol | --o)
1283     ac_prev=oldincludedir ;;
1284   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287     oldincludedir=$ac_optarg ;;
1288
1289   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290     ac_prev=prefix ;;
1291   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292     prefix=$ac_optarg ;;
1293
1294   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295   | --program-pre | --program-pr | --program-p)
1296     ac_prev=program_prefix ;;
1297   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299     program_prefix=$ac_optarg ;;
1300
1301   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302   | --program-suf | --program-su | --program-s)
1303     ac_prev=program_suffix ;;
1304   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306     program_suffix=$ac_optarg ;;
1307
1308   -program-transform-name | --program-transform-name \
1309   | --program-transform-nam | --program-transform-na \
1310   | --program-transform-n | --program-transform- \
1311   | --program-transform | --program-transfor \
1312   | --program-transfo | --program-transf \
1313   | --program-trans | --program-tran \
1314   | --progr-tra | --program-tr | --program-t)
1315     ac_prev=program_transform_name ;;
1316   -program-transform-name=* | --program-transform-name=* \
1317   | --program-transform-nam=* | --program-transform-na=* \
1318   | --program-transform-n=* | --program-transform-=* \
1319   | --program-transform=* | --program-transfor=* \
1320   | --program-transfo=* | --program-transf=* \
1321   | --program-trans=* | --program-tran=* \
1322   | --progr-tra=* | --program-tr=* | --program-t=*)
1323     program_transform_name=$ac_optarg ;;
1324
1325   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326     ac_prev=pdfdir ;;
1327   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328     pdfdir=$ac_optarg ;;
1329
1330   -psdir | --psdir | --psdi | --psd | --ps)
1331     ac_prev=psdir ;;
1332   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1333     psdir=$ac_optarg ;;
1334
1335   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336   | -silent | --silent | --silen | --sile | --sil)
1337     silent=yes ;;
1338
1339   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340     ac_prev=sbindir ;;
1341   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342   | --sbi=* | --sb=*)
1343     sbindir=$ac_optarg ;;
1344
1345   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347   | --sharedst | --shareds | --shared | --share | --shar \
1348   | --sha | --sh)
1349     ac_prev=sharedstatedir ;;
1350   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353   | --sha=* | --sh=*)
1354     sharedstatedir=$ac_optarg ;;
1355
1356   -site | --site | --sit)
1357     ac_prev=site ;;
1358   -site=* | --site=* | --sit=*)
1359     site=$ac_optarg ;;
1360
1361   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362     ac_prev=srcdir ;;
1363   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364     srcdir=$ac_optarg ;;
1365
1366   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367   | --syscon | --sysco | --sysc | --sys | --sy)
1368     ac_prev=sysconfdir ;;
1369   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371     sysconfdir=$ac_optarg ;;
1372
1373   -target | --target | --targe | --targ | --tar | --ta | --t)
1374     ac_prev=target_alias ;;
1375   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376     target_alias=$ac_optarg ;;
1377
1378   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379     verbose=yes ;;
1380
1381   -version | --version | --versio | --versi | --vers | -V)
1382     ac_init_version=: ;;
1383
1384   -with-* | --with-*)
1385     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=\$ac_optarg ;;
1392
1393   -without-* | --without-*)
1394     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395     # Reject names that are not valid shell variable names.
1396     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397       { echo "$as_me: error: invalid package name: $ac_package" >&2
1398    { (exit 1); exit 1; }; }
1399     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1400     eval with_$ac_package=no ;;
1401
1402   --x)
1403     # Obsolete; use --with-x.
1404     with_x=yes ;;
1405
1406   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1407   | --x-incl | --x-inc | --x-in | --x-i)
1408     ac_prev=x_includes ;;
1409   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1410   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1411     x_includes=$ac_optarg ;;
1412
1413   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1414   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1415     ac_prev=x_libraries ;;
1416   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1417   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1418     x_libraries=$ac_optarg ;;
1419
1420   -*) { echo "$as_me: error: unrecognized option: $ac_option
1421 Try \`$0 --help' for more information." >&2
1422    { (exit 1); exit 1; }; }
1423     ;;
1424
1425   *=*)
1426     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427     # Reject names that are not valid shell variable names.
1428     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1429       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1430    { (exit 1); exit 1; }; }
1431     eval $ac_envvar=\$ac_optarg
1432     export $ac_envvar ;;
1433
1434   *)
1435     # FIXME: should be removed in autoconf 3.0.
1436     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1437     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1438       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1439     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1440     ;;
1441
1442   esac
1443 done
1444
1445 if test -n "$ac_prev"; then
1446   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1447   { echo "$as_me: error: missing argument to $ac_option" >&2
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 # Be sure to have absolute directory names.
1452 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453                 datadir sysconfdir sharedstatedir localstatedir includedir \
1454                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455                 libdir localedir mandir
1456 do
1457   eval ac_val=\$$ac_var
1458   case $ac_val in
1459     [\\/$]* | ?:[\\/]* )  continue;;
1460     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461   esac
1462   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463    { (exit 1); exit 1; }; }
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475   if test "x$build_alias" = x; then
1476     cross_compiling=maybe
1477     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478     If a cross compiler is detected then cross compile mode will be used." >&2
1479   elif test "x$build_alias" != "x$host_alias"; then
1480     cross_compiling=yes
1481   fi
1482 fi
1483
1484 ac_tool_prefix=
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486
1487 test "$silent" = yes && exec 6>/dev/null
1488
1489
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493   { echo "$as_me: error: Working directory cannot be determined" >&2
1494    { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496   { echo "$as_me: error: pwd does not report name of working directory" >&2
1497    { (exit 1); exit 1; }; }
1498
1499
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502   ac_srcdir_defaulted=yes
1503   # Try the directory containing this script, then the parent directory.
1504   ac_confdir=`$as_dirname -- "$0" ||
1505 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506          X"$0" : 'X\(//\)[^/]' \| \
1507          X"$0" : 'X\(//\)$' \| \
1508          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 echo X"$0" |
1510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)[^/].*/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\/\)$/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\).*/{
1523             s//\1/
1524             q
1525           }
1526           s/.*/./; q'`
1527   srcdir=$ac_confdir
1528   if test ! -r "$srcdir/$ac_unique_file"; then
1529     srcdir=..
1530   fi
1531 else
1532   ac_srcdir_defaulted=no
1533 fi
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1542    { (exit 1); exit 1; }; }
1543         pwd)`
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1546   srcdir=.
1547 fi
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1551 case $srcdir in
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 esac
1554 for ac_var in $ac_precious_vars; do
1555   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556   eval ac_env_${ac_var}_value=\$${ac_var}
1557   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1559 done
1560
1561 #
1562 # Report the --help message.
1563 #
1564 if test "$ac_init_help" = "long"; then
1565   # Omit some internal or obsolete options to make the list less imposing.
1566   # This message is too long to be a string in the A/UX 3.1 sh.
1567   cat <<_ACEOF
1568 \`configure' configures this package to adapt to many kinds of systems.
1569
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1571
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE.  See below for descriptions of some of the useful variables.
1574
1575 Defaults for the options are specified in brackets.
1576
1577 Configuration:
1578   -h, --help              display this help and exit
1579       --help=short        display options specific to this package
1580       --help=recursive    display the short help of all the included packages
1581   -V, --version           display version information and exit
1582   -q, --quiet, --silent   do not print \`checking...' messages
1583       --cache-file=FILE   cache test results in FILE [disabled]
1584   -C, --config-cache      alias for \`--cache-file=config.cache'
1585   -n, --no-create         do not create output files
1586       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1587
1588 Installation directories:
1589   --prefix=PREFIX         install architecture-independent files in PREFIX
1590                           [$ac_default_prefix]
1591   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1592                           [PREFIX]
1593
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1598
1599 For better control, use the options below.
1600
1601 Fine tuning of the installation directories:
1602   --bindir=DIR           user executables [EPREFIX/bin]
1603   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1604   --libexecdir=DIR       program executables [EPREFIX/libexec]
1605   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1606   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1607   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1608   --libdir=DIR           object code libraries [EPREFIX/lib]
1609   --includedir=DIR       C header files [PREFIX/include]
1610   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1611   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1612   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1613   --infodir=DIR          info documentation [DATAROOTDIR/info]
1614   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1615   --mandir=DIR           man documentation [DATAROOTDIR/man]
1616   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1617   --htmldir=DIR          html documentation [DOCDIR]
1618   --dvidir=DIR           dvi documentation [DOCDIR]
1619   --pdfdir=DIR           pdf documentation [DOCDIR]
1620   --psdir=DIR            ps documentation [DOCDIR]
1621 _ACEOF
1622
1623   cat <<\_ACEOF
1624
1625 X features:
1626   --x-includes=DIR    X include files are in DIR
1627   --x-libraries=DIR   X library files are in DIR
1628
1629 System types:
1630   --build=BUILD     configure for building on BUILD [guessed]
1631   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1632 _ACEOF
1633 fi
1634
1635 if test -n "$ac_init_help"; then
1636
1637   cat <<\_ACEOF
1638
1639 Optional Features:
1640   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1641   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1642   --enable-libtool        enable building using GNU libtool [default=yes]
1643   --enable-shared[=PKGS]  build shared libraries [default=yes]
1644   --enable-static[=PKGS]  build static libraries [default=no]
1645   --enable-fast-install[=PKGS]
1646                           optimize for fast installation [default=yes]
1647   --disable-libtool-lock  avoid locking (might break parallel builds)
1648   --enable-includes       enable installing of include files [default=no]
1649   --disable-nls           do not use Native Language Support
1650   --disable-rpath         do not hardcode runtime library paths
1651   --enable-gnome          enable build of bgnome-console GUI [default=no]
1652   --enable-bat            enable build of bat Qt4 GUI [default=no]
1653   --enable-bwx-console    enable build of wxWidgets console [default=no]
1654   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1655                           KDE [default=no]
1656   --enable-smartalloc     enable smartalloc debugging support [default=no]
1657   --enable-lockmgr        enable lock manager support [default=no]
1658   --enable-static-tools   enable static tape tools [default=no]
1659   --enable-static-fd      enable static File daemon [default=no]
1660   --enable-static-sd      enable static Storage daemon [default=no]
1661   --enable-static-dir     enable static Director [default=no]
1662   --enable-static-cons    enable static Console [default=no]
1663   --enable-client-only    build client (File daemon) only [default=no]
1664   --enable-build-dird     enable building of dird (Director) [default=yes]
1665   --enable-build-stored   enable building of stored (Storage daemon)
1666                           [default=yes]
1667   --disable-conio         disable conio support [default=no]
1668   --enable-ipv6           enable ipv6 support [default=yes]
1669   --disable-readline      disable readline support [default=yes]
1670   --enable-batch-insert   enable the DB batch insert code [default=no]
1671   --disable-largefile     omit support for large files
1672   --disable-acl           disable acl support [default=auto]
1673   --disable-xattr         disable xattr support [default=auto]
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-pic              try to use only PIC/non-PIC objects [default=use
1679                           both]
1680   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1681   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1682   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1683   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1684   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1685   --without-libintl-prefix     don't search for libintl in includedir and libdir
1686   --with-included-gettext use the GNU gettext library included here
1687   --with-readline[=DIR]   specify readline library directory
1688   --with-python[=DIR]     Include Python support. DIR is the Python base
1689                           install directory, default is to search through a
1690                           number of common places for the Python files.
1691   --with-tcp-wrappers[=DIR]
1692                           enable tcpwrappers support
1693   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1694   --with-working-dir=PATH specify path of Bacula working directory
1695   --with-archivedir=PATH  specify path of SD archive directory
1696   --with-basename=RESNAME specify base resource name for daemons
1697   --with-hostname=RESNAME specify host name for daemons
1698   --with-scriptdir=PATH   specify path of Bacula scripts directory
1699   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1700   --with-logdir=PATH      specify path of Bacula logs directory
1701   --with-plugindir=PATH   specify path of Bacula plugins directory
1702   --with-dump-email=EMAIL dump email address
1703   --with-job-email=EMAIL  job output email address
1704   --with-smtp-host=HOST   SMTP mail host address
1705   --with-pid-dir=PATH     specify location of Bacula pid files
1706   --with-subsys-dir=PATH  specify location of Bacula subsys file
1707   --with-baseport=PORT    specify base port address for daemons
1708   --with-dir-password=PASSWORD
1709                           specify Director's password
1710   --with-fd-password=PASSWORD
1711                           specify Client's password
1712   --with-sd-password=PASSWORD
1713                           specify Storage daemon's password
1714   --with-mon-dir-password=PASSWORD
1715                           specify Director's password used by the monitor
1716   --with-mon-fd-password=PASSWORD
1717                           specify Client's password used by the monitor
1718   --with-mon-sd-password=PASSWORD
1719                           specify Storage daemon's password used by the
1720                           monitor
1721   --with-db-name=DBNAME   specify database name [default=bacula]
1722   --with-db-user=UNAME    specify database user [default=bacula]
1723   --with-db-password=PWD  specify database password [default=*none*]
1724   --with-db-port=DBPORT   specify a database port [default=null]
1725   --with-dir-user=USER    specify user for Director daemon
1726   --with-dir-group=GROUP  specify group for Director daemon
1727   --with-sd-user=USER     specify user for Storage daemon
1728   --with-sd-group=GROUP   specify group for Storage daemon
1729   --with-fd-user=USER     specify user for File daemon
1730   --with-fd-group=GROUP   specify group for File daemon
1731   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1732   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733                           base install directory, [default=/usr/local/pgsql]
1734   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1735                           directory, default is to search through a number of
1736                           common places for the MySQL files.
1737   --with-embedded-mysql[=DIR]
1738                           Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1742                           install directory, default is to search through a
1743                           number of common places for the Ingres files.
1744   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1745                           install directory, default is to search through a
1746                           number of common places for the SQLite3 files.
1747   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1748                           directory, default is to search through a number of
1749                           common places for the DBI files.
1750   --with-dbi-driver[=DRIVER]
1751                           Suport for DBI driver. DRIVER is the one DBI driver
1752                           like Mysql, Postgresql, others. Default is to not
1753                           configure any driver.
1754   --with-x                use the X Window System
1755
1756 Some influential environment variables:
1757   CC          C compiler command
1758   CFLAGS      C compiler flags
1759   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1760               nonstandard directory <lib dir>
1761   LIBS        libraries to pass to the linker, e.g. -l<library>
1762   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1763               you have headers in a nonstandard directory <include dir>
1764   CXX         C++ compiler command
1765   CXXFLAGS    C++ compiler flags
1766   CPP         C preprocessor
1767   WXCONFIG    wx-config command. On some systems, you must set it to
1768               wx-config-2.6 to use wxWidgets 2.6.
1769   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1770   CXXCPP      C++ preprocessor
1771   XMKMF       Path to xmkmf, Makefile generator for X Window System
1772
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1775
1776 _ACEOF
1777 ac_status=$?
1778 fi
1779
1780 if test "$ac_init_help" = "recursive"; then
1781   # If there are subdirs, report their specific --help.
1782   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783     test -d "$ac_dir" || continue
1784     ac_builddir=.
1785
1786 case "$ac_dir" in
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *)
1789   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1790   # A ".." for each directory in $ac_dir_suffix.
1791   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1792   case $ac_top_builddir_sub in
1793   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795   esac ;;
1796 esac
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1801
1802 case $srcdir in
1803   .)  # We are building in place.
1804     ac_srcdir=.
1805     ac_top_srcdir=$ac_top_builddir_sub
1806     ac_abs_top_srcdir=$ac_pwd ;;
1807   [\\/]* | ?:[\\/]* )  # Absolute name.
1808     ac_srcdir=$srcdir$ac_dir_suffix;
1809     ac_top_srcdir=$srcdir
1810     ac_abs_top_srcdir=$srcdir ;;
1811   *) # Relative name.
1812     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813     ac_top_srcdir=$ac_top_build_prefix$srcdir
1814     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 esac
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818     cd "$ac_dir" || { ac_status=$?; continue; }
1819     # Check for guested configure.
1820     if test -f "$ac_srcdir/configure.gnu"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823     elif test -f "$ac_srcdir/configure"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure" --help=recursive
1826     else
1827       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828     fi || ac_status=$?
1829     cd "$ac_pwd" || { ac_status=$?; break; }
1830   done
1831 fi
1832
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1835   cat <<\_ACEOF
1836 configure
1837 generated by GNU Autoconf 2.61
1838
1839 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1840 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1841 This configure script is free software; the Free Software Foundation
1842 gives unlimited permission to copy, distribute and modify it.
1843 _ACEOF
1844   exit
1845 fi
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1849
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.61.  Invocation command line was
1852
1853   $ $0 $@
1854
1855 _ACEOF
1856 exec 5>>config.log
1857 {
1858 cat <<_ASUNAME
1859 ## --------- ##
1860 ## Platform. ##
1861 ## --------- ##
1862
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1871
1872 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1873 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1876 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1877 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1878 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1879
1880 _ASUNAME
1881
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   echo "PATH: $as_dir"
1888 done
1889 IFS=$as_save_IFS
1890
1891 } >&5
1892
1893 cat >&5 <<_ACEOF
1894
1895
1896 ## ----------- ##
1897 ## Core tests. ##
1898 ## ----------- ##
1899
1900 _ACEOF
1901
1902
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_configure_args=
1909 ac_configure_args0=
1910 ac_configure_args1=
1911 ac_must_keep_next=false
1912 for ac_pass in 1 2
1913 do
1914   for ac_arg
1915   do
1916     case $ac_arg in
1917     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919     | -silent | --silent | --silen | --sile | --sil)
1920       continue ;;
1921     *\'*)
1922       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1923     esac
1924     case $ac_pass in
1925     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1926     2)
1927       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1928       if test $ac_must_keep_next = true; then
1929         ac_must_keep_next=false # Got value, back to normal.
1930       else
1931         case $ac_arg in
1932           *=* | --config-cache | -C | -disable-* | --disable-* \
1933           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935           | -with-* | --with-* | -without-* | --without-* | --x)
1936             case "$ac_configure_args0 " in
1937               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1938             esac
1939             ;;
1940           -* ) ac_must_keep_next=true ;;
1941         esac
1942       fi
1943       ac_configure_args="$ac_configure_args '$ac_arg'"
1944       ;;
1945     esac
1946   done
1947 done
1948 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1949 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1950
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log.  We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957   # Save into config.log some information that might help in debugging.
1958   {
1959     echo
1960
1961     cat <<\_ASBOX
1962 ## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##
1965 _ASBOX
1966     echo
1967     # The following way of writing the cache mishandles newlines in values,
1968 (
1969   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970     eval ac_val=\$$ac_var
1971     case $ac_val in #(
1972     *${as_nl}*)
1973       case $ac_var in #(
1974       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1976       esac
1977       case $ac_var in #(
1978       _ | IFS | as_nl) ;; #(
1979       *) $as_unset $ac_var ;;
1980       esac ;;
1981     esac
1982   done
1983   (set) 2>&1 |
1984     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985     *${as_nl}ac_space=\ *)
1986       sed -n \
1987         "s/'\''/'\''\\\\'\'''\''/g;
1988           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989       ;; #(
1990     *)
1991       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992       ;;
1993     esac |
1994     sort
1995 )
1996     echo
1997
1998     cat <<\_ASBOX
1999 ## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##
2002 _ASBOX
2003     echo
2004     for ac_var in $ac_subst_vars
2005     do
2006       eval ac_val=\$$ac_var
2007       case $ac_val in
2008       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009       esac
2010       echo "$ac_var='\''$ac_val'\''"
2011     done | sort
2012     echo
2013
2014     if test -n "$ac_subst_files"; then
2015       cat <<\_ASBOX
2016 ## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##
2019 _ASBOX
2020       echo
2021       for ac_var in $ac_subst_files
2022       do
2023         eval ac_val=\$$ac_var
2024         case $ac_val in
2025         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026         esac
2027         echo "$ac_var='\''$ac_val'\''"
2028       done | sort
2029       echo
2030     fi
2031
2032     if test -s confdefs.h; then
2033       cat <<\_ASBOX
2034 ## ----------- ##
2035 ## confdefs.h. ##
2036 ## ----------- ##
2037 _ASBOX
2038       echo
2039       cat confdefs.h
2040       echo
2041     fi
2042     test "$ac_signal" != 0 &&
2043       echo "$as_me: caught signal $ac_signal"
2044     echo "$as_me: exit $exit_status"
2045   } >&5
2046   rm -f core *.core core.conftest.* &&
2047     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048     exit $exit_status
2049 ' 0
2050 for ac_signal in 1 2 13 15; do
2051   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2052 done
2053 ac_signal=0
2054
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2057
2058 # Predefined preprocessor variables.
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2062 _ACEOF
2063
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2067 _ACEOF
2068
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2072 _ACEOF
2073
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_STRING "$PACKAGE_STRING"
2077 _ACEOF
2078
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 _ACEOF
2083
2084
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer explicitly selected file to automatically selected ones.
2087 if test -n "$CONFIG_SITE"; then
2088   set x "$CONFIG_SITE"
2089 elif test "x$prefix" != xNONE; then
2090   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2091 else
2092   set x "$ac_default_prefix/share/config.site" \
2093         "$ac_default_prefix/etc/config.site"
2094 fi
2095 shift
2096 for ac_site_file
2097 do
2098   if test -r "$ac_site_file"; then
2099     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2100 echo "$as_me: loading site script $ac_site_file" >&6;}
2101     sed 's/^/| /' "$ac_site_file" >&5
2102     . "$ac_site_file"
2103   fi
2104 done
2105
2106 if test -r "$cache_file"; then
2107   # Some versions of bash will fail to source /dev/null (special
2108   # files actually), so we avoid doing that.
2109   if test -f "$cache_file"; then
2110     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2111 echo "$as_me: loading cache $cache_file" >&6;}
2112     case $cache_file in
2113       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114       *)                      . "./$cache_file";;
2115     esac
2116   fi
2117 else
2118   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2119 echo "$as_me: creating cache $cache_file" >&6;}
2120   >$cache_file
2121 fi
2122
2123 # Check that the precious variables saved in the cache have kept the same
2124 # value.
2125 ac_cache_corrupted=false
2126 for ac_var in $ac_precious_vars; do
2127   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128   eval ac_new_set=\$ac_env_${ac_var}_set
2129   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130   eval ac_new_val=\$ac_env_${ac_var}_value
2131   case $ac_old_set,$ac_new_set in
2132     set,)
2133       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135       ac_cache_corrupted=: ;;
2136     ,set)
2137       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139       ac_cache_corrupted=: ;;
2140     ,);;
2141     *)
2142       if test "x$ac_old_val" != "x$ac_new_val"; then
2143         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2144 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2146 echo "$as_me:   former value:  $ac_old_val" >&2;}
2147         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2148 echo "$as_me:   current value: $ac_new_val" >&2;}
2149         ac_cache_corrupted=:
2150       fi;;
2151   esac
2152   # Pass precious variables to config.status.
2153   if test "$ac_new_set" = set; then
2154     case $ac_new_val in
2155     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156     *) ac_arg=$ac_var=$ac_new_val ;;
2157     esac
2158     case " $ac_configure_args " in
2159       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2160       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2161     esac
2162   fi
2163 done
2164 if $ac_cache_corrupted; then
2165   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2166 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2168 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2169    { (exit 1); exit 1; }; }
2170 fi
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188 ac_ext=c
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2193
2194
2195 BUILD_DIR=`pwd`
2196 cd ..
2197 TOP_DIR=`pwd`
2198 cd ${BUILD_DIR}
2199
2200
2201 ac_aux_dir=
2202 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2203   if test -f "$ac_dir/install-sh"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/install-sh -c"
2206     break
2207   elif test -f "$ac_dir/install.sh"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/install.sh -c"
2210     break
2211   elif test -f "$ac_dir/shtool"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/shtool install -c"
2214     break
2215   fi
2216 done
2217 if test -z "$ac_aux_dir"; then
2218   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2219 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2220    { (exit 1); exit 1; }; }
2221 fi
2222
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2230
2231
2232 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2233
2234
2235 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2236 WIN32MAINDIR=${BUILD_DIR}
2237 WIN32TOPDIR=${TOP_DIR}
2238
2239
2240
2241
2242
2243
2244
2245 for ac_prog in true
2246 do
2247   # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   case $TRUEPRG in
2255   [\\/]* | ?:[\\/]*)
2256   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2257   ;;
2258   *)
2259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272 IFS=$as_save_IFS
2273
2274   ;;
2275 esac
2276 fi
2277 TRUEPRG=$ac_cv_path_TRUEPRG
2278 if test -n "$TRUEPRG"; then
2279   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2280 echo "${ECHO_T}$TRUEPRG" >&6; }
2281 else
2282   { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2284 fi
2285
2286
2287   test -n "$TRUEPRG" && break
2288 done
2289 test -n "$TRUEPRG" || TRUEPRG=":"
2290
2291 for ac_prog in false
2292 do
2293   # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   case $FALSEPRG in
2301   [\\/]* | ?:[\\/]*)
2302   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2303   ;;
2304   *)
2305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310   for ac_exec_ext in '' $ac_executable_extensions; do
2311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314     break 2
2315   fi
2316 done
2317 done
2318 IFS=$as_save_IFS
2319
2320   ;;
2321 esac
2322 fi
2323 FALSEPRG=$ac_cv_path_FALSEPRG
2324 if test -n "$FALSEPRG"; then
2325   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2326 echo "${ECHO_T}$FALSEPRG" >&6; }
2327 else
2328   { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2330 fi
2331
2332
2333   test -n "$FALSEPRG" && break
2334 done
2335 test -n "$FALSEPRG" || FALSEPRG=":"
2336
2337
2338
2339 post_host=
2340 if test "x$BACULA" != x; then
2341    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2342 fi
2343 BACULA=${BACULA:-Bacula}
2344 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 echo "configuring for ${BACULA} $VERSION ($DATE)"
2348
2349
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   if test -n "$CC"; then
2364   ac_cv_prog_CC="$CC" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369   IFS=$as_save_IFS
2370   test -z "$as_dir" && as_dir=.
2371   for ac_exec_ext in '' $ac_executable_extensions; do
2372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375     break 2
2376   fi
2377 done
2378 done
2379 IFS=$as_save_IFS
2380
2381 fi
2382 fi
2383 CC=$ac_cv_prog_CC
2384 if test -n "$CC"; then
2385   { echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6; }
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390 fi
2391
2392
2393 fi
2394 if test -z "$ac_cv_prog_CC"; then
2395   ac_ct_CC=$CC
2396   # Extract the first word of "gcc", so it can be a program name with args.
2397 set dummy gcc; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$ac_ct_CC"; then
2404   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413     ac_cv_prog_ac_ct_CC="gcc"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419 IFS=$as_save_IFS
2420
2421 fi
2422 fi
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6; }
2427 else
2428   { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2430 fi
2431
2432   if test "x$ac_ct_CC" = x; then
2433     CC=""
2434   else
2435     case $cross_compiling:$ac_tool_warned in
2436 yes:)
2437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&5
2440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet.  If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2443 ac_tool_warned=yes ;;
2444 esac
2445     CC=$ac_ct_CC
2446   fi
2447 else
2448   CC="$ac_cv_prog_CC"
2449 fi
2450
2451 if test -z "$CC"; then
2452           if test -n "$ac_tool_prefix"; then
2453     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$CC"; then
2461   ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470     ac_cv_prog_CC="${ac_tool_prefix}cc"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 CC=$ac_cv_prog_CC
2481 if test -n "$CC"; then
2482   { echo "$as_me:$LINENO: result: $CC" >&5
2483 echo "${ECHO_T}$CC" >&6; }
2484 else
2485   { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2487 fi
2488
2489
2490   fi
2491 fi
2492 if test -z "$CC"; then
2493   # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   if test -n "$CC"; then
2501   ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503   ac_prog_rejected=no
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512        ac_prog_rejected=yes
2513        continue
2514      fi
2515     ac_cv_prog_CC="cc"
2516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 if test $ac_prog_rejected = yes; then
2524   # We found a bogon in the path, so make sure we never use it.
2525   set dummy $ac_cv_prog_CC
2526   shift
2527   if test $# != 0; then
2528     # We chose a different compiler from the bogus one.
2529     # However, it has the same basename, so the bogon will be chosen
2530     # first if we set CC to just the basename; use the full file name.
2531     shift
2532     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2533   fi
2534 fi
2535 fi
2536 fi
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539   { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2541 else
2542   { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2544 fi
2545
2546
2547 fi
2548 if test -z "$CC"; then
2549   if test -n "$ac_tool_prefix"; then
2550   for ac_prog in cl.exe
2551   do
2552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test -n "$CC"; then
2560   ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567   for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581   { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2583 else
2584   { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2586 fi
2587
2588
2589     test -n "$CC" && break
2590   done
2591 fi
2592 if test -z "$CC"; then
2593   ac_ct_CC=$CC
2594   for ac_prog in cl.exe
2595 do
2596   # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test -n "$ac_ct_CC"; then
2604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_exec_ext in '' $ac_executable_extensions; do
2612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613     ac_cv_prog_ac_ct_CC="$ac_prog"
2614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2626 echo "${ECHO_T}$ac_ct_CC" >&6; }
2627 else
2628   { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2630 fi
2631
2632
2633   test -n "$ac_ct_CC" && break
2634 done
2635
2636   if test "x$ac_ct_CC" = x; then
2637     CC=""
2638   else
2639     case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet.  If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet.  If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2647 ac_tool_warned=yes ;;
2648 esac
2649     CC=$ac_ct_CC
2650   fi
2651 fi
2652
2653 fi
2654
2655
2656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&2;}
2660    { (exit 1); exit 1; }; }
2661
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO: checking for C compiler version" >&5
2664 ac_compiler=`set X $ac_compile; echo $2`
2665 { (ac_try="$ac_compiler --version >&5"
2666 case "(($ac_try" in
2667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668   *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671   (eval "$ac_compiler --version >&5") 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }
2675 { (ac_try="$ac_compiler -v >&5"
2676 case "(($ac_try" in
2677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678   *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681   (eval "$ac_compiler -v >&5") 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }
2685 { (ac_try="$ac_compiler -V >&5"
2686 case "(($ac_try" in
2687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688   *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691   (eval "$ac_compiler -V >&5") 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }
2695
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 ac_clean_files_save=$ac_clean_files
2712 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2713 # Try to create an executable without -o first, disregard a.out.
2714 # It will help us diagnose broken compilers, and finding out an intuition
2715 # of exeext.
2716 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2717 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2719 #
2720 # List of possible output files, starting from the most likely.
2721 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2722 # only as a last resort.  b.out is created by i960 compilers.
2723 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2724 #
2725 # The IRIX 6 linker writes into existing files which may not be
2726 # executable, retaining their permissions.  Remove them first so a
2727 # subsequent execution test works.
2728 ac_rmfiles=
2729 for ac_file in $ac_files
2730 do
2731   case $ac_file in
2732     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2734   esac
2735 done
2736 rm -f $ac_rmfiles
2737
2738 if { (ac_try="$ac_link_default"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_link_default") 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; then
2748   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2749 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2750 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2751 # so that the user can short-circuit this test for compilers unknown to
2752 # Autoconf.
2753 for ac_file in $ac_files ''
2754 do
2755   test -f "$ac_file" || continue
2756   case $ac_file in
2757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2758         ;;
2759     [ab].out )
2760         # We found the default executable, but exeext='' is most
2761         # certainly right.
2762         break;;
2763     *.* )
2764         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2765         then :; else
2766            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2767         fi
2768         # We set ac_cv_exeext here because the later test for it is not
2769         # safe: cross compilers may not add the suffix if given an `-o'
2770         # argument, so we may need to know it at that point already.
2771         # Even if this section looks crufty: it has the advantage of
2772         # actually working.
2773         break;;
2774     * )
2775         break;;
2776   esac
2777 done
2778 test "$ac_cv_exeext" = no && ac_cv_exeext=
2779
2780 else
2781   ac_file=''
2782 fi
2783
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2786 if test -z "$ac_file"; then
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794    { (exit 77); exit 77; }; }
2795 fi
2796
2797 ac_exeext=$ac_cv_exeext
2798
2799 # Check that the compiler produces executables we can run.  If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806   if { ac_try='./$ac_file'
2807   { (case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812   (eval "$ac_try") 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816     cross_compiling=no
2817   else
2818     if test "$cross_compiling" = maybe; then
2819         cross_compiling=yes
2820     else
2821         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827    { (exit 1); exit 1; }; }
2828     fi
2829   fi
2830 fi
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2833
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2842
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_link") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; then
2855   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2858 # `rm'.
2859 for ac_file in conftest.exe conftest conftest.*; do
2860   test -f "$ac_file" || continue
2861   case $ac_file in
2862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864           break;;
2865     * ) break;;
2866   esac
2867 done
2868 else
2869   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874 fi
2875
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2879
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2882 ac_exeext=$EXEEXT
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886   echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888   cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894
2895 int
2896 main ()
2897 {
2898
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compile") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; then
2914   for ac_file in conftest.o conftest.obj conftest.*; do
2915   test -f "$ac_file" || continue;
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919        break;;
2920   esac
2921 done
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930    { (exit 1); exit 1; }; }
2931 fi
2932
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934 fi
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2938 ac_objext=$OBJEXT
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954 #ifndef __GNUC__
2955        choke me
2956 #endif
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_compile") 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } && {
2976          test -z "$ac_c_werror_flag" ||
2977          test ! -s conftest.err
2978        } && test -s conftest.$ac_objext; then
2979   ac_compiler_gnu=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984         ac_compiler_gnu=no
2985 fi
2986
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2989
2990 fi
2991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2993 GCC=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   ac_save_c_werror_flag=$ac_c_werror_flag
3002    ac_c_werror_flag=yes
3003    ac_cv_prog_cc_g=no
3004    CFLAGS="-g"
3005    cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } && {
3034          test -z "$ac_c_werror_flag" ||
3035          test ! -s conftest.err
3036        } && test -s conftest.$ac_objext; then
3037   ac_cv_prog_cc_g=yes
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042         CFLAGS=""
3043       cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049
3050 int
3051 main ()
3052 {
3053
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_compile") 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } && {
3072          test -z "$ac_c_werror_flag" ||
3073          test ! -s conftest.err
3074        } && test -s conftest.$ac_objext; then
3075   :
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080         ac_c_werror_flag=$ac_save_c_werror_flag
3081          CFLAGS="-g"
3082          cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } && {
3111          test -z "$ac_c_werror_flag" ||
3112          test ! -s conftest.err
3113        } && test -s conftest.$ac_objext; then
3114   ac_cv_prog_cc_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119
3120 fi
3121
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 fi
3127
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129    ac_c_werror_flag=$ac_save_c_werror_flag
3130 fi
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3133 if test "$ac_test_CFLAGS" = set; then
3134   CFLAGS=$ac_save_CFLAGS
3135 elif test $ac_cv_prog_cc_g = yes; then
3136   if test "$GCC" = yes; then
3137     CFLAGS="-g -O2"
3138   else
3139     CFLAGS="-g"
3140   fi
3141 else
3142   if test "$GCC" = yes; then
3143     CFLAGS="-O2"
3144   else
3145     CFLAGS=
3146   fi
3147 fi
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   ac_cv_prog_cc_c89=no
3154 ac_save_CC=$CC
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <stdarg.h>
3162 #include <stdio.h>
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3169      char **p;
3170      int i;
3171 {
3172   return p[i];
3173 }
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3175 {
3176   char *s;
3177   va_list v;
3178   va_start (v,p);
3179   s = g (p, va_arg (v,int));
3180   va_end (v);
3181   return s;
3182 }
3183
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3185    function prototypes and stuff, but not '\xHH' hex character constants.
3186    These don't provoke an error unfortunately, instead are silently treated
3187    as 'x'.  The following induces an error, until -std is added to get
3188    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3189    array size at least.  It's necessary to write '\x00'==0 to get something
3190    that's true only with -std.  */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3192
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194    inside strings and character constants.  */
3195 #define FOO(x) 'x'
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3197
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3202 int argc;
3203 char **argv;
3204 int
3205 main ()
3206 {
3207 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3208   ;
3209   return 0;
3210 }
3211 _ACEOF
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3214 do
3215   CC="$ac_save_CC $ac_arg"
3216   rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_compile") 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } && {
3230          test -z "$ac_c_werror_flag" ||
3231          test ! -s conftest.err
3232        } && test -s conftest.$ac_objext; then
3233   ac_cv_prog_cc_c89=$ac_arg
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238
3239 fi
3240
3241 rm -f core conftest.err conftest.$ac_objext
3242   test "x$ac_cv_prog_cc_c89" != "xno" && break
3243 done
3244 rm -f conftest.$ac_ext
3245 CC=$ac_save_CC
3246
3247 fi
3248 # AC_CACHE_VAL
3249 case "x$ac_cv_prog_cc_c89" in
3250   x)
3251     { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3253   xno)
3254     { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3256   *)
3257     CC="$CC $ac_cv_prog_cc_c89"
3258     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3260 esac
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269 ac_ext=cpp
3270 ac_cpp='$CXXCPP $CPPFLAGS'
3271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3274 if test -z "$CXX"; then
3275   if test -n "$CCC"; then
3276     CXX=$CCC
3277   else
3278     if test -n "$ac_tool_prefix"; then
3279   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3280   do
3281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286   echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288   if test -n "$CXX"; then
3289   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294   IFS=$as_save_IFS
3295   test -z "$as_dir" && as_dir=.
3296   for ac_exec_ext in '' $ac_executable_extensions; do
3297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300     break 2
3301   fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 CXX=$ac_cv_prog_CXX
3309 if test -n "$CXX"; then
3310   { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3312 else
3313   { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3315 fi
3316
3317
3318     test -n "$CXX" && break
3319   done
3320 fi
3321 if test -z "$CXX"; then
3322   ac_ct_CXX=$CXX
3323   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3324 do
3325   # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   if test -n "$ac_ct_CXX"; then
3333   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340   for ac_exec_ext in '' $ac_executable_extensions; do
3341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342     ac_cv_prog_ac_ct_CXX="$ac_prog"
3343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353 if test -n "$ac_ct_CXX"; then
3354   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3356 else
3357   { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3359 fi
3360
3361
3362   test -n "$ac_ct_CXX" && break
3363 done
3364
3365   if test "x$ac_ct_CXX" = x; then
3366     CXX="g++"
3367   else
3368     case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet.  If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&5
3373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet.  If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378     CXX=$ac_ct_CXX
3379   fi
3380 fi
3381
3382   fi
3383 fi
3384 # Provide some information about the compiler.
3385 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3386 ac_compiler=`set X $ac_compile; echo $2`
3387 { (ac_try="$ac_compiler --version >&5"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_compiler --version >&5") 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }
3397 { (ac_try="$ac_compiler -v >&5"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_compiler -v >&5") 2>&5
3404   ac_status=$?
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); }
3407 { (ac_try="$ac_compiler -V >&5"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_compiler -V >&5") 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }
3417
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433 #ifndef __GNUC__
3434        choke me
3435 #endif
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_compile") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } && {
3455          test -z "$ac_cxx_werror_flag" ||
3456          test ! -s conftest.err
3457        } && test -s conftest.$ac_objext; then
3458   ac_compiler_gnu=yes
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463         ac_compiler_gnu=no
3464 fi
3465
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3472 GXX=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CXXFLAGS=${CXXFLAGS+set}
3474 ac_save_CXXFLAGS=$CXXFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cxx_g+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3481    ac_cxx_werror_flag=yes
3482    ac_cv_prog_cxx_g=no
3483    CXXFLAGS="-g"
3484    cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506   (eval "$ac_compile") 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } && {
3513          test -z "$ac_cxx_werror_flag" ||
3514          test ! -s conftest.err
3515        } && test -s conftest.$ac_objext; then
3516   ac_cv_prog_cxx_g=yes
3517 else
3518   echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521         CXXFLAGS=""
3522       cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_compile") 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } && {
3551          test -z "$ac_cxx_werror_flag" ||
3552          test ! -s conftest.err
3553        } && test -s conftest.$ac_objext; then
3554   :
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3560          CXXFLAGS="-g"
3561          cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h.  */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h.  */
3567
3568 int
3569 main ()
3570 {
3571
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3578 case "(($ac_try" in
3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580   *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583   (eval "$ac_compile") 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } && {
3590          test -z "$ac_cxx_werror_flag" ||
3591          test ! -s conftest.err
3592        } && test -s conftest.$ac_objext; then
3593   ac_cv_prog_cxx_g=yes
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598
3599 fi
3600
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3609 fi
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3612 if test "$ac_test_CXXFLAGS" = set; then
3613   CXXFLAGS=$ac_save_CXXFLAGS
3614 elif test $ac_cv_prog_cxx_g = yes; then
3615   if test "$GXX" = yes; then
3616     CXXFLAGS="-g -O2"
3617   else
3618     CXXFLAGS="-g"
3619   fi
3620 else
3621   if test "$GXX" = yes; then
3622     CXXFLAGS="-O2"
3623   else
3624     CXXFLAGS=
3625   fi
3626 fi
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633 if test "x$CC" != xcc; then
3634   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3635 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3636 else
3637   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3638 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3639 fi
3640 set dummy $CC; ac_cc=`echo $2 |
3641                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3642 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 # Make sure it works both with $CC and with simple cc.
3661 # We do the test twice because some compilers refuse to overwrite an
3662 # existing .o file with -o, though they will create one.
3663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3664 rm -f conftest2.*
3665 if { (case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_try") 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } &&
3674    test -f conftest2.$ac_objext && { (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); };
3683 then
3684   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3685   if test "x$CC" != xcc; then
3686     # Test first that cc exists at all.
3687     if { ac_try='cc -c conftest.$ac_ext >&5'
3688   { (case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693   (eval "$ac_try") 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; }; then
3697       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3698       rm -f conftest2.*
3699       if { (case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704   (eval "$ac_try") 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); } &&
3708          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713   (eval "$ac_try") 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); };
3717       then
3718         # cc works too.
3719         :
3720       else
3721         # cc exists but doesn't like -o.
3722         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3723       fi
3724     fi
3725   fi
3726 else
3727   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3728 fi
3729 rm -f core conftest*
3730
3731 fi
3732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3733   { echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6; }
3735 else
3736   { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3738
3739 cat >>confdefs.h <<\_ACEOF
3740 #define NO_MINUS_C_MINUS_O 1
3741 _ACEOF
3742
3743 fi
3744
3745 ac_ext=c
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3754   CPP=
3755 fi
3756 if test -z "$CPP"; then
3757   if test "${ac_cv_prog_CPP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760       # Double quotes because CPP needs to be expanded
3761     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762     do
3763       ac_preproc_ok=false
3764 for ac_c_preproc_warn_flag in '' yes
3765 do
3766   # Use a header file that comes with gcc, so configuring glibc
3767   # with a fresh cross-compiler works.
3768   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769   # <limits.h> exists even on freestanding compilers.
3770   # On the NeXT, cc -E runs the code through the compiler's parser,
3771   # not just through cpp. "Syntax error" is here to catch this case.
3772   cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h.  */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h.  */
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783                      Syntax error
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792   ac_status=$?
3793   grep -v '^ *+' conftest.er1 >conftest.err
3794   rm -f conftest.er1
3795   cat conftest.err >&5
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } >/dev/null && {
3798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799          test ! -s conftest.err
3800        }; then
3801   :
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806   # Broken: fails on valid input.
3807 continue
3808 fi
3809
3810 rm -f conftest.err conftest.$ac_ext
3811
3812   # OK, works on sane cases.  Now check whether nonexistent headers
3813   # can be detected and how.
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3823 case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } >/dev/null && {
3835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836          test ! -s conftest.err
3837        }; then
3838   # Broken: success on invalid input.
3839 continue
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844   # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3847 fi
3848
3849 rm -f conftest.err conftest.$ac_ext
3850
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3855   break
3856 fi
3857
3858     done
3859     ac_cv_prog_CPP=$CPP
3860
3861 fi
3862   CPP=$ac_cv_prog_CPP
3863 else
3864   ac_cv_prog_CPP=$CPP
3865 fi
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3868 ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3870 do
3871   # Use a header file that comes with gcc, so configuring glibc
3872   # with a fresh cross-compiler works.
3873   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874   # <limits.h> exists even on freestanding compilers.
3875   # On the NeXT, cc -E runs the code through the compiler's parser,
3876   # not just through cpp. "Syntax error" is here to catch this case.
3877   cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h.  */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h.  */
3883 #ifdef __STDC__
3884 # include <limits.h>
3885 #else
3886 # include <assert.h>
3887 #endif
3888                      Syntax error
3889 _ACEOF
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } >/dev/null && {
3903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        }; then
3906   :
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911   # Broken: fails on valid input.
3912 continue
3913 fi
3914
3915 rm -f conftest.err conftest.$ac_ext
3916
3917   # OK, works on sane cases.  Now check whether nonexistent headers
3918   # can be detected and how.
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <ac_nonexistent.h>
3926 _ACEOF
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3934   ac_status=$?
3935   grep -v '^ *+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } >/dev/null && {
3940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941          test ! -s conftest.err
3942        }; then
3943   # Broken: success on invalid input.
3944 continue
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949   # Passes both tests.
3950 ac_preproc_ok=:
3951 break
3952 fi
3953
3954 rm -f conftest.err conftest.$ac_ext
3955
3956 done
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3960   :
3961 else
3962   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966    { (exit 1); exit 1; }; }
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_prog in grep ggrep; do
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998     # Check for GNU ac_path_GREP and select it if it is found.
3999   # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4001 *GNU*)
4002   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4003 *)
4004   ac_count=0
4005   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006   while :
4007   do
4008     cat "conftest.in" "conftest.in" >"conftest.tmp"
4009     mv "conftest.tmp" "conftest.in"
4010     cp "conftest.in" "conftest.nl"
4011     echo 'GREP' >> "conftest.nl"
4012     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014     ac_count=`expr $ac_count + 1`
4015     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016       # Best one so far, save it but keep looking for a better one
4017       ac_cv_path_GREP="$ac_path_GREP"
4018       ac_path_GREP_max=$ac_count
4019     fi
4020     # 10*(2^10) chars as input seems more than enough
4021     test $ac_count -gt 10 && break
4022   done
4023   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024 esac
4025
4026
4027     $ac_path_GREP_found && break 3
4028   done
4029 done
4030
4031 done
4032 IFS=$as_save_IFS
4033
4034
4035 fi
4036
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041    { (exit 1); exit 1; }; }
4042 fi
4043
4044 else
4045   ac_cv_path_GREP=$GREP
4046 fi
4047
4048
4049 fi
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052  GREP="$ac_cv_path_GREP"
4053
4054
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061    then ac_cv_path_EGREP="$GREP -E"
4062    else
4063      # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076   for ac_prog in egrep; do
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080     # Check for GNU ac_path_EGREP and select it if it is found.
4081   # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4083 *GNU*)
4084   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4085 *)
4086   ac_count=0
4087   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4088   while :
4089   do
4090     cat "conftest.in" "conftest.in" >"conftest.tmp"
4091     mv "conftest.tmp" "conftest.in"
4092     cp "conftest.in" "conftest.nl"
4093     echo 'EGREP' >> "conftest.nl"
4094     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096     ac_count=`expr $ac_count + 1`
4097     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098       # Best one so far, save it but keep looking for a better one
4099       ac_cv_path_EGREP="$ac_path_EGREP"
4100       ac_path_EGREP_max=$ac_count
4101     fi
4102     # 10*(2^10) chars as input seems more than enough
4103     test $ac_count -gt 10 && break
4104   done
4105   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 esac
4107
4108
4109     $ac_path_EGREP_found && break 3
4110   done
4111 done
4112
4113 done
4114 IFS=$as_save_IFS
4115
4116
4117 fi
4118
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123    { (exit 1); exit 1; }; }
4124 fi
4125
4126 else
4127   ac_cv_path_EGREP=$EGREP
4128 fi
4129
4130
4131    fi
4132 fi
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135  EGREP="$ac_cv_path_EGREP"
4136
4137
4138 if test $ac_cv_c_compiler_gnu = yes; then
4139     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144     ac_pattern="Autoconf.*'x'"
4145   cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <sgtty.h>
4152 Autoconf TIOCGETP
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156   ac_cv_prog_gcc_traditional=yes
4157 else
4158   ac_cv_prog_gcc_traditional=no
4159 fi
4160 rm -f conftest*
4161
4162
4163   if test $ac_cv_prog_gcc_traditional = no; then
4164     cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 #include <termio.h>
4171 Autoconf TCGETA
4172 _ACEOF
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4175   ac_cv_prog_gcc_traditional=yes
4176 fi
4177 rm -f conftest*
4178
4179   fi
4180 fi
4181 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4182 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4183   if test $ac_cv_prog_gcc_traditional = yes; then
4184     CC="$CC -traditional"
4185   fi
4186 fi
4187
4188 BASECC=`basename $CC`
4189 have_gcc=no
4190 if test "x$BASECC" = xgcc; then
4191    cat >>confdefs.h <<\_ACEOF
4192 #define HAVE_GCC 1
4193 _ACEOF
4194
4195    have_gcc=yes
4196 fi
4197 # Extract the first word of "$CXX", so it can be a program name with args.
4198 set dummy $CXX; ac_word=$2
4199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_CXX+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   case $CXX in
4205   [\\/]* | ?:[\\/]*)
4206   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4207   ;;
4208   *)
4209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_exec_ext in '' $ac_executable_extensions; do
4215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4225   ;;
4226 esac
4227 fi
4228 CXX=$ac_cv_path_CXX
4229 if test -n "$CXX"; then
4230   { echo "$as_me:$LINENO: result: $CXX" >&5
4231 echo "${ECHO_T}$CXX" >&6; }
4232 else
4233   { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4235 fi
4236
4237
4238 if test ! -e $CXX; then
4239    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4240 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4241    { (exit 1); exit 1; }; }
4242 fi
4243
4244 # Find a good install program.  We prefer a C program (faster),
4245 # so one script is as good as another.  But avoid the broken or
4246 # incompatible versions:
4247 # SysV /etc/install, /usr/sbin/install
4248 # SunOS /usr/etc/install
4249 # IRIX /sbin/install
4250 # AIX /bin/install
4251 # AmigaOS /C/install, which installs bootblocks on floppy discs
4252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4255 # OS/2's system install, which has a completely different semantic
4256 # ./install, which can be erroneously created by make from ./install.sh.
4257 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4259 if test -z "$INSTALL"; then
4260 if test "${ac_cv_path_install+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268   # Account for people who put trailing slashes in PATH elements.
4269 case $as_dir/ in
4270   ./ | .// | /cC/* | \
4271   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4272   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4273   /usr/ucb/* ) ;;
4274   *)
4275     # OSF1 and SCO ODT 3.0 have their own names for install.
4276     # Don't use installbsd from OSF since it installs stuff as root
4277     # by default.
4278     for ac_prog in ginstall scoinst install; do
4279       for ac_exec_ext in '' $ac_executable_extensions; do
4280         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4281           if test $ac_prog = install &&
4282             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283             # AIX install.  It has an incompatible calling convention.
4284             :
4285           elif test $ac_prog = install &&
4286             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287             # program-specific install script used by HP pwplus--don't use.
4288             :
4289           else
4290             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4291             break 3
4292           fi
4293         fi
4294       done
4295     done
4296     ;;
4297 esac
4298 done
4299 IFS=$as_save_IFS
4300
4301
4302 fi
4303   if test "${ac_cv_path_install+set}" = set; then
4304     INSTALL=$ac_cv_path_install
4305   else
4306     # As a last resort, use the slow shell script.  Don't cache a
4307     # value for INSTALL within a source directory, because that will
4308     # break other packages using the cache if that directory is
4309     # removed, or if the value is a relative name.
4310     INSTALL=$ac_install_sh
4311   fi
4312 fi
4313 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4314 echo "${ECHO_T}$INSTALL" >&6; }
4315
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4319
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4321
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4323
4324 # Extract the first word of "mv", so it can be a program name with args.
4325 set dummy mv; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_path_MV+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   case $MV in
4332   [\\/]* | ?:[\\/]*)
4333   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4334   ;;
4335   *)
4336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341   for ac_exec_ext in '' $ac_executable_extensions; do
4342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345     break 2
4346   fi
4347 done
4348 done
4349 IFS=$as_save_IFS
4350
4351   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4352   ;;
4353 esac
4354 fi
4355 MV=$ac_cv_path_MV
4356 if test -n "$MV"; then
4357   { echo "$as_me:$LINENO: result: $MV" >&5
4358 echo "${ECHO_T}$MV" >&6; }
4359 else
4360   { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4362 fi
4363
4364
4365 # Extract the first word of "rm", so it can be a program name with args.
4366 set dummy rm; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_path_REMOVE+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   case $REMOVE in
4373   [\\/]* | ?:[\\/]*)
4374   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4375   ;;
4376   *)
4377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382   for ac_exec_ext in '' $ac_executable_extensions; do
4383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386     break 2
4387   fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4393   ;;
4394 esac
4395 fi
4396 REMOVE=$ac_cv_path_REMOVE
4397 if test -n "$REMOVE"; then
4398   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4399 echo "${ECHO_T}$REMOVE" >&6; }
4400 else
4401   { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4403 fi
4404
4405
4406 # Extract the first word of "cp", so it can be a program name with args.
4407 set dummy cp; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_path_CP+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   case $CP in
4414   [\\/]* | ?:[\\/]*)
4415   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4416   ;;
4417   *)
4418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4434   ;;
4435 esac
4436 fi
4437 CP=$ac_cv_path_CP
4438 if test -n "$CP"; then
4439   { echo "$as_me:$LINENO: result: $CP" >&5
4440 echo "${ECHO_T}$CP" >&6; }
4441 else
4442   { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4444 fi
4445
4446
4447 # Extract the first word of "sed", so it can be a program name with args.
4448 set dummy sed; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_SED+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   case $SED in
4455   [\\/]* | ?:[\\/]*)
4456   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4457   ;;
4458   *)
4459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464   for ac_exec_ext in '' $ac_executable_extensions; do
4465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4475   ;;
4476 esac
4477 fi
4478 SED=$ac_cv_path_SED
4479 if test -n "$SED"; then
4480   { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4482 else
4483   { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4485 fi
4486
4487
4488 # Extract the first word of "echo", so it can be a program name with args.
4489 set dummy echo; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_ECHO+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   case $ECHO in
4496   [\\/]* | ?:[\\/]*)
4497   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4498   ;;
4499   *)
4500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503   IFS=$as_save_IFS
4504   test -z "$as_dir" && as_dir=.
4505   for ac_exec_ext in '' $ac_executable_extensions; do
4506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4516   ;;
4517 esac
4518 fi
4519 ECHO=$ac_cv_path_ECHO
4520 if test -n "$ECHO"; then
4521   { echo "$as_me:$LINENO: result: $ECHO" >&5
4522 echo "${ECHO_T}$ECHO" >&6; }
4523 else
4524   { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4526 fi
4527
4528
4529 # Extract the first word of "cmp", so it can be a program name with args.
4530 set dummy cmp; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_path_CMP+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   case $CMP in
4537   [\\/]* | ?:[\\/]*)
4538   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4539   ;;
4540   *)
4541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544   IFS=$as_save_IFS
4545   test -z "$as_dir" && as_dir=.
4546   for ac_exec_ext in '' $ac_executable_extensions; do
4547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550     break 2
4551   fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4557   ;;
4558 esac
4559 fi
4560 CMP=$ac_cv_path_CMP
4561 if test -n "$CMP"; then
4562   { echo "$as_me:$LINENO: result: $CMP" >&5
4563 echo "${ECHO_T}$CMP" >&6; }
4564 else
4565   { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4567 fi
4568
4569
4570 # Extract the first word of "tbl", so it can be a program name with args.
4571 set dummy tbl; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_TBL+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   case $TBL in
4578   [\\/]* | ?:[\\/]*)
4579   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4580   ;;
4581   *)
4582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587   for ac_exec_ext in '' $ac_executable_extensions; do
4588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591     break 2
4592   fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4598   ;;
4599 esac
4600 fi
4601 TBL=$ac_cv_path_TBL
4602 if test -n "$TBL"; then
4603   { echo "$as_me:$LINENO: result: $TBL" >&5
4604 echo "${ECHO_T}$TBL" >&6; }
4605 else
4606   { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4608 fi
4609
4610
4611 # Extract the first word of "ar", so it can be a program name with args.
4612 set dummy ar; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_AR+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   case $AR in
4619   [\\/]* | ?:[\\/]*)
4620   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4621   ;;
4622   *)
4623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628   for ac_exec_ext in '' $ac_executable_extensions; do
4629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635 done
4636 IFS=$as_save_IFS
4637
4638   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4639   ;;
4640 esac
4641 fi
4642 AR=$ac_cv_path_AR
4643 if test -n "$AR"; then
4644   { echo "$as_me:$LINENO: result: $AR" >&5
4645 echo "${ECHO_T}$AR" >&6; }
4646 else
4647   { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4649 fi
4650
4651
4652 # Extract the first word of "openssl", so it can be a program name with args.
4653 set dummy openssl; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_path_OPENSSL+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   case $OPENSSL in
4660   [\\/]* | ?:[\\/]*)
4661   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4662   ;;
4663   *)
4664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669   for ac_exec_ext in '' $ac_executable_extensions; do
4670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673     break 2
4674   fi
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4680   ;;
4681 esac
4682 fi
4683 OPENSSL=$ac_cv_path_OPENSSL
4684 if test -n "$OPENSSL"; then
4685   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4686 echo "${ECHO_T}$OPENSSL" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693 # Extract the first word of "mtx", so it can be a program name with args.
4694 set dummy mtx; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MTX+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   case $MTX in
4701   [\\/]* | ?:[\\/]*)
4702   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4703   ;;
4704   *)
4705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710   for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4721   ;;
4722 esac
4723 fi
4724 MTX=$ac_cv_path_MTX
4725 if test -n "$MTX"; then
4726   { echo "$as_me:$LINENO: result: $MTX" >&5
4727 echo "${ECHO_T}$MTX" >&6; }
4728 else
4729   { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4731 fi
4732
4733
4734 # Extract the first word of "dd", so it can be a program name with args.
4735 set dummy dd; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_DD+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   case $DD in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4762   ;;
4763 esac
4764 fi
4765 DD=$ac_cv_path_DD
4766 if test -n "$DD"; then
4767   { echo "$as_me:$LINENO: result: $DD" >&5
4768 echo "${ECHO_T}$DD" >&6; }
4769 else
4770   { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4772 fi
4773
4774
4775 # Extract the first word of "mkisofs", so it can be a program name with args.
4776 set dummy mkisofs; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_path_MKISOFS+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   case $MKISOFS in
4783   [\\/]* | ?:[\\/]*)
4784   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4785   ;;
4786   *)
4787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4803   ;;
4804 esac
4805 fi
4806 MKISOFS=$ac_cv_path_MKISOFS
4807 if test -n "$MKISOFS"; then
4808   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4809 echo "${ECHO_T}$MKISOFS" >&6; }
4810 else
4811   { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816 # Extract the first word of "python", so it can be a program name with args.
4817 set dummy python; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_PYTHON+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   case $PYTHON in
4824   [\\/]* | ?:[\\/]*)
4825   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4826   ;;
4827   *)
4828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833   for ac_exec_ext in '' $ac_executable_extensions; do
4834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4844   ;;
4845 esac
4846 fi
4847 PYTHON=$ac_cv_path_PYTHON
4848 if test -n "$PYTHON"; then
4849   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4850 echo "${ECHO_T}$PYTHON" >&6; }
4851 else
4852   { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4854 fi
4855
4856
4857 # Extract the first word of "growisofs", so it can be a program name with args.
4858 set dummy growisofs; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   case $GROWISOFS in
4865   [\\/]* | ?:[\\/]*)
4866   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4867   ;;
4868   *)
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4885   ;;
4886 esac
4887 fi
4888 GROWISOFS=$ac_cv_path_GROWISOFS
4889 if test -n "$GROWISOFS"; then
4890   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4891 echo "${ECHO_T}$GROWISOFS" >&6; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4899 set dummy dvd+rw-mediainfo; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   case $DVDRWMEDIAINFO in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4926   ;;
4927 esac
4928 fi
4929 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4930 if test -n "$DVDRWMEDIAINFO"; then
4931   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4932 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4933 else
4934   { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4936 fi
4937
4938
4939 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4940 set dummy dvd+rw-format; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   case $DVDRWFORMAT in
4947   [\\/]* | ?:[\\/]*)
4948   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4949   ;;
4950   *)
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956   for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4967   ;;
4968 esac
4969 fi
4970 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4971 if test -n "$DVDRWFORMAT"; then
4972   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4973 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4974 else
4975   { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4977 fi
4978
4979
4980 # Extract the first word of "pkg-config", so it can be a program name with args.
4981 set dummy pkg-config; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   case $PKGCONFIG in
4988   [\\/]* | ?:[\\/]*)
4989   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4990   ;;
4991   *)
4992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5008   ;;
5009 esac
5010 fi
5011 PKGCONFIG=$ac_cv_path_PKGCONFIG
5012 if test -n "$PKGCONFIG"; then
5013   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5014 echo "${ECHO_T}$PKGCONFIG" >&6; }
5015 else
5016   { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5018 fi
5019
5020
5021 # Extract the first word of "qmake", so it can be a program name with args.
5022 set dummy qmake; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_path_QMAKE+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   case $QMAKE in
5029   [\\/]* | ?:[\\/]*)
5030   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5031   ;;
5032   *)
5033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047
5048   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5049   ;;
5050 esac
5051 fi
5052 QMAKE=$ac_cv_path_QMAKE
5053 if test -n "$QMAKE"; then
5054   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5055 echo "${ECHO_T}$QMAKE" >&6; }
5056 else
5057   { echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6; }
5059 fi
5060
5061
5062 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5063 set dummy qmake-qt4; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   case $QMAKEQT4 in
5070   [\\/]* | ?:[\\/]*)
5071   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5072   ;;
5073   *)
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079   for ac_exec_ext in '' $ac_executable_extensions; do
5080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5090   ;;
5091 esac
5092 fi
5093 QMAKEQT4=$ac_cv_path_QMAKEQT4
5094 if test -n "$QMAKEQT4"; then
5095   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5096 echo "${ECHO_T}$QMAKEQT4" >&6; }
5097 else
5098   { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5100 fi
5101
5102
5103 # Extract the first word of "gmake", so it can be a program name with args.
5104 set dummy gmake; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_GMAKE+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   case $GMAKE in
5111   [\\/]* | ?:[\\/]*)
5112   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5113   ;;
5114   *)
5115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120   for ac_exec_ext in '' $ac_executable_extensions; do
5121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5131   ;;
5132 esac
5133 fi
5134 GMAKE=$ac_cv_path_GMAKE
5135 if test -n "$GMAKE"; then
5136   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5137 echo "${ECHO_T}$GMAKE" >&6; }
5138 else
5139   { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5141 fi
5142
5143
5144
5145 if test "x$WXCONFIG" = x; then
5146    WXCONFIG=wx-config
5147 fi
5148 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5149 set dummy ${WXCONFIG}; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   case $WXCONFIG in
5156   [\\/]* | ?:[\\/]*)
5157   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5158   ;;
5159   *)
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165   for ac_exec_ext in '' $ac_executable_extensions; do
5166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5176   ;;
5177 esac
5178 fi
5179 WXCONFIG=$ac_cv_path_WXCONFIG
5180 if test -n "$WXCONFIG"; then
5181   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5182 echo "${ECHO_T}$WXCONFIG" >&6; }
5183 else
5184   { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5186 fi
5187
5188
5189
5190 # Extract the first word of "cdrecord", so it can be a program name with args.
5191 set dummy cdrecord; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_CDRECORD+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   case $CDRECORD in
5198   [\\/]* | ?:[\\/]*)
5199   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5200   ;;
5201   *)
5202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207   for ac_exec_ext in '' $ac_executable_extensions; do
5208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5218   ;;
5219 esac
5220 fi
5221 CDRECORD=$ac_cv_path_CDRECORD
5222 if test -n "$CDRECORD"; then
5223   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5224 echo "${ECHO_T}$CDRECORD" >&6; }
5225 else
5226   { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5228 fi
5229
5230
5231 # Extract the first word of "pidof", so it can be a program name with args.
5232 set dummy pidof; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_PIDOF+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   case $PIDOF in
5239   [\\/]* | ?:[\\/]*)
5240   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5241   ;;
5242   *)
5243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for ac_exec_ext in '' $ac_executable_extensions; do
5249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5259   ;;
5260 esac
5261 fi
5262 PIDOF=$ac_cv_path_PIDOF
5263 if test -n "$PIDOF"; then
5264   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5265 echo "${ECHO_T}$PIDOF" >&6; }
5266 else
5267   { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5269 fi
5270
5271
5272 for ac_prog in gawk mawk nawk awk
5273 do
5274   # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_AWK+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   if test -n "$AWK"; then
5282   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289   for ac_exec_ext in '' $ac_executable_extensions; do
5290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291     ac_cv_prog_AWK="$ac_prog"
5292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296 done
5297 IFS=$as_save_IFS
5298
5299 fi
5300 fi
5301 AWK=$ac_cv_prog_AWK
5302 if test -n "$AWK"; then
5303   { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5305 else
5306   { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5308 fi
5309
5310
5311   test -n "$AWK" && break
5312 done
5313
5314 # Some AWK programs fail, so test it and warn the user
5315 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5316       { if ((prog == $2) || (("(" prog ")") == $2) ||
5317       (("" prog "") == $2) ||
5318       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5319 else
5320   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321    The regex engine of $AWK is too broken to be used you
5322    might want to install GNU AWK.
5323    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5324 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325    The regex engine of $AWK is too broken to be used you
5326    might want to install GNU AWK.
5327    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5328    { (exit 1); exit 1; }; }
5329 fi
5330 THE_AWK=$AWK
5331 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5332 set dummy $THE_AWK; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_AWK+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   case $AWK in
5339   [\\/]* | ?:[\\/]*)
5340   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5341   ;;
5342   *)
5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348   for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5359   ;;
5360 esac
5361 fi
5362 AWK=$ac_cv_path_AWK
5363 if test -n "$AWK"; then
5364   { echo "$as_me:$LINENO: result: $AWK" >&5
5365 echo "${ECHO_T}$AWK" >&6; }
5366 else
5367   { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5369 fi
5370
5371
5372
5373
5374 test -n "$ARFLAG" || ARFLAGS="cr"
5375
5376
5377 MAKE_SHELL=/bin/sh
5378
5379
5380
5381
5382
5383
5384
5385 use_libtool=yes
5386 # Check whether --enable-libtool was given.
5387 if test "${enable_libtool+set}" = set; then
5388   enableval=$enable_libtool;
5389        if test x$enableval = xno; then
5390           use_libtool=no
5391        fi
5392
5393
5394 fi
5395
5396 case `pwd` in
5397   *\ * | *\     *)
5398     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5399 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5400 esac
5401
5402
5403
5404 macro_version='2.2.6'
5405 macro_revision='1.3012'
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 ltmain="$ac_aux_dir/ltmain.sh"
5420
5421 # Make sure we can run config.sub.
5422 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5423   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5424 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5425    { (exit 1); exit 1; }; }
5426
5427 { echo "$as_me:$LINENO: checking build system type" >&5
5428 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5429 if test "${ac_cv_build+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   ac_build_alias=$build_alias
5433 test "x$ac_build_alias" = x &&
5434   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5435 test "x$ac_build_alias" = x &&
5436   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5438    { (exit 1); exit 1; }; }
5439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5440   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5441 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5442    { (exit 1); exit 1; }; }
5443
5444 fi
5445 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5446 echo "${ECHO_T}$ac_cv_build" >&6; }
5447 case $ac_cv_build in
5448 *-*-*) ;;
5449 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5450 echo "$as_me: error: invalid value of canonical build" >&2;}
5451    { (exit 1); exit 1; }; };;
5452 esac
5453 build=$ac_cv_build
5454 ac_save_IFS=$IFS; IFS='-'
5455 set x $ac_cv_build
5456 shift
5457 build_cpu=$1
5458 build_vendor=$2
5459 shift; shift
5460 # Remember, the first character of IFS is used to create $*,
5461 # except with old shells:
5462 build_os=$*
5463 IFS=$ac_save_IFS
5464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5465
5466
5467 { echo "$as_me:$LINENO: checking host system type" >&5
5468 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5469 if test "${ac_cv_host+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   if test "x$host_alias" = x; then
5473   ac_cv_host=$ac_cv_build
5474 else
5475   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5476     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5477 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5478    { (exit 1); exit 1; }; }
5479 fi
5480
5481 fi
5482 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5483 echo "${ECHO_T}$ac_cv_host" >&6; }
5484 case $ac_cv_host in
5485 *-*-*) ;;
5486 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5487 echo "$as_me: error: invalid value of canonical host" >&2;}
5488    { (exit 1); exit 1; }; };;
5489 esac
5490 host=$ac_cv_host
5491 ac_save_IFS=$IFS; IFS='-'
5492 set x $ac_cv_host
5493 shift
5494 host_cpu=$1
5495 host_vendor=$2
5496 shift; shift
5497 # Remember, the first character of IFS is used to create $*,
5498 # except with old shells:
5499 host_os=$*
5500 IFS=$ac_save_IFS
5501 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5502
5503
5504 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5505 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5506 if test "${ac_cv_path_SED+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5510      for ac_i in 1 2 3 4 5 6 7; do
5511        ac_script="$ac_script$as_nl$ac_script"
5512      done
5513      echo "$ac_script" | sed 99q >conftest.sed
5514      $as_unset ac_script || ac_script=
5515      # Extract the first word of "sed gsed" to use in msg output
5516 if test -z "$SED"; then
5517 set dummy sed gsed; ac_prog_name=$2
5518 if test "${ac_cv_path_SED+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   ac_path_SED_found=false
5522 # Loop through the user's path and test for each of PROGNAME-LIST
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526   IFS=$as_save_IFS
5527   test -z "$as_dir" && as_dir=.
5528   for ac_prog in sed gsed; do
5529   for ac_exec_ext in '' $ac_executable_extensions; do
5530     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5531     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5532     # Check for GNU ac_path_SED and select it if it is found.
5533   # Check for GNU $ac_path_SED
5534 case `"$ac_path_SED" --version 2>&1` in
5535 *GNU*)
5536   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5537 *)
5538   ac_count=0
5539   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5540   while :
5541   do
5542     cat "conftest.in" "conftest.in" >"conftest.tmp"
5543     mv "conftest.tmp" "conftest.in"
5544     cp "conftest.in" "conftest.nl"
5545     echo '' >> "conftest.nl"
5546     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5547     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5548     ac_count=`expr $ac_count + 1`
5549     if test $ac_count -gt ${ac_path_SED_max-0}; then
5550       # Best one so far, save it but keep looking for a better one
5551       ac_cv_path_SED="$ac_path_SED"
5552       ac_path_SED_max=$ac_count
5553     fi
5554     # 10*(2^10) chars as input seems more than enough
5555     test $ac_count -gt 10 && break
5556   done
5557   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5558 esac
5559
5560
5561     $ac_path_SED_found && break 3
5562   done
5563 done
5564
5565 done
5566 IFS=$as_save_IFS
5567
5568
5569 fi
5570
5571 SED="$ac_cv_path_SED"
5572 if test -z "$SED"; then
5573   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5574 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5575    { (exit 1); exit 1; }; }
5576 fi
5577
5578 else
5579   ac_cv_path_SED=$SED
5580 fi
5581
5582 fi
5583 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5584 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5585  SED="$ac_cv_path_SED"
5586   rm -f conftest.sed
5587
5588 test -z "$SED" && SED=sed
5589 Xsed="$SED -e 1s/^X//"
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 { echo "$as_me:$LINENO: checking for fgrep" >&5
5602 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5603 if test "${ac_cv_path_FGREP+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5607    then ac_cv_path_FGREP="$GREP -F"
5608    else
5609      # Extract the first word of "fgrep" to use in msg output
5610 if test -z "$FGREP"; then
5611 set dummy fgrep; ac_prog_name=$2
5612 if test "${ac_cv_path_FGREP+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   ac_path_FGREP_found=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622   for ac_prog in fgrep; do
5623   for ac_exec_ext in '' $ac_executable_extensions; do
5624     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5625     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5626     # Check for GNU ac_path_FGREP and select it if it is found.
5627   # Check for GNU $ac_path_FGREP
5628 case `"$ac_path_FGREP" --version 2>&1` in
5629 *GNU*)
5630   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5631 *)
5632   ac_count=0
5633   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5634   while :
5635   do
5636     cat "conftest.in" "conftest.in" >"conftest.tmp"
5637     mv "conftest.tmp" "conftest.in"
5638     cp "conftest.in" "conftest.nl"
5639     echo 'FGREP' >> "conftest.nl"
5640     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642     ac_count=`expr $ac_count + 1`
5643     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5644       # Best one so far, save it but keep looking for a better one
5645       ac_cv_path_FGREP="$ac_path_FGREP"
5646       ac_path_FGREP_max=$ac_count
5647     fi
5648     # 10*(2^10) chars as input seems more than enough
5649     test $ac_count -gt 10 && break
5650   done
5651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5652 esac
5653
5654
5655     $ac_path_FGREP_found && break 3
5656   done
5657 done
5658
5659 done
5660 IFS=$as_save_IFS
5661
5662
5663 fi
5664
5665 FGREP="$ac_cv_path_FGREP"
5666 if test -z "$FGREP"; then
5667   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5668 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5669    { (exit 1); exit 1; }; }
5670 fi
5671
5672 else
5673   ac_cv_path_FGREP=$FGREP
5674 fi
5675
5676
5677    fi
5678 fi
5679 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5680 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5681  FGREP="$ac_cv_path_FGREP"
5682
5683
5684 test -z "$GREP" && GREP=grep
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704 # Check whether --with-gnu-ld was given.
5705 if test "${with_gnu_ld+set}" = set; then
5706   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5707 else
5708   with_gnu_ld=no
5709 fi
5710
5711 ac_prog=ld
5712 if test "$GCC" = yes; then
5713   # Check if gcc -print-prog-name=ld gives a path.
5714   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5715 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5716   case $host in
5717   *-*-mingw*)
5718     # gcc leaves a trailing carriage return which upsets mingw
5719     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5720   *)
5721     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5722   esac
5723   case $ac_prog in
5724     # Accept absolute paths.
5725     [\\/]* | ?:[\\/]*)
5726       re_direlt='/[^/][^/]*/\.\./'
5727       # Canonicalize the pathname of ld
5728       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5729       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5730         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5731       done
5732       test -z "$LD" && LD="$ac_prog"
5733       ;;
5734   "")
5735     # If it fails, then pretend we aren't using GCC.
5736     ac_prog=ld
5737     ;;
5738   *)
5739     # If it is relative, then search for the first ld in PATH.
5740     with_gnu_ld=unknown
5741     ;;
5742   esac
5743 elif test "$with_gnu_ld" = yes; then
5744   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5746 else
5747   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5749 fi
5750 if test "${lt_cv_path_LD+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   if test -z "$LD"; then
5754   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5755   for ac_dir in $PATH; do
5756     IFS="$lt_save_ifs"
5757     test -z "$ac_dir" && ac_dir=.
5758     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5759       lt_cv_path_LD="$ac_dir/$ac_prog"
5760       # Check to see if the program is GNU ld.  I'd rather use --version,
5761       # but apparently some variants of GNU ld only accept -v.
5762       # Break only if it was the GNU/non-GNU ld that we prefer.
5763       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5764       *GNU* | *'with BFD'*)
5765         test "$with_gnu_ld" != no && break
5766         ;;
5767       *)
5768         test "$with_gnu_ld" != yes && break
5769         ;;
5770       esac
5771     fi
5772   done
5773   IFS="$lt_save_ifs"
5774 else
5775   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5776 fi
5777 fi
5778
5779 LD="$lt_cv_path_LD"
5780 if test -n "$LD"; then
5781   { echo "$as_me:$LINENO: result: $LD" >&5
5782 echo "${ECHO_T}$LD" >&6; }
5783 else
5784   { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5786 fi
5787 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5788 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5789    { (exit 1); exit 1; }; }
5790 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5791 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5792 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5796 case `$LD -v 2>&1 </dev/null` in
5797 *GNU* | *'with BFD'*)
5798   lt_cv_prog_gnu_ld=yes
5799   ;;
5800 *)
5801   lt_cv_prog_gnu_ld=no
5802   ;;
5803 esac
5804 fi
5805 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5806 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5807 with_gnu_ld=$lt_cv_prog_gnu_ld
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5818 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5819 if test "${lt_cv_path_NM+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   if test -n "$NM"; then
5823   # Let the user override the test.
5824   lt_cv_path_NM="$NM"
5825 else
5826   lt_nm_to_check="${ac_tool_prefix}nm"
5827   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828     lt_nm_to_check="$lt_nm_to_check nm"
5829   fi
5830   for lt_tmp_nm in $lt_nm_to_check; do
5831     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5833       IFS="$lt_save_ifs"
5834       test -z "$ac_dir" && ac_dir=.
5835       tmp_nm="$ac_dir/$lt_tmp_nm"
5836       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837         # Check to see if the nm accepts a BSD-compat flag.
5838         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839         #   nm: unknown option "B" ignored
5840         # Tru64's nm complains that /dev/null is an invalid object file
5841         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842         */dev/null* | *'Invalid file or object type'*)
5843           lt_cv_path_NM="$tmp_nm -B"
5844           break
5845           ;;
5846         *)
5847           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5848           */dev/null*)
5849             lt_cv_path_NM="$tmp_nm -p"
5850             break
5851             ;;
5852           *)
5853             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854             continue # so that we can try to find one that supports BSD flags
5855             ;;
5856           esac
5857           ;;
5858         esac
5859       fi
5860     done
5861     IFS="$lt_save_ifs"
5862   done
5863   : ${lt_cv_path_NM=no}
5864 fi
5865 fi
5866 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5867 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5868 if test "$lt_cv_path_NM" != "no"; then
5869   NM="$lt_cv_path_NM"
5870 else
5871   # Didn't find any BSD compatible name lister, look for dumpbin.
5872   if test -n "$ac_tool_prefix"; then
5873   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5874   do
5875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   if test -n "$DUMPBIN"; then
5883   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888   IFS=$as_save_IFS
5889   test -z "$as_dir" && as_dir=.
5890   for ac_exec_ext in '' $ac_executable_extensions; do
5891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894     break 2
5895   fi
5896 done
5897 done
5898 IFS=$as_save_IFS
5899
5900 fi
5901 fi
5902 DUMPBIN=$ac_cv_prog_DUMPBIN
5903 if test -n "$DUMPBIN"; then
5904   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5905 echo "${ECHO_T}$DUMPBIN" >&6; }
5906 else
5907   { echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6; }
5909 fi
5910
5911
5912     test -n "$DUMPBIN" && break
5913   done
5914 fi
5915 if test -z "$DUMPBIN"; then
5916   ac_ct_DUMPBIN=$DUMPBIN
5917   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5918 do
5919   # Extract the first word of "$ac_prog", so it can be a program name with args.
5920 set dummy $ac_prog; ac_word=$2
5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   if test -n "$ac_ct_DUMPBIN"; then
5927   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934   for ac_exec_ext in '' $ac_executable_extensions; do
5935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938     break 2
5939   fi
5940 done
5941 done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5947 if test -n "$ac_ct_DUMPBIN"; then
5948   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5949 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956   test -n "$ac_ct_DUMPBIN" && break
5957 done
5958
5959   if test "x$ac_ct_DUMPBIN" = x; then
5960     DUMPBIN=":"
5961   else
5962     case $cross_compiling:$ac_tool_warned in
5963 yes:)
5964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5965 whose name does not start with the host triplet.  If you think this
5966 configuration is useful to you, please write to autoconf@gnu.org." >&5
5967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5968 whose name does not start with the host triplet.  If you think this
5969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972     DUMPBIN=$ac_ct_DUMPBIN
5973   fi
5974 fi
5975
5976
5977   if test "$DUMPBIN" != ":"; then
5978     NM="$DUMPBIN"
5979   fi
5980 fi
5981 test -z "$NM" && NM=nm
5982
5983
5984
5985
5986
5987
5988 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5989 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5990 if test "${lt_cv_nm_interface+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   lt_cv_nm_interface="BSD nm"
5994   echo "int some_variable = 0;" > conftest.$ac_ext
5995   (eval echo "\"\$as_me:5995: $ac_compile\"" >&5)
5996   (eval "$ac_compile" 2>conftest.err)
5997   cat conftest.err >&5
5998   (eval echo "\"\$as_me:5998: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5999   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6000   cat conftest.err >&5
6001   (eval echo "\"\$as_me:6001: output\"" >&5)
6002   cat conftest.out >&5
6003   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6004     lt_cv_nm_interface="MS dumpbin"
6005   fi
6006   rm -f conftest*
6007 fi
6008 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6009 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6010
6011 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6013 LN_S=$as_ln_s
6014 if test "$LN_S" = "ln -s"; then
6015   { echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6; }
6017 else
6018   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019 echo "${ECHO_T}no, using $LN_S" >&6; }
6020 fi
6021
6022 # find the maximum length of command line arguments
6023 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028     i=0
6029   teststring="ABCD"
6030
6031   case $build_os in
6032   msdosdjgpp*)
6033     # On DJGPP, this test can blow up pretty badly due to problems in libc
6034     # (any single argument exceeding 2000 bytes causes a buffer overrun
6035     # during glob expansion).  Even if it were fixed, the result of this
6036     # check would be larger than it should be.
6037     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6038     ;;
6039
6040   gnu*)
6041     # Under GNU Hurd, this test is not required because there is
6042     # no limit to the length of command line arguments.
6043     # Libtool will interpret -1 as no limit whatsoever
6044     lt_cv_sys_max_cmd_len=-1;
6045     ;;
6046
6047   cygwin* | mingw* | cegcc*)
6048     # On Win9x/ME, this test blows up -- it succeeds, but takes
6049     # about 5 minutes as the teststring grows exponentially.
6050     # Worse, since 9x/ME are not pre-emptively multitasking,
6051     # you end up with a "frozen" computer, even though with patience
6052     # the test eventually succeeds (with a max line length of 256k).
6053     # Instead, let's just punt: use the minimum linelength reported by
6054     # all of the supported platforms: 8192 (on NT/2K/XP).
6055     lt_cv_sys_max_cmd_len=8192;
6056     ;;
6057
6058   amigaos*)
6059     # On AmigaOS with pdksh, this test takes hours, literally.
6060     # So we just punt and use a minimum line length of 8192.
6061     lt_cv_sys_max_cmd_len=8192;
6062     ;;
6063
6064   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6065     # This has been around since 386BSD, at least.  Likely further.
6066     if test -x /sbin/sysctl; then
6067       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6068     elif test -x /usr/sbin/sysctl; then
6069       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6070     else
6071       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6072     fi
6073     # And add a safety zone
6074     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6076     ;;
6077
6078   interix*)
6079     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6080     lt_cv_sys_max_cmd_len=196608
6081     ;;
6082
6083   osf*)
6084     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086     # nice to cause kernel panics so lets avoid the loop below.
6087     # First set a reasonable default.
6088     lt_cv_sys_max_cmd_len=16384
6089     #
6090     if test -x /sbin/sysconfig; then
6091       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6093       esac
6094     fi
6095     ;;
6096   sco3.2v5*)
6097     lt_cv_sys_max_cmd_len=102400
6098     ;;
6099   sysv5* | sco5v6* | sysv4.2uw2*)
6100     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101     if test -n "$kargmax"; then
6102       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6103     else
6104       lt_cv_sys_max_cmd_len=32768
6105     fi
6106     ;;
6107   *)
6108     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6109     if test -n "$lt_cv_sys_max_cmd_len"; then
6110       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112     else
6113       # Make teststring a little bigger before we do anything with it.
6114       # a 1K string should be a reasonable start.
6115       for i in 1 2 3 4 5 6 7 8 ; do
6116         teststring=$teststring$teststring
6117       done
6118       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6119       # If test is not a shell built-in, we'll probably end up computing a
6120       # maximum length that is only half of the actual maximum length, but
6121       # we can't tell.
6122       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6123                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6124               test $i != 17 # 1/2 MB should be enough
6125       do
6126         i=`expr $i + 1`
6127         teststring=$teststring$teststring
6128       done
6129       # Only check the string length outside the loop.
6130       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6131       teststring=
6132       # Add a significant safety factor because C++ compilers can tack on
6133       # massive amounts of additional arguments before passing them to the
6134       # linker.  It appears as though 1/2 is a usable value.
6135       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6136     fi
6137     ;;
6138   esac
6139
6140 fi
6141
6142 if test -n $lt_cv_sys_max_cmd_len ; then
6143   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6144 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6145 else
6146   { echo "$as_me:$LINENO: result: none" >&5
6147 echo "${ECHO_T}none" >&6; }
6148 fi
6149 max_cmd_len=$lt_cv_sys_max_cmd_len
6150
6151
6152
6153
6154
6155
6156 : ${CP="cp -f"}
6157 : ${MV="mv -f"}
6158 : ${RM="rm -f"}
6159
6160 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6161 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6162 # Try some XSI features
6163 xsi_shell=no
6164 ( _lt_dummy="a/b/c"
6165   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6166       = c,a/b,, \
6167     && eval 'test $(( 1 + 1 )) -eq 2 \
6168     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6169   && xsi_shell=yes
6170 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6171 echo "${ECHO_T}$xsi_shell" >&6; }
6172
6173
6174 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6175 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6176 lt_shell_append=no
6177 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6178     >/dev/null 2>&1 \
6179   && lt_shell_append=yes
6180 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6181 echo "${ECHO_T}$lt_shell_append" >&6; }
6182
6183
6184 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6185   lt_unset=unset
6186 else
6187   lt_unset=false
6188 fi
6189
6190
6191
6192
6193
6194 # test EBCDIC or ASCII
6195 case `echo X|tr X '\101'` in
6196  A) # ASCII based system
6197     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6198   lt_SP2NL='tr \040 \012'
6199   lt_NL2SP='tr \015\012 \040\040'
6200   ;;
6201  *) # EBCDIC based system
6202   lt_SP2NL='tr \100 \n'
6203   lt_NL2SP='tr \r\n \100\100'
6204   ;;
6205 esac
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6216 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6217 if test "${lt_cv_ld_reload_flag+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   lt_cv_ld_reload_flag='-r'
6221 fi
6222 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6223 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6224 reload_flag=$lt_cv_ld_reload_flag
6225 case $reload_flag in
6226 "" | " "*) ;;
6227 *) reload_flag=" $reload_flag" ;;
6228 esac
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230 case $host_os in
6231   darwin*)
6232     if test "$GCC" = yes; then
6233       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6234     else
6235       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236     fi
6237     ;;
6238 esac
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 if test -n "$ac_tool_prefix"; then
6249   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   if test -n "$OBJDUMP"; then
6257   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264   for ac_exec_ext in '' $ac_executable_extensions; do
6265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 OBJDUMP=$ac_cv_prog_OBJDUMP
6277 if test -n "$OBJDUMP"; then
6278   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6279 echo "${ECHO_T}$OBJDUMP" >&6; }
6280 else
6281   { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6283 fi
6284
6285
6286 fi
6287 if test -z "$ac_cv_prog_OBJDUMP"; then
6288   ac_ct_OBJDUMP=$OBJDUMP
6289   # Extract the first word of "objdump", so it can be a program name with args.
6290 set dummy objdump; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   if test -n "$ac_ct_OBJDUMP"; then
6297   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302   IFS=$as_save_IFS
6303   test -z "$as_dir" && as_dir=.
6304   for ac_exec_ext in '' $ac_executable_extensions; do
6305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308     break 2
6309   fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6317 if test -n "$ac_ct_OBJDUMP"; then
6318   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6319 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6320 else
6321   { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6323 fi
6324
6325   if test "x$ac_ct_OBJDUMP" = x; then
6326     OBJDUMP="false"
6327   else
6328     case $cross_compiling:$ac_tool_warned in
6329 yes:)
6330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6331 whose name does not start with the host triplet.  If you think this
6332 configuration is useful to you, please write to autoconf@gnu.org." >&5
6333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet.  If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6336 ac_tool_warned=yes ;;
6337 esac
6338     OBJDUMP=$ac_ct_OBJDUMP
6339   fi
6340 else
6341   OBJDUMP="$ac_cv_prog_OBJDUMP"
6342 fi
6343
6344 test -z "$OBJDUMP" && OBJDUMP=objdump
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6355 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6356 if test "${lt_cv_deplibs_check_method+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   lt_cv_file_magic_cmd='$MAGIC_CMD'
6360 lt_cv_file_magic_test_file=
6361 lt_cv_deplibs_check_method='unknown'
6362 # Need to set the preceding variable on all platforms that support
6363 # interlibrary dependencies.
6364 # 'none' -- dependencies not supported.
6365 # `unknown' -- same as none, but documents that we really don't know.
6366 # 'pass_all' -- all dependencies passed with no checks.
6367 # 'test_compile' -- check by making test program.
6368 # 'file_magic [[regex]]' -- check by looking for files in library path
6369 # which responds to the $file_magic_cmd with a given extended regex.
6370 # If you have `file' or equivalent on your system and you're not sure
6371 # whether `pass_all' will *always* work, you probably want this one.
6372
6373 case $host_os in
6374 aix[4-9]*)
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 beos*)
6379   lt_cv_deplibs_check_method=pass_all
6380   ;;
6381
6382 bsdi[45]*)
6383   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6384   lt_cv_file_magic_cmd='/usr/bin/file -L'
6385   lt_cv_file_magic_test_file=/shlib/libc.so
6386   ;;
6387
6388 cygwin*)
6389   # func_win32_libid is a shell function defined in ltmain.sh
6390   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391   lt_cv_file_magic_cmd='func_win32_libid'
6392   ;;
6393
6394 mingw* | pw32*)
6395   # Base MSYS/MinGW do not provide the 'file' command needed by
6396   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6397   # unless we find 'file', for example because we are cross-compiling.
6398   if ( file / ) >/dev/null 2>&1; then
6399     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400     lt_cv_file_magic_cmd='func_win32_libid'
6401   else
6402     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6403     lt_cv_file_magic_cmd='$OBJDUMP -f'
6404   fi
6405   ;;
6406
6407 cegcc)
6408   # use the weaker test based on 'objdump'. See mingw*.
6409   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6410   lt_cv_file_magic_cmd='$OBJDUMP -f'
6411   ;;
6412
6413 darwin* | rhapsody*)
6414   lt_cv_deplibs_check_method=pass_all
6415   ;;
6416
6417 freebsd* | dragonfly*)
6418   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6419     case $host_cpu in
6420     i*86 )
6421       # Not sure whether the presence of OpenBSD here was a mistake.
6422       # Let's accept both of them until this is cleared up.
6423       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6424       lt_cv_file_magic_cmd=/usr/bin/file
6425       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6426       ;;
6427     esac
6428   else
6429     lt_cv_deplibs_check_method=pass_all
6430   fi
6431   ;;
6432
6433 gnu*)
6434   lt_cv_deplibs_check_method=pass_all
6435   ;;
6436
6437 hpux10.20* | hpux11*)
6438   lt_cv_file_magic_cmd=/usr/bin/file
6439   case $host_cpu in
6440   ia64*)
6441     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6442     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6443     ;;
6444   hppa*64*)
6445     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6446     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6447     ;;
6448   *)
6449     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6450     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6451     ;;
6452   esac
6453   ;;
6454
6455 interix[3-9]*)
6456   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6457   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6458   ;;
6459
6460 irix5* | irix6* | nonstopux*)
6461   case $LD in
6462   *-32|*"-32 ") libmagic=32-bit;;
6463   *-n32|*"-n32 ") libmagic=N32;;
6464   *-64|*"-64 ") libmagic=64-bit;;
6465   *) libmagic=never-match;;
6466   esac
6467   lt_cv_deplibs_check_method=pass_all
6468   ;;
6469
6470 # This must be Linux ELF.
6471 linux* | k*bsd*-gnu)
6472   lt_cv_deplibs_check_method=pass_all
6473   ;;
6474
6475 netbsd*)
6476   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6477     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478   else
6479     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6480   fi
6481   ;;
6482
6483 newos6*)
6484   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6485   lt_cv_file_magic_cmd=/usr/bin/file
6486   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6487   ;;
6488
6489 *nto* | *qnx*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492
6493 openbsd*)
6494   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6495     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6496   else
6497     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498   fi
6499   ;;
6500
6501 osf3* | osf4* | osf5*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 rdos*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 solaris*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 sysv4 | sysv4.3*)
6518   case $host_vendor in
6519   motorola)
6520     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6521     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6522     ;;
6523   ncr)
6524     lt_cv_deplibs_check_method=pass_all
6525     ;;
6526   sequent)
6527     lt_cv_file_magic_cmd='/bin/file'
6528     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6529     ;;
6530   sni)
6531     lt_cv_file_magic_cmd='/bin/file'
6532     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6533     lt_cv_file_magic_test_file=/lib/libc.so
6534     ;;
6535   siemens)
6536     lt_cv_deplibs_check_method=pass_all
6537     ;;
6538   pc)
6539     lt_cv_deplibs_check_method=pass_all
6540     ;;
6541   esac
6542   ;;
6543
6544 tpf*)
6545   lt_cv_deplibs_check_method=pass_all
6546   ;;
6547 esac
6548
6549 fi
6550 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6552 file_magic_cmd=$lt_cv_file_magic_cmd
6553 deplibs_check_method=$lt_cv_deplibs_check_method
6554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 if test -n "$ac_tool_prefix"; then
6568   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6569 set dummy ${ac_tool_prefix}ar; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_AR+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575   if test -n "$AR"; then
6576   ac_cv_prog_AR="$AR" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583   for ac_exec_ext in '' $ac_executable_extensions; do
6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585     ac_cv_prog_AR="${ac_tool_prefix}ar"
6586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 AR=$ac_cv_prog_AR
6596 if test -n "$AR"; then
6597   { echo "$as_me:$LINENO: result: $AR" >&5
6598 echo "${ECHO_T}$AR" >&6; }
6599 else
6600   { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6602 fi
6603
6604
6605 fi
6606 if test -z "$ac_cv_prog_AR"; then
6607   ac_ct_AR=$AR
6608   # Extract the first word of "ar", so it can be a program name with args.
6609 set dummy ar; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   if test -n "$ac_ct_AR"; then
6616   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623   for ac_exec_ext in '' $ac_executable_extensions; do
6624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625     ac_cv_prog_ac_ct_AR="ar"
6626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636 if test -n "$ac_ct_AR"; then
6637   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6638 echo "${ECHO_T}$ac_ct_AR" >&6; }
6639 else
6640   { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6643
6644   if test "x$ac_ct_AR" = x; then
6645     AR="false"
6646   else
6647     case $cross_compiling:$ac_tool_warned in
6648 yes:)
6649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet.  If you think this
6651 configuration is useful to you, please write to autoconf@gnu.org." >&5
6652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet.  If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657     AR=$ac_ct_AR
6658   fi
6659 else
6660   AR="$ac_cv_prog_AR"
6661 fi
6662
6663 test -z "$AR" && AR=ar
6664 test -z "$AR_FLAGS" && AR_FLAGS=cru
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676 if test -n "$ac_tool_prefix"; then
6677   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}strip; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_prog_STRIP+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   if test -n "$STRIP"; then
6685   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692   for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 STRIP=$ac_cv_prog_STRIP
6705 if test -n "$STRIP"; then
6706   { echo "$as_me:$LINENO: result: $STRIP" >&5
6707 echo "${ECHO_T}$STRIP" >&6; }
6708 else
6709   { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6711 fi
6712
6713
6714 fi
6715 if test -z "$ac_cv_prog_STRIP"; then
6716   ac_ct_STRIP=$STRIP
6717   # Extract the first word of "strip", so it can be a program name with args.
6718 set dummy strip; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6722   echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724   if test -n "$ac_ct_STRIP"; then
6725   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730   IFS=$as_save_IFS
6731   test -z "$as_dir" && as_dir=.
6732   for ac_exec_ext in '' $ac_executable_extensions; do
6733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734     ac_cv_prog_ac_ct_STRIP="strip"
6735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736     break 2
6737   fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6745 if test -n "$ac_ct_STRIP"; then
6746   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6747 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6748 else
6749   { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6751 fi
6752
6753   if test "x$ac_ct_STRIP" = x; then
6754     STRIP=":"
6755   else
6756     case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet.  If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&5
6761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet.  If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766     STRIP=$ac_ct_STRIP
6767   fi
6768 else
6769   STRIP="$ac_cv_prog_STRIP"
6770 fi
6771
6772 test -z "$STRIP" && STRIP=:
6773
6774
6775
6776
6777
6778
6779 if test -n "$ac_tool_prefix"; then
6780   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_prog_RANLIB+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   if test -n "$RANLIB"; then
6788   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795   for ac_exec_ext in '' $ac_executable_extensions; do
6796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 RANLIB=$ac_cv_prog_RANLIB
6808 if test -n "$RANLIB"; then
6809   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6810 echo "${ECHO_T}$RANLIB" >&6; }
6811 else
6812   { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_RANLIB"; then
6819   ac_ct_RANLIB=$RANLIB
6820   # Extract the first word of "ranlib", so it can be a program name with args.
6821 set dummy ranlib; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   if test -n "$ac_ct_RANLIB"; then
6828   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835   for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_prog_ac_ct_RANLIB="ranlib"
6838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6848 if test -n "$ac_ct_RANLIB"; then
6849   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6850 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6851 else
6852   { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6854 fi
6855
6856   if test "x$ac_ct_RANLIB" = x; then
6857     RANLIB=":"
6858   else
6859     case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet.  If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&5
6864 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet.  If you think this
6866 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869     RANLIB=$ac_ct_RANLIB
6870   fi
6871 else
6872   RANLIB="$ac_cv_prog_RANLIB"
6873 fi
6874
6875 test -z "$RANLIB" && RANLIB=:
6876
6877
6878
6879
6880
6881
6882 # Determine commands to create old-style static archives.
6883 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6884 old_postinstall_cmds='chmod 644 $oldlib'
6885 old_postuninstall_cmds=
6886
6887 if test -n "$RANLIB"; then
6888   case $host_os in
6889   openbsd*)
6890     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6891     ;;
6892   *)
6893     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6894     ;;
6895   esac
6896   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6897 fi
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 # If no C compiler was specified, use CC.
6933 LTCC=${LTCC-"$CC"}
6934
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
6938 # Allow CC to be a program name with arguments.
6939 compiler=$CC
6940
6941
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6944 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6945 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6946   echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6951
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6954
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957
6958 # Define system-specific variables.
6959 case $host_os in
6960 aix*)
6961   symcode='[BCDT]'
6962   ;;
6963 cygwin* | mingw* | pw32* | cegcc*)
6964   symcode='[ABCDGISTW]'
6965   ;;
6966 hpux*)
6967   if test "$host_cpu" = ia64; then
6968     symcode='[ABCDEGRST]'
6969   fi
6970   ;;
6971 irix* | nonstopux*)
6972   symcode='[BCDEGRST]'
6973   ;;
6974 osf*)
6975   symcode='[BCDEGQRST]'
6976   ;;
6977 solaris*)
6978   symcode='[BDRT]'
6979   ;;
6980 sco3.2v5*)
6981   symcode='[DT]'
6982   ;;
6983 sysv4.2uw2*)
6984   symcode='[DT]'
6985   ;;
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6987   symcode='[ABDT]'
6988   ;;
6989 sysv4)
6990   symcode='[DFNSTU]'
6991   ;;
6992 esac
6993
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997   symcode='[ABCDGIRSTW]' ;;
6998 esac
6999
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7008
7009 # Handle CRLF in mingw tool chain
7010 opt_cr=
7011 case $build_os in
7012 mingw*)
7013   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014   ;;
7015 esac
7016
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7019
7020   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021   symxfrm="\\1 $ac_symprfx\\2 \\2"
7022
7023   # Write the raw and C identifiers.
7024   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025     # Fake it for dumpbin and say T for any non-static function
7026     # and D for any global variable.
7027     # Also find C++ and __fastcall symbols from MSVC++,
7028     # which start with @ or ?.
7029     lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 "     {last_section=section; section=\$ 3};"\
7031 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 "     \$ 0!~/External *\|/{next};"\
7033 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 "     {if(hide[section]) next};"\
7035 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 "     ' prfx=^$ac_symprfx"
7040   else
7041     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7042   fi
7043
7044   # Check to see that the pipe works correctly.
7045   pipe_works=no
7046
7047   rm -f conftest*
7048   cat > conftest.$ac_ext <<_LT_EOF
7049 #ifdef __cplusplus
7050 extern "C" {
7051 #endif
7052 char nm_test_var;
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7055 #ifdef __cplusplus
7056 }
7057 #endif
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7059 _LT_EOF
7060
7061   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062   (eval $ac_compile) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; then
7066     # Now try to grab the symbols.
7067     nlist=conftest.nm
7068     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7069   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } && test -s "$nlist"; then
7073       # Try sorting and uniquifying the output.
7074       if sort "$nlist" | uniq > "$nlist"T; then
7075         mv -f "$nlist"T "$nlist"
7076       else
7077         rm -f "$nlist"T
7078       fi
7079
7080       # Make sure that we snagged all the symbols we need.
7081       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083           cat <<_LT_EOF > conftest.$ac_ext
7084 #ifdef __cplusplus
7085 extern "C" {
7086 #endif
7087
7088 _LT_EOF
7089           # Now generate the symbol file.
7090           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091
7092           cat <<_LT_EOF >> conftest.$ac_ext
7093
7094 /* The mapping between symbol names and symbols.  */
7095 const struct {
7096   const char *name;
7097   void       *address;
7098 }
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 {
7101   { "@PROGRAM@", (void *) 0 },
7102 _LT_EOF
7103           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104           cat <<\_LT_EOF >> conftest.$ac_ext
7105   {0, (void *) 0}
7106 };
7107
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111   return lt__PROGRAM__LTX_preloaded_symbols;
7112 }
7113 #endif
7114
7115 #ifdef __cplusplus
7116 }
7117 #endif
7118 _LT_EOF
7119           # Now try linking the two files.
7120           mv conftest.$ac_objext conftstm.$ac_objext
7121           lt_save_LIBS="$LIBS"
7122           lt_save_CFLAGS="$CFLAGS"
7123           LIBS="conftstm.$ac_objext"
7124           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126   (eval $ac_link) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7130             pipe_works=yes
7131           fi
7132           LIBS="$lt_save_LIBS"
7133           CFLAGS="$lt_save_CFLAGS"
7134         else
7135           echo "cannot find nm_test_func in $nlist" >&5
7136         fi
7137       else
7138         echo "cannot find nm_test_var in $nlist" >&5
7139       fi
7140     else
7141       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142     fi
7143   else
7144     echo "$progname: failed program was:" >&5
7145     cat conftest.$ac_ext >&5
7146   fi
7147   rm -rf conftest* conftst*
7148
7149   # Do not use the global_symbol_pipe unless it works.
7150   if test "$pipe_works" = yes; then
7151     break
7152   else
7153     lt_cv_sys_global_symbol_pipe=
7154   fi
7155 done
7156
7157 fi
7158
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160   lt_cv_sys_global_symbol_to_cdecl=
7161 fi
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163   { echo "$as_me:$LINENO: result: failed" >&5
7164 echo "${ECHO_T}failed" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: ok" >&5
7167 echo "${ECHO_T}ok" >&6; }
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then
7193   enableval=$enable_libtool_lock;
7194 fi
7195
7196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197
7198 # Some flags need to be propagated to the compiler or linker for good
7199 # libtool support.
7200 case $host in
7201 ia64-*-hpux*)
7202   # Find out which ABI we are using.
7203   echo 'int i;' > conftest.$ac_ext
7204   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205   (eval $ac_compile) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; then
7209     case `/usr/bin/file conftest.$ac_objext` in
7210       *ELF-32*)
7211         HPUX_IA64_MODE="32"
7212         ;;
7213       *ELF-64*)
7214         HPUX_IA64_MODE="64"
7215         ;;
7216     esac
7217   fi
7218   rm -rf conftest*
7219   ;;
7220 *-*-irix6*)
7221   # Find out which ABI we are using.
7222   echo '#line 7222 "configure"' > conftest.$ac_ext
7223   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224   (eval $ac_compile) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; then
7228     if test "$lt_cv_prog_gnu_ld" = yes; then
7229       case `/usr/bin/file conftest.$ac_objext` in
7230         *32-bit*)
7231           LD="${LD-ld} -melf32bsmip"
7232           ;;
7233         *N32*)
7234           LD="${LD-ld} -melf32bmipn32"
7235           ;;
7236         *64-bit*)
7237           LD="${LD-ld} -melf64bmip"
7238         ;;
7239       esac
7240     else
7241       case `/usr/bin/file conftest.$ac_objext` in
7242         *32-bit*)
7243           LD="${LD-ld} -32"
7244           ;;
7245         *N32*)
7246           LD="${LD-ld} -n32"
7247           ;;
7248         *64-bit*)
7249           LD="${LD-ld} -64"
7250           ;;
7251       esac
7252     fi
7253   fi
7254   rm -rf conftest*
7255   ;;
7256
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259   # Find out which ABI we are using.
7260   echo 'int i;' > conftest.$ac_ext
7261   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262   (eval $ac_compile) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; then
7266     case `/usr/bin/file conftest.o` in
7267       *32-bit*)
7268         case $host in
7269           x86_64-*kfreebsd*-gnu)
7270             LD="${LD-ld} -m elf_i386_fbsd"
7271             ;;
7272           x86_64-*linux*)
7273             LD="${LD-ld} -m elf_i386"
7274             ;;
7275           ppc64-*linux*|powerpc64-*linux*)
7276             LD="${LD-ld} -m elf32ppclinux"
7277             ;;
7278           s390x-*linux*)
7279             LD="${LD-ld} -m elf_s390"
7280             ;;
7281           sparc64-*linux*)
7282             LD="${LD-ld} -m elf32_sparc"
7283             ;;
7284         esac
7285         ;;
7286       *64-bit*)
7287         case $host in
7288           x86_64-*kfreebsd*-gnu)
7289             LD="${LD-ld} -m elf_x86_64_fbsd"
7290             ;;
7291           x86_64-*linux*)
7292             LD="${LD-ld} -m elf_x86_64"
7293             ;;
7294           ppc*-*linux*|powerpc*-*linux*)
7295             LD="${LD-ld} -m elf64ppc"
7296             ;;
7297           s390*-*linux*|s390*-*tpf*)
7298             LD="${LD-ld} -m elf64_s390"
7299             ;;
7300           sparc*-*linux*)
7301             LD="${LD-ld} -m elf64_sparc"
7302             ;;
7303         esac
7304         ;;
7305     esac
7306   fi
7307   rm -rf conftest*
7308   ;;
7309
7310 *-*-sco3.2v5*)
7311   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7312   SAVE_CFLAGS="$CFLAGS"
7313   CFLAGS="$CFLAGS -belf"
7314   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7316 if test "${lt_cv_cc_needs_belf+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325      cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h.  */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h.  */
7331
7332 int
7333 main ()
7334 {
7335
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7342 case "(($ac_try" in
7343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344   *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347   (eval "$ac_link") 2>conftest.er1
7348   ac_status=$?
7349   grep -v '^ *+' conftest.er1 >conftest.err
7350   rm -f conftest.er1
7351   cat conftest.err >&5
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } && {
7354          test -z "$ac_c_werror_flag" ||
7355          test ! -s conftest.err
7356        } && test -s conftest$ac_exeext &&
7357        $as_test_x conftest$ac_exeext; then
7358   lt_cv_cc_needs_belf=yes
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363         lt_cv_cc_needs_belf=no
7364 fi
7365
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367       conftest$ac_exeext conftest.$ac_ext
7368      ac_ext=c
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373
7374 fi
7375 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7376 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7377   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7378     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7379     CFLAGS="$SAVE_CFLAGS"
7380   fi
7381   ;;
7382 sparc*-*solaris*)
7383   # Find out which ABI we are using.
7384   echo 'int i;' > conftest.$ac_ext
7385   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7386   (eval $ac_compile) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; then
7390     case `/usr/bin/file conftest.o` in
7391     *64-bit*)
7392       case $lt_cv_prog_gnu_ld in
7393       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7394       *)
7395         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7396           LD="${LD-ld} -64"
7397         fi
7398         ;;
7399       esac
7400       ;;
7401     esac
7402   fi
7403   rm -rf conftest*
7404   ;;
7405 esac
7406
7407 need_locks="$enable_libtool_lock"
7408
7409
7410   case $host_os in
7411     rhapsody* | darwin*)
7412     if test -n "$ac_tool_prefix"; then
7413   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   if test -n "$DSYMUTIL"; then
7421   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7441 if test -n "$DSYMUTIL"; then
7442   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7443 echo "${ECHO_T}$DSYMUTIL" >&6; }
7444 else
7445   { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7447 fi
7448
7449
7450 fi
7451 if test -z "$ac_cv_prog_DSYMUTIL"; then
7452   ac_ct_DSYMUTIL=$DSYMUTIL
7453   # Extract the first word of "dsymutil", so it can be a program name with args.
7454 set dummy dsymutil; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   if test -n "$ac_ct_DSYMUTIL"; then
7461   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7481 if test -n "$ac_ct_DSYMUTIL"; then
7482   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7483 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489   if test "x$ac_ct_DSYMUTIL" = x; then
7490     DSYMUTIL=":"
7491   else
7492     case $cross_compiling:$ac_tool_warned in
7493 yes:)
7494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7495 whose name does not start with the host triplet.  If you think this
7496 configuration is useful to you, please write to autoconf@gnu.org." >&5
7497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet.  If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502     DSYMUTIL=$ac_ct_DSYMUTIL
7503   fi
7504 else
7505   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7506 fi
7507
7508     if test -n "$ac_tool_prefix"; then
7509   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   if test -n "$NMEDIT"; then
7517   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524   for ac_exec_ext in '' $ac_executable_extensions; do
7525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 NMEDIT=$ac_cv_prog_NMEDIT
7537 if test -n "$NMEDIT"; then
7538   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7539 echo "${ECHO_T}$NMEDIT" >&6; }
7540 else
7541   { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_NMEDIT"; then
7548   ac_ct_NMEDIT=$NMEDIT
7549   # Extract the first word of "nmedit", so it can be a program name with args.
7550 set dummy nmedit; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   if test -n "$ac_ct_NMEDIT"; then
7557   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7577 if test -n "$ac_ct_NMEDIT"; then
7578   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7579 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7580 else
7581   { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7583 fi
7584
7585   if test "x$ac_ct_NMEDIT" = x; then
7586     NMEDIT=":"
7587   else
7588     case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7591 whose name does not start with the host triplet.  If you think this
7592 configuration is useful to you, please write to autoconf@gnu.org." >&5
7593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet.  If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7596 ac_tool_warned=yes ;;
7597 esac
7598     NMEDIT=$ac_ct_NMEDIT
7599   fi
7600 else
7601   NMEDIT="$ac_cv_prog_NMEDIT"
7602 fi
7603
7604     if test -n "$ac_tool_prefix"; then
7605   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_prog_LIPO+set}" = set; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   if test -n "$LIPO"; then
7613   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618   IFS=$as_save_IFS
7619   test -z "$as_dir" && as_dir=.
7620   for ac_exec_ext in '' $ac_executable_extensions; do
7621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624     break 2
7625   fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630 fi
7631 fi
7632 LIPO=$ac_cv_prog_LIPO
7633 if test -n "$LIPO"; then
7634   { echo "$as_me:$LINENO: result: $LIPO" >&5
7635 echo "${ECHO_T}$LIPO" >&6; }
7636 else
7637   { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7639 fi
7640
7641
7642 fi
7643 if test -z "$ac_cv_prog_LIPO"; then
7644   ac_ct_LIPO=$LIPO
7645   # Extract the first word of "lipo", so it can be a program name with args.
7646 set dummy lipo; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   if test -n "$ac_ct_LIPO"; then
7653   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658   IFS=$as_save_IFS
7659   test -z "$as_dir" && as_dir=.
7660   for ac_exec_ext in '' $ac_executable_extensions; do
7661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662     ac_cv_prog_ac_ct_LIPO="lipo"
7663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664     break 2
7665   fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7673 if test -n "$ac_ct_LIPO"; then
7674   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7675 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7676 else
7677   { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7679 fi
7680
7681   if test "x$ac_ct_LIPO" = x; then
7682     LIPO=":"
7683   else
7684     case $cross_compiling:$ac_tool_warned in
7685 yes:)
7686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7687 whose name does not start with the host triplet.  If you think this
7688 configuration is useful to you, please write to autoconf@gnu.org." >&5
7689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7690 whose name does not start with the host triplet.  If you think this
7691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7692 ac_tool_warned=yes ;;
7693 esac
7694     LIPO=$ac_ct_LIPO
7695   fi
7696 else
7697   LIPO="$ac_cv_prog_LIPO"
7698 fi
7699
7700     if test -n "$ac_tool_prefix"; then
7701   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}otool; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_prog_OTOOL+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   if test -n "$OTOOL"; then
7709   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716   for ac_exec_ext in '' $ac_executable_extensions; do
7717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720     break 2
7721   fi
7722 done
7723 done
7724 IFS=$as_save_IFS
7725
7726 fi
7727 fi
7728 OTOOL=$ac_cv_prog_OTOOL
7729 if test -n "$OTOOL"; then
7730   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7731 echo "${ECHO_T}$OTOOL" >&6; }
7732 else
7733   { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7735 fi
7736
7737
7738 fi
7739 if test -z "$ac_cv_prog_OTOOL"; then
7740   ac_ct_OTOOL=$OTOOL
7741   # Extract the first word of "otool", so it can be a program name with args.
7742 set dummy otool; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   if test -n "$ac_ct_OTOOL"; then
7749   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754   IFS=$as_save_IFS
7755   test -z "$as_dir" && as_dir=.
7756   for ac_exec_ext in '' $ac_executable_extensions; do
7757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7758     ac_cv_prog_ac_ct_OTOOL="otool"
7759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760     break 2
7761   fi
7762 done
7763 done
7764 IFS=$as_save_IFS
7765
7766 fi
7767 fi
7768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7769 if test -n "$ac_ct_OTOOL"; then
7770   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7771 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7772 else
7773   { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7775 fi
7776
7777   if test "x$ac_ct_OTOOL" = x; then
7778     OTOOL=":"
7779   else
7780     case $cross_compiling:$ac_tool_warned in
7781 yes:)
7782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7783 whose name does not start with the host triplet.  If you think this
7784 configuration is useful to you, please write to autoconf@gnu.org." >&5
7785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7786 whose name does not start with the host triplet.  If you think this
7787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790     OTOOL=$ac_ct_OTOOL
7791   fi
7792 else
7793   OTOOL="$ac_cv_prog_OTOOL"
7794 fi
7795
7796     if test -n "$ac_tool_prefix"; then
7797   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   if test -n "$OTOOL64"; then
7805   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810   IFS=$as_save_IFS
7811   test -z "$as_dir" && as_dir=.
7812   for ac_exec_ext in '' $ac_executable_extensions; do
7813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816     break 2
7817   fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 OTOOL64=$ac_cv_prog_OTOOL64
7825 if test -n "$OTOOL64"; then
7826   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7827 echo "${ECHO_T}$OTOOL64" >&6; }
7828 else
7829   { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7831 fi
7832
7833
7834 fi
7835 if test -z "$ac_cv_prog_OTOOL64"; then
7836   ac_ct_OTOOL64=$OTOOL64
7837   # Extract the first word of "otool64", so it can be a program name with args.
7838 set dummy otool64; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   if test -n "$ac_ct_OTOOL64"; then
7845   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852   for ac_exec_ext in '' $ac_executable_extensions; do
7853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854     ac_cv_prog_ac_ct_OTOOL64="otool64"
7855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859 done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7865 if test -n "$ac_ct_OTOOL64"; then
7866   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7867 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7868 else
7869   { echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6; }
7871 fi
7872
7873   if test "x$ac_ct_OTOOL64" = x; then
7874     OTOOL64=":"
7875   else
7876     case $cross_compiling:$ac_tool_warned in
7877 yes:)
7878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7879 whose name does not start with the host triplet.  If you think this
7880 configuration is useful to you, please write to autoconf@gnu.org." >&5
7881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7882 whose name does not start with the host triplet.  If you think this
7883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7884 ac_tool_warned=yes ;;
7885 esac
7886     OTOOL64=$ac_ct_OTOOL64
7887   fi
7888 else
7889   OTOOL64="$ac_cv_prog_OTOOL64"
7890 fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7919 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7920 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923   lt_cv_apple_cc_single_mod=no
7924       if test -z "${LT_MULTI_MODULE}"; then
7925         # By default we will add the -single_module flag. You can override
7926         # by either setting the environment variable LT_MULTI_MODULE
7927         # non-empty at configure time, or by adding -multi_module to the
7928         # link flags.
7929         rm -rf libconftest.dylib*
7930         echo "int foo(void){return 1;}" > conftest.c
7931         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7932 -dynamiclib -Wl,-single_module conftest.c" >&5
7933         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7935         _lt_result=$?
7936         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7937           lt_cv_apple_cc_single_mod=yes
7938         else
7939           cat conftest.err >&5
7940         fi
7941         rm -rf libconftest.dylib*
7942         rm -f conftest.*
7943       fi
7944 fi
7945 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7946 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7947     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7948 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7949 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   lt_cv_ld_exported_symbols_list=no
7953       save_LDFLAGS=$LDFLAGS
7954       echo "_main" > conftest.sym
7955       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7956       cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962
7963 int
7964 main ()
7965 {
7966
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7973 case "(($ac_try" in
7974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975   *) ac_try_echo=$ac_try;;
7976 esac
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978   (eval "$ac_link") 2>conftest.er1
7979   ac_status=$?
7980   grep -v '^ *+' conftest.er1 >conftest.err
7981   rm -f conftest.er1
7982   cat conftest.err >&5
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); } && {
7985          test -z "$ac_c_werror_flag" ||
7986          test ! -s conftest.err
7987        } && test -s conftest$ac_exeext &&
7988        $as_test_x conftest$ac_exeext; then
7989   lt_cv_ld_exported_symbols_list=yes
7990 else
7991   echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994         lt_cv_ld_exported_symbols_list=no
7995 fi
7996
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998       conftest$ac_exeext conftest.$ac_ext
7999         LDFLAGS="$save_LDFLAGS"
8000
8001 fi
8002 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8003 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8004     case $host_os in
8005     rhapsody* | darwin1.[012])
8006       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8007     darwin1.*)
8008       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009     darwin*) # darwin 5.x on
8010       # if running on 10.5 or later, the deployment target defaults
8011       # to the OS version, if on x86, and 10.4, the deployment
8012       # target defaults to 10.4. Don't you love it?
8013       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8014         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8015           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016         10.[012]*)
8017           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8018         10.*)
8019           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8020       esac
8021     ;;
8022   esac
8023     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8024       _lt_dar_single_mod='$single_module'
8025     fi
8026     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8027       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8028     else
8029       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8030     fi
8031     if test "$DSYMUTIL" != ":"; then
8032       _lt_dsymutil='~$DSYMUTIL $lib || :'
8033     else
8034       _lt_dsymutil=
8035     fi
8036     ;;
8037   esac
8038
8039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8041 if test "${ac_cv_header_stdc+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050 #include <stdlib.h>
8051 #include <stdarg.h>
8052 #include <string.h>
8053 #include <float.h>
8054
8055 int
8056 main ()
8057 {
8058
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8065 case "(($ac_try" in
8066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067   *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070   (eval "$ac_compile") 2>conftest.er1
8071   ac_status=$?
8072   grep -v '^ *+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } && {
8077          test -z "$ac_c_werror_flag" ||
8078          test ! -s conftest.err
8079        } && test -s conftest.$ac_objext; then
8080   ac_cv_header_stdc=yes
8081 else
8082   echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085         ac_cv_header_stdc=no
8086 fi
8087
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089
8090 if test $ac_cv_header_stdc = yes; then
8091   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8092   cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098 #include <string.h>
8099
8100 _ACEOF
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102   $EGREP "memchr" >/dev/null 2>&1; then
8103   :
8104 else
8105   ac_cv_header_stdc=no
8106 fi
8107 rm -f conftest*
8108
8109 fi
8110
8111 if test $ac_cv_header_stdc = yes; then
8112   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113   cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119 #include <stdlib.h>
8120
8121 _ACEOF
8122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8123   $EGREP "free" >/dev/null 2>&1; then
8124   :
8125 else
8126   ac_cv_header_stdc=no
8127 fi
8128 rm -f conftest*
8129
8130 fi
8131
8132 if test $ac_cv_header_stdc = yes; then
8133   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8134   if test "$cross_compiling" = yes; then
8135   :
8136 else
8137   cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h.  */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h.  */
8143 #include <ctype.h>
8144 #include <stdlib.h>
8145 #if ((' ' & 0x0FF) == 0x020)
8146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8148 #else
8149 # define ISLOWER(c) \
8150                    (('a' <= (c) && (c) <= 'i') \
8151                      || ('j' <= (c) && (c) <= 'r') \
8152                      || ('s' <= (c) && (c) <= 'z'))
8153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8154 #endif
8155
8156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157 int
8158 main ()
8159 {
8160   int i;
8161   for (i = 0; i < 256; i++)
8162     if (XOR (islower (i), ISLOWER (i))
8163         || toupper (i) != TOUPPER (i))
8164       return 2;
8165   return 0;
8166 }
8167 _ACEOF
8168 rm -f conftest$ac_exeext
8169 if { (ac_try="$ac_link"
8170 case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_link") 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8179   { (case "(($ac_try" in
8180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181   *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184   (eval "$ac_try") 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; }; then
8188   :
8189 else
8190   echo "$as_me: program exited with status $ac_status" >&5
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ( exit $ac_status )
8195 ac_cv_header_stdc=no
8196 fi
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8198 fi
8199
8200
8201 fi
8202 fi
8203 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8204 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8206
8207 cat >>confdefs.h <<\_ACEOF
8208 #define STDC_HEADERS 1
8209 _ACEOF
8210
8211 fi
8212
8213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8224                   inttypes.h stdint.h unistd.h
8225 do
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238 $ac_includes_default
8239
8240 #include <$ac_header>
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8244 case "(($ac_try" in
8245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246   *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249   (eval "$ac_compile") 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } && {
8256          test -z "$ac_c_werror_flag" ||
8257          test ! -s conftest.err
8258        } && test -s conftest.$ac_objext; then
8259   eval "$as_ac_Header=yes"
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264         eval "$as_ac_Header=no"
8265 fi
8266
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270                { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273   cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 _ACEOF
8276
8277 fi
8278
8279 done
8280
8281
8282
8283 for ac_header in dlfcn.h
8284 do
8285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8289   echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291   cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h.  */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h.  */
8297 $ac_includes_default
8298
8299 #include <$ac_header>
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8303 case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_compile") 2>conftest.er1
8309   ac_status=$?
8310   grep -v '^ *+' conftest.er1 >conftest.err
8311   rm -f conftest.er1
8312   cat conftest.err >&5
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } && {
8315          test -z "$ac_c_werror_flag" ||
8316          test ! -s conftest.err
8317        } && test -s conftest.$ac_objext; then
8318   eval "$as_ac_Header=yes"
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323         eval "$as_ac_Header=no"
8324 fi
8325
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329                { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332   cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8334 _ACEOF
8335
8336 fi
8337
8338 done
8339
8340
8341
8342 ac_ext=cpp
8343 ac_cpp='$CXXCPP $CPPFLAGS'
8344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8347 if test -z "$CXX"; then
8348   if test -n "$CCC"; then
8349     CXX=$CCC
8350   else
8351     if test -n "$ac_tool_prefix"; then
8352   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8353   do
8354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_CXX+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   if test -n "$CXX"; then
8362   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369   for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 CXX=$ac_cv_prog_CXX
8382 if test -n "$CXX"; then
8383   { echo "$as_me:$LINENO: result: $CXX" >&5
8384 echo "${ECHO_T}$CXX" >&6; }
8385 else
8386   { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8388 fi
8389
8390
8391     test -n "$CXX" && break
8392   done
8393 fi
8394 if test -z "$CXX"; then
8395   ac_ct_CXX=$CXX
8396   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8397 do
8398   # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   if test -n "$ac_ct_CXX"; then
8406   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411   IFS=$as_save_IFS
8412   test -z "$as_dir" && as_dir=.
8413   for ac_exec_ext in '' $ac_executable_extensions; do
8414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415     ac_cv_prog_ac_ct_CXX="$ac_prog"
8416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8417     break 2
8418   fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8422
8423 fi
8424 fi
8425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8426 if test -n "$ac_ct_CXX"; then
8427   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8428 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8429 else
8430   { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8432 fi
8433
8434
8435   test -n "$ac_ct_CXX" && break
8436 done
8437
8438   if test "x$ac_ct_CXX" = x; then
8439     CXX="g++"
8440   else
8441     case $cross_compiling:$ac_tool_warned in
8442 yes:)
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet.  If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet.  If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8450 esac
8451     CXX=$ac_ct_CXX
8452   fi
8453 fi
8454
8455   fi
8456 fi
8457 # Provide some information about the compiler.
8458 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8459 ac_compiler=`set X $ac_compile; echo $2`
8460 { (ac_try="$ac_compiler --version >&5"
8461 case "(($ac_try" in
8462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463   *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466   (eval "$ac_compiler --version >&5") 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }
8470 { (ac_try="$ac_compiler -v >&5"
8471 case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476   (eval "$ac_compiler -v >&5") 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }
8480 { (ac_try="$ac_compiler -V >&5"
8481 case "(($ac_try" in
8482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483   *) ac_try_echo=$ac_try;;
8484 esac
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486   (eval "$ac_compiler -V >&5") 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }
8490
8491 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8492 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8493 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502
8503 int
8504 main ()
8505 {
8506 #ifndef __GNUC__
8507        choke me
8508 #endif
8509
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8516 case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521   (eval "$ac_compile") 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } && {
8528          test -z "$ac_cxx_werror_flag" ||
8529          test ! -s conftest.err
8530        } && test -s conftest.$ac_objext; then
8531   ac_compiler_gnu=yes
8532 else
8533   echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536         ac_compiler_gnu=no
8537 fi
8538
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8541
8542 fi
8543 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8544 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8545 GXX=`test $ac_compiler_gnu = yes && echo yes`
8546 ac_test_CXXFLAGS=${CXXFLAGS+set}
8547 ac_save_CXXFLAGS=$CXXFLAGS
8548 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8549 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8550 if test "${ac_cv_prog_cxx_g+set}" = set; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8554    ac_cxx_werror_flag=yes
8555    ac_cv_prog_cxx_g=no
8556    CXXFLAGS="-g"
8557    cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563
8564 int
8565 main ()
8566 {
8567
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8574 case "(($ac_try" in
8575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576   *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579   (eval "$ac_compile") 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } && {
8586          test -z "$ac_cxx_werror_flag" ||
8587          test ! -s conftest.err
8588        } && test -s conftest.$ac_objext; then
8589   ac_cv_prog_cxx_g=yes
8590 else
8591   echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594         CXXFLAGS=""
8595       cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601
8602 int
8603 main ()
8604 {
8605
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_compile") 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } && {
8624          test -z "$ac_cxx_werror_flag" ||
8625          test ! -s conftest.err
8626        } && test -s conftest.$ac_objext; then
8627   :
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8633          CXXFLAGS="-g"
8634          cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640
8641 int
8642 main ()
8643 {
8644
8645   ;
8646   return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8651 case "(($ac_try" in
8652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653   *) ac_try_echo=$ac_try;;
8654 esac
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656   (eval "$ac_compile") 2>conftest.er1
8657   ac_status=$?
8658   grep -v '^ *+' conftest.er1 >conftest.err
8659   rm -f conftest.er1
8660   cat conftest.err >&5
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } && {
8663          test -z "$ac_cxx_werror_flag" ||
8664          test ! -s conftest.err
8665        } && test -s conftest.$ac_objext; then
8666   ac_cv_prog_cxx_g=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671
8672 fi
8673
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8682 fi
8683 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8684 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8685 if test "$ac_test_CXXFLAGS" = set; then
8686   CXXFLAGS=$ac_save_CXXFLAGS
8687 elif test $ac_cv_prog_cxx_g = yes; then
8688   if test "$GXX" = yes; then
8689     CXXFLAGS="-g -O2"
8690   else
8691     CXXFLAGS="-g"
8692   fi
8693 else
8694   if test "$GXX" = yes; then
8695     CXXFLAGS="-O2"
8696   else
8697     CXXFLAGS=
8698   fi
8699 fi
8700 ac_ext=c
8701 ac_cpp='$CPP $CPPFLAGS'
8702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705
8706 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8707     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8708     (test "X$CXX" != "Xg++"))) ; then
8709   ac_ext=cpp
8710 ac_cpp='$CXXCPP $CPPFLAGS'
8711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8714 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8715 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8716 if test -z "$CXXCPP"; then
8717   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720       # Double quotes because CXXCPP needs to be expanded
8721     for CXXCPP in "$CXX -E" "/lib/cpp"
8722     do
8723       ac_preproc_ok=false
8724 for ac_cxx_preproc_warn_flag in '' yes
8725 do
8726   # Use a header file that comes with gcc, so configuring glibc
8727   # with a fresh cross-compiler works.
8728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729   # <limits.h> exists even on freestanding compilers.
8730   # On the NeXT, cc -E runs the code through the compiler's parser,
8731   # not just through cpp. "Syntax error" is here to catch this case.
8732   cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h.  */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h.  */
8738 #ifdef __STDC__
8739 # include <limits.h>
8740 #else
8741 # include <assert.h>
8742 #endif
8743                      Syntax error
8744 _ACEOF
8745 if { (ac_try="$ac_cpp conftest.$ac_ext"
8746 case "(($ac_try" in
8747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748   *) ac_try_echo=$ac_try;;
8749 esac
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } >/dev/null && {
8758          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8759          test ! -s conftest.err
8760        }; then
8761   :
8762 else
8763   echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766   # Broken: fails on valid input.
8767 continue
8768 fi
8769
8770 rm -f conftest.err conftest.$ac_ext
8771
8772   # OK, works on sane cases.  Now check whether nonexistent headers
8773   # can be detected and how.
8774   cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h.  */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h.  */
8780 #include <ac_nonexistent.h>
8781 _ACEOF
8782 if { (ac_try="$ac_cpp conftest.$ac_ext"
8783 case "(($ac_try" in
8784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785   *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8789   ac_status=$?
8790   grep -v '^ *+' conftest.er1 >conftest.err
8791   rm -f conftest.er1
8792   cat conftest.err >&5
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } >/dev/null && {
8795          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8796          test ! -s conftest.err
8797        }; then
8798   # Broken: success on invalid input.
8799 continue
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804   # Passes both tests.
8805 ac_preproc_ok=:
8806 break
8807 fi
8808
8809 rm -f conftest.err conftest.$ac_ext
8810
8811 done
8812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8813 rm -f conftest.err conftest.$ac_ext
8814 if $ac_preproc_ok; then
8815   break
8816 fi
8817
8818     done
8819     ac_cv_prog_CXXCPP=$CXXCPP
8820
8821 fi
8822   CXXCPP=$ac_cv_prog_CXXCPP
8823 else
8824   ac_cv_prog_CXXCPP=$CXXCPP
8825 fi
8826 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8827 echo "${ECHO_T}$CXXCPP" >&6; }
8828 ac_preproc_ok=false
8829 for ac_cxx_preproc_warn_flag in '' yes
8830 do
8831   # Use a header file that comes with gcc, so configuring glibc
8832   # with a fresh cross-compiler works.
8833   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8834   # <limits.h> exists even on freestanding compilers.
8835   # On the NeXT, cc -E runs the code through the compiler's parser,
8836   # not just through cpp. "Syntax error" is here to catch this case.
8837   cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843 #ifdef __STDC__
8844 # include <limits.h>
8845 #else
8846 # include <assert.h>
8847 #endif
8848                      Syntax error
8849 _ACEOF
8850 if { (ac_try="$ac_cpp conftest.$ac_ext"
8851 case "(($ac_try" in
8852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853   *) ac_try_echo=$ac_try;;
8854 esac
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8857   ac_status=$?
8858   grep -v '^ *+' conftest.er1 >conftest.err
8859   rm -f conftest.er1
8860   cat conftest.err >&5
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } >/dev/null && {
8863          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8864          test ! -s conftest.err
8865        }; then
8866   :
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871   # Broken: fails on valid input.
8872 continue
8873 fi
8874
8875 rm -f conftest.err conftest.$ac_ext
8876
8877   # OK, works on sane cases.  Now check whether nonexistent headers
8878   # can be detected and how.
8879   cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885 #include <ac_nonexistent.h>
8886 _ACEOF
8887 if { (ac_try="$ac_cpp conftest.$ac_ext"
8888 case "(($ac_try" in
8889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890   *) ac_try_echo=$ac_try;;
8891 esac
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8894   ac_status=$?
8895   grep -v '^ *+' conftest.er1 >conftest.err
8896   rm -f conftest.er1
8897   cat conftest.err >&5
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } >/dev/null && {
8900          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8901          test ! -s conftest.err
8902        }; then
8903   # Broken: success on invalid input.
8904 continue
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909   # Passes both tests.
8910 ac_preproc_ok=:
8911 break
8912 fi
8913
8914 rm -f conftest.err conftest.$ac_ext
8915
8916 done
8917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8918 rm -f conftest.err conftest.$ac_ext
8919 if $ac_preproc_ok; then
8920   :
8921 else
8922   _lt_caught_CXX_error=yes
8923 fi
8924
8925 ac_ext=c
8926 ac_cpp='$CPP $CPPFLAGS'
8927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8930
8931 else
8932   _lt_caught_CXX_error=yes
8933 fi
8934
8935
8936
8937
8938
8939 # Set options
8940 # Check whether --enable-shared was given.
8941 if test "${enable_shared+set}" = set; then
8942   enableval=$enable_shared; p=${PACKAGE-default}
8943     case $enableval in
8944     yes) enable_shared=yes ;;
8945     no) enable_shared=no ;;
8946     *)
8947       enable_shared=no
8948       # Look at the argument we got.  We use all the common list separators.
8949       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8950       for pkg in $enableval; do
8951         IFS="$lt_save_ifs"
8952         if test "X$pkg" = "X$p"; then
8953           enable_shared=yes
8954         fi
8955       done
8956       IFS="$lt_save_ifs"
8957       ;;
8958     esac
8959 else
8960   enable_shared=yes
8961 fi
8962
8963
8964
8965
8966
8967
8968
8969 # Check whether --enable-static was given.
8970 if test "${enable_static+set}" = set; then
8971   enableval=$enable_static; p=${PACKAGE-default}
8972     case $enableval in
8973     yes) enable_static=yes ;;
8974     no) enable_static=no ;;
8975     *)
8976      enable_static=no
8977       # Look at the argument we got.  We use all the common list separators.
8978       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8979       for pkg in $enableval; do
8980         IFS="$lt_save_ifs"
8981         if test "X$pkg" = "X$p"; then
8982           enable_static=yes
8983         fi
8984       done
8985       IFS="$lt_save_ifs"
8986       ;;
8987     esac
8988 else
8989   enable_static=no
8990 fi
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001         enable_dlopen=no
9002
9003
9004   enable_win32_dll=no
9005
9006
9007
9008
9009
9010 # Check whether --with-pic was given.
9011 if test "${with_pic+set}" = set; then
9012   withval=$with_pic; pic_mode="$withval"
9013 else
9014   pic_mode=default
9015 fi
9016
9017
9018 test -z "$pic_mode" && pic_mode=default
9019
9020
9021
9022
9023
9024
9025
9026   # Check whether --enable-fast-install was given.
9027 if test "${enable_fast_install+set}" = set; then
9028   enableval=$enable_fast_install; p=${PACKAGE-default}
9029     case $enableval in
9030     yes) enable_fast_install=yes ;;
9031     no) enable_fast_install=no ;;
9032     *)
9033       enable_fast_install=no
9034       # Look at the argument we got.  We use all the common list separators.
9035       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9036       for pkg in $enableval; do
9037         IFS="$lt_save_ifs"
9038         if test "X$pkg" = "X$p"; then
9039           enable_fast_install=yes
9040         fi
9041       done
9042       IFS="$lt_save_ifs"
9043       ;;
9044     esac
9045 else
9046   enable_fast_install=yes
9047 fi
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059 # This can be used to rebuild libtool when needed
9060 LIBTOOL_DEPS="$ltmain"
9061
9062 # Always use our own libtool.
9063 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 test -z "$LN_S" && LN_S="ln -s"
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104 if test -n "${ZSH_VERSION+set}" ; then
9105    setopt NO_GLOB_SUBST
9106 fi
9107
9108 { echo "$as_me:$LINENO: checking for objdir" >&5
9109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9110 if test "${lt_cv_objdir+set}" = set; then
9111   echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113   rm -f .libs 2>/dev/null
9114 mkdir .libs 2>/dev/null
9115 if test -d .libs; then
9116   lt_cv_objdir=.libs
9117 else
9118   # MS-DOS does not allow filenames that begin with a dot.
9119   lt_cv_objdir=_libs
9120 fi
9121 rmdir .libs 2>/dev/null
9122 fi
9123 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9124 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9125 objdir=$lt_cv_objdir
9126
9127
9128
9129
9130
9131 cat >>confdefs.h <<_ACEOF
9132 #define LT_OBJDIR "$lt_cv_objdir/"
9133 _ACEOF
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151 case $host_os in
9152 aix3*)
9153   # AIX sometimes has problems with the GCC collect2 program.  For some
9154   # reason, if we set the COLLECT_NAMES environment variable, the problems
9155   # vanish in a puff of smoke.
9156   if test "X${COLLECT_NAMES+set}" != Xset; then
9157     COLLECT_NAMES=
9158     export COLLECT_NAMES
9159   fi
9160   ;;
9161 esac
9162
9163 # Sed substitution that helps us do robust quoting.  It backslashifies
9164 # metacharacters that are still active within double-quoted strings.
9165 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9166
9167 # Same as above, but do not quote variable references.
9168 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9169
9170 # Sed substitution to delay expansion of an escaped shell variable in a
9171 # double_quote_subst'ed string.
9172 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9173
9174 # Sed substitution to delay expansion of an escaped single quote.
9175 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9176
9177 # Sed substitution to avoid accidental globbing in evaled expressions
9178 no_glob_subst='s/\*/\\\*/g'
9179
9180 # Global variables:
9181 ofile=libtool
9182 can_build_shared=yes
9183
9184 # All known linkers require a `.a' archive for static linking (except MSVC,
9185 # which needs '.lib').
9186 libext=a
9187
9188 with_gnu_ld="$lt_cv_prog_gnu_ld"
9189
9190 old_CC="$CC"
9191 old_CFLAGS="$CFLAGS"
9192
9193 # Set sane defaults for various variables
9194 test -z "$CC" && CC=cc
9195 test -z "$LTCC" && LTCC=$CC
9196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9197 test -z "$LD" && LD=ld
9198 test -z "$ac_objext" && ac_objext=o
9199
9200 for cc_temp in $compiler""; do
9201   case $cc_temp in
9202     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9203     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9204     \-*) ;;
9205     *) break;;
9206   esac
9207 done
9208 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9209
9210
9211 # Only perform the check for file, if the check method requires it
9212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9213 case $deplibs_check_method in
9214 file_magic*)
9215   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9216     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9217 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9218 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221   case $MAGIC_CMD in
9222 [\\/*] |  ?:[\\/]*)
9223   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9224   ;;
9225 *)
9226   lt_save_MAGIC_CMD="$MAGIC_CMD"
9227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9228   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9229   for ac_dir in $ac_dummy; do
9230     IFS="$lt_save_ifs"
9231     test -z "$ac_dir" && ac_dir=.
9232     if test -f $ac_dir/${ac_tool_prefix}file; then
9233       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9234       if test -n "$file_magic_test_file"; then
9235         case $deplibs_check_method in
9236         "file_magic "*)
9237           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9238           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9240             $EGREP "$file_magic_regex" > /dev/null; then
9241             :
9242           else
9243             cat <<_LT_EOF 1>&2
9244
9245 *** Warning: the command libtool uses to detect shared libraries,
9246 *** $file_magic_cmd, produces output that libtool cannot recognize.
9247 *** The result is that libtool may fail to recognize shared libraries
9248 *** as such.  This will affect the creation of libtool libraries that
9249 *** depend on shared libraries, but programs linked with such libtool
9250 *** libraries will work regardless of this problem.  Nevertheless, you
9251 *** may want to report the problem to your system manager and/or to
9252 *** bug-libtool@gnu.org
9253
9254 _LT_EOF
9255           fi ;;
9256         esac
9257       fi
9258       break
9259     fi
9260   done
9261   IFS="$lt_save_ifs"
9262   MAGIC_CMD="$lt_save_MAGIC_CMD"
9263   ;;
9264 esac
9265 fi
9266
9267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268 if test -n "$MAGIC_CMD"; then
9269   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9270 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9271 else
9272   { echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6; }
9274 fi
9275
9276
9277
9278
9279
9280 if test -z "$lt_cv_path_MAGIC_CMD"; then
9281   if test -n "$ac_tool_prefix"; then
9282     { echo "$as_me:$LINENO: checking for file" >&5
9283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287   case $MAGIC_CMD in
9288 [\\/*] |  ?:[\\/]*)
9289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9290   ;;
9291 *)
9292   lt_save_MAGIC_CMD="$MAGIC_CMD"
9293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9295   for ac_dir in $ac_dummy; do
9296     IFS="$lt_save_ifs"
9297     test -z "$ac_dir" && ac_dir=.
9298     if test -f $ac_dir/file; then
9299       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9300       if test -n "$file_magic_test_file"; then
9301         case $deplibs_check_method in
9302         "file_magic "*)
9303           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9306             $EGREP "$file_magic_regex" > /dev/null; then
9307             :
9308           else
9309             cat <<_LT_EOF 1>&2
9310
9311 *** Warning: the command libtool uses to detect shared libraries,
9312 *** $file_magic_cmd, produces output that libtool cannot recognize.
9313 *** The result is that libtool may fail to recognize shared libraries
9314 *** as such.  This will affect the creation of libtool libraries that
9315 *** depend on shared libraries, but programs linked with such libtool
9316 *** libraries will work regardless of this problem.  Nevertheless, you
9317 *** may want to report the problem to your system manager and/or to
9318 *** bug-libtool@gnu.org
9319
9320 _LT_EOF
9321           fi ;;
9322         esac
9323       fi
9324       break
9325     fi
9326   done
9327   IFS="$lt_save_ifs"
9328   MAGIC_CMD="$lt_save_MAGIC_CMD"
9329   ;;
9330 esac
9331 fi
9332
9333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334 if test -n "$MAGIC_CMD"; then
9335   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9337 else
9338   { echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6; }
9340 fi
9341
9342
9343   else
9344     MAGIC_CMD=:
9345   fi
9346 fi
9347
9348   fi
9349   ;;
9350 esac
9351
9352 # Use C for the default configuration in the libtool script
9353
9354 lt_save_CC="$CC"
9355 ac_ext=c
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9360
9361
9362 # Source file extension for C test sources.
9363 ac_ext=c
9364
9365 # Object file extension for compiled C test sources.
9366 objext=o
9367 objext=$objext
9368
9369 # Code to be used in simple compile tests
9370 lt_simple_compile_test_code="int some_variable = 0;"
9371
9372 # Code to be used in simple link tests
9373 lt_simple_link_test_code='int main(){return(0);}'
9374
9375
9376
9377
9378
9379
9380
9381 # If no C compiler was specified, use CC.
9382 LTCC=${LTCC-"$CC"}
9383
9384 # If no C compiler flags were specified, use CFLAGS.
9385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9386
9387 # Allow CC to be a program name with arguments.
9388 compiler=$CC
9389
9390 # Save the default compiler, since it gets overwritten when the other
9391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9392 compiler_DEFAULT=$CC
9393
9394 # save warnings/boilerplate of simple test code
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_compiler_boilerplate=`cat conftest.err`
9399 $RM conftest*
9400
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_linker_boilerplate=`cat conftest.err`
9405 $RM -r conftest*
9406
9407
9408 ## CAVEAT EMPTOR:
9409 ## There is no encapsulation within the following macros, do not change
9410 ## the running order or otherwise move them around unless you know exactly
9411 ## what you are doing...
9412 if test -n "$compiler"; then
9413
9414 lt_prog_compiler_no_builtin_flag=
9415
9416 if test "$GCC" = yes; then
9417   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9418
9419   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9420 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9421 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   lt_cv_prog_compiler_rtti_exceptions=no
9425    ac_outfile=conftest.$ac_objext
9426    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9427    lt_compiler_flag="-fno-rtti -fno-exceptions"
9428    # Insert the option either (1) after the last *FLAGS variable, or
9429    # (2) before a word containing "conftest.", or (3) at the end.
9430    # Note that $ac_compile itself does not contain backslashes and begins
9431    # with a dollar sign (not a hyphen), so the echo should work correctly.
9432    # The option is referenced via a variable to avoid confusing sed.
9433    lt_compile=`echo "$ac_compile" | $SED \
9434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9436    -e 's:$: $lt_compiler_flag:'`
9437    (eval echo "\"\$as_me:9437: $lt_compile\"" >&5)
9438    (eval "$lt_compile" 2>conftest.err)
9439    ac_status=$?
9440    cat conftest.err >&5
9441    echo "$as_me:9441: \$? = $ac_status" >&5
9442    if (exit $ac_status) && test -s "$ac_outfile"; then
9443      # The compiler can only warn and ignore the option if not recognized
9444      # So say no if there are warnings other than the usual output.
9445      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9446      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9447      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9448        lt_cv_prog_compiler_rtti_exceptions=yes
9449      fi
9450    fi
9451    $RM conftest*
9452
9453 fi
9454 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9455 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9456
9457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9458     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9459 else
9460     :
9461 fi
9462
9463 fi
9464
9465
9466
9467
9468
9469
9470   lt_prog_compiler_wl=
9471 lt_prog_compiler_pic=
9472 lt_prog_compiler_static=
9473
9474 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9476
9477   if test "$GCC" = yes; then
9478     lt_prog_compiler_wl='-Wl,'
9479     lt_prog_compiler_static='-static'
9480
9481     case $host_os in
9482       aix*)
9483       # All AIX code is PIC.
9484       if test "$host_cpu" = ia64; then
9485         # AIX 5 now supports IA64 processor
9486         lt_prog_compiler_static='-Bstatic'
9487       fi
9488       ;;
9489
9490     amigaos*)
9491       case $host_cpu in
9492       powerpc)
9493             # see comment about AmigaOS4 .so support
9494             lt_prog_compiler_pic='-fPIC'
9495         ;;
9496       m68k)
9497             # FIXME: we need at least 68020 code to build shared libraries, but
9498             # adding the `-m68020' flag to GCC prevents building anything better,
9499             # like `-m68040'.
9500             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9501         ;;
9502       esac
9503       ;;
9504
9505     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9506       # PIC is the default for these OSes.
9507       ;;
9508
9509     mingw* | cygwin* | pw32* | os2* | cegcc*)
9510       # This hack is so that the source file can tell whether it is being
9511       # built for inclusion in a dll (and should export symbols for example).
9512       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9513       # (--disable-auto-import) libraries
9514       lt_prog_compiler_pic='-DDLL_EXPORT'
9515       ;;
9516
9517     darwin* | rhapsody*)
9518       # PIC is the default on this platform
9519       # Common symbols not allowed in MH_DYLIB files
9520       lt_prog_compiler_pic='-fno-common'
9521       ;;
9522
9523     hpux*)
9524       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9525       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9526       # sets the default TLS model and affects inlining.
9527       case $host_cpu in
9528       hppa*64*)
9529         # +Z the default
9530         ;;
9531       *)
9532         lt_prog_compiler_pic='-fPIC'
9533         ;;
9534       esac
9535       ;;
9536
9537     interix[3-9]*)
9538       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9539       # Instead, we relocate shared libraries at runtime.
9540       ;;
9541
9542     msdosdjgpp*)
9543       # Just because we use GCC doesn't mean we suddenly get shared libraries
9544       # on systems that don't support them.
9545       lt_prog_compiler_can_build_shared=no
9546       enable_shared=no
9547       ;;
9548
9549     *nto* | *qnx*)
9550       # QNX uses GNU C++, but need to define -shared option too, otherwise
9551       # it will coredump.
9552       lt_prog_compiler_pic='-fPIC -shared'
9553       ;;
9554
9555     sysv4*MP*)
9556       if test -d /usr/nec; then
9557         lt_prog_compiler_pic=-Kconform_pic
9558       fi
9559       ;;
9560
9561     *)
9562       lt_prog_compiler_pic='-fPIC'
9563       ;;
9564     esac
9565   else
9566     # PORTME Check for flag to pass linker flags through the system compiler.
9567     case $host_os in
9568     aix*)
9569       lt_prog_compiler_wl='-Wl,'
9570       if test "$host_cpu" = ia64; then
9571         # AIX 5 now supports IA64 processor
9572         lt_prog_compiler_static='-Bstatic'
9573       else
9574         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9575       fi
9576       ;;
9577
9578     mingw* | cygwin* | pw32* | os2* | cegcc*)
9579       # This hack is so that the source file can tell whether it is being
9580       # built for inclusion in a dll (and should export symbols for example).
9581       lt_prog_compiler_pic='-DDLL_EXPORT'
9582       ;;
9583
9584     hpux9* | hpux10* | hpux11*)
9585       lt_prog_compiler_wl='-Wl,'
9586       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9587       # not for PA HP-UX.
9588       case $host_cpu in
9589       hppa*64*|ia64*)
9590         # +Z the default
9591         ;;
9592       *)
9593         lt_prog_compiler_pic='+Z'
9594         ;;
9595       esac
9596       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9597       lt_prog_compiler_static='${wl}-a ${wl}archive'
9598       ;;
9599
9600     irix5* | irix6* | nonstopux*)
9601       lt_prog_compiler_wl='-Wl,'
9602       # PIC (with -KPIC) is the default.
9603       lt_prog_compiler_static='-non_shared'
9604       ;;
9605
9606     linux* | k*bsd*-gnu)
9607       case $cc_basename in
9608       # old Intel for x86_64 which still supported -KPIC.
9609       ecc*)
9610         lt_prog_compiler_wl='-Wl,'
9611         lt_prog_compiler_pic='-KPIC'
9612         lt_prog_compiler_static='-static'
9613         ;;
9614       # icc used to be incompatible with GCC.
9615       # ICC 10 doesn't accept -KPIC any more.
9616       icc* | ifort*)
9617         lt_prog_compiler_wl='-Wl,'
9618         lt_prog_compiler_pic='-fPIC'
9619         lt_prog_compiler_static='-static'
9620         ;;
9621       # Lahey Fortran 8.1.
9622       lf95*)
9623         lt_prog_compiler_wl='-Wl,'
9624         lt_prog_compiler_pic='--shared'
9625         lt_prog_compiler_static='--static'
9626         ;;
9627       pgcc* | pgf77* | pgf90* | pgf95*)
9628         # Portland Group compilers (*not* the Pentium gcc compiler,
9629         # which looks to be a dead project)
9630         lt_prog_compiler_wl='-Wl,'
9631         lt_prog_compiler_pic='-fpic'
9632         lt_prog_compiler_static='-Bstatic'
9633         ;;
9634       ccc*)
9635         lt_prog_compiler_wl='-Wl,'
9636         # All Alpha code is PIC.
9637         lt_prog_compiler_static='-non_shared'
9638         ;;
9639       xl*)
9640         # IBM XL C 8.0/Fortran 10.1 on PPC
9641         lt_prog_compiler_wl='-Wl,'
9642         lt_prog_compiler_pic='-qpic'
9643         lt_prog_compiler_static='-qstaticlink'
9644         ;;
9645       *)
9646         case `$CC -V 2>&1 | sed 5q` in
9647         *Sun\ C*)
9648           # Sun C 5.9
9649           lt_prog_compiler_pic='-KPIC'
9650           lt_prog_compiler_static='-Bstatic'
9651           lt_prog_compiler_wl='-Wl,'
9652           ;;
9653         *Sun\ F*)
9654           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9655           lt_prog_compiler_pic='-KPIC'
9656           lt_prog_compiler_static='-Bstatic'
9657           lt_prog_compiler_wl=''
9658           ;;
9659         esac
9660         ;;
9661       esac
9662       ;;
9663
9664     newsos6)
9665       lt_prog_compiler_pic='-KPIC'
9666       lt_prog_compiler_static='-Bstatic'
9667       ;;
9668
9669     *nto* | *qnx*)
9670       # QNX uses GNU C++, but need to define -shared option too, otherwise
9671       # it will coredump.
9672       lt_prog_compiler_pic='-fPIC -shared'
9673       ;;
9674
9675     osf3* | osf4* | osf5*)
9676       lt_prog_compiler_wl='-Wl,'
9677       # All OSF/1 code is PIC.
9678       lt_prog_compiler_static='-non_shared'
9679       ;;
9680
9681     rdos*)
9682       lt_prog_compiler_static='-non_shared'
9683       ;;
9684
9685     solaris*)
9686       lt_prog_compiler_pic='-KPIC'
9687       lt_prog_compiler_static='-Bstatic'
9688       case $cc_basename in
9689       f77* | f90* | f95*)
9690         lt_prog_compiler_wl='-Qoption ld ';;
9691       *)
9692         lt_prog_compiler_wl='-Wl,';;
9693       esac
9694       ;;
9695
9696     sunos4*)
9697       lt_prog_compiler_wl='-Qoption ld '
9698       lt_prog_compiler_pic='-PIC'
9699       lt_prog_compiler_static='-Bstatic'
9700       ;;
9701
9702     sysv4 | sysv4.2uw2* | sysv4.3*)
9703       lt_prog_compiler_wl='-Wl,'
9704       lt_prog_compiler_pic='-KPIC'
9705       lt_prog_compiler_static='-Bstatic'
9706       ;;
9707
9708     sysv4*MP*)
9709       if test -d /usr/nec ;then
9710         lt_prog_compiler_pic='-Kconform_pic'
9711         lt_prog_compiler_static='-Bstatic'
9712       fi
9713       ;;
9714
9715     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9716       lt_prog_compiler_wl='-Wl,'
9717       lt_prog_compiler_pic='-KPIC'
9718       lt_prog_compiler_static='-Bstatic'
9719       ;;
9720
9721     unicos*)
9722       lt_prog_compiler_wl='-Wl,'
9723       lt_prog_compiler_can_build_shared=no
9724       ;;
9725
9726     uts4*)
9727       lt_prog_compiler_pic='-pic'
9728       lt_prog_compiler_static='-Bstatic'
9729       ;;
9730
9731     *)
9732       lt_prog_compiler_can_build_shared=no
9733       ;;
9734     esac
9735   fi
9736
9737 case $host_os in
9738   # For platforms which do not support PIC, -DPIC is meaningless:
9739   *djgpp*)
9740     lt_prog_compiler_pic=
9741     ;;
9742   *)
9743     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9744     ;;
9745 esac
9746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9747 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9748
9749
9750
9751
9752
9753
9754 #
9755 # Check to make sure the PIC flag actually works.
9756 #
9757 if test -n "$lt_prog_compiler_pic"; then
9758   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9759 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9760 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   lt_cv_prog_compiler_pic_works=no
9764    ac_outfile=conftest.$ac_objext
9765    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9767    # Insert the option either (1) after the last *FLAGS variable, or
9768    # (2) before a word containing "conftest.", or (3) at the end.
9769    # Note that $ac_compile itself does not contain backslashes and begins
9770    # with a dollar sign (not a hyphen), so the echo should work correctly.
9771    # The option is referenced via a variable to avoid confusing sed.
9772    lt_compile=`echo "$ac_compile" | $SED \
9773    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775    -e 's:$: $lt_compiler_flag:'`
9776    (eval echo "\"\$as_me:9776: $lt_compile\"" >&5)
9777    (eval "$lt_compile" 2>conftest.err)
9778    ac_status=$?
9779    cat conftest.err >&5
9780    echo "$as_me:9780: \$? = $ac_status" >&5
9781    if (exit $ac_status) && test -s "$ac_outfile"; then
9782      # The compiler can only warn and ignore the option if not recognized
9783      # So say no if there are warnings other than the usual output.
9784      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9785      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9786      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9787        lt_cv_prog_compiler_pic_works=yes
9788      fi
9789    fi
9790    $RM conftest*
9791
9792 fi
9793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9794 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9795
9796 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9797     case $lt_prog_compiler_pic in
9798      "" | " "*) ;;
9799      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9800      esac
9801 else
9802     lt_prog_compiler_pic=
9803      lt_prog_compiler_can_build_shared=no
9804 fi
9805
9806 fi
9807
9808
9809
9810
9811
9812
9813 #
9814 # Check to make sure the static flag actually works.
9815 #
9816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9819 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   lt_cv_prog_compiler_static_works=no
9823    save_LDFLAGS="$LDFLAGS"
9824    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9825    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9826    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9827      # The linker can only warn and ignore the option if not recognized
9828      # So say no if there are warnings
9829      if test -s conftest.err; then
9830        # Append any errors to the config.log.
9831        cat conftest.err 1>&5
9832        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9833        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9834        if diff conftest.exp conftest.er2 >/dev/null; then
9835          lt_cv_prog_compiler_static_works=yes
9836        fi
9837      else
9838        lt_cv_prog_compiler_static_works=yes
9839      fi
9840    fi
9841    $RM -r conftest*
9842    LDFLAGS="$save_LDFLAGS"
9843
9844 fi
9845 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9846 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9847
9848 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9849     :
9850 else
9851     lt_prog_compiler_static=
9852 fi
9853
9854
9855
9856
9857
9858
9859
9860   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9862 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   lt_cv_prog_compiler_c_o=no
9866    $RM -r conftest 2>/dev/null
9867    mkdir conftest
9868    cd conftest
9869    mkdir out
9870    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871
9872    lt_compiler_flag="-o out/conftest2.$ac_objext"
9873    # Insert the option either (1) after the last *FLAGS variable, or
9874    # (2) before a word containing "conftest.", or (3) at the end.
9875    # Note that $ac_compile itself does not contain backslashes and begins
9876    # with a dollar sign (not a hyphen), so the echo should work correctly.
9877    lt_compile=`echo "$ac_compile" | $SED \
9878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9880    -e 's:$: $lt_compiler_flag:'`
9881    (eval echo "\"\$as_me:9881: $lt_compile\"" >&5)
9882    (eval "$lt_compile" 2>out/conftest.err)
9883    ac_status=$?
9884    cat out/conftest.err >&5
9885    echo "$as_me:9885: \$? = $ac_status" >&5
9886    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9887    then
9888      # The compiler can only warn and ignore the option if not recognized
9889      # So say no if there are warnings
9890      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9891      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9892      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9893        lt_cv_prog_compiler_c_o=yes
9894      fi
9895    fi
9896    chmod u+w . 2>&5
9897    $RM conftest*
9898    # SGI C++ compiler will create directory out/ii_files/ for
9899    # template instantiation
9900    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9901    $RM out/* && rmdir out
9902    cd ..
9903    $RM -r conftest
9904    $RM conftest*
9905
9906 fi
9907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9908 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9909
9910
9911
9912
9913
9914
9915   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9917 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   lt_cv_prog_compiler_c_o=no
9921    $RM -r conftest 2>/dev/null
9922    mkdir conftest
9923    cd conftest
9924    mkdir out
9925    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9926
9927    lt_compiler_flag="-o out/conftest2.$ac_objext"
9928    # Insert the option either (1) after the last *FLAGS variable, or
9929    # (2) before a word containing "conftest.", or (3) at the end.
9930    # Note that $ac_compile itself does not contain backslashes and begins
9931    # with a dollar sign (not a hyphen), so the echo should work correctly.
9932    lt_compile=`echo "$ac_compile" | $SED \
9933    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9934    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9935    -e 's:$: $lt_compiler_flag:'`
9936    (eval echo "\"\$as_me:9936: $lt_compile\"" >&5)
9937    (eval "$lt_compile" 2>out/conftest.err)
9938    ac_status=$?
9939    cat out/conftest.err >&5
9940    echo "$as_me:9940: \$? = $ac_status" >&5
9941    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9942    then
9943      # The compiler can only warn and ignore the option if not recognized
9944      # So say no if there are warnings
9945      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9946      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9947      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9948        lt_cv_prog_compiler_c_o=yes
9949      fi
9950    fi
9951    chmod u+w . 2>&5
9952    $RM conftest*
9953    # SGI C++ compiler will create directory out/ii_files/ for
9954    # template instantiation
9955    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9956    $RM out/* && rmdir out
9957    cd ..
9958    $RM -r conftest
9959    $RM conftest*
9960
9961 fi
9962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9964
9965
9966
9967
9968 hard_links="nottested"
9969 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9970   # do not overwrite the value of need_locks provided by the user
9971   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9973   hard_links=yes
9974   $RM conftest*
9975   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9976   touch conftest.a
9977   ln conftest.a conftest.b 2>&5 || hard_links=no
9978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979   { echo "$as_me:$LINENO: result: $hard_links" >&5
9980 echo "${ECHO_T}$hard_links" >&6; }
9981   if test "$hard_links" = no; then
9982     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9984     need_locks=warn
9985   fi
9986 else
9987   need_locks=no
9988 fi
9989
9990
9991
9992
9993
9994
9995   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9997
9998   runpath_var=
9999   allow_undefined_flag=
10000   always_export_symbols=no
10001   archive_cmds=
10002   archive_expsym_cmds=
10003   compiler_needs_object=no
10004   enable_shared_with_static_runtimes=no
10005   export_dynamic_flag_spec=
10006   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10007   hardcode_automatic=no
10008   hardcode_direct=no
10009   hardcode_direct_absolute=no
10010   hardcode_libdir_flag_spec=
10011   hardcode_libdir_flag_spec_ld=
10012   hardcode_libdir_separator=
10013   hardcode_minus_L=no
10014   hardcode_shlibpath_var=unsupported
10015   inherit_rpath=no
10016   link_all_deplibs=unknown
10017   module_cmds=
10018   module_expsym_cmds=
10019   old_archive_from_new_cmds=
10020   old_archive_from_expsyms_cmds=
10021   thread_safe_flag_spec=
10022   whole_archive_flag_spec=
10023   # include_expsyms should be a list of space-separated symbols to be *always*
10024   # included in the symbol list
10025   include_expsyms=
10026   # exclude_expsyms can be an extended regexp of symbols to exclude
10027   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10028   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10029   # as well as any symbol that contains `d'.
10030   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10031   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10032   # platforms (ab)use it in PIC code, but their linkers get confused if
10033   # the symbol is explicitly referenced.  Since portable code cannot
10034   # rely on this symbol name, it's probably fine to never include it in
10035   # preloaded symbol tables.
10036   # Exclude shared library initialization/finalization symbols.
10037   extract_expsyms_cmds=
10038
10039   case $host_os in
10040   cygwin* | mingw* | pw32* | cegcc*)
10041     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10042     # When not using gcc, we currently assume that we are using
10043     # Microsoft Visual C++.
10044     if test "$GCC" != yes; then
10045       with_gnu_ld=no
10046     fi
10047     ;;
10048   interix*)
10049     # we just hope/assume this is gcc and not c89 (= MSVC++)
10050     with_gnu_ld=yes
10051     ;;
10052   openbsd*)
10053     with_gnu_ld=no
10054     ;;
10055   esac
10056
10057   ld_shlibs=yes
10058   if test "$with_gnu_ld" = yes; then
10059     # If archive_cmds runs LD, not CC, wlarc should be empty
10060     wlarc='${wl}'
10061
10062     # Set some defaults for GNU ld with shared library support. These
10063     # are reset later if shared libraries are not supported. Putting them
10064     # here allows them to be overridden if necessary.
10065     runpath_var=LD_RUN_PATH
10066     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067     export_dynamic_flag_spec='${wl}--export-dynamic'
10068     # ancient GNU ld didn't support --whole-archive et. al.
10069     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10070       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10071     else
10072       whole_archive_flag_spec=
10073     fi
10074     supports_anon_versioning=no
10075     case `$LD -v 2>&1` in
10076       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10077       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10078       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10079       *\ 2.11.*) ;; # other 2.11 versions
10080       *) supports_anon_versioning=yes ;;
10081     esac
10082
10083     # See if GNU ld supports shared libraries.
10084     case $host_os in
10085     aix[3-9]*)
10086       # On AIX/PPC, the GNU linker is very broken
10087       if test "$host_cpu" != ia64; then
10088         ld_shlibs=no
10089         cat <<_LT_EOF 1>&2
10090
10091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10092 *** to be unable to reliably create shared libraries on AIX.
10093 *** Therefore, libtool is disabling shared libraries support.  If you
10094 *** really care for shared libraries, you may want to modify your PATH
10095 *** so that a non-GNU linker is found, and then restart.
10096
10097 _LT_EOF
10098       fi
10099       ;;
10100
10101     amigaos*)
10102       case $host_cpu in
10103       powerpc)
10104             # see comment about AmigaOS4 .so support
10105             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106             archive_expsym_cmds=''
10107         ;;
10108       m68k)
10109             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10110             hardcode_libdir_flag_spec='-L$libdir'
10111             hardcode_minus_L=yes
10112         ;;
10113       esac
10114       ;;
10115
10116     beos*)
10117       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118         allow_undefined_flag=unsupported
10119         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10120         # support --undefined.  This deserves some investigation.  FIXME
10121         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122       else
10123         ld_shlibs=no
10124       fi
10125       ;;
10126
10127     cygwin* | mingw* | pw32* | cegcc*)
10128       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10129       # as there is no search path for DLLs.
10130       hardcode_libdir_flag_spec='-L$libdir'
10131       allow_undefined_flag=unsupported
10132       always_export_symbols=no
10133       enable_shared_with_static_runtimes=yes
10134       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10135
10136       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10137         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138         # If the export-symbols file already is a .def file (1st line
10139         # is EXPORTS), use it as is; otherwise, prepend...
10140         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10141           cp $export_symbols $output_objdir/$soname.def;
10142         else
10143           echo EXPORTS > $output_objdir/$soname.def;
10144           cat $export_symbols >> $output_objdir/$soname.def;
10145         fi~
10146         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10147       else
10148         ld_shlibs=no
10149       fi
10150       ;;
10151
10152     interix[3-9]*)
10153       hardcode_direct=no
10154       hardcode_shlibpath_var=no
10155       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156       export_dynamic_flag_spec='${wl}-E'
10157       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10158       # Instead, shared libraries are loaded at an image base (0x10000000 by
10159       # default) and relocated if they conflict, which is a slow very memory
10160       # consuming and fragmenting process.  To avoid this, we pick a random,
10161       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10162       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10163       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10164       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10165       ;;
10166
10167     gnu* | linux* | tpf* | k*bsd*-gnu)
10168       tmp_diet=no
10169       if test "$host_os" = linux-dietlibc; then
10170         case $cc_basename in
10171           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10172         esac
10173       fi
10174       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10175          && test "$tmp_diet" = no
10176       then
10177         tmp_addflag=
10178         tmp_sharedflag='-shared'
10179         case $cc_basename,$host_cpu in
10180         pgcc*)                          # Portland Group C compiler
10181           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10182           tmp_addflag=' $pic_flag'
10183           ;;
10184         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10185           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10186           tmp_addflag=' $pic_flag -Mnomain' ;;
10187         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10188           tmp_addflag=' -i_dynamic' ;;
10189         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10190           tmp_addflag=' -i_dynamic -nofor_main' ;;
10191         ifc* | ifort*)                  # Intel Fortran compiler
10192           tmp_addflag=' -nofor_main' ;;
10193         lf95*)                          # Lahey Fortran 8.1
10194           whole_archive_flag_spec=
10195           tmp_sharedflag='--shared' ;;
10196         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10197           tmp_sharedflag='-qmkshrobj'
10198           tmp_addflag= ;;
10199         esac
10200         case `$CC -V 2>&1 | sed 5q` in
10201         *Sun\ C*)                       # Sun C 5.9
10202           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10203           compiler_needs_object=yes
10204           tmp_sharedflag='-G' ;;
10205         *Sun\ F*)                       # Sun Fortran 8.3
10206           tmp_sharedflag='-G' ;;
10207         esac
10208         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209
10210         if test "x$supports_anon_versioning" = xyes; then
10211           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10212             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10213             echo "local: *; };" >> $output_objdir/$libname.ver~
10214             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10215         fi
10216
10217         case $cc_basename in
10218         xlf*)
10219           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10220           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10221           hardcode_libdir_flag_spec=
10222           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10223           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10224           if test "x$supports_anon_versioning" = xyes; then
10225             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10226               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10227               echo "local: *; };" >> $output_objdir/$libname.ver~
10228               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10229           fi
10230           ;;
10231         esac
10232       else
10233         ld_shlibs=no
10234       fi
10235       ;;
10236
10237     netbsd*)
10238       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10239         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10240         wlarc=
10241       else
10242         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10243         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10244       fi
10245       ;;
10246
10247     solaris*)
10248       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10249         ld_shlibs=no
10250         cat <<_LT_EOF 1>&2
10251
10252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10253 *** create shared libraries on Solaris systems.  Therefore, libtool
10254 *** is disabling shared libraries support.  We urge you to upgrade GNU
10255 *** binutils to release 2.9.1 or newer.  Another option is to modify
10256 *** your PATH or compiler configuration so that the native linker is
10257 *** used, and then restart.
10258
10259 _LT_EOF
10260       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10262         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10263       else
10264         ld_shlibs=no
10265       fi
10266       ;;
10267
10268     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10269       case `$LD -v 2>&1` in
10270         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10271         ld_shlibs=no
10272         cat <<_LT_EOF 1>&2
10273
10274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10275 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10276 *** is disabling shared libraries support.  We urge you to upgrade GNU
10277 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10278 *** your PATH or compiler configuration so that the native linker is
10279 *** used, and then restart.
10280
10281 _LT_EOF
10282         ;;
10283         *)
10284           # For security reasons, it is highly recommended that you always
10285           # use absolute paths for naming shared libraries, and exclude the
10286           # DT_RUNPATH tag from executables and libraries.  But doing so
10287           # requires that you compile everything twice, which is a pain.
10288           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10289             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10290             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10291             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10292           else
10293             ld_shlibs=no
10294           fi
10295         ;;
10296       esac
10297       ;;
10298
10299     sunos4*)
10300       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301       wlarc=
10302       hardcode_direct=yes
10303       hardcode_shlibpath_var=no
10304       ;;
10305
10306     *)
10307       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10308         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10309         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10310       else
10311         ld_shlibs=no
10312       fi
10313       ;;
10314     esac
10315
10316     if test "$ld_shlibs" = no; then
10317       runpath_var=
10318       hardcode_libdir_flag_spec=
10319       export_dynamic_flag_spec=
10320       whole_archive_flag_spec=
10321     fi
10322   else
10323     # PORTME fill in a description of your system's linker (not GNU ld)
10324     case $host_os in
10325     aix3*)
10326       allow_undefined_flag=unsupported
10327       always_export_symbols=yes
10328       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10329       # Note: this linker hardcodes the directories in LIBPATH if there
10330       # are no directories specified by -L.
10331       hardcode_minus_L=yes
10332       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10333         # Neither direct hardcoding nor static linking is supported with a
10334         # broken collect2.
10335         hardcode_direct=unsupported
10336       fi
10337       ;;
10338
10339     aix[4-9]*)
10340       if test "$host_cpu" = ia64; then
10341         # On IA64, the linker does run time linking by default, so we don't
10342         # have to do anything special.
10343         aix_use_runtimelinking=no
10344         exp_sym_flag='-Bexport'
10345         no_entry_flag=""
10346       else
10347         # If we're using GNU nm, then we don't want the "-C" option.
10348         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10349         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10350           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10351         else
10352           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10353         fi
10354         aix_use_runtimelinking=no
10355
10356         # Test if we are trying to use run time linking or normal
10357         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10358         # need to do runtime linking.
10359         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10360           for ld_flag in $LDFLAGS; do
10361           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10362             aix_use_runtimelinking=yes
10363             break
10364           fi
10365           done
10366           ;;
10367         esac
10368
10369         exp_sym_flag='-bexport'
10370         no_entry_flag='-bnoentry'
10371       fi
10372
10373       # When large executables or shared objects are built, AIX ld can
10374       # have problems creating the table of contents.  If linking a library
10375       # or program results in "error TOC overflow" add -mminimal-toc to
10376       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10377       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10378
10379       archive_cmds=''
10380       hardcode_direct=yes
10381       hardcode_direct_absolute=yes
10382       hardcode_libdir_separator=':'
10383       link_all_deplibs=yes
10384       file_list_spec='${wl}-f,'
10385
10386       if test "$GCC" = yes; then
10387         case $host_os in aix4.[012]|aix4.[012].*)
10388         # We only want to do this on AIX 4.2 and lower, the check
10389         # below for broken collect2 doesn't work under 4.3+
10390           collect2name=`${CC} -print-prog-name=collect2`
10391           if test -f "$collect2name" &&
10392            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10393           then
10394           # We have reworked collect2
10395           :
10396           else
10397           # We have old collect2
10398           hardcode_direct=unsupported
10399           # It fails to find uninstalled libraries when the uninstalled
10400           # path is not listed in the libpath.  Setting hardcode_minus_L
10401           # to unsupported forces relinking
10402           hardcode_minus_L=yes
10403           hardcode_libdir_flag_spec='-L$libdir'
10404           hardcode_libdir_separator=
10405           fi
10406           ;;
10407         esac
10408         shared_flag='-shared'
10409         if test "$aix_use_runtimelinking" = yes; then
10410           shared_flag="$shared_flag "'${wl}-G'
10411         fi
10412       else
10413         # not using gcc
10414         if test "$host_cpu" = ia64; then
10415         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10416         # chokes on -Wl,-G. The following line is correct:
10417           shared_flag='-G'
10418         else
10419           if test "$aix_use_runtimelinking" = yes; then
10420             shared_flag='${wl}-G'
10421           else
10422             shared_flag='${wl}-bM:SRE'
10423           fi
10424         fi
10425       fi
10426
10427       export_dynamic_flag_spec='${wl}-bexpall'
10428       # It seems that -bexpall does not export symbols beginning with
10429       # underscore (_), so it is better to generate a list of symbols to export.
10430       always_export_symbols=yes
10431       if test "$aix_use_runtimelinking" = yes; then
10432         # Warning - without using the other runtime loading flags (-brtl),
10433         # -berok will link without error, but may produce a broken library.
10434         allow_undefined_flag='-berok'
10435         # Determine the default libpath from the value encoded in an
10436         # empty executable.
10437         cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443
10444 int
10445 main ()
10446 {
10447
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456   *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459   (eval "$ac_link") 2>conftest.er1
10460   ac_status=$?
10461   grep -v '^ *+' conftest.er1 >conftest.err
10462   rm -f conftest.er1
10463   cat conftest.err >&5
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } && {
10466          test -z "$ac_c_werror_flag" ||
10467          test ! -s conftest.err
10468        } && test -s conftest$ac_exeext &&
10469        $as_test_x conftest$ac_exeext; then
10470
10471 lt_aix_libpath_sed='
10472     /Import File Strings/,/^$/ {
10473         /^0/ {
10474             s/^0  *\(.*\)$/\1/
10475             p
10476         }
10477     }'
10478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 # Check for a 64-bit object if we didn't find anything.
10480 if test -z "$aix_libpath"; then
10481   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10482 fi
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487
10488 fi
10489
10490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10491       conftest$ac_exeext conftest.$ac_ext
10492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10493
10494         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10495         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10496       else
10497         if test "$host_cpu" = ia64; then
10498           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10499           allow_undefined_flag="-z nodefs"
10500           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10501         else
10502          # Determine the default libpath from the value encoded in an
10503          # empty executable.
10504          cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510
10511 int
10512 main ()
10513 {
10514
10515   ;
10516   return 0;
10517 }
10518 _ACEOF
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (ac_try="$ac_link"
10521 case "(($ac_try" in
10522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523   *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526   (eval "$ac_link") 2>conftest.er1
10527   ac_status=$?
10528   grep -v '^ *+' conftest.er1 >conftest.err
10529   rm -f conftest.er1
10530   cat conftest.err >&5
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } && {
10533          test -z "$ac_c_werror_flag" ||
10534          test ! -s conftest.err
10535        } && test -s conftest$ac_exeext &&
10536        $as_test_x conftest$ac_exeext; then
10537
10538 lt_aix_libpath_sed='
10539     /Import File Strings/,/^$/ {
10540         /^0/ {
10541             s/^0  *\(.*\)$/\1/
10542             p
10543         }
10544     }'
10545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10546 # Check for a 64-bit object if we didn't find anything.
10547 if test -z "$aix_libpath"; then
10548   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10549 fi
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554
10555 fi
10556
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558       conftest$ac_exeext conftest.$ac_ext
10559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560
10561          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10562           # Warning - without using the other run time loading flags,
10563           # -berok will link without error, but may produce a broken library.
10564           no_undefined_flag=' ${wl}-bernotok'
10565           allow_undefined_flag=' ${wl}-berok'
10566           # Exported symbols can be pulled into shared objects from archives
10567           whole_archive_flag_spec='$convenience'
10568           archive_cmds_need_lc=yes
10569           # This is similar to how AIX traditionally builds its shared libraries.
10570           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10571         fi
10572       fi
10573       ;;
10574
10575     amigaos*)
10576       case $host_cpu in
10577       powerpc)
10578             # see comment about AmigaOS4 .so support
10579             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580             archive_expsym_cmds=''
10581         ;;
10582       m68k)
10583             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10584             hardcode_libdir_flag_spec='-L$libdir'
10585             hardcode_minus_L=yes
10586         ;;
10587       esac
10588       ;;
10589
10590     bsdi[45]*)
10591       export_dynamic_flag_spec=-rdynamic
10592       ;;
10593
10594     cygwin* | mingw* | pw32* | cegcc*)
10595       # When not using gcc, we currently assume that we are using
10596       # Microsoft Visual C++.
10597       # hardcode_libdir_flag_spec is actually meaningless, as there is
10598       # no search path for DLLs.
10599       hardcode_libdir_flag_spec=' '
10600       allow_undefined_flag=unsupported
10601       # Tell ltmain to make .lib files, not .a files.
10602       libext=lib
10603       # Tell ltmain to make .dll files, not .so files.
10604       shrext_cmds=".dll"
10605       # FIXME: Setting linknames here is a bad hack.
10606       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10607       # The linker will automatically build a .lib file if we build a DLL.
10608       old_archive_from_new_cmds='true'
10609       # FIXME: Should let the user specify the lib program.
10610       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10611       fix_srcfile_path='`cygpath -w "$srcfile"`'
10612       enable_shared_with_static_runtimes=yes
10613       ;;
10614
10615     darwin* | rhapsody*)
10616
10617
10618   archive_cmds_need_lc=no
10619   hardcode_direct=no
10620   hardcode_automatic=yes
10621   hardcode_shlibpath_var=unsupported
10622   whole_archive_flag_spec=''
10623   link_all_deplibs=yes
10624   allow_undefined_flag="$_lt_dar_allow_undefined"
10625   case $cc_basename in
10626      ifort*) _lt_dar_can_shared=yes ;;
10627      *) _lt_dar_can_shared=$GCC ;;
10628   esac
10629   if test "$_lt_dar_can_shared" = "yes"; then
10630     output_verbose_link_cmd=echo
10631     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10632     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10633     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10634     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10635
10636   else
10637   ld_shlibs=no
10638   fi
10639
10640       ;;
10641
10642     dgux*)
10643       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644       hardcode_libdir_flag_spec='-L$libdir'
10645       hardcode_shlibpath_var=no
10646       ;;
10647
10648     freebsd1*)
10649       ld_shlibs=no
10650       ;;
10651
10652     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10653     # support.  Future versions do this automatically, but an explicit c++rt0.o
10654     # does not break anything, and helps significantly (at the cost of a little
10655     # extra space).
10656     freebsd2.2*)
10657       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10658       hardcode_libdir_flag_spec='-R$libdir'
10659       hardcode_direct=yes
10660       hardcode_shlibpath_var=no
10661       ;;
10662
10663     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10664     freebsd2*)
10665       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666       hardcode_direct=yes
10667       hardcode_minus_L=yes
10668       hardcode_shlibpath_var=no
10669       ;;
10670
10671     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10672     freebsd* | dragonfly*)
10673       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10674       hardcode_libdir_flag_spec='-R$libdir'
10675       hardcode_direct=yes
10676       hardcode_shlibpath_var=no
10677       ;;
10678
10679     hpux9*)
10680       if test "$GCC" = yes; then
10681         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10682       else
10683         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10684       fi
10685       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686       hardcode_libdir_separator=:
10687       hardcode_direct=yes
10688
10689       # hardcode_minus_L: Not really in the search PATH,
10690       # but as the default location of the library.
10691       hardcode_minus_L=yes
10692       export_dynamic_flag_spec='${wl}-E'
10693       ;;
10694
10695     hpux10*)
10696       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10697         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10698       else
10699         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10700       fi
10701       if test "$with_gnu_ld" = no; then
10702         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10703         hardcode_libdir_flag_spec_ld='+b $libdir'
10704         hardcode_libdir_separator=:
10705         hardcode_direct=yes
10706         hardcode_direct_absolute=yes
10707         export_dynamic_flag_spec='${wl}-E'
10708         # hardcode_minus_L: Not really in the search PATH,
10709         # but as the default location of the library.
10710         hardcode_minus_L=yes
10711       fi
10712       ;;
10713
10714     hpux11*)
10715       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10716         case $host_cpu in
10717         hppa*64*)
10718           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10719           ;;
10720         ia64*)
10721           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         *)
10724           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         esac
10727       else
10728         case $host_cpu in
10729         hppa*64*)
10730           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10731           ;;
10732         ia64*)
10733           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10734           ;;
10735         *)
10736           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10737           ;;
10738         esac
10739       fi
10740       if test "$with_gnu_ld" = no; then
10741         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742         hardcode_libdir_separator=:
10743
10744         case $host_cpu in
10745         hppa*64*|ia64*)
10746           hardcode_direct=no
10747           hardcode_shlibpath_var=no
10748           ;;
10749         *)
10750           hardcode_direct=yes
10751           hardcode_direct_absolute=yes
10752           export_dynamic_flag_spec='${wl}-E'
10753
10754           # hardcode_minus_L: Not really in the search PATH,
10755           # but as the default location of the library.
10756           hardcode_minus_L=yes
10757           ;;
10758         esac
10759       fi
10760       ;;
10761
10762     irix5* | irix6* | nonstopux*)
10763       if test "$GCC" = yes; then
10764         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10765         # Try to use the -exported_symbol ld option, if it does not
10766         # work, assume that -exports_file does not work either and
10767         # implicitly export all symbols.
10768         save_LDFLAGS="$LDFLAGS"
10769         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10770         cat >conftest.$ac_ext <<_ACEOF
10771 int foo(void) {}
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780   (eval "$ac_link") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } && {
10787          test -z "$ac_c_werror_flag" ||
10788          test ! -s conftest.err
10789        } && test -s conftest$ac_exeext &&
10790        $as_test_x conftest$ac_exeext; then
10791   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10792
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797
10798 fi
10799
10800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10801       conftest$ac_exeext conftest.$ac_ext
10802         LDFLAGS="$save_LDFLAGS"
10803       else
10804         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10805         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10806       fi
10807       archive_cmds_need_lc='no'
10808       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809       hardcode_libdir_separator=:
10810       inherit_rpath=yes
10811       link_all_deplibs=yes
10812       ;;
10813
10814     netbsd*)
10815       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10816         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10817       else
10818         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10819       fi
10820       hardcode_libdir_flag_spec='-R$libdir'
10821       hardcode_direct=yes
10822       hardcode_shlibpath_var=no
10823       ;;
10824
10825     newsos6)
10826       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827       hardcode_direct=yes
10828       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10829       hardcode_libdir_separator=:
10830       hardcode_shlibpath_var=no
10831       ;;
10832
10833     *nto* | *qnx*)
10834       ;;
10835
10836     openbsd*)
10837       if test -f /usr/libexec/ld.so; then
10838         hardcode_direct=yes
10839         hardcode_shlibpath_var=no
10840         hardcode_direct_absolute=yes
10841         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10842           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10844           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10845           export_dynamic_flag_spec='${wl}-E'
10846         else
10847           case $host_os in
10848            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10849              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10850              hardcode_libdir_flag_spec='-R$libdir'
10851              ;;
10852            *)
10853              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10854              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10855              ;;
10856           esac
10857         fi
10858       else
10859         ld_shlibs=no
10860       fi
10861       ;;
10862
10863     os2*)
10864       hardcode_libdir_flag_spec='-L$libdir'
10865       hardcode_minus_L=yes
10866       allow_undefined_flag=unsupported
10867       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10868       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10869       ;;
10870
10871     osf3*)
10872       if test "$GCC" = yes; then
10873         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10874         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10875       else
10876         allow_undefined_flag=' -expect_unresolved \*'
10877         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10878       fi
10879       archive_cmds_need_lc='no'
10880       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10881       hardcode_libdir_separator=:
10882       ;;
10883
10884     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10885       if test "$GCC" = yes; then
10886         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10887         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10888         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889       else
10890         allow_undefined_flag=' -expect_unresolved \*'
10891         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10892         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10893         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10894
10895         # Both c and cxx compiler support -rpath directly
10896         hardcode_libdir_flag_spec='-rpath $libdir'
10897       fi
10898       archive_cmds_need_lc='no'
10899       hardcode_libdir_separator=:
10900       ;;
10901
10902     solaris*)
10903       no_undefined_flag=' -z defs'
10904       if test "$GCC" = yes; then
10905         wlarc='${wl}'
10906         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10907         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10908           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10909       else
10910         case `$CC -V 2>&1` in
10911         *"Compilers 5.0"*)
10912           wlarc=''
10913           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10916           ;;
10917         *)
10918           wlarc='${wl}'
10919           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10920           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10922           ;;
10923         esac
10924       fi
10925       hardcode_libdir_flag_spec='-R$libdir'
10926       hardcode_shlibpath_var=no
10927       case $host_os in
10928       solaris2.[0-5] | solaris2.[0-5].*) ;;
10929       *)
10930         # The compiler driver will combine and reorder linker options,
10931         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10932         # but is careful enough not to reorder.
10933         # Supported since Solaris 2.6 (maybe 2.5.1?)
10934         if test "$GCC" = yes; then
10935           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10936         else
10937           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10938         fi
10939         ;;
10940       esac
10941       link_all_deplibs=yes
10942       ;;
10943
10944     sunos4*)
10945       if test "x$host_vendor" = xsequent; then
10946         # Use $CC to link under sequent, because it throws in some extra .o
10947         # files that make .init and .fini sections work.
10948         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949       else
10950         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10951       fi
10952       hardcode_libdir_flag_spec='-L$libdir'
10953       hardcode_direct=yes
10954       hardcode_minus_L=yes
10955       hardcode_shlibpath_var=no
10956       ;;
10957
10958     sysv4)
10959       case $host_vendor in
10960         sni)
10961           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962           hardcode_direct=yes # is this really true???
10963         ;;
10964         siemens)
10965           ## LD is ld it makes a PLAMLIB
10966           ## CC just makes a GrossModule.
10967           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10968           reload_cmds='$CC -r -o $output$reload_objs'
10969           hardcode_direct=no
10970         ;;
10971         motorola)
10972           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10974         ;;
10975       esac
10976       runpath_var='LD_RUN_PATH'
10977       hardcode_shlibpath_var=no
10978       ;;
10979
10980     sysv4.3*)
10981       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982       hardcode_shlibpath_var=no
10983       export_dynamic_flag_spec='-Bexport'
10984       ;;
10985
10986     sysv4*MP*)
10987       if test -d /usr/nec; then
10988         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989         hardcode_shlibpath_var=no
10990         runpath_var=LD_RUN_PATH
10991         hardcode_runpath_var=yes
10992         ld_shlibs=yes
10993       fi
10994       ;;
10995
10996     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10997       no_undefined_flag='${wl}-z,text'
10998       archive_cmds_need_lc=no
10999       hardcode_shlibpath_var=no
11000       runpath_var='LD_RUN_PATH'
11001
11002       if test "$GCC" = yes; then
11003         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005       else
11006         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008       fi
11009       ;;
11010
11011     sysv5* | sco3.2v5* | sco5v6*)
11012       # Note: We can NOT use -z defs as we might desire, because we do not
11013       # link with -lc, and that would cause any symbols used from libc to
11014       # always be unresolved, which means just about no library would
11015       # ever link correctly.  If we're not using GNU ld we use -z text
11016       # though, which does catch some bad symbols but isn't as heavy-handed
11017       # as -z defs.
11018       no_undefined_flag='${wl}-z,text'
11019       allow_undefined_flag='${wl}-z,nodefs'
11020       archive_cmds_need_lc=no
11021       hardcode_shlibpath_var=no
11022       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11023       hardcode_libdir_separator=':'
11024       link_all_deplibs=yes
11025       export_dynamic_flag_spec='${wl}-Bexport'
11026       runpath_var='LD_RUN_PATH'
11027
11028       if test "$GCC" = yes; then
11029         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031       else
11032         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034       fi
11035       ;;
11036
11037     uts4*)
11038       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039       hardcode_libdir_flag_spec='-L$libdir'
11040       hardcode_shlibpath_var=no
11041       ;;
11042
11043     *)
11044       ld_shlibs=no
11045       ;;
11046     esac
11047
11048     if test x$host_vendor = xsni; then
11049       case $host in
11050       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11051         export_dynamic_flag_spec='${wl}-Blargedynsym'
11052         ;;
11053       esac
11054     fi
11055   fi
11056
11057 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11058 echo "${ECHO_T}$ld_shlibs" >&6; }
11059 test "$ld_shlibs" = no && can_build_shared=no
11060
11061 with_gnu_ld=$with_gnu_ld
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077 #
11078 # Do we need to explicitly link libc?
11079 #
11080 case "x$archive_cmds_need_lc" in
11081 x|xyes)
11082   # Assume -lc should be added
11083   archive_cmds_need_lc=yes
11084
11085   if test "$enable_shared" = yes && test "$GCC" = yes; then
11086     case $archive_cmds in
11087     *'~'*)
11088       # FIXME: we may have to deal with multi-command sequences.
11089       ;;
11090     '$CC '*)
11091       # Test whether the compiler implicitly links with -lc since on some
11092       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11093       # to ld, don't add -lc before -lgcc.
11094       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11095 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11096       $RM conftest*
11097       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11098
11099       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100   (eval $ac_compile) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } 2>conftest.err; then
11104         soname=conftest
11105         lib=conftest
11106         libobjs=conftest.$ac_objext
11107         deplibs=
11108         wl=$lt_prog_compiler_wl
11109         pic_flag=$lt_prog_compiler_pic
11110         compiler_flags=-v
11111         linker_flags=-v
11112         verstring=
11113         output_objdir=.
11114         libname=conftest
11115         lt_save_allow_undefined_flag=$allow_undefined_flag
11116         allow_undefined_flag=
11117         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11118   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }
11122         then
11123           archive_cmds_need_lc=no
11124         else
11125           archive_cmds_need_lc=yes
11126         fi
11127         allow_undefined_flag=$lt_save_allow_undefined_flag
11128       else
11129         cat conftest.err 1>&5
11130       fi
11131       $RM conftest*
11132       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11133 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11134       ;;
11135     esac
11136   fi
11137   ;;
11138 esac
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11298
11299 if test "$GCC" = yes; then
11300   case $host_os in
11301     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11302     *) lt_awk_arg="/^libraries:/" ;;
11303   esac
11304   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11305   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11306     # if the path contains ";" then we assume it to be the separator
11307     # otherwise default to the standard path separator (i.e. ":") - it is
11308     # assumed that no part of a normal pathname contains ";" but that should
11309     # okay in the real world where ";" in dirpaths is itself problematic.
11310     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11311   else
11312     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11313   fi
11314   # Ok, now we have the path, separated by spaces, we can step through it
11315   # and add multilib dir if necessary.
11316   lt_tmp_lt_search_path_spec=
11317   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11318   for lt_sys_path in $lt_search_path_spec; do
11319     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11320       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11321     else
11322       test -d "$lt_sys_path" && \
11323         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11324     fi
11325   done
11326   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11327 BEGIN {RS=" "; FS="/|\n";} {
11328   lt_foo="";
11329   lt_count=0;
11330   for (lt_i = NF; lt_i > 0; lt_i--) {
11331     if ($lt_i != "" && $lt_i != ".") {
11332       if ($lt_i == "..") {
11333         lt_count++;
11334       } else {
11335         if (lt_count == 0) {
11336           lt_foo="/" $lt_i lt_foo;
11337         } else {
11338           lt_count--;
11339         }
11340       }
11341     }
11342   }
11343   if (lt_foo != "") { lt_freq[lt_foo]++; }
11344   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11345 }'`
11346   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11347 else
11348   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11349 fi
11350 library_names_spec=
11351 libname_spec='lib$name'
11352 soname_spec=
11353 shrext_cmds=".so"
11354 postinstall_cmds=
11355 postuninstall_cmds=
11356 finish_cmds=
11357 finish_eval=
11358 shlibpath_var=
11359 shlibpath_overrides_runpath=unknown
11360 version_type=none
11361 dynamic_linker="$host_os ld.so"
11362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11363 need_lib_prefix=unknown
11364 hardcode_into_libs=no
11365
11366 # when you set need_version to no, make sure it does not cause -set_version
11367 # flags to be left without arguments
11368 need_version=unknown
11369
11370 case $host_os in
11371 aix3*)
11372   version_type=linux
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11374   shlibpath_var=LIBPATH
11375
11376   # AIX 3 has no versioning support, so we append a major version to the name.
11377   soname_spec='${libname}${release}${shared_ext}$major'
11378   ;;
11379
11380 aix[4-9]*)
11381   version_type=linux
11382   need_lib_prefix=no
11383   need_version=no
11384   hardcode_into_libs=yes
11385   if test "$host_cpu" = ia64; then
11386     # AIX 5 supports IA64
11387     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11388     shlibpath_var=LD_LIBRARY_PATH
11389   else
11390     # With GCC up to 2.95.x, collect2 would create an import file
11391     # for dependence libraries.  The import file would start with
11392     # the line `#! .'.  This would cause the generated library to
11393     # depend on `.', always an invalid library.  This was fixed in
11394     # development snapshots of GCC prior to 3.0.
11395     case $host_os in
11396       aix4 | aix4.[01] | aix4.[01].*)
11397       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11398            echo ' yes '
11399            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11400         :
11401       else
11402         can_build_shared=no
11403       fi
11404       ;;
11405     esac
11406     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11407     # soname into executable. Probably we can add versioning support to
11408     # collect2, so additional links can be useful in future.
11409     if test "$aix_use_runtimelinking" = yes; then
11410       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11411       # instead of lib<name>.a to let people know that these are not
11412       # typical AIX shared libraries.
11413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414     else
11415       # We preserve .a as extension for shared libraries through AIX4.2
11416       # and later when we are not doing run time linking.
11417       library_names_spec='${libname}${release}.a $libname.a'
11418       soname_spec='${libname}${release}${shared_ext}$major'
11419     fi
11420     shlibpath_var=LIBPATH
11421   fi
11422   ;;
11423
11424 amigaos*)
11425   case $host_cpu in
11426   powerpc)
11427     # Since July 2007 AmigaOS4 officially supports .so libraries.
11428     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430     ;;
11431   m68k)
11432     library_names_spec='$libname.ixlibrary $libname.a'
11433     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11434     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11435     ;;
11436   esac
11437   ;;
11438
11439 beos*)
11440   library_names_spec='${libname}${shared_ext}'
11441   dynamic_linker="$host_os ld.so"
11442   shlibpath_var=LIBRARY_PATH
11443   ;;
11444
11445 bsdi[45]*)
11446   version_type=linux
11447   need_version=no
11448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449   soname_spec='${libname}${release}${shared_ext}$major'
11450   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11451   shlibpath_var=LD_LIBRARY_PATH
11452   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11453   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11454   # the default ld.so.conf also contains /usr/contrib/lib and
11455   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11456   # libtool to hard-code these into programs
11457   ;;
11458
11459 cygwin* | mingw* | pw32* | cegcc*)
11460   version_type=windows
11461   shrext_cmds=".dll"
11462   need_version=no
11463   need_lib_prefix=no
11464
11465   case $GCC,$host_os in
11466   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11467     library_names_spec='$libname.dll.a'
11468     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11469     postinstall_cmds='base_file=`basename \${file}`~
11470       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11471       dldir=$destdir/`dirname \$dlpath`~
11472       test -d \$dldir || mkdir -p \$dldir~
11473       $install_prog $dir/$dlname \$dldir/$dlname~
11474       chmod a+x \$dldir/$dlname~
11475       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11476         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11477       fi'
11478     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11479       dlpath=$dir/\$dldll~
11480        $RM \$dlpath'
11481     shlibpath_overrides_runpath=yes
11482
11483     case $host_os in
11484     cygwin*)
11485       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11486       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11487       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11488       ;;
11489     mingw* | cegcc*)
11490       # MinGW DLLs use traditional 'lib' prefix
11491       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11492       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11493       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11494         # It is most probably a Windows format PATH printed by
11495         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11496         # path with ; separators, and with drive letters. We can handle the
11497         # drive letters (cygwin fileutils understands them), so leave them,
11498         # especially as we might pass files found there to a mingw objdump,
11499         # which wouldn't understand a cygwinified path. Ahh.
11500         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11501       else
11502         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11503       fi
11504       ;;
11505     pw32*)
11506       # pw32 DLLs use 'pw' prefix rather than 'lib'
11507       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11508       ;;
11509     esac
11510     ;;
11511
11512   *)
11513     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11514     ;;
11515   esac
11516   dynamic_linker='Win32 ld.exe'
11517   # FIXME: first we should search . and the directory the executable is in
11518   shlibpath_var=PATH
11519   ;;
11520
11521 darwin* | rhapsody*)
11522   dynamic_linker="$host_os dyld"
11523   version_type=darwin
11524   need_lib_prefix=no
11525   need_version=no
11526   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11527   soname_spec='${libname}${release}${major}$shared_ext'
11528   shlibpath_overrides_runpath=yes
11529   shlibpath_var=DYLD_LIBRARY_PATH
11530   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11531
11532   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11533   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11534   ;;
11535
11536 dgux*)
11537   version_type=linux
11538   need_lib_prefix=no
11539   need_version=no
11540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11541   soname_spec='${libname}${release}${shared_ext}$major'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   ;;
11544
11545 freebsd1*)
11546   dynamic_linker=no
11547   ;;
11548
11549 freebsd* | dragonfly*)
11550   # DragonFly does not have aout.  When/if they implement a new
11551   # versioning mechanism, adjust this.
11552   if test -x /usr/bin/objformat; then
11553     objformat=`/usr/bin/objformat`
11554   else
11555     case $host_os in
11556     freebsd[123]*) objformat=aout ;;
11557     *) objformat=elf ;;
11558     esac
11559   fi
11560   version_type=freebsd-$objformat
11561   case $version_type in
11562     freebsd-elf*)
11563       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11564       need_version=no
11565       need_lib_prefix=no
11566       ;;
11567     freebsd-*)
11568       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11569       need_version=yes
11570       ;;
11571   esac
11572   shlibpath_var=LD_LIBRARY_PATH
11573   case $host_os in
11574   freebsd2*)
11575     shlibpath_overrides_runpath=yes
11576     ;;
11577   freebsd3.[01]* | freebsdelf3.[01]*)
11578     shlibpath_overrides_runpath=yes
11579     hardcode_into_libs=yes
11580     ;;
11581   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11582   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11583     shlibpath_overrides_runpath=no
11584     hardcode_into_libs=yes
11585     ;;
11586   *) # from 4.6 on, and DragonFly
11587     shlibpath_overrides_runpath=yes
11588     hardcode_into_libs=yes
11589     ;;
11590   esac
11591   ;;
11592
11593 gnu*)
11594   version_type=linux
11595   need_lib_prefix=no
11596   need_version=no
11597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11598   soname_spec='${libname}${release}${shared_ext}$major'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   hardcode_into_libs=yes
11601   ;;
11602
11603 hpux9* | hpux10* | hpux11*)
11604   # Give a soname corresponding to the major version so that dld.sl refuses to
11605   # link against other versions.
11606   version_type=sunos
11607   need_lib_prefix=no
11608   need_version=no
11609   case $host_cpu in
11610   ia64*)
11611     shrext_cmds='.so'
11612     hardcode_into_libs=yes
11613     dynamic_linker="$host_os dld.so"
11614     shlibpath_var=LD_LIBRARY_PATH
11615     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617     soname_spec='${libname}${release}${shared_ext}$major'
11618     if test "X$HPUX_IA64_MODE" = X32; then
11619       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11620     else
11621       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11622     fi
11623     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11624     ;;
11625   hppa*64*)
11626     shrext_cmds='.sl'
11627     hardcode_into_libs=yes
11628     dynamic_linker="$host_os dld.sl"
11629     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11630     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632     soname_spec='${libname}${release}${shared_ext}$major'
11633     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11634     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11635     ;;
11636   *)
11637     shrext_cmds='.sl'
11638     dynamic_linker="$host_os dld.sl"
11639     shlibpath_var=SHLIB_PATH
11640     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642     soname_spec='${libname}${release}${shared_ext}$major'
11643     ;;
11644   esac
11645   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11646   postinstall_cmds='chmod 555 $lib'
11647   ;;
11648
11649 interix[3-9]*)
11650   version_type=linux
11651   need_lib_prefix=no
11652   need_version=no
11653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654   soname_spec='${libname}${release}${shared_ext}$major'
11655   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11656   shlibpath_var=LD_LIBRARY_PATH
11657   shlibpath_overrides_runpath=no
11658   hardcode_into_libs=yes
11659   ;;
11660
11661 irix5* | irix6* | nonstopux*)
11662   case $host_os in
11663     nonstopux*) version_type=nonstopux ;;
11664     *)
11665         if test "$lt_cv_prog_gnu_ld" = yes; then
11666                 version_type=linux
11667         else
11668                 version_type=irix
11669         fi ;;
11670   esac
11671   need_lib_prefix=no
11672   need_version=no
11673   soname_spec='${libname}${release}${shared_ext}$major'
11674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11675   case $host_os in
11676   irix5* | nonstopux*)
11677     libsuff= shlibsuff=
11678     ;;
11679   *)
11680     case $LD in # libtool.m4 will add one of these switches to LD
11681     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11682       libsuff= shlibsuff= libmagic=32-bit;;
11683     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11684       libsuff=32 shlibsuff=N32 libmagic=N32;;
11685     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11686       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11687     *) libsuff= shlibsuff= libmagic=never-match;;
11688     esac
11689     ;;
11690   esac
11691   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11692   shlibpath_overrides_runpath=no
11693   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11694   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11695   hardcode_into_libs=yes
11696   ;;
11697
11698 # No shared lib support for Linux oldld, aout, or coff.
11699 linux*oldld* | linux*aout* | linux*coff*)
11700   dynamic_linker=no
11701   ;;
11702
11703 # This must be Linux ELF.
11704 linux* | k*bsd*-gnu)
11705   version_type=linux
11706   need_lib_prefix=no
11707   need_version=no
11708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709   soname_spec='${libname}${release}${shared_ext}$major'
11710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11711   shlibpath_var=LD_LIBRARY_PATH
11712   shlibpath_overrides_runpath=no
11713   # Some binutils ld are patched to set DT_RUNPATH
11714   save_LDFLAGS=$LDFLAGS
11715   save_libdir=$libdir
11716   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11717        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11718   cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724
11725 int
11726 main ()
11727 {
11728
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737   *) ac_try_echo=$ac_try;;
11738 esac
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740   (eval "$ac_link") 2>conftest.er1
11741   ac_status=$?
11742   grep -v '^ *+' conftest.er1 >conftest.err
11743   rm -f conftest.er1
11744   cat conftest.err >&5
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); } && {
11747          test -z "$ac_c_werror_flag" ||
11748          test ! -s conftest.err
11749        } && test -s conftest$ac_exeext &&
11750        $as_test_x conftest$ac_exeext; then
11751   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11752   shlibpath_overrides_runpath=yes
11753 fi
11754
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759
11760 fi
11761
11762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11763       conftest$ac_exeext conftest.$ac_ext
11764   LDFLAGS=$save_LDFLAGS
11765   libdir=$save_libdir
11766
11767   # This implies no fast_install, which is unacceptable.
11768   # Some rework will be needed to allow for fast_install
11769   # before this can be enabled.
11770   hardcode_into_libs=yes
11771
11772   # Append ld.so.conf contents to the search path
11773   if test -f /etc/ld.so.conf; then
11774     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11775     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11776   fi
11777
11778   # We used to test for /lib/ld.so.1 and disable shared libraries on
11779   # powerpc, because MkLinux only supported shared libraries with the
11780   # GNU dynamic linker.  Since this was broken with cross compilers,
11781   # most powerpc-linux boxes support dynamic linking these days and
11782   # people can always --disable-shared, the test was removed, and we
11783   # assume the GNU/Linux dynamic linker is in use.
11784   dynamic_linker='GNU/Linux ld.so'
11785   ;;
11786
11787 netbsd*)
11788   version_type=sunos
11789   need_lib_prefix=no
11790   need_version=no
11791   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11793     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11794     dynamic_linker='NetBSD (a.out) ld.so'
11795   else
11796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11797     soname_spec='${libname}${release}${shared_ext}$major'
11798     dynamic_linker='NetBSD ld.elf_so'
11799   fi
11800   shlibpath_var=LD_LIBRARY_PATH
11801   shlibpath_overrides_runpath=yes
11802   hardcode_into_libs=yes
11803   ;;
11804
11805 newsos6)
11806   version_type=linux
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   shlibpath_overrides_runpath=yes
11810   ;;
11811
11812 *nto* | *qnx*)
11813   version_type=qnx
11814   need_lib_prefix=no
11815   need_version=no
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817   soname_spec='${libname}${release}${shared_ext}$major'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   shlibpath_overrides_runpath=no
11820   hardcode_into_libs=yes
11821   dynamic_linker='ldqnx.so'
11822   ;;
11823
11824 openbsd*)
11825   version_type=sunos
11826   sys_lib_dlsearch_path_spec="/usr/lib"
11827   need_lib_prefix=no
11828   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11829   case $host_os in
11830     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11831     *)                          need_version=no  ;;
11832   esac
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11834   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11835   shlibpath_var=LD_LIBRARY_PATH
11836   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11837     case $host_os in
11838       openbsd2.[89] | openbsd2.[89].*)
11839         shlibpath_overrides_runpath=no
11840         ;;
11841       *)
11842         shlibpath_overrides_runpath=yes
11843         ;;
11844       esac
11845   else
11846     shlibpath_overrides_runpath=yes
11847   fi
11848   ;;
11849
11850 os2*)
11851   libname_spec='$name'
11852   shrext_cmds=".dll"
11853   need_lib_prefix=no
11854   library_names_spec='$libname${shared_ext} $libname.a'
11855   dynamic_linker='OS/2 ld.exe'
11856   shlibpath_var=LIBPATH
11857   ;;
11858
11859 osf3* | osf4* | osf5*)
11860   version_type=osf
11861   need_lib_prefix=no
11862   need_version=no
11863   soname_spec='${libname}${release}${shared_ext}$major'
11864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865   shlibpath_var=LD_LIBRARY_PATH
11866   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11867   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11868   ;;
11869
11870 rdos*)
11871   dynamic_linker=no
11872   ;;
11873
11874 solaris*)
11875   version_type=linux
11876   need_lib_prefix=no
11877   need_version=no
11878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879   soname_spec='${libname}${release}${shared_ext}$major'
11880   shlibpath_var=LD_LIBRARY_PATH
11881   shlibpath_overrides_runpath=yes
11882   hardcode_into_libs=yes
11883   # ldd complains unless libraries are executable
11884   postinstall_cmds='chmod +x $lib'
11885   ;;
11886
11887 sunos4*)
11888   version_type=sunos
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11890   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   shlibpath_overrides_runpath=yes
11893   if test "$with_gnu_ld" = yes; then
11894     need_lib_prefix=no
11895   fi
11896   need_version=yes
11897   ;;
11898
11899 sysv4 | sysv4.3*)
11900   version_type=linux
11901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902   soname_spec='${libname}${release}${shared_ext}$major'
11903   shlibpath_var=LD_LIBRARY_PATH
11904   case $host_vendor in
11905     sni)
11906       shlibpath_overrides_runpath=no
11907       need_lib_prefix=no
11908       runpath_var=LD_RUN_PATH
11909       ;;
11910     siemens)
11911       need_lib_prefix=no
11912       ;;
11913     motorola)
11914       need_lib_prefix=no
11915       need_version=no
11916       shlibpath_overrides_runpath=no
11917       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11918       ;;
11919   esac
11920   ;;
11921
11922 sysv4*MP*)
11923   if test -d /usr/nec ;then
11924     version_type=linux
11925     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11926     soname_spec='$libname${shared_ext}.$major'
11927     shlibpath_var=LD_LIBRARY_PATH
11928   fi
11929   ;;
11930
11931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11932   version_type=freebsd-elf
11933   need_lib_prefix=no
11934   need_version=no
11935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11936   soname_spec='${libname}${release}${shared_ext}$major'
11937   shlibpath_var=LD_LIBRARY_PATH
11938   shlibpath_overrides_runpath=yes
11939   hardcode_into_libs=yes
11940   if test "$with_gnu_ld" = yes; then
11941     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11942   else
11943     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11944     case $host_os in
11945       sco3.2v5*)
11946         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11947         ;;
11948     esac
11949   fi
11950   sys_lib_dlsearch_path_spec='/usr/lib'
11951   ;;
11952
11953 tpf*)
11954   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11955   version_type=linux
11956   need_lib_prefix=no
11957   need_version=no
11958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   shlibpath_overrides_runpath=no
11961   hardcode_into_libs=yes
11962   ;;
11963
11964 uts4*)
11965   version_type=linux
11966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967   soname_spec='${libname}${release}${shared_ext}$major'
11968   shlibpath_var=LD_LIBRARY_PATH
11969   ;;
11970
11971 *)
11972   dynamic_linker=no
11973   ;;
11974 esac
11975 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11976 echo "${ECHO_T}$dynamic_linker" >&6; }
11977 test "$dynamic_linker" = no && can_build_shared=no
11978
11979 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11980 if test "$GCC" = yes; then
11981   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11982 fi
11983
11984 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11985   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11986 fi
11987 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11988   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11989 fi
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12079 hardcode_action=
12080 if test -n "$hardcode_libdir_flag_spec" ||
12081    test -n "$runpath_var" ||
12082    test "X$hardcode_automatic" = "Xyes" ; then
12083
12084   # We can hardcode non-existent directories.
12085   if test "$hardcode_direct" != no &&
12086      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12087      # have to relink, otherwise we might link with an installed library
12088      # when we should be linking with a yet-to-be-installed one
12089      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12090      test "$hardcode_minus_L" != no; then
12091     # Linking always hardcodes the temporary library directory.
12092     hardcode_action=relink
12093   else
12094     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12095     hardcode_action=immediate
12096   fi
12097 else
12098   # We cannot hardcode anything, or else we can only hardcode existing
12099   # directories.
12100   hardcode_action=unsupported
12101 fi
12102 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12103 echo "${ECHO_T}$hardcode_action" >&6; }
12104
12105 if test "$hardcode_action" = relink ||
12106    test "$inherit_rpath" = yes; then
12107   # Fast installation is not supported
12108   enable_fast_install=no
12109 elif test "$shlibpath_overrides_runpath" = yes ||
12110      test "$enable_shared" = no; then
12111   # Fast installation is not necessary
12112   enable_fast_install=needless
12113 fi
12114
12115
12116
12117
12118
12119
12120   if test "x$enable_dlopen" != xyes; then
12121   enable_dlopen=unknown
12122   enable_dlopen_self=unknown
12123   enable_dlopen_self_static=unknown
12124 else
12125   lt_cv_dlopen=no
12126   lt_cv_dlopen_libs=
12127
12128   case $host_os in
12129   beos*)
12130     lt_cv_dlopen="load_add_on"
12131     lt_cv_dlopen_libs=
12132     lt_cv_dlopen_self=yes
12133     ;;
12134
12135   mingw* | pw32* | cegcc*)
12136     lt_cv_dlopen="LoadLibrary"
12137     lt_cv_dlopen_libs=
12138     ;;
12139
12140   cygwin*)
12141     lt_cv_dlopen="dlopen"
12142     lt_cv_dlopen_libs=
12143     ;;
12144
12145   darwin*)
12146   # if libdl is installed we need to link against it
12147     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12150   echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152   ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-ldl  $LIBS"
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160
12161 /* Override any GCC internal prototype to avoid an error.
12162    Use char because int might match the return type of a GCC
12163    builtin and then its argument prototype would still apply.  */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 char dlopen ();
12168 int
12169 main ()
12170 {
12171 return dlopen ();
12172   ;
12173   return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180   *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183   (eval "$ac_link") 2>conftest.er1
12184   ac_status=$?
12185   grep -v '^ *+' conftest.er1 >conftest.err
12186   rm -f conftest.er1
12187   cat conftest.err >&5
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); } && {
12190          test -z "$ac_c_werror_flag" ||
12191          test ! -s conftest.err
12192        } && test -s conftest$ac_exeext &&
12193        $as_test_x conftest$ac_exeext; then
12194   ac_cv_lib_dl_dlopen=yes
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199         ac_cv_lib_dl_dlopen=no
12200 fi
12201
12202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12203       conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12205 fi
12206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12208 if test $ac_cv_lib_dl_dlopen = yes; then
12209   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12210 else
12211
12212     lt_cv_dlopen="dyld"
12213     lt_cv_dlopen_libs=
12214     lt_cv_dlopen_self=yes
12215
12216 fi
12217
12218     ;;
12219
12220   *)
12221     { echo "$as_me:$LINENO: checking for shl_load" >&5
12222 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12223 if test "${ac_cv_func_shl_load+set}" = set; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226   cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12234 #define shl_load innocuous_shl_load
12235
12236 /* System header to define __stub macros and hopefully few prototypes,
12237     which can conflict with char shl_load (); below.
12238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12239     <limits.h> exists even on freestanding compilers.  */
12240
12241 #ifdef __STDC__
12242 # include <limits.h>
12243 #else
12244 # include <assert.h>
12245 #endif
12246
12247 #undef shl_load
12248
12249 /* Override any GCC internal prototype to avoid an error.
12250    Use char because int might match the return type of a GCC
12251    builtin and then its argument prototype would still apply.  */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char shl_load ();
12256 /* The GNU C library defines this for functions which it implements
12257     to always fail with ENOSYS.  Some functions are actually named
12258     something starting with __ and the normal name is an alias.  */
12259 #if defined __stub_shl_load || defined __stub___shl_load
12260 choke me
12261 #endif
12262
12263 int
12264 main ()
12265 {
12266 return shl_load ();
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278   (eval "$ac_link") 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } && {
12285          test -z "$ac_c_werror_flag" ||
12286          test ! -s conftest.err
12287        } && test -s conftest$ac_exeext &&
12288        $as_test_x conftest$ac_exeext; then
12289   ac_cv_func_shl_load=yes
12290 else
12291   echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294         ac_cv_func_shl_load=no
12295 fi
12296
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298       conftest$ac_exeext conftest.$ac_ext
12299 fi
12300 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12301 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12302 if test $ac_cv_func_shl_load = yes; then
12303   lt_cv_dlopen="shl_load"
12304 else
12305   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12306 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12308   echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310   ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-ldld  $LIBS"
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h.  */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h.  */
12318
12319 /* Override any GCC internal prototype to avoid an error.
12320    Use char because int might match the return type of a GCC
12321    builtin and then its argument prototype would still apply.  */
12322 #ifdef __cplusplus
12323 extern "C"
12324 #endif
12325 char shl_load ();
12326 int
12327 main ()
12328 {
12329 return shl_load ();
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (ac_try="$ac_link"
12336 case "(($ac_try" in
12337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338   *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341   (eval "$ac_link") 2>conftest.er1
12342   ac_status=$?
12343   grep -v '^ *+' conftest.er1 >conftest.err
12344   rm -f conftest.er1
12345   cat conftest.err >&5
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } && {
12348          test -z "$ac_c_werror_flag" ||
12349          test ! -s conftest.err
12350        } && test -s conftest$ac_exeext &&
12351        $as_test_x conftest$ac_exeext; then
12352   ac_cv_lib_dld_shl_load=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357         ac_cv_lib_dld_shl_load=no
12358 fi
12359
12360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12361       conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12363 fi
12364 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12365 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12366 if test $ac_cv_lib_dld_shl_load = yes; then
12367   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12368 else
12369   { echo "$as_me:$LINENO: checking for dlopen" >&5
12370 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12371 if test "${ac_cv_func_dlopen+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h.  */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h.  */
12380 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12382 #define dlopen innocuous_dlopen
12383
12384 /* System header to define __stub macros and hopefully few prototypes,
12385     which can conflict with char dlopen (); below.
12386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12387     <limits.h> exists even on freestanding compilers.  */
12388
12389 #ifdef __STDC__
12390 # include <limits.h>
12391 #else
12392 # include <assert.h>
12393 #endif
12394
12395 #undef dlopen
12396
12397 /* Override any GCC internal prototype to avoid an error.
12398    Use char because int might match the return type of a GCC
12399    builtin and then its argument prototype would still apply.  */
12400 #ifdef __cplusplus
12401 extern "C"
12402 #endif
12403 char dlopen ();
12404 /* The GNU C library defines this for functions which it implements
12405     to always fail with ENOSYS.  Some functions are actually named
12406     something starting with __ and the normal name is an alias.  */
12407 #if defined __stub_dlopen || defined __stub___dlopen
12408 choke me
12409 #endif
12410
12411 int
12412 main ()
12413 {
12414 return dlopen ();
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423   *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426   (eval "$ac_link") 2>conftest.er1
12427   ac_status=$?
12428   grep -v '^ *+' conftest.er1 >conftest.err
12429   rm -f conftest.er1
12430   cat conftest.err >&5
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } && {
12433          test -z "$ac_c_werror_flag" ||
12434          test ! -s conftest.err
12435        } && test -s conftest$ac_exeext &&
12436        $as_test_x conftest$ac_exeext; then
12437   ac_cv_func_dlopen=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442         ac_cv_func_dlopen=no
12443 fi
12444
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446       conftest$ac_exeext conftest.$ac_ext
12447 fi
12448 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12449 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12450 if test $ac_cv_func_dlopen = yes; then
12451   lt_cv_dlopen="dlopen"
12452 else
12453   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   ac_check_lib_save_LIBS=$LIBS
12459 LIBS="-ldl  $LIBS"
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466
12467 /* Override any GCC internal prototype to avoid an error.
12468    Use char because int might match the return type of a GCC
12469    builtin and then its argument prototype would still apply.  */
12470 #ifdef __cplusplus
12471 extern "C"
12472 #endif
12473 char dlopen ();
12474 int
12475 main ()
12476 {
12477 return dlopen ();
12478   ;
12479   return 0;
12480 }
12481 _ACEOF
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_link") 2>conftest.er1
12490   ac_status=$?
12491   grep -v '^ *+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } && {
12496          test -z "$ac_c_werror_flag" ||
12497          test ! -s conftest.err
12498        } && test -s conftest$ac_exeext &&
12499        $as_test_x conftest$ac_exeext; then
12500   ac_cv_lib_dl_dlopen=yes
12501 else
12502   echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12504
12505         ac_cv_lib_dl_dlopen=no
12506 fi
12507
12508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12509       conftest$ac_exeext conftest.$ac_ext
12510 LIBS=$ac_check_lib_save_LIBS
12511 fi
12512 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12513 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12514 if test $ac_cv_lib_dl_dlopen = yes; then
12515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12516 else
12517   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12518 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12519 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-lsvld  $LIBS"
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530
12531 /* Override any GCC internal prototype to avoid an error.
12532    Use char because int might match the return type of a GCC
12533    builtin and then its argument prototype would still apply.  */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 char dlopen ();
12538 int
12539 main ()
12540 {
12541 return dlopen ();
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550   *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553   (eval "$ac_link") 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } && {
12560          test -z "$ac_c_werror_flag" ||
12561          test ! -s conftest.err
12562        } && test -s conftest$ac_exeext &&
12563        $as_test_x conftest$ac_exeext; then
12564   ac_cv_lib_svld_dlopen=yes
12565 else
12566   echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569         ac_cv_lib_svld_dlopen=no
12570 fi
12571
12572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12573       conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12575 fi
12576 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12577 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12578 if test $ac_cv_lib_svld_dlopen = yes; then
12579   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12580 else
12581   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12582 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-ldld  $LIBS"
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h.  */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h.  */
12594
12595 /* Override any GCC internal prototype to avoid an error.
12596    Use char because int might match the return type of a GCC
12597    builtin and then its argument prototype would still apply.  */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 char dld_link ();
12602 int
12603 main ()
12604 {
12605 return dld_link ();
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614   *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617   (eval "$ac_link") 2>conftest.er1
12618   ac_status=$?
12619   grep -v '^ *+' conftest.er1 >conftest.err
12620   rm -f conftest.er1
12621   cat conftest.err >&5
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } && {
12624          test -z "$ac_c_werror_flag" ||
12625          test ! -s conftest.err
12626        } && test -s conftest$ac_exeext &&
12627        $as_test_x conftest$ac_exeext; then
12628   ac_cv_lib_dld_dld_link=yes
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633         ac_cv_lib_dld_dld_link=no
12634 fi
12635
12636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12637       conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12639 fi
12640 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12641 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12642 if test $ac_cv_lib_dld_dld_link = yes; then
12643   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12644 fi
12645
12646
12647 fi
12648
12649
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661     ;;
12662   esac
12663
12664   if test "x$lt_cv_dlopen" != xno; then
12665     enable_dlopen=yes
12666   else
12667     enable_dlopen=no
12668   fi
12669
12670   case $lt_cv_dlopen in
12671   dlopen)
12672     save_CPPFLAGS="$CPPFLAGS"
12673     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12674
12675     save_LDFLAGS="$LDFLAGS"
12676     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12677
12678     save_LIBS="$LIBS"
12679     LIBS="$lt_cv_dlopen_libs $LIBS"
12680
12681     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12682 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12683 if test "${lt_cv_dlopen_self+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686           if test "$cross_compiling" = yes; then :
12687   lt_cv_dlopen_self=cross
12688 else
12689   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12690   lt_status=$lt_dlunknown
12691   cat > conftest.$ac_ext <<_LT_EOF
12692 #line 12692 "configure"
12693 #include "confdefs.h"
12694
12695 #if HAVE_DLFCN_H
12696 #include <dlfcn.h>
12697 #endif
12698
12699 #include <stdio.h>
12700
12701 #ifdef RTLD_GLOBAL
12702 #  define LT_DLGLOBAL           RTLD_GLOBAL
12703 #else
12704 #  ifdef DL_GLOBAL
12705 #    define LT_DLGLOBAL         DL_GLOBAL
12706 #  else
12707 #    define LT_DLGLOBAL         0
12708 #  endif
12709 #endif
12710
12711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12712    find out it does not work in some platform. */
12713 #ifndef LT_DLLAZY_OR_NOW
12714 #  ifdef RTLD_LAZY
12715 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12716 #  else
12717 #    ifdef DL_LAZY
12718 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12719 #    else
12720 #      ifdef RTLD_NOW
12721 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12722 #      else
12723 #        ifdef DL_NOW
12724 #          define LT_DLLAZY_OR_NOW      DL_NOW
12725 #        else
12726 #          define LT_DLLAZY_OR_NOW      0
12727 #        endif
12728 #      endif
12729 #    endif
12730 #  endif
12731 #endif
12732
12733 void fnord() { int i=42;}
12734 int main ()
12735 {
12736   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12737   int status = $lt_dlunknown;
12738
12739   if (self)
12740     {
12741       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12742       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12743       /* dlclose (self); */
12744     }
12745   else
12746     puts (dlerror ());
12747
12748   return status;
12749 }
12750 _LT_EOF
12751   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752   (eval $ac_link) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12756     (./conftest; exit; ) >&5 2>/dev/null
12757     lt_status=$?
12758     case x$lt_status in
12759       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12760       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12761       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12762     esac
12763   else :
12764     # compilation failed
12765     lt_cv_dlopen_self=no
12766   fi
12767 fi
12768 rm -fr conftest*
12769
12770
12771 fi
12772 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12773 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12774
12775     if test "x$lt_cv_dlopen_self" = xyes; then
12776       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12777       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12778 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12779 if test "${lt_cv_dlopen_self_static+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782           if test "$cross_compiling" = yes; then :
12783   lt_cv_dlopen_self_static=cross
12784 else
12785   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12786   lt_status=$lt_dlunknown
12787   cat > conftest.$ac_ext <<_LT_EOF
12788 #line 12788 "configure"
12789 #include "confdefs.h"
12790
12791 #if HAVE_DLFCN_H
12792 #include <dlfcn.h>
12793 #endif
12794
12795 #include <stdio.h>
12796
12797 #ifdef RTLD_GLOBAL
12798 #  define LT_DLGLOBAL           RTLD_GLOBAL
12799 #else
12800 #  ifdef DL_GLOBAL
12801 #    define LT_DLGLOBAL         DL_GLOBAL
12802 #  else
12803 #    define LT_DLGLOBAL         0
12804 #  endif
12805 #endif
12806
12807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12808    find out it does not work in some platform. */
12809 #ifndef LT_DLLAZY_OR_NOW
12810 #  ifdef RTLD_LAZY
12811 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12812 #  else
12813 #    ifdef DL_LAZY
12814 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12815 #    else
12816 #      ifdef RTLD_NOW
12817 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12818 #      else
12819 #        ifdef DL_NOW
12820 #          define LT_DLLAZY_OR_NOW      DL_NOW
12821 #        else
12822 #          define LT_DLLAZY_OR_NOW      0
12823 #        endif
12824 #      endif
12825 #    endif
12826 #  endif
12827 #endif
12828
12829 void fnord() { int i=42;}
12830 int main ()
12831 {
12832   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12833   int status = $lt_dlunknown;
12834
12835   if (self)
12836     {
12837       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12838       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12839       /* dlclose (self); */
12840     }
12841   else
12842     puts (dlerror ());
12843
12844   return status;
12845 }
12846 _LT_EOF
12847   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848   (eval $ac_link) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12852     (./conftest; exit; ) >&5 2>/dev/null
12853     lt_status=$?
12854     case x$lt_status in
12855       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12856       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12857       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12858     esac
12859   else :
12860     # compilation failed
12861     lt_cv_dlopen_self_static=no
12862   fi
12863 fi
12864 rm -fr conftest*
12865
12866
12867 fi
12868 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12869 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12870     fi
12871
12872     CPPFLAGS="$save_CPPFLAGS"
12873     LDFLAGS="$save_LDFLAGS"
12874     LIBS="$save_LIBS"
12875     ;;
12876   esac
12877
12878   case $lt_cv_dlopen_self in
12879   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12880   *) enable_dlopen_self=unknown ;;
12881   esac
12882
12883   case $lt_cv_dlopen_self_static in
12884   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12885   *) enable_dlopen_self_static=unknown ;;
12886   esac
12887 fi
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905 striplib=
12906 old_striplib=
12907 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12909 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12910   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12911   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12912   { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }
12914 else
12915 # FIXME - insert some real tests, host_os isn't really good enough
12916   case $host_os in
12917   darwin*)
12918     if test -n "$STRIP" ; then
12919       striplib="$STRIP -x"
12920       old_striplib="$STRIP -S"
12921       { echo "$as_me:$LINENO: result: yes" >&5
12922 echo "${ECHO_T}yes" >&6; }
12923     else
12924       { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12926     fi
12927     ;;
12928   *)
12929     { echo "$as_me:$LINENO: result: no" >&5
12930 echo "${ECHO_T}no" >&6; }
12931     ;;
12932   esac
12933 fi
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946   # Report which library types will actually be built
12947   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12949   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12950 echo "${ECHO_T}$can_build_shared" >&6; }
12951
12952   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12954   test "$can_build_shared" = "no" && enable_shared=no
12955
12956   # On AIX, shared libraries and static libraries use the same namespace, and
12957   # are all built from PIC.
12958   case $host_os in
12959   aix3*)
12960     test "$enable_shared" = yes && enable_static=no
12961     if test -n "$RANLIB"; then
12962       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12963       postinstall_cmds='$RANLIB $lib'
12964     fi
12965     ;;
12966
12967   aix[4-9]*)
12968     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12969       test "$enable_shared" = yes && enable_static=no
12970     fi
12971     ;;
12972   esac
12973   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12974 echo "${ECHO_T}$enable_shared" >&6; }
12975
12976   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12978   # Make sure either enable_shared or enable_static is yes.
12979   test "$enable_shared" = yes || enable_static=yes
12980   { echo "$as_me:$LINENO: result: $enable_static" >&5
12981 echo "${ECHO_T}$enable_static" >&6; }
12982
12983
12984
12985
12986 fi
12987 ac_ext=c
12988 ac_cpp='$CPP $CPPFLAGS'
12989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12992
12993 CC="$lt_save_CC"
12994
12995
12996 ac_ext=cpp
12997 ac_cpp='$CXXCPP $CPPFLAGS'
12998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13001
13002 archive_cmds_need_lc_CXX=no
13003 allow_undefined_flag_CXX=
13004 always_export_symbols_CXX=no
13005 archive_expsym_cmds_CXX=
13006 compiler_needs_object_CXX=no
13007 export_dynamic_flag_spec_CXX=
13008 hardcode_direct_CXX=no
13009 hardcode_direct_absolute_CXX=no
13010 hardcode_libdir_flag_spec_CXX=
13011 hardcode_libdir_flag_spec_ld_CXX=
13012 hardcode_libdir_separator_CXX=
13013 hardcode_minus_L_CXX=no
13014 hardcode_shlibpath_var_CXX=unsupported
13015 hardcode_automatic_CXX=no
13016 inherit_rpath_CXX=no
13017 module_cmds_CXX=
13018 module_expsym_cmds_CXX=
13019 link_all_deplibs_CXX=unknown
13020 old_archive_cmds_CXX=$old_archive_cmds
13021 no_undefined_flag_CXX=
13022 whole_archive_flag_spec_CXX=
13023 enable_shared_with_static_runtimes_CXX=no
13024
13025 # Source file extension for C++ test sources.
13026 ac_ext=cpp
13027
13028 # Object file extension for compiled C++ test sources.
13029 objext=o
13030 objext_CXX=$objext
13031
13032 # No sense in running all these tests if we already determined that
13033 # the CXX compiler isn't working.  Some variables (like enable_shared)
13034 # are currently assumed to apply to all compilers on this platform,
13035 # and will be corrupted by setting them based on a non-working compiler.
13036 if test "$_lt_caught_CXX_error" != yes; then
13037   # Code to be used in simple compile tests
13038   lt_simple_compile_test_code="int some_variable = 0;"
13039
13040   # Code to be used in simple link tests
13041   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13042
13043   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13044
13045
13046
13047
13048
13049
13050 # If no C compiler was specified, use CC.
13051 LTCC=${LTCC-"$CC"}
13052
13053 # If no C compiler flags were specified, use CFLAGS.
13054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13055
13056 # Allow CC to be a program name with arguments.
13057 compiler=$CC
13058
13059
13060   # save warnings/boilerplate of simple test code
13061   ac_outfile=conftest.$ac_objext
13062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13064 _lt_compiler_boilerplate=`cat conftest.err`
13065 $RM conftest*
13066
13067   ac_outfile=conftest.$ac_objext
13068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070 _lt_linker_boilerplate=`cat conftest.err`
13071 $RM -r conftest*
13072
13073
13074   # Allow CC to be a program name with arguments.
13075   lt_save_CC=$CC
13076   lt_save_LD=$LD
13077   lt_save_GCC=$GCC
13078   GCC=$GXX
13079   lt_save_with_gnu_ld=$with_gnu_ld
13080   lt_save_path_LD=$lt_cv_path_LD
13081   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13082     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13083   else
13084     $as_unset lt_cv_prog_gnu_ld
13085   fi
13086   if test -n "${lt_cv_path_LDCXX+set}"; then
13087     lt_cv_path_LD=$lt_cv_path_LDCXX
13088   else
13089     $as_unset lt_cv_path_LD
13090   fi
13091   test -z "${LDCXX+set}" || LD=$LDCXX
13092   CC=${CXX-"c++"}
13093   compiler=$CC
13094   compiler_CXX=$CC
13095   for cc_temp in $compiler""; do
13096   case $cc_temp in
13097     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13098     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13099     \-*) ;;
13100     *) break;;
13101   esac
13102 done
13103 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13104
13105
13106   if test -n "$compiler"; then
13107     # We don't want -fno-exception when compiling C++ code, so set the
13108     # no_builtin_flag separately
13109     if test "$GXX" = yes; then
13110       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13111     else
13112       lt_prog_compiler_no_builtin_flag_CXX=
13113     fi
13114
13115     if test "$GXX" = yes; then
13116       # Set up default GNU C++ configuration
13117
13118
13119
13120 # Check whether --with-gnu-ld was given.
13121 if test "${with_gnu_ld+set}" = set; then
13122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13123 else
13124   with_gnu_ld=no
13125 fi
13126
13127 ac_prog=ld
13128 if test "$GCC" = yes; then
13129   # Check if gcc -print-prog-name=ld gives a path.
13130   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13132   case $host in
13133   *-*-mingw*)
13134     # gcc leaves a trailing carriage return which upsets mingw
13135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13136   *)
13137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13138   esac
13139   case $ac_prog in
13140     # Accept absolute paths.
13141     [\\/]* | ?:[\\/]*)
13142       re_direlt='/[^/][^/]*/\.\./'
13143       # Canonicalize the pathname of ld
13144       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13145       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13146         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13147       done
13148       test -z "$LD" && LD="$ac_prog"
13149       ;;
13150   "")
13151     # If it fails, then pretend we aren't using GCC.
13152     ac_prog=ld
13153     ;;
13154   *)
13155     # If it is relative, then search for the first ld in PATH.
13156     with_gnu_ld=unknown
13157     ;;
13158   esac
13159 elif test "$with_gnu_ld" = yes; then
13160   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13162 else
13163   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13165 fi
13166 if test "${lt_cv_path_LD+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   if test -z "$LD"; then
13170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13171   for ac_dir in $PATH; do
13172     IFS="$lt_save_ifs"
13173     test -z "$ac_dir" && ac_dir=.
13174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13175       lt_cv_path_LD="$ac_dir/$ac_prog"
13176       # Check to see if the program is GNU ld.  I'd rather use --version,
13177       # but apparently some variants of GNU ld only accept -v.
13178       # Break only if it was the GNU/non-GNU ld that we prefer.
13179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13180       *GNU* | *'with BFD'*)
13181         test "$with_gnu_ld" != no && break
13182         ;;
13183       *)
13184         test "$with_gnu_ld" != yes && break
13185         ;;
13186       esac
13187     fi
13188   done
13189   IFS="$lt_save_ifs"
13190 else
13191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13192 fi
13193 fi
13194
13195 LD="$lt_cv_path_LD"
13196 if test -n "$LD"; then
13197   { echo "$as_me:$LINENO: result: $LD" >&5
13198 echo "${ECHO_T}$LD" >&6; }
13199 else
13200   { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13202 fi
13203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13205    { (exit 1); exit 1; }; }
13206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13212 case `$LD -v 2>&1 </dev/null` in
13213 *GNU* | *'with BFD'*)
13214   lt_cv_prog_gnu_ld=yes
13215   ;;
13216 *)
13217   lt_cv_prog_gnu_ld=no
13218   ;;
13219 esac
13220 fi
13221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13223 with_gnu_ld=$lt_cv_prog_gnu_ld
13224
13225
13226
13227
13228
13229
13230
13231       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13232       # archiving commands below assume that GNU ld is being used.
13233       if test "$with_gnu_ld" = yes; then
13234         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13236
13237         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13238         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239
13240         # If archive_cmds runs LD, not CC, wlarc should be empty
13241         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13242         #     investigate it a little bit more. (MM)
13243         wlarc='${wl}'
13244
13245         # ancient GNU ld didn't support --whole-archive et. al.
13246         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13247           $GREP 'no-whole-archive' > /dev/null; then
13248           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13249         else
13250           whole_archive_flag_spec_CXX=
13251         fi
13252       else
13253         with_gnu_ld=no
13254         wlarc=
13255
13256         # A generic and very simple default shared library creation
13257         # command for GNU C++ for the case where it uses the native
13258         # linker, instead of GNU ld.  If possible, this setting should
13259         # overridden to take advantage of the native linker features on
13260         # the platform it is being used on.
13261         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13262       fi
13263
13264       # Commands to make compiler produce verbose output that lists
13265       # what "hidden" libraries, object files and flags are used when
13266       # linking a shared library.
13267       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13268
13269     else
13270       GXX=no
13271       with_gnu_ld=no
13272       wlarc=
13273     fi
13274
13275     # PORTME: fill in a description of your system's C++ link characteristics
13276     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13278     ld_shlibs_CXX=yes
13279     case $host_os in
13280       aix3*)
13281         # FIXME: insert proper C++ library support
13282         ld_shlibs_CXX=no
13283         ;;
13284       aix[4-9]*)
13285         if test "$host_cpu" = ia64; then
13286           # On IA64, the linker does run time linking by default, so we don't
13287           # have to do anything special.
13288           aix_use_runtimelinking=no
13289           exp_sym_flag='-Bexport'
13290           no_entry_flag=""
13291         else
13292           aix_use_runtimelinking=no
13293
13294           # Test if we are trying to use run time linking or normal
13295           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13296           # need to do runtime linking.
13297           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13298             for ld_flag in $LDFLAGS; do
13299               case $ld_flag in
13300               *-brtl*)
13301                 aix_use_runtimelinking=yes
13302                 break
13303                 ;;
13304               esac
13305             done
13306             ;;
13307           esac
13308
13309           exp_sym_flag='-bexport'
13310           no_entry_flag='-bnoentry'
13311         fi
13312
13313         # When large executables or shared objects are built, AIX ld can
13314         # have problems creating the table of contents.  If linking a library
13315         # or program results in "error TOC overflow" add -mminimal-toc to
13316         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13317         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13318
13319         archive_cmds_CXX=''
13320         hardcode_direct_CXX=yes
13321         hardcode_direct_absolute_CXX=yes
13322         hardcode_libdir_separator_CXX=':'
13323         link_all_deplibs_CXX=yes
13324         file_list_spec_CXX='${wl}-f,'
13325
13326         if test "$GXX" = yes; then
13327           case $host_os in aix4.[012]|aix4.[012].*)
13328           # We only want to do this on AIX 4.2 and lower, the check
13329           # below for broken collect2 doesn't work under 4.3+
13330           collect2name=`${CC} -print-prog-name=collect2`
13331           if test -f "$collect2name" &&
13332              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13333           then
13334             # We have reworked collect2
13335             :
13336           else
13337             # We have old collect2
13338             hardcode_direct_CXX=unsupported
13339             # It fails to find uninstalled libraries when the uninstalled
13340             # path is not listed in the libpath.  Setting hardcode_minus_L
13341             # to unsupported forces relinking
13342             hardcode_minus_L_CXX=yes
13343             hardcode_libdir_flag_spec_CXX='-L$libdir'
13344             hardcode_libdir_separator_CXX=
13345           fi
13346           esac
13347           shared_flag='-shared'
13348           if test "$aix_use_runtimelinking" = yes; then
13349             shared_flag="$shared_flag "'${wl}-G'
13350           fi
13351         else
13352           # not using gcc
13353           if test "$host_cpu" = ia64; then
13354           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13355           # chokes on -Wl,-G. The following line is correct:
13356           shared_flag='-G'
13357           else
13358             if test "$aix_use_runtimelinking" = yes; then
13359               shared_flag='${wl}-G'
13360             else
13361               shared_flag='${wl}-bM:SRE'
13362             fi
13363           fi
13364         fi
13365
13366         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13367         # It seems that -bexpall does not export symbols beginning with
13368         # underscore (_), so it is better to generate a list of symbols to
13369         # export.
13370         always_export_symbols_CXX=yes
13371         if test "$aix_use_runtimelinking" = yes; then
13372           # Warning - without using the other runtime loading flags (-brtl),
13373           # -berok will link without error, but may produce a broken library.
13374           allow_undefined_flag_CXX='-berok'
13375           # Determine the default libpath from the value encoded in an empty
13376           # executable.
13377           cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h.  */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h.  */
13383
13384 int
13385 main ()
13386 {
13387
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396   *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399   (eval "$ac_link") 2>conftest.er1
13400   ac_status=$?
13401   grep -v '^ *+' conftest.er1 >conftest.err
13402   rm -f conftest.er1
13403   cat conftest.err >&5
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); } && {
13406          test -z "$ac_cxx_werror_flag" ||
13407          test ! -s conftest.err
13408        } && test -s conftest$ac_exeext &&
13409        $as_test_x conftest$ac_exeext; then
13410
13411 lt_aix_libpath_sed='
13412     /Import File Strings/,/^$/ {
13413         /^0/ {
13414             s/^0  *\(.*\)$/\1/
13415             p
13416         }
13417     }'
13418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13419 # Check for a 64-bit object if we didn't find anything.
13420 if test -z "$aix_libpath"; then
13421   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13422 fi
13423 else
13424   echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13426
13427
13428 fi
13429
13430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431       conftest$ac_exeext conftest.$ac_ext
13432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13433
13434           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13435
13436           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13437         else
13438           if test "$host_cpu" = ia64; then
13439             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13440             allow_undefined_flag_CXX="-z nodefs"
13441             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13442           else
13443             # Determine the default libpath from the value encoded in an
13444             # empty executable.
13445             cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451
13452 int
13453 main ()
13454 {
13455
13456   ;
13457   return 0;
13458 }
13459 _ACEOF
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (ac_try="$ac_link"
13462 case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_link") 2>conftest.er1
13468   ac_status=$?
13469   grep -v '^ *+' conftest.er1 >conftest.err
13470   rm -f conftest.er1
13471   cat conftest.err >&5
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } && {
13474          test -z "$ac_cxx_werror_flag" ||
13475          test ! -s conftest.err
13476        } && test -s conftest$ac_exeext &&
13477        $as_test_x conftest$ac_exeext; then
13478
13479 lt_aix_libpath_sed='
13480     /Import File Strings/,/^$/ {
13481         /^0/ {
13482             s/^0  *\(.*\)$/\1/
13483             p
13484         }
13485     }'
13486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13487 # Check for a 64-bit object if we didn't find anything.
13488 if test -z "$aix_libpath"; then
13489   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13490 fi
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495
13496 fi
13497
13498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13499       conftest$ac_exeext conftest.$ac_ext
13500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13501
13502             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13503             # Warning - without using the other run time loading flags,
13504             # -berok will link without error, but may produce a broken library.
13505             no_undefined_flag_CXX=' ${wl}-bernotok'
13506             allow_undefined_flag_CXX=' ${wl}-berok'
13507             # Exported symbols can be pulled into shared objects from archives
13508             whole_archive_flag_spec_CXX='$convenience'
13509             archive_cmds_need_lc_CXX=yes
13510             # This is similar to how AIX traditionally builds its shared
13511             # libraries.
13512             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13513           fi
13514         fi
13515         ;;
13516
13517       beos*)
13518         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13519           allow_undefined_flag_CXX=unsupported
13520           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13521           # support --undefined.  This deserves some investigation.  FIXME
13522           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13523         else
13524           ld_shlibs_CXX=no
13525         fi
13526         ;;
13527
13528       chorus*)
13529         case $cc_basename in
13530           *)
13531           # FIXME: insert proper C++ library support
13532           ld_shlibs_CXX=no
13533           ;;
13534         esac
13535         ;;
13536
13537       cygwin* | mingw* | pw32* | cegcc*)
13538         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13539         # as there is no search path for DLLs.
13540         hardcode_libdir_flag_spec_CXX='-L$libdir'
13541         allow_undefined_flag_CXX=unsupported
13542         always_export_symbols_CXX=no
13543         enable_shared_with_static_runtimes_CXX=yes
13544
13545         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13546           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13547           # If the export-symbols file already is a .def file (1st line
13548           # is EXPORTS), use it as is; otherwise, prepend...
13549           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13550             cp $export_symbols $output_objdir/$soname.def;
13551           else
13552             echo EXPORTS > $output_objdir/$soname.def;
13553             cat $export_symbols >> $output_objdir/$soname.def;
13554           fi~
13555           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13556         else
13557           ld_shlibs_CXX=no
13558         fi
13559         ;;
13560       darwin* | rhapsody*)
13561
13562
13563   archive_cmds_need_lc_CXX=no
13564   hardcode_direct_CXX=no
13565   hardcode_automatic_CXX=yes
13566   hardcode_shlibpath_var_CXX=unsupported
13567   whole_archive_flag_spec_CXX=''
13568   link_all_deplibs_CXX=yes
13569   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13570   case $cc_basename in
13571      ifort*) _lt_dar_can_shared=yes ;;
13572      *) _lt_dar_can_shared=$GCC ;;
13573   esac
13574   if test "$_lt_dar_can_shared" = "yes"; then
13575     output_verbose_link_cmd=echo
13576     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13577     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13578     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13579     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13580        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13581       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13582       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13583     fi
13584
13585   else
13586   ld_shlibs_CXX=no
13587   fi
13588
13589         ;;
13590
13591       dgux*)
13592         case $cc_basename in
13593           ec++*)
13594             # FIXME: insert proper C++ library support
13595             ld_shlibs_CXX=no
13596             ;;
13597           ghcx*)
13598             # Green Hills C++ Compiler
13599             # FIXME: insert proper C++ library support
13600             ld_shlibs_CXX=no
13601             ;;
13602           *)
13603             # FIXME: insert proper C++ library support
13604             ld_shlibs_CXX=no
13605             ;;
13606         esac
13607         ;;
13608
13609       freebsd[12]*)
13610         # C++ shared libraries reported to be fairly broken before
13611         # switch to ELF
13612         ld_shlibs_CXX=no
13613         ;;
13614
13615       freebsd-elf*)
13616         archive_cmds_need_lc_CXX=no
13617         ;;
13618
13619       freebsd* | dragonfly*)
13620         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13621         # conventions
13622         ld_shlibs_CXX=yes
13623         ;;
13624
13625       gnu*)
13626         ;;
13627
13628       hpux9*)
13629         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13630         hardcode_libdir_separator_CXX=:
13631         export_dynamic_flag_spec_CXX='${wl}-E'
13632         hardcode_direct_CXX=yes
13633         hardcode_minus_L_CXX=yes # Not in the search PATH,
13634                                              # but as the default
13635                                              # location of the library.
13636
13637         case $cc_basename in
13638           CC*)
13639             # FIXME: insert proper C++ library support
13640             ld_shlibs_CXX=no
13641             ;;
13642           aCC*)
13643             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13644             # Commands to make compiler produce verbose output that lists
13645             # what "hidden" libraries, object files and flags are used when
13646             # linking a shared library.
13647             #
13648             # There doesn't appear to be a way to prevent this compiler from
13649             # explicitly linking system object files so we need to strip them
13650             # from the output so that they don't get included in the library
13651             # dependencies.
13652             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13653             ;;
13654           *)
13655             if test "$GXX" = yes; then
13656               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13657             else
13658               # FIXME: insert proper C++ library support
13659               ld_shlibs_CXX=no
13660             fi
13661             ;;
13662         esac
13663         ;;
13664
13665       hpux10*|hpux11*)
13666         if test $with_gnu_ld = no; then
13667           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13668           hardcode_libdir_separator_CXX=:
13669
13670           case $host_cpu in
13671             hppa*64*|ia64*)
13672               ;;
13673             *)
13674               export_dynamic_flag_spec_CXX='${wl}-E'
13675               ;;
13676           esac
13677         fi
13678         case $host_cpu in
13679           hppa*64*|ia64*)
13680             hardcode_direct_CXX=no
13681             hardcode_shlibpath_var_CXX=no
13682             ;;
13683           *)
13684             hardcode_direct_CXX=yes
13685             hardcode_direct_absolute_CXX=yes
13686             hardcode_minus_L_CXX=yes # Not in the search PATH,
13687                                                  # but as the default
13688                                                  # location of the library.
13689             ;;
13690         esac
13691
13692         case $cc_basename in
13693           CC*)
13694             # FIXME: insert proper C++ library support
13695             ld_shlibs_CXX=no
13696             ;;
13697           aCC*)
13698             case $host_cpu in
13699               hppa*64*)
13700                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13701                 ;;
13702               ia64*)
13703                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13704                 ;;
13705               *)
13706                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13707                 ;;
13708             esac
13709             # Commands to make compiler produce verbose output that lists
13710             # what "hidden" libraries, object files and flags are used when
13711             # linking a shared library.
13712             #
13713             # There doesn't appear to be a way to prevent this compiler from
13714             # explicitly linking system object files so we need to strip them
13715             # from the output so that they don't get included in the library
13716             # dependencies.
13717             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13718             ;;
13719           *)
13720             if test "$GXX" = yes; then
13721               if test $with_gnu_ld = no; then
13722                 case $host_cpu in
13723                   hppa*64*)
13724                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13725                     ;;
13726                   ia64*)
13727                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13728                     ;;
13729                   *)
13730                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13731                     ;;
13732                 esac
13733               fi
13734             else
13735               # FIXME: insert proper C++ library support
13736               ld_shlibs_CXX=no
13737             fi
13738             ;;
13739         esac
13740         ;;
13741
13742       interix[3-9]*)
13743         hardcode_direct_CXX=no
13744         hardcode_shlibpath_var_CXX=no
13745         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746         export_dynamic_flag_spec_CXX='${wl}-E'
13747         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13748         # Instead, shared libraries are loaded at an image base (0x10000000 by
13749         # default) and relocated if they conflict, which is a slow very memory
13750         # consuming and fragmenting process.  To avoid this, we pick a random,
13751         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13752         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13753         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13754         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13755         ;;
13756       irix5* | irix6*)
13757         case $cc_basename in
13758           CC*)
13759             # SGI C++
13760             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13761
13762             # Archives containing C++ object files must be created using
13763             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13764             # necessary to make sure instantiated templates are included
13765             # in the archive.
13766             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13767             ;;
13768           *)
13769             if test "$GXX" = yes; then
13770               if test "$with_gnu_ld" = no; then
13771                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13772               else
13773                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13774               fi
13775             fi
13776             link_all_deplibs_CXX=yes
13777             ;;
13778         esac
13779         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13780         hardcode_libdir_separator_CXX=:
13781         inherit_rpath_CXX=yes
13782         ;;
13783
13784       linux* | k*bsd*-gnu)
13785         case $cc_basename in
13786           KCC*)
13787             # Kuck and Associates, Inc. (KAI) C++ Compiler
13788
13789             # KCC will only create a shared library if the output file
13790             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13791             # to its proper name (with version) after linking.
13792             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13793             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13794             # Commands to make compiler produce verbose output that lists
13795             # what "hidden" libraries, object files and flags are used when
13796             # linking a shared library.
13797             #
13798             # There doesn't appear to be a way to prevent this compiler from
13799             # explicitly linking system object files so we need to strip them
13800             # from the output so that they don't get included in the library
13801             # dependencies.
13802             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13803
13804             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13805             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13806
13807             # Archives containing C++ object files must be created using
13808             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13809             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13810             ;;
13811           icpc* | ecpc* )
13812             # Intel C++
13813             with_gnu_ld=yes
13814             # version 8.0 and above of icpc choke on multiply defined symbols
13815             # if we add $predep_objects and $postdep_objects, however 7.1 and
13816             # earlier do not add the objects themselves.
13817             case `$CC -V 2>&1` in
13818               *"Version 7."*)
13819                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13821                 ;;
13822               *)  # Version 8.0 or newer
13823                 tmp_idyn=
13824                 case $host_cpu in
13825                   ia64*) tmp_idyn=' -i_dynamic';;
13826                 esac
13827                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13829                 ;;
13830             esac
13831             archive_cmds_need_lc_CXX=no
13832             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13833             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13835             ;;
13836           pgCC* | pgcpp*)
13837             # Portland Group C++ compiler
13838             case `$CC -V` in
13839             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13840               prelink_cmds_CXX='tpldir=Template.dir~
13841                 rm -rf $tpldir~
13842                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13843                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13844               old_archive_cmds_CXX='tpldir=Template.dir~
13845                 rm -rf $tpldir~
13846                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13847                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13848                 $RANLIB $oldlib'
13849               archive_cmds_CXX='tpldir=Template.dir~
13850                 rm -rf $tpldir~
13851                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13853               archive_expsym_cmds_CXX='tpldir=Template.dir~
13854                 rm -rf $tpldir~
13855                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13856                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13857               ;;
13858             *) # Version 6 will use weak symbols
13859               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13860               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13861               ;;
13862             esac
13863
13864             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13865             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13866             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13867             ;;
13868           cxx*)
13869             # Compaq C++
13870             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13872
13873             runpath_var=LD_RUN_PATH
13874             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13875             hardcode_libdir_separator_CXX=:
13876
13877             # Commands to make compiler produce verbose output that lists
13878             # what "hidden" libraries, object files and flags are used when
13879             # linking a shared library.
13880             #
13881             # There doesn't appear to be a way to prevent this compiler from
13882             # explicitly linking system object files so we need to strip them
13883             # from the output so that they don't get included in the library
13884             # dependencies.
13885             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13886             ;;
13887           xl*)
13888             # IBM XL 8.0 on PPC, with GNU ld
13889             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13890             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13891             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13892             if test "x$supports_anon_versioning" = xyes; then
13893               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13894                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13895                 echo "local: *; };" >> $output_objdir/$libname.ver~
13896                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13897             fi
13898             ;;
13899           *)
13900             case `$CC -V 2>&1 | sed 5q` in
13901             *Sun\ C*)
13902               # Sun C++ 5.9
13903               no_undefined_flag_CXX=' -zdefs'
13904               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13906               hardcode_libdir_flag_spec_CXX='-R$libdir'
13907               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13908               compiler_needs_object_CXX=yes
13909
13910               # Not sure whether something based on
13911               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13912               # would be better.
13913               output_verbose_link_cmd='echo'
13914
13915               # Archives containing C++ object files must be created using
13916               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13917               # necessary to make sure instantiated templates are included
13918               # in the archive.
13919               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13920               ;;
13921             esac
13922             ;;
13923         esac
13924         ;;
13925
13926       lynxos*)
13927         # FIXME: insert proper C++ library support
13928         ld_shlibs_CXX=no
13929         ;;
13930
13931       m88k*)
13932         # FIXME: insert proper C++ library support
13933         ld_shlibs_CXX=no
13934         ;;
13935
13936       mvs*)
13937         case $cc_basename in
13938           cxx*)
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942           *)
13943             # FIXME: insert proper C++ library support
13944             ld_shlibs_CXX=no
13945             ;;
13946         esac
13947         ;;
13948
13949       netbsd*)
13950         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13951           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13952           wlarc=
13953           hardcode_libdir_flag_spec_CXX='-R$libdir'
13954           hardcode_direct_CXX=yes
13955           hardcode_shlibpath_var_CXX=no
13956         fi
13957         # Workaround some broken pre-1.5 toolchains
13958         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13959         ;;
13960
13961       *nto* | *qnx*)
13962         ld_shlibs_CXX=yes
13963         ;;
13964
13965       openbsd2*)
13966         # C++ shared libraries are fairly broken
13967         ld_shlibs_CXX=no
13968         ;;
13969
13970       openbsd*)
13971         if test -f /usr/libexec/ld.so; then
13972           hardcode_direct_CXX=yes
13973           hardcode_shlibpath_var_CXX=no
13974           hardcode_direct_absolute_CXX=yes
13975           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13976           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13977           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13978             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13979             export_dynamic_flag_spec_CXX='${wl}-E'
13980             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13981           fi
13982           output_verbose_link_cmd=echo
13983         else
13984           ld_shlibs_CXX=no
13985         fi
13986         ;;
13987
13988       osf3* | osf4* | osf5*)
13989         case $cc_basename in
13990           KCC*)
13991             # Kuck and Associates, Inc. (KAI) C++ Compiler
13992
13993             # KCC will only create a shared library if the output file
13994             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13995             # to its proper name (with version) after linking.
13996             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13997
13998             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13999             hardcode_libdir_separator_CXX=:
14000
14001             # Archives containing C++ object files must be created using
14002             # the KAI C++ compiler.
14003             case $host in
14004               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14005               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14006             esac
14007             ;;
14008           RCC*)
14009             # Rational C++ 2.4.1
14010             # FIXME: insert proper C++ library support
14011             ld_shlibs_CXX=no
14012             ;;
14013           cxx*)
14014             case $host in
14015               osf3*)
14016                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14017                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14018                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14019                 ;;
14020               *)
14021                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14022                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14023                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14024                   echo "-hidden">> $lib.exp~
14025                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14026                   $RM $lib.exp'
14027                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14028                 ;;
14029             esac
14030
14031             hardcode_libdir_separator_CXX=:
14032
14033             # Commands to make compiler produce verbose output that lists
14034             # what "hidden" libraries, object files and flags are used when
14035             # linking a shared library.
14036             #
14037             # There doesn't appear to be a way to prevent this compiler from
14038             # explicitly linking system object files so we need to strip them
14039             # from the output so that they don't get included in the library
14040             # dependencies.
14041             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14042             ;;
14043           *)
14044             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14045               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14046               case $host in
14047                 osf3*)
14048                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14049                   ;;
14050                 *)
14051                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14052                   ;;
14053               esac
14054
14055               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14056               hardcode_libdir_separator_CXX=:
14057
14058               # Commands to make compiler produce verbose output that lists
14059               # what "hidden" libraries, object files and flags are used when
14060               # linking a shared library.
14061               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14062
14063             else
14064               # FIXME: insert proper C++ library support
14065               ld_shlibs_CXX=no
14066             fi
14067             ;;
14068         esac
14069         ;;
14070
14071       psos*)
14072         # FIXME: insert proper C++ library support
14073         ld_shlibs_CXX=no
14074         ;;
14075
14076       sunos4*)
14077         case $cc_basename in
14078           CC*)
14079             # Sun C++ 4.x
14080             # FIXME: insert proper C++ library support
14081             ld_shlibs_CXX=no
14082             ;;
14083           lcc*)
14084             # Lucid
14085             # FIXME: insert proper C++ library support
14086             ld_shlibs_CXX=no
14087             ;;
14088           *)
14089             # FIXME: insert proper C++ library support
14090             ld_shlibs_CXX=no
14091             ;;
14092         esac
14093         ;;
14094
14095       solaris*)
14096         case $cc_basename in
14097           CC*)
14098             # Sun C++ 4.2, 5.x and Centerline C++
14099             archive_cmds_need_lc_CXX=yes
14100             no_undefined_flag_CXX=' -zdefs'
14101             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14102             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14103               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14104
14105             hardcode_libdir_flag_spec_CXX='-R$libdir'
14106             hardcode_shlibpath_var_CXX=no
14107             case $host_os in
14108               solaris2.[0-5] | solaris2.[0-5].*) ;;
14109               *)
14110                 # The compiler driver will combine and reorder linker options,
14111                 # but understands `-z linker_flag'.
14112                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14113                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14114                 ;;
14115             esac
14116             link_all_deplibs_CXX=yes
14117
14118             output_verbose_link_cmd='echo'
14119
14120             # Archives containing C++ object files must be created using
14121             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14122             # necessary to make sure instantiated templates are included
14123             # in the archive.
14124             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14125             ;;
14126           gcx*)
14127             # Green Hills C++ Compiler
14128             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14129
14130             # The C++ compiler must be used to create the archive.
14131             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14132             ;;
14133           *)
14134             # GNU C++ compiler with Solaris linker
14135             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14136               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14137               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14138                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14139                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14140                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14141
14142                 # Commands to make compiler produce verbose output that lists
14143                 # what "hidden" libraries, object files and flags are used when
14144                 # linking a shared library.
14145                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14146               else
14147                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14148                 # platform.
14149                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14150                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14151                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14152
14153                 # Commands to make compiler produce verbose output that lists
14154                 # what "hidden" libraries, object files and flags are used when
14155                 # linking a shared library.
14156                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14157               fi
14158
14159               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14160               case $host_os in
14161                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14162                 *)
14163                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14164                   ;;
14165               esac
14166             fi
14167             ;;
14168         esac
14169         ;;
14170
14171     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14172       no_undefined_flag_CXX='${wl}-z,text'
14173       archive_cmds_need_lc_CXX=no
14174       hardcode_shlibpath_var_CXX=no
14175       runpath_var='LD_RUN_PATH'
14176
14177       case $cc_basename in
14178         CC*)
14179           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181           ;;
14182         *)
14183           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185           ;;
14186       esac
14187       ;;
14188
14189       sysv5* | sco3.2v5* | sco5v6*)
14190         # Note: We can NOT use -z defs as we might desire, because we do not
14191         # link with -lc, and that would cause any symbols used from libc to
14192         # always be unresolved, which means just about no library would
14193         # ever link correctly.  If we're not using GNU ld we use -z text
14194         # though, which does catch some bad symbols but isn't as heavy-handed
14195         # as -z defs.
14196         no_undefined_flag_CXX='${wl}-z,text'
14197         allow_undefined_flag_CXX='${wl}-z,nodefs'
14198         archive_cmds_need_lc_CXX=no
14199         hardcode_shlibpath_var_CXX=no
14200         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14201         hardcode_libdir_separator_CXX=':'
14202         link_all_deplibs_CXX=yes
14203         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14204         runpath_var='LD_RUN_PATH'
14205
14206         case $cc_basename in
14207           CC*)
14208             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14210             ;;
14211           *)
14212             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14214             ;;
14215         esac
14216       ;;
14217
14218       tandem*)
14219         case $cc_basename in
14220           NCC*)
14221             # NonStop-UX NCC 3.20
14222             # FIXME: insert proper C++ library support
14223             ld_shlibs_CXX=no
14224             ;;
14225           *)
14226             # FIXME: insert proper C++ library support
14227             ld_shlibs_CXX=no
14228             ;;
14229         esac
14230         ;;
14231
14232       vxworks*)
14233         # FIXME: insert proper C++ library support
14234         ld_shlibs_CXX=no
14235         ;;
14236
14237       *)
14238         # FIXME: insert proper C++ library support
14239         ld_shlibs_CXX=no
14240         ;;
14241     esac
14242
14243     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14244 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14245     test "$ld_shlibs_CXX" = no && can_build_shared=no
14246
14247     GCC_CXX="$GXX"
14248     LD_CXX="$LD"
14249
14250     ## CAVEAT EMPTOR:
14251     ## There is no encapsulation within the following macros, do not change
14252     ## the running order or otherwise move them around unless you know exactly
14253     ## what you are doing...
14254     # Dependencies to place before and after the object being linked:
14255 predep_objects_CXX=
14256 postdep_objects_CXX=
14257 predeps_CXX=
14258 postdeps_CXX=
14259 compiler_lib_search_path_CXX=
14260
14261 cat > conftest.$ac_ext <<_LT_EOF
14262 class Foo
14263 {
14264 public:
14265   Foo (void) { a = 0; }
14266 private:
14267   int a;
14268 };
14269 _LT_EOF
14270
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272   (eval $ac_compile) 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); }; then
14276   # Parse the compiler output and extract the necessary
14277   # objects, libraries and library flags.
14278
14279   # Sentinel used to keep track of whether or not we are before
14280   # the conftest object file.
14281   pre_test_object_deps_done=no
14282
14283   for p in `eval "$output_verbose_link_cmd"`; do
14284     case $p in
14285
14286     -L* | -R* | -l*)
14287        # Some compilers place space between "-{L,R}" and the path.
14288        # Remove the space.
14289        if test $p = "-L" ||
14290           test $p = "-R"; then
14291          prev=$p
14292          continue
14293        else
14294          prev=
14295        fi
14296
14297        if test "$pre_test_object_deps_done" = no; then
14298          case $p in
14299          -L* | -R*)
14300            # Internal compiler library paths should come after those
14301            # provided the user.  The postdeps already come after the
14302            # user supplied libs so there is no need to process them.
14303            if test -z "$compiler_lib_search_path_CXX"; then
14304              compiler_lib_search_path_CXX="${prev}${p}"
14305            else
14306              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14307            fi
14308            ;;
14309          # The "-l" case would never come before the object being
14310          # linked, so don't bother handling this case.
14311          esac
14312        else
14313          if test -z "$postdeps_CXX"; then
14314            postdeps_CXX="${prev}${p}"
14315          else
14316            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14317          fi
14318        fi
14319        ;;
14320
14321     *.$objext)
14322        # This assumes that the test object file only shows up
14323        # once in the compiler output.
14324        if test "$p" = "conftest.$objext"; then
14325          pre_test_object_deps_done=yes
14326          continue
14327        fi
14328
14329        if test "$pre_test_object_deps_done" = no; then
14330          if test -z "$predep_objects_CXX"; then
14331            predep_objects_CXX="$p"
14332          else
14333            predep_objects_CXX="$predep_objects_CXX $p"
14334          fi
14335        else
14336          if test -z "$postdep_objects_CXX"; then
14337            postdep_objects_CXX="$p"
14338          else
14339            postdep_objects_CXX="$postdep_objects_CXX $p"
14340          fi
14341        fi
14342        ;;
14343
14344     *) ;; # Ignore the rest.
14345
14346     esac
14347   done
14348
14349   # Clean up.
14350   rm -f a.out a.exe
14351 else
14352   echo "libtool.m4: error: problem compiling CXX test program"
14353 fi
14354
14355 $RM -f confest.$objext
14356
14357 # PORTME: override above test on systems where it is broken
14358 case $host_os in
14359 interix[3-9]*)
14360   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14361   # hack all around it, let's just trust "g++" to DTRT.
14362   predep_objects_CXX=
14363   postdep_objects_CXX=
14364   postdeps_CXX=
14365   ;;
14366
14367 linux*)
14368   case `$CC -V 2>&1 | sed 5q` in
14369   *Sun\ C*)
14370     # Sun C++ 5.9
14371
14372     # The more standards-conforming stlport4 library is
14373     # incompatible with the Cstd library. Avoid specifying
14374     # it if it's in CXXFLAGS. Ignore libCrun as
14375     # -library=stlport4 depends on it.
14376     case " $CXX $CXXFLAGS " in
14377     *" -library=stlport4 "*)
14378       solaris_use_stlport4=yes
14379       ;;
14380     esac
14381
14382     if test "$solaris_use_stlport4" != yes; then
14383       postdeps_CXX='-library=Cstd -library=Crun'
14384     fi
14385     ;;
14386   esac
14387   ;;
14388
14389 solaris*)
14390   case $cc_basename in
14391   CC*)
14392     # The more standards-conforming stlport4 library is
14393     # incompatible with the Cstd library. Avoid specifying
14394     # it if it's in CXXFLAGS. Ignore libCrun as
14395     # -library=stlport4 depends on it.
14396     case " $CXX $CXXFLAGS " in
14397     *" -library=stlport4 "*)
14398       solaris_use_stlport4=yes
14399       ;;
14400     esac
14401
14402     # Adding this requires a known-good setup of shared libraries for
14403     # Sun compiler versions before 5.6, else PIC objects from an old
14404     # archive will be linked into the output, leading to subtle bugs.
14405     if test "$solaris_use_stlport4" != yes; then
14406       postdeps_CXX='-library=Cstd -library=Crun'
14407     fi
14408     ;;
14409   esac
14410   ;;
14411 esac
14412
14413
14414 case " $postdeps_CXX " in
14415 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14416 esac
14417  compiler_lib_search_dirs_CXX=
14418 if test -n "${compiler_lib_search_path_CXX}"; then
14419  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14420 fi
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452     lt_prog_compiler_wl_CXX=
14453 lt_prog_compiler_pic_CXX=
14454 lt_prog_compiler_static_CXX=
14455
14456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14458
14459   # C++ specific cases for pic, static, wl, etc.
14460   if test "$GXX" = yes; then
14461     lt_prog_compiler_wl_CXX='-Wl,'
14462     lt_prog_compiler_static_CXX='-static'
14463
14464     case $host_os in
14465     aix*)
14466       # All AIX code is PIC.
14467       if test "$host_cpu" = ia64; then
14468         # AIX 5 now supports IA64 processor
14469         lt_prog_compiler_static_CXX='-Bstatic'
14470       fi
14471       ;;
14472
14473     amigaos*)
14474       case $host_cpu in
14475       powerpc)
14476             # see comment about AmigaOS4 .so support
14477             lt_prog_compiler_pic_CXX='-fPIC'
14478         ;;
14479       m68k)
14480             # FIXME: we need at least 68020 code to build shared libraries, but
14481             # adding the `-m68020' flag to GCC prevents building anything better,
14482             # like `-m68040'.
14483             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14484         ;;
14485       esac
14486       ;;
14487
14488     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14489       # PIC is the default for these OSes.
14490       ;;
14491     mingw* | cygwin* | os2* | pw32* | cegcc*)
14492       # This hack is so that the source file can tell whether it is being
14493       # built for inclusion in a dll (and should export symbols for example).
14494       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14495       # (--disable-auto-import) libraries
14496       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14497       ;;
14498     darwin* | rhapsody*)
14499       # PIC is the default on this platform
14500       # Common symbols not allowed in MH_DYLIB files
14501       lt_prog_compiler_pic_CXX='-fno-common'
14502       ;;
14503     *djgpp*)
14504       # DJGPP does not support shared libraries at all
14505       lt_prog_compiler_pic_CXX=
14506       ;;
14507     interix[3-9]*)
14508       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14509       # Instead, we relocate shared libraries at runtime.
14510       ;;
14511     sysv4*MP*)
14512       if test -d /usr/nec; then
14513         lt_prog_compiler_pic_CXX=-Kconform_pic
14514       fi
14515       ;;
14516     hpux*)
14517       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14518       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14519       # sets the default TLS model and affects inlining.
14520       case $host_cpu in
14521       hppa*64*)
14522         ;;
14523       *)
14524         lt_prog_compiler_pic_CXX='-fPIC'
14525         ;;
14526       esac
14527       ;;
14528     *qnx* | *nto*)
14529       # QNX uses GNU C++, but need to define -shared option too, otherwise
14530       # it will coredump.
14531       lt_prog_compiler_pic_CXX='-fPIC -shared'
14532       ;;
14533     *)
14534       lt_prog_compiler_pic_CXX='-fPIC'
14535       ;;
14536     esac
14537   else
14538     case $host_os in
14539       aix[4-9]*)
14540         # All AIX code is PIC.
14541         if test "$host_cpu" = ia64; then
14542           # AIX 5 now supports IA64 processor
14543           lt_prog_compiler_static_CXX='-Bstatic'
14544         else
14545           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14546         fi
14547         ;;
14548       chorus*)
14549         case $cc_basename in
14550         cxch68*)
14551           # Green Hills C++ Compiler
14552           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14553           ;;
14554         esac
14555         ;;
14556       dgux*)
14557         case $cc_basename in
14558           ec++*)
14559             lt_prog_compiler_pic_CXX='-KPIC'
14560             ;;
14561           ghcx*)
14562             # Green Hills C++ Compiler
14563             lt_prog_compiler_pic_CXX='-pic'
14564             ;;
14565           *)
14566             ;;
14567         esac
14568         ;;
14569       freebsd* | dragonfly*)
14570         # FreeBSD uses GNU C++
14571         ;;
14572       hpux9* | hpux10* | hpux11*)
14573         case $cc_basename in
14574           CC*)
14575             lt_prog_compiler_wl_CXX='-Wl,'
14576             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14577             if test "$host_cpu" != ia64; then
14578               lt_prog_compiler_pic_CXX='+Z'
14579             fi
14580             ;;
14581           aCC*)
14582             lt_prog_compiler_wl_CXX='-Wl,'
14583             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14584             case $host_cpu in
14585             hppa*64*|ia64*)
14586               # +Z the default
14587               ;;
14588             *)
14589               lt_prog_compiler_pic_CXX='+Z'
14590               ;;
14591             esac
14592             ;;
14593           *)
14594             ;;
14595         esac
14596         ;;
14597       interix*)
14598         # This is c89, which is MS Visual C++ (no shared libs)
14599         # Anyone wants to do a port?
14600         ;;
14601       irix5* | irix6* | nonstopux*)
14602         case $cc_basename in
14603           CC*)
14604             lt_prog_compiler_wl_CXX='-Wl,'
14605             lt_prog_compiler_static_CXX='-non_shared'
14606             # CC pic flag -KPIC is the default.
14607             ;;
14608           *)
14609             ;;
14610         esac
14611         ;;
14612       linux* | k*bsd*-gnu)
14613         case $cc_basename in
14614           KCC*)
14615             # KAI C++ Compiler
14616             lt_prog_compiler_wl_CXX='--backend -Wl,'
14617             lt_prog_compiler_pic_CXX='-fPIC'
14618             ;;
14619           ecpc* )
14620             # old Intel C++ for x86_64 which still supported -KPIC.
14621             lt_prog_compiler_wl_CXX='-Wl,'
14622             lt_prog_compiler_pic_CXX='-KPIC'
14623             lt_prog_compiler_static_CXX='-static'
14624             ;;
14625           icpc* )
14626             # Intel C++, used to be incompatible with GCC.
14627             # ICC 10 doesn't accept -KPIC any more.
14628             lt_prog_compiler_wl_CXX='-Wl,'
14629             lt_prog_compiler_pic_CXX='-fPIC'
14630             lt_prog_compiler_static_CXX='-static'
14631             ;;
14632           pgCC* | pgcpp*)
14633             # Portland Group C++ compiler
14634             lt_prog_compiler_wl_CXX='-Wl,'
14635             lt_prog_compiler_pic_CXX='-fpic'
14636             lt_prog_compiler_static_CXX='-Bstatic'
14637             ;;
14638           cxx*)
14639             # Compaq C++
14640             # Make sure the PIC flag is empty.  It appears that all Alpha
14641             # Linux and Compaq Tru64 Unix objects are PIC.
14642             lt_prog_compiler_pic_CXX=
14643             lt_prog_compiler_static_CXX='-non_shared'
14644             ;;
14645           xlc* | xlC*)
14646             # IBM XL 8.0 on PPC
14647             lt_prog_compiler_wl_CXX='-Wl,'
14648             lt_prog_compiler_pic_CXX='-qpic'
14649             lt_prog_compiler_static_CXX='-qstaticlink'
14650             ;;
14651           *)
14652             case `$CC -V 2>&1 | sed 5q` in
14653             *Sun\ C*)
14654               # Sun C++ 5.9
14655               lt_prog_compiler_pic_CXX='-KPIC'
14656               lt_prog_compiler_static_CXX='-Bstatic'
14657               lt_prog_compiler_wl_CXX='-Qoption ld '
14658               ;;
14659             esac
14660             ;;
14661         esac
14662         ;;
14663       lynxos*)
14664         ;;
14665       m88k*)
14666         ;;
14667       mvs*)
14668         case $cc_basename in
14669           cxx*)
14670             lt_prog_compiler_pic_CXX='-W c,exportall'
14671             ;;
14672           *)
14673             ;;
14674         esac
14675         ;;
14676       netbsd*)
14677         ;;
14678       *qnx* | *nto*)
14679         # QNX uses GNU C++, but need to define -shared option too, otherwise
14680         # it will coredump.
14681         lt_prog_compiler_pic_CXX='-fPIC -shared'
14682         ;;
14683       osf3* | osf4* | osf5*)
14684         case $cc_basename in
14685           KCC*)
14686             lt_prog_compiler_wl_CXX='--backend -Wl,'
14687             ;;
14688           RCC*)
14689             # Rational C++ 2.4.1
14690             lt_prog_compiler_pic_CXX='-pic'
14691             ;;
14692           cxx*)
14693             # Digital/Compaq C++
14694             lt_prog_compiler_wl_CXX='-Wl,'
14695             # Make sure the PIC flag is empty.  It appears that all Alpha
14696             # Linux and Compaq Tru64 Unix objects are PIC.
14697             lt_prog_compiler_pic_CXX=
14698             lt_prog_compiler_static_CXX='-non_shared'
14699             ;;
14700           *)
14701             ;;
14702         esac
14703         ;;
14704       psos*)
14705         ;;
14706       solaris*)
14707         case $cc_basename in
14708           CC*)
14709             # Sun C++ 4.2, 5.x and Centerline C++
14710             lt_prog_compiler_pic_CXX='-KPIC'
14711             lt_prog_compiler_static_CXX='-Bstatic'
14712             lt_prog_compiler_wl_CXX='-Qoption ld '
14713             ;;
14714           gcx*)
14715             # Green Hills C++ Compiler
14716             lt_prog_compiler_pic_CXX='-PIC'
14717             ;;
14718           *)
14719             ;;
14720         esac
14721         ;;
14722       sunos4*)
14723         case $cc_basename in
14724           CC*)
14725             # Sun C++ 4.x
14726             lt_prog_compiler_pic_CXX='-pic'
14727             lt_prog_compiler_static_CXX='-Bstatic'
14728             ;;
14729           lcc*)
14730             # Lucid
14731             lt_prog_compiler_pic_CXX='-pic'
14732             ;;
14733           *)
14734             ;;
14735         esac
14736         ;;
14737       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14738         case $cc_basename in
14739           CC*)
14740             lt_prog_compiler_wl_CXX='-Wl,'
14741             lt_prog_compiler_pic_CXX='-KPIC'
14742             lt_prog_compiler_static_CXX='-Bstatic'
14743             ;;
14744         esac
14745         ;;
14746       tandem*)
14747         case $cc_basename in
14748           NCC*)
14749             # NonStop-UX NCC 3.20
14750             lt_prog_compiler_pic_CXX='-KPIC'
14751             ;;
14752           *)
14753             ;;
14754         esac
14755         ;;
14756       vxworks*)
14757         ;;
14758       *)
14759         lt_prog_compiler_can_build_shared_CXX=no
14760         ;;
14761     esac
14762   fi
14763
14764 case $host_os in
14765   # For platforms which do not support PIC, -DPIC is meaningless:
14766   *djgpp*)
14767     lt_prog_compiler_pic_CXX=
14768     ;;
14769   *)
14770     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14771     ;;
14772 esac
14773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14774 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14775
14776
14777
14778 #
14779 # Check to make sure the PIC flag actually works.
14780 #
14781 if test -n "$lt_prog_compiler_pic_CXX"; then
14782   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   lt_cv_prog_compiler_pic_works_CXX=no
14788    ac_outfile=conftest.$ac_objext
14789    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14790    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14791    # Insert the option either (1) after the last *FLAGS variable, or
14792    # (2) before a word containing "conftest.", or (3) at the end.
14793    # Note that $ac_compile itself does not contain backslashes and begins
14794    # with a dollar sign (not a hyphen), so the echo should work correctly.
14795    # The option is referenced via a variable to avoid confusing sed.
14796    lt_compile=`echo "$ac_compile" | $SED \
14797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14799    -e 's:$: $lt_compiler_flag:'`
14800    (eval echo "\"\$as_me:14800: $lt_compile\"" >&5)
14801    (eval "$lt_compile" 2>conftest.err)
14802    ac_status=$?
14803    cat conftest.err >&5
14804    echo "$as_me:14804: \$? = $ac_status" >&5
14805    if (exit $ac_status) && test -s "$ac_outfile"; then
14806      # The compiler can only warn and ignore the option if not recognized
14807      # So say no if there are warnings other than the usual output.
14808      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14809      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14810      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14811        lt_cv_prog_compiler_pic_works_CXX=yes
14812      fi
14813    fi
14814    $RM conftest*
14815
14816 fi
14817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14818 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14819
14820 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14821     case $lt_prog_compiler_pic_CXX in
14822      "" | " "*) ;;
14823      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14824      esac
14825 else
14826     lt_prog_compiler_pic_CXX=
14827      lt_prog_compiler_can_build_shared_CXX=no
14828 fi
14829
14830 fi
14831
14832
14833
14834 #
14835 # Check to make sure the static flag actually works.
14836 #
14837 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14838 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14839 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14840 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14841   echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843   lt_cv_prog_compiler_static_works_CXX=no
14844    save_LDFLAGS="$LDFLAGS"
14845    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14846    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14847    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14848      # The linker can only warn and ignore the option if not recognized
14849      # So say no if there are warnings
14850      if test -s conftest.err; then
14851        # Append any errors to the config.log.
14852        cat conftest.err 1>&5
14853        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14854        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14855        if diff conftest.exp conftest.er2 >/dev/null; then
14856          lt_cv_prog_compiler_static_works_CXX=yes
14857        fi
14858      else
14859        lt_cv_prog_compiler_static_works_CXX=yes
14860      fi
14861    fi
14862    $RM -r conftest*
14863    LDFLAGS="$save_LDFLAGS"
14864
14865 fi
14866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14867 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14868
14869 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14870     :
14871 else
14872     lt_prog_compiler_static_CXX=
14873 fi
14874
14875
14876
14877
14878     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14880 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883   lt_cv_prog_compiler_c_o_CXX=no
14884    $RM -r conftest 2>/dev/null
14885    mkdir conftest
14886    cd conftest
14887    mkdir out
14888    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14889
14890    lt_compiler_flag="-o out/conftest2.$ac_objext"
14891    # Insert the option either (1) after the last *FLAGS variable, or
14892    # (2) before a word containing "conftest.", or (3) at the end.
14893    # Note that $ac_compile itself does not contain backslashes and begins
14894    # with a dollar sign (not a hyphen), so the echo should work correctly.
14895    lt_compile=`echo "$ac_compile" | $SED \
14896    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898    -e 's:$: $lt_compiler_flag:'`
14899    (eval echo "\"\$as_me:14899: $lt_compile\"" >&5)
14900    (eval "$lt_compile" 2>out/conftest.err)
14901    ac_status=$?
14902    cat out/conftest.err >&5
14903    echo "$as_me:14903: \$? = $ac_status" >&5
14904    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14905    then
14906      # The compiler can only warn and ignore the option if not recognized
14907      # So say no if there are warnings
14908      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14909      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14910      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14911        lt_cv_prog_compiler_c_o_CXX=yes
14912      fi
14913    fi
14914    chmod u+w . 2>&5
14915    $RM conftest*
14916    # SGI C++ compiler will create directory out/ii_files/ for
14917    # template instantiation
14918    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14919    $RM out/* && rmdir out
14920    cd ..
14921    $RM -r conftest
14922    $RM conftest*
14923
14924 fi
14925 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14927
14928
14929
14930     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14932 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   lt_cv_prog_compiler_c_o_CXX=no
14936    $RM -r conftest 2>/dev/null
14937    mkdir conftest
14938    cd conftest
14939    mkdir out
14940    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14941
14942    lt_compiler_flag="-o out/conftest2.$ac_objext"
14943    # Insert the option either (1) after the last *FLAGS variable, or
14944    # (2) before a word containing "conftest.", or (3) at the end.
14945    # Note that $ac_compile itself does not contain backslashes and begins
14946    # with a dollar sign (not a hyphen), so the echo should work correctly.
14947    lt_compile=`echo "$ac_compile" | $SED \
14948    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14949    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14950    -e 's:$: $lt_compiler_flag:'`
14951    (eval echo "\"\$as_me:14951: $lt_compile\"" >&5)
14952    (eval "$lt_compile" 2>out/conftest.err)
14953    ac_status=$?
14954    cat out/conftest.err >&5
14955    echo "$as_me:14955: \$? = $ac_status" >&5
14956    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14957    then
14958      # The compiler can only warn and ignore the option if not recognized
14959      # So say no if there are warnings
14960      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14961      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14962      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14963        lt_cv_prog_compiler_c_o_CXX=yes
14964      fi
14965    fi
14966    chmod u+w . 2>&5
14967    $RM conftest*
14968    # SGI C++ compiler will create directory out/ii_files/ for
14969    # template instantiation
14970    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14971    $RM out/* && rmdir out
14972    cd ..
14973    $RM -r conftest
14974    $RM conftest*
14975
14976 fi
14977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14979
14980
14981
14982
14983 hard_links="nottested"
14984 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14985   # do not overwrite the value of need_locks provided by the user
14986   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14987 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14988   hard_links=yes
14989   $RM conftest*
14990   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991   touch conftest.a
14992   ln conftest.a conftest.b 2>&5 || hard_links=no
14993   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994   { echo "$as_me:$LINENO: result: $hard_links" >&5
14995 echo "${ECHO_T}$hard_links" >&6; }
14996   if test "$hard_links" = no; then
14997     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14998 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14999     need_locks=warn
15000   fi
15001 else
15002   need_locks=no
15003 fi
15004
15005
15006
15007     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15009
15010   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15011   case $host_os in
15012   aix[4-9]*)
15013     # If we're using GNU nm, then we don't want the "-C" option.
15014     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15015     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15016       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15017     else
15018       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15019     fi
15020     ;;
15021   pw32*)
15022     export_symbols_cmds_CXX="$ltdll_cmds"
15023   ;;
15024   cygwin* | mingw* | cegcc*)
15025     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15026   ;;
15027   *)
15028     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15029   ;;
15030   esac
15031   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15032
15033 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15034 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15035 test "$ld_shlibs_CXX" = no && can_build_shared=no
15036
15037 with_gnu_ld_CXX=$with_gnu_ld
15038
15039
15040
15041
15042
15043
15044 #
15045 # Do we need to explicitly link libc?
15046 #
15047 case "x$archive_cmds_need_lc_CXX" in
15048 x|xyes)
15049   # Assume -lc should be added
15050   archive_cmds_need_lc_CXX=yes
15051
15052   if test "$enable_shared" = yes && test "$GCC" = yes; then
15053     case $archive_cmds_CXX in
15054     *'~'*)
15055       # FIXME: we may have to deal with multi-command sequences.
15056       ;;
15057     '$CC '*)
15058       # Test whether the compiler implicitly links with -lc since on some
15059       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15060       # to ld, don't add -lc before -lgcc.
15061       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15062 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15063       $RM conftest*
15064       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15065
15066       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067   (eval $ac_compile) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); } 2>conftest.err; then
15071         soname=conftest
15072         lib=conftest
15073         libobjs=conftest.$ac_objext
15074         deplibs=
15075         wl=$lt_prog_compiler_wl_CXX
15076         pic_flag=$lt_prog_compiler_pic_CXX
15077         compiler_flags=-v
15078         linker_flags=-v
15079         verstring=
15080         output_objdir=.
15081         libname=conftest
15082         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15083         allow_undefined_flag_CXX=
15084         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15085   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }
15089         then
15090           archive_cmds_need_lc_CXX=no
15091         else
15092           archive_cmds_need_lc_CXX=yes
15093         fi
15094         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15095       else
15096         cat conftest.err 1>&5
15097       fi
15098       $RM conftest*
15099       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15100 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15101       ;;
15102     esac
15103   fi
15104   ;;
15105 esac
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15172
15173 library_names_spec=
15174 libname_spec='lib$name'
15175 soname_spec=
15176 shrext_cmds=".so"
15177 postinstall_cmds=
15178 postuninstall_cmds=
15179 finish_cmds=
15180 finish_eval=
15181 shlibpath_var=
15182 shlibpath_overrides_runpath=unknown
15183 version_type=none
15184 dynamic_linker="$host_os ld.so"
15185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15186 need_lib_prefix=unknown
15187 hardcode_into_libs=no
15188
15189 # when you set need_version to no, make sure it does not cause -set_version
15190 # flags to be left without arguments
15191 need_version=unknown
15192
15193 case $host_os in
15194 aix3*)
15195   version_type=linux
15196   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15197   shlibpath_var=LIBPATH
15198
15199   # AIX 3 has no versioning support, so we append a major version to the name.
15200   soname_spec='${libname}${release}${shared_ext}$major'
15201   ;;
15202
15203 aix[4-9]*)
15204   version_type=linux
15205   need_lib_prefix=no
15206   need_version=no
15207   hardcode_into_libs=yes
15208   if test "$host_cpu" = ia64; then
15209     # AIX 5 supports IA64
15210     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15211     shlibpath_var=LD_LIBRARY_PATH
15212   else
15213     # With GCC up to 2.95.x, collect2 would create an import file
15214     # for dependence libraries.  The import file would start with
15215     # the line `#! .'.  This would cause the generated library to
15216     # depend on `.', always an invalid library.  This was fixed in
15217     # development snapshots of GCC prior to 3.0.
15218     case $host_os in
15219       aix4 | aix4.[01] | aix4.[01].*)
15220       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15221            echo ' yes '
15222            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15223         :
15224       else
15225         can_build_shared=no
15226       fi
15227       ;;
15228     esac
15229     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15230     # soname into executable. Probably we can add versioning support to
15231     # collect2, so additional links can be useful in future.
15232     if test "$aix_use_runtimelinking" = yes; then
15233       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15234       # instead of lib<name>.a to let people know that these are not
15235       # typical AIX shared libraries.
15236       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237     else
15238       # We preserve .a as extension for shared libraries through AIX4.2
15239       # and later when we are not doing run time linking.
15240       library_names_spec='${libname}${release}.a $libname.a'
15241       soname_spec='${libname}${release}${shared_ext}$major'
15242     fi
15243     shlibpath_var=LIBPATH
15244   fi
15245   ;;
15246
15247 amigaos*)
15248   case $host_cpu in
15249   powerpc)
15250     # Since July 2007 AmigaOS4 officially supports .so libraries.
15251     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253     ;;
15254   m68k)
15255     library_names_spec='$libname.ixlibrary $libname.a'
15256     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15257     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15258     ;;
15259   esac
15260   ;;
15261
15262 beos*)
15263   library_names_spec='${libname}${shared_ext}'
15264   dynamic_linker="$host_os ld.so"
15265   shlibpath_var=LIBRARY_PATH
15266   ;;
15267
15268 bsdi[45]*)
15269   version_type=linux
15270   need_version=no
15271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272   soname_spec='${libname}${release}${shared_ext}$major'
15273   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15274   shlibpath_var=LD_LIBRARY_PATH
15275   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15276   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15277   # the default ld.so.conf also contains /usr/contrib/lib and
15278   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15279   # libtool to hard-code these into programs
15280   ;;
15281
15282 cygwin* | mingw* | pw32* | cegcc*)
15283   version_type=windows
15284   shrext_cmds=".dll"
15285   need_version=no
15286   need_lib_prefix=no
15287
15288   case $GCC,$host_os in
15289   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15290     library_names_spec='$libname.dll.a'
15291     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15292     postinstall_cmds='base_file=`basename \${file}`~
15293       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15294       dldir=$destdir/`dirname \$dlpath`~
15295       test -d \$dldir || mkdir -p \$dldir~
15296       $install_prog $dir/$dlname \$dldir/$dlname~
15297       chmod a+x \$dldir/$dlname~
15298       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15299         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15300       fi'
15301     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15302       dlpath=$dir/\$dldll~
15303        $RM \$dlpath'
15304     shlibpath_overrides_runpath=yes
15305
15306     case $host_os in
15307     cygwin*)
15308       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15309       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15311       ;;
15312     mingw* | cegcc*)
15313       # MinGW DLLs use traditional 'lib' prefix
15314       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15315       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15316       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15317         # It is most probably a Windows format PATH printed by
15318         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15319         # path with ; separators, and with drive letters. We can handle the
15320         # drive letters (cygwin fileutils understands them), so leave them,
15321         # especially as we might pass files found there to a mingw objdump,
15322         # which wouldn't understand a cygwinified path. Ahh.
15323         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15324       else
15325         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15326       fi
15327       ;;
15328     pw32*)
15329       # pw32 DLLs use 'pw' prefix rather than 'lib'
15330       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15331       ;;
15332     esac
15333     ;;
15334
15335   *)
15336     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15337     ;;
15338   esac
15339   dynamic_linker='Win32 ld.exe'
15340   # FIXME: first we should search . and the directory the executable is in
15341   shlibpath_var=PATH
15342   ;;
15343
15344 darwin* | rhapsody*)
15345   dynamic_linker="$host_os dyld"
15346   version_type=darwin
15347   need_lib_prefix=no
15348   need_version=no
15349   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15350   soname_spec='${libname}${release}${major}$shared_ext'
15351   shlibpath_overrides_runpath=yes
15352   shlibpath_var=DYLD_LIBRARY_PATH
15353   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15354
15355   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15356   ;;
15357
15358 dgux*)
15359   version_type=linux
15360   need_lib_prefix=no
15361   need_version=no
15362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15363   soname_spec='${libname}${release}${shared_ext}$major'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   ;;
15366
15367 freebsd1*)
15368   dynamic_linker=no
15369   ;;
15370
15371 freebsd* | dragonfly*)
15372   # DragonFly does not have aout.  When/if they implement a new
15373   # versioning mechanism, adjust this.
15374   if test -x /usr/bin/objformat; then
15375     objformat=`/usr/bin/objformat`
15376   else
15377     case $host_os in
15378     freebsd[123]*) objformat=aout ;;
15379     *) objformat=elf ;;
15380     esac
15381   fi
15382   version_type=freebsd-$objformat
15383   case $version_type in
15384     freebsd-elf*)
15385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15386       need_version=no
15387       need_lib_prefix=no
15388       ;;
15389     freebsd-*)
15390       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15391       need_version=yes
15392       ;;
15393   esac
15394   shlibpath_var=LD_LIBRARY_PATH
15395   case $host_os in
15396   freebsd2*)
15397     shlibpath_overrides_runpath=yes
15398     ;;
15399   freebsd3.[01]* | freebsdelf3.[01]*)
15400     shlibpath_overrides_runpath=yes
15401     hardcode_into_libs=yes
15402     ;;
15403   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15404   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15405     shlibpath_overrides_runpath=no
15406     hardcode_into_libs=yes
15407     ;;
15408   *) # from 4.6 on, and DragonFly
15409     shlibpath_overrides_runpath=yes
15410     hardcode_into_libs=yes
15411     ;;
15412   esac
15413   ;;
15414
15415 gnu*)
15416   version_type=linux
15417   need_lib_prefix=no
15418   need_version=no
15419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15420   soname_spec='${libname}${release}${shared_ext}$major'
15421   shlibpath_var=LD_LIBRARY_PATH
15422   hardcode_into_libs=yes
15423   ;;
15424
15425 hpux9* | hpux10* | hpux11*)
15426   # Give a soname corresponding to the major version so that dld.sl refuses to
15427   # link against other versions.
15428   version_type=sunos
15429   need_lib_prefix=no
15430   need_version=no
15431   case $host_cpu in
15432   ia64*)
15433     shrext_cmds='.so'
15434     hardcode_into_libs=yes
15435     dynamic_linker="$host_os dld.so"
15436     shlibpath_var=LD_LIBRARY_PATH
15437     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439     soname_spec='${libname}${release}${shared_ext}$major'
15440     if test "X$HPUX_IA64_MODE" = X32; then
15441       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15442     else
15443       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15444     fi
15445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446     ;;
15447   hppa*64*)
15448     shrext_cmds='.sl'
15449     hardcode_into_libs=yes
15450     dynamic_linker="$host_os dld.sl"
15451     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454     soname_spec='${libname}${release}${shared_ext}$major'
15455     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457     ;;
15458   *)
15459     shrext_cmds='.sl'
15460     dynamic_linker="$host_os dld.sl"
15461     shlibpath_var=SHLIB_PATH
15462     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464     soname_spec='${libname}${release}${shared_ext}$major'
15465     ;;
15466   esac
15467   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15468   postinstall_cmds='chmod 555 $lib'
15469   ;;
15470
15471 interix[3-9]*)
15472   version_type=linux
15473   need_lib_prefix=no
15474   need_version=no
15475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476   soname_spec='${libname}${release}${shared_ext}$major'
15477   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15478   shlibpath_var=LD_LIBRARY_PATH
15479   shlibpath_overrides_runpath=no
15480   hardcode_into_libs=yes
15481   ;;
15482
15483 irix5* | irix6* | nonstopux*)
15484   case $host_os in
15485     nonstopux*) version_type=nonstopux ;;
15486     *)
15487         if test "$lt_cv_prog_gnu_ld" = yes; then
15488                 version_type=linux
15489         else
15490                 version_type=irix
15491         fi ;;
15492   esac
15493   need_lib_prefix=no
15494   need_version=no
15495   soname_spec='${libname}${release}${shared_ext}$major'
15496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15497   case $host_os in
15498   irix5* | nonstopux*)
15499     libsuff= shlibsuff=
15500     ;;
15501   *)
15502     case $LD in # libtool.m4 will add one of these switches to LD
15503     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15504       libsuff= shlibsuff= libmagic=32-bit;;
15505     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15506       libsuff=32 shlibsuff=N32 libmagic=N32;;
15507     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15508       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15509     *) libsuff= shlibsuff= libmagic=never-match;;
15510     esac
15511     ;;
15512   esac
15513   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15514   shlibpath_overrides_runpath=no
15515   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15516   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15517   hardcode_into_libs=yes
15518   ;;
15519
15520 # No shared lib support for Linux oldld, aout, or coff.
15521 linux*oldld* | linux*aout* | linux*coff*)
15522   dynamic_linker=no
15523   ;;
15524
15525 # This must be Linux ELF.
15526 linux* | k*bsd*-gnu)
15527   version_type=linux
15528   need_lib_prefix=no
15529   need_version=no
15530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531   soname_spec='${libname}${release}${shared_ext}$major'
15532   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15533   shlibpath_var=LD_LIBRARY_PATH
15534   shlibpath_overrides_runpath=no
15535   # Some binutils ld are patched to set DT_RUNPATH
15536   save_LDFLAGS=$LDFLAGS
15537   save_libdir=$libdir
15538   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15539        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15540   cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546
15547 int
15548 main ()
15549 {
15550
15551   ;
15552   return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_link") 2>conftest.er1
15563   ac_status=$?
15564   grep -v '^ *+' conftest.er1 >conftest.err
15565   rm -f conftest.er1
15566   cat conftest.err >&5
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } && {
15569          test -z "$ac_cxx_werror_flag" ||
15570          test ! -s conftest.err
15571        } && test -s conftest$ac_exeext &&
15572        $as_test_x conftest$ac_exeext; then
15573   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15574   shlibpath_overrides_runpath=yes
15575 fi
15576
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581
15582 fi
15583
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585       conftest$ac_exeext conftest.$ac_ext
15586   LDFLAGS=$save_LDFLAGS
15587   libdir=$save_libdir
15588
15589   # This implies no fast_install, which is unacceptable.
15590   # Some rework will be needed to allow for fast_install
15591   # before this can be enabled.
15592   hardcode_into_libs=yes
15593
15594   # Append ld.so.conf contents to the search path
15595   if test -f /etc/ld.so.conf; then
15596     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15597     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15598   fi
15599
15600   # We used to test for /lib/ld.so.1 and disable shared libraries on
15601   # powerpc, because MkLinux only supported shared libraries with the
15602   # GNU dynamic linker.  Since this was broken with cross compilers,
15603   # most powerpc-linux boxes support dynamic linking these days and
15604   # people can always --disable-shared, the test was removed, and we
15605   # assume the GNU/Linux dynamic linker is in use.
15606   dynamic_linker='GNU/Linux ld.so'
15607   ;;
15608
15609 netbsd*)
15610   version_type=sunos
15611   need_lib_prefix=no
15612   need_version=no
15613   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15615     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15616     dynamic_linker='NetBSD (a.out) ld.so'
15617   else
15618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15619     soname_spec='${libname}${release}${shared_ext}$major'
15620     dynamic_linker='NetBSD ld.elf_so'
15621   fi
15622   shlibpath_var=LD_LIBRARY_PATH
15623   shlibpath_overrides_runpath=yes
15624   hardcode_into_libs=yes
15625   ;;
15626
15627 newsos6)
15628   version_type=linux
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   shlibpath_overrides_runpath=yes
15632   ;;
15633
15634 *nto* | *qnx*)
15635   version_type=qnx
15636   need_lib_prefix=no
15637   need_version=no
15638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639   soname_spec='${libname}${release}${shared_ext}$major'
15640   shlibpath_var=LD_LIBRARY_PATH
15641   shlibpath_overrides_runpath=no
15642   hardcode_into_libs=yes
15643   dynamic_linker='ldqnx.so'
15644   ;;
15645
15646 openbsd*)
15647   version_type=sunos
15648   sys_lib_dlsearch_path_spec="/usr/lib"
15649   need_lib_prefix=no
15650   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15651   case $host_os in
15652     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15653     *)                          need_version=no  ;;
15654   esac
15655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15657   shlibpath_var=LD_LIBRARY_PATH
15658   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659     case $host_os in
15660       openbsd2.[89] | openbsd2.[89].*)
15661         shlibpath_overrides_runpath=no
15662         ;;
15663       *)
15664         shlibpath_overrides_runpath=yes
15665         ;;
15666       esac
15667   else
15668     shlibpath_overrides_runpath=yes
15669   fi
15670   ;;
15671
15672 os2*)
15673   libname_spec='$name'
15674   shrext_cmds=".dll"
15675   need_lib_prefix=no
15676   library_names_spec='$libname${shared_ext} $libname.a'
15677   dynamic_linker='OS/2 ld.exe'
15678   shlibpath_var=LIBPATH
15679   ;;
15680
15681 osf3* | osf4* | osf5*)
15682   version_type=osf
15683   need_lib_prefix=no
15684   need_version=no
15685   soname_spec='${libname}${release}${shared_ext}$major'
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15689   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15690   ;;
15691
15692 rdos*)
15693   dynamic_linker=no
15694   ;;
15695
15696 solaris*)
15697   version_type=linux
15698   need_lib_prefix=no
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701   soname_spec='${libname}${release}${shared_ext}$major'
15702   shlibpath_var=LD_LIBRARY_PATH
15703   shlibpath_overrides_runpath=yes
15704   hardcode_into_libs=yes
15705   # ldd complains unless libraries are executable
15706   postinstall_cmds='chmod +x $lib'
15707   ;;
15708
15709 sunos4*)
15710   version_type=sunos
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   shlibpath_overrides_runpath=yes
15715   if test "$with_gnu_ld" = yes; then
15716     need_lib_prefix=no
15717   fi
15718   need_version=yes
15719   ;;
15720
15721 sysv4 | sysv4.3*)
15722   version_type=linux
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   soname_spec='${libname}${release}${shared_ext}$major'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   case $host_vendor in
15727     sni)
15728       shlibpath_overrides_runpath=no
15729       need_lib_prefix=no
15730       runpath_var=LD_RUN_PATH
15731       ;;
15732     siemens)
15733       need_lib_prefix=no
15734       ;;
15735     motorola)
15736       need_lib_prefix=no
15737       need_version=no
15738       shlibpath_overrides_runpath=no
15739       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15740       ;;
15741   esac
15742   ;;
15743
15744 sysv4*MP*)
15745   if test -d /usr/nec ;then
15746     version_type=linux
15747     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15748     soname_spec='$libname${shared_ext}.$major'
15749     shlibpath_var=LD_LIBRARY_PATH
15750   fi
15751   ;;
15752
15753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15754   version_type=freebsd-elf
15755   need_lib_prefix=no
15756   need_version=no
15757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15758   soname_spec='${libname}${release}${shared_ext}$major'
15759   shlibpath_var=LD_LIBRARY_PATH
15760   shlibpath_overrides_runpath=yes
15761   hardcode_into_libs=yes
15762   if test "$with_gnu_ld" = yes; then
15763     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15764   else
15765     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15766     case $host_os in
15767       sco3.2v5*)
15768         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15769         ;;
15770     esac
15771   fi
15772   sys_lib_dlsearch_path_spec='/usr/lib'
15773   ;;
15774
15775 tpf*)
15776   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15777   version_type=linux
15778   need_lib_prefix=no
15779   need_version=no
15780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781   shlibpath_var=LD_LIBRARY_PATH
15782   shlibpath_overrides_runpath=no
15783   hardcode_into_libs=yes
15784   ;;
15785
15786 uts4*)
15787   version_type=linux
15788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789   soname_spec='${libname}${release}${shared_ext}$major'
15790   shlibpath_var=LD_LIBRARY_PATH
15791   ;;
15792
15793 *)
15794   dynamic_linker=no
15795   ;;
15796 esac
15797 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15798 echo "${ECHO_T}$dynamic_linker" >&6; }
15799 test "$dynamic_linker" = no && can_build_shared=no
15800
15801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15802 if test "$GCC" = yes; then
15803   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15804 fi
15805
15806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15807   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15808 fi
15809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15810   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15811 fi
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15850 hardcode_action_CXX=
15851 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15852    test -n "$runpath_var_CXX" ||
15853    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15854
15855   # We can hardcode non-existent directories.
15856   if test "$hardcode_direct_CXX" != no &&
15857      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15858      # have to relink, otherwise we might link with an installed library
15859      # when we should be linking with a yet-to-be-installed one
15860      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15861      test "$hardcode_minus_L_CXX" != no; then
15862     # Linking always hardcodes the temporary library directory.
15863     hardcode_action_CXX=relink
15864   else
15865     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15866     hardcode_action_CXX=immediate
15867   fi
15868 else
15869   # We cannot hardcode anything, or else we can only hardcode existing
15870   # directories.
15871   hardcode_action_CXX=unsupported
15872 fi
15873 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15874 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15875
15876 if test "$hardcode_action_CXX" = relink ||
15877    test "$inherit_rpath_CXX" = yes; then
15878   # Fast installation is not supported
15879   enable_fast_install=no
15880 elif test "$shlibpath_overrides_runpath" = yes ||
15881      test "$enable_shared" = no; then
15882   # Fast installation is not necessary
15883   enable_fast_install=needless
15884 fi
15885
15886
15887
15888
15889
15890
15891
15892   fi # test -n "$compiler"
15893
15894   CC=$lt_save_CC
15895   LDCXX=$LD
15896   LD=$lt_save_LD
15897   GCC=$lt_save_GCC
15898   with_gnu_ld=$lt_save_with_gnu_ld
15899   lt_cv_path_LDCXX=$lt_cv_path_LD
15900   lt_cv_path_LD=$lt_save_path_LD
15901   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15902   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15903 fi # test "$_lt_caught_CXX_error" != yes
15904
15905 ac_ext=c
15906 ac_cpp='$CPP $CPPFLAGS'
15907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923         ac_config_commands="$ac_config_commands libtool"
15924
15925
15926
15927
15928 # Only expand once:
15929
15930
15931
15932
15933 if test x$use_libtool != xno; then
15934    DEFAULT_OBJECT_TYPE=".lo"
15935    DEFAULT_ARCHIVE_TYPE=".la"
15936    DEFAULT_SHARED_OBJECT_TYPE=".la"
15937    LIBTOOL="\$(LIBTOOL)"
15938    LIBTOOL_INSTALL_TARGET="libtool-install"
15939    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15940    LIBTOOL_CLEAN_TARGET="libtool-clean"
15941    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15942    FD_PLUGIN_DIR="src/plugins/fd"
15943    have_plugins=yes
15944 else
15945    DEFAULT_OBJECT_TYPE=".o"
15946    DEFAULT_ARCHIVE_TYPE=".a"
15947    DEFAULT_SHARED_OBJECT_TYPE=".so"
15948    LIBTOOL="# \$(LIBTOOL)"
15949    LIBTOOL_INSTALL_TARGET=""
15950    LIBTOOL_UNINSTALL_TARGET=""
15951    LIBTOOL_CLEAN_TARGET=""
15952    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15953    FD_PLUGIN_DIR=""
15954    have_plugins=no
15955 fi
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967 # Check whether --enable-includes was given.
15968 if test "${enable_includes+set}" = set; then
15969   enableval=$enable_includes;
15970        if test x$enableval = xyes; then
15971           install_includes=yes
15972        fi
15973
15974
15975 fi
15976
15977
15978
15979 if test x$use_libtool != xno -a x$install_includes = xyes; then
15980    INCLUDE_INSTALL_TARGET="install-includes"
15981    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15982 else
15983    INCLUDE_INSTALL_TARGET=""
15984    INCLUDE_UNINSTALL_TARGET=""
15985 fi
15986
15987
15988
15989
15990 { echo "$as_me:$LINENO: checking host system type" >&5
15991 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15992 if test "${ac_cv_host+set}" = set; then
15993   echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995   if test "x$host_alias" = x; then
15996   ac_cv_host=$ac_cv_build
15997 else
15998   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15999     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16001    { (exit 1); exit 1; }; }
16002 fi
16003
16004 fi
16005 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16006 echo "${ECHO_T}$ac_cv_host" >&6; }
16007 case $ac_cv_host in
16008 *-*-*) ;;
16009 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16010 echo "$as_me: error: invalid value of canonical host" >&2;}
16011    { (exit 1); exit 1; }; };;
16012 esac
16013 host=$ac_cv_host
16014 ac_save_IFS=$IFS; IFS='-'
16015 set x $ac_cv_host
16016 shift
16017 host_cpu=$1
16018 host_vendor=$2
16019 shift; shift
16020 # Remember, the first character of IFS is used to create $*,
16021 # except with old shells:
16022 host_os=$*
16023 IFS=$ac_save_IFS
16024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16025
16026
16027 case $host_os in
16028   *cygwin* ) CYGWIN=yes;;
16029          * ) CYGWIN=no;;
16030 esac
16031
16032 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16033 then
16034
16035
16036 if $TRUEPRG; then
16037   HAVE_SUN_OS_TRUE=
16038   HAVE_SUN_OS_FALSE='#'
16039 else
16040   HAVE_SUN_OS_TRUE='#'
16041   HAVE_SUN_OS_FALSE=
16042 fi
16043         cat >>confdefs.h <<\_ACEOF
16044 #define HAVE_SUN_OS 1
16045 _ACEOF
16046
16047 else
16048
16049
16050 if $FALSEPRG; then
16051   HAVE_SUN_OS_TRUE=
16052   HAVE_SUN_OS_FALSE='#'
16053 else
16054   HAVE_SUN_OS_TRUE='#'
16055   HAVE_SUN_OS_FALSE=
16056 fi
16057 fi
16058
16059 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16060 then
16061
16062
16063 if $TRUEPRG; then
16064   HAVE_OSF1_OS_TRUE=
16065   HAVE_OSF1_OS_FALSE='#'
16066 else
16067   HAVE_OSF1_OS_TRUE='#'
16068   HAVE_OSF1_OS_FALSE=
16069 fi
16070         cat >>confdefs.h <<\_ACEOF
16071 #define HAVE_OSF1_OS 1
16072 _ACEOF
16073
16074 else
16075
16076
16077 if $FALSEPRG; then
16078   HAVE_OSF1_OS_TRUE=
16079   HAVE_OSF1_OS_FALSE='#'
16080 else
16081   HAVE_OSF1_OS_TRUE='#'
16082   HAVE_OSF1_OS_FALSE=
16083 fi
16084 fi
16085
16086 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16087 then
16088
16089
16090 if $TRUEPRG; then
16091   HAVE_AIX_OS_TRUE=
16092   HAVE_AIX_OS_FALSE='#'
16093 else
16094   HAVE_AIX_OS_TRUE='#'
16095   HAVE_AIX_OS_FALSE=
16096 fi
16097         cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_AIX_OS 1
16099 _ACEOF
16100
16101 else
16102
16103
16104 if $FALSEPRG; then
16105   HAVE_AIX_OS_TRUE=
16106   HAVE_AIX_OS_FALSE='#'
16107 else
16108   HAVE_AIX_OS_TRUE='#'
16109   HAVE_AIX_OS_FALSE=
16110 fi
16111 fi
16112
16113 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16114 then
16115
16116
16117 if $TRUEPRG; then
16118   HAVE_HPUX_OS_TRUE=
16119   HAVE_HPUX_OS_FALSE='#'
16120 else
16121   HAVE_HPUX_OS_TRUE='#'
16122   HAVE_HPUX_OS_FALSE=
16123 fi
16124         cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_HPUX_OS 1
16126 _ACEOF
16127
16128 else
16129
16130
16131 if $FALSEPRG; then
16132   HAVE_HPUX_OS_TRUE=
16133   HAVE_HPUX_OS_FALSE='#'
16134 else
16135   HAVE_HPUX_OS_TRUE='#'
16136   HAVE_HPUX_OS_FALSE=
16137 fi
16138 fi
16139
16140 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16141 then
16142
16143
16144 if $TRUEPRG; then
16145   HAVE_LINUX_OS_TRUE=
16146   HAVE_LINUX_OS_FALSE='#'
16147 else
16148   HAVE_LINUX_OS_TRUE='#'
16149   HAVE_LINUX_OS_FALSE=
16150 fi
16151         cat >>confdefs.h <<\_ACEOF
16152 #define HAVE_LINUX_OS 1
16153 _ACEOF
16154
16155 else
16156
16157
16158 if $FALSEPRG; then
16159   HAVE_LINUX_OS_TRUE=
16160   HAVE_LINUX_OS_FALSE='#'
16161 else
16162   HAVE_LINUX_OS_TRUE='#'
16163   HAVE_LINUX_OS_FALSE=
16164 fi
16165 fi
16166
16167 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16168 then
16169
16170
16171 if $TRUEPRG; then
16172   HAVE_FREEBSD_OS_TRUE=
16173   HAVE_FREEBSD_OS_FALSE='#'
16174 else
16175   HAVE_FREEBSD_OS_TRUE='#'
16176   HAVE_FREEBSD_OS_FALSE=
16177 fi
16178         cat >>confdefs.h <<\_ACEOF
16179 #define HAVE_FREEBSD_OS 1
16180 _ACEOF
16181
16182 else
16183
16184
16185 if $FALSEPRG; then
16186   HAVE_FREEBSD_OS_TRUE=
16187   HAVE_FREEBSD_OS_FALSE='#'
16188 else
16189   HAVE_FREEBSD_OS_TRUE='#'
16190   HAVE_FREEBSD_OS_FALSE=
16191 fi
16192 fi
16193
16194 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16195 then
16196
16197
16198 if $TRUEPRG; then
16199   HAVE_NETBSD_OS_TRUE=
16200   HAVE_NETBSD_OS_FALSE='#'
16201 else
16202   HAVE_NETBSD_OS_TRUE='#'
16203   HAVE_NETBSD_OS_FALSE=
16204 fi
16205         cat >>confdefs.h <<\_ACEOF
16206 #define HAVE_NETBSD_OS 1
16207 _ACEOF
16208
16209 else
16210
16211
16212 if $FALSEPRG; then
16213   HAVE_NETBSD_OS_TRUE=
16214   HAVE_NETBSD_OS_FALSE='#'
16215 else
16216   HAVE_NETBSD_OS_TRUE='#'
16217   HAVE_NETBSD_OS_FALSE=
16218 fi
16219 fi
16220
16221 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16222 then
16223
16224
16225 if $TRUEPRG; then
16226   HAVE_OPENBSD_OS_TRUE=
16227   HAVE_OPENBSD_OS_FALSE='#'
16228 else
16229   HAVE_OPENBSD_OS_TRUE='#'
16230   HAVE_OPENBSD_OS_FALSE=
16231 fi
16232         cat >>confdefs.h <<\_ACEOF
16233 #define HAVE_OPENBSD_OS 1
16234 _ACEOF
16235
16236 else
16237
16238
16239 if $FALSEPRG; then
16240   HAVE_OPENBSD_OS_TRUE=
16241   HAVE_OPENBSD_OS_FALSE='#'
16242 else
16243   HAVE_OPENBSD_OS_TRUE='#'
16244   HAVE_OPENBSD_OS_FALSE=
16245 fi
16246 fi
16247
16248 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16249 then
16250
16251
16252 if $TRUEPRG; then
16253   HAVE_BSDI_OS_TRUE=
16254   HAVE_BSDI_OS_FALSE='#'
16255 else
16256   HAVE_BSDI_OS_TRUE='#'
16257   HAVE_BSDI_OS_FALSE=
16258 fi
16259         cat >>confdefs.h <<\_ACEOF
16260 #define HAVE_BSDI_OS 1
16261 _ACEOF
16262
16263 else
16264
16265
16266 if $FALSEPRG; then
16267   HAVE_BSDI_OS_TRUE=
16268   HAVE_BSDI_OS_FALSE='#'
16269 else
16270   HAVE_BSDI_OS_TRUE='#'
16271   HAVE_BSDI_OS_FALSE=
16272 fi
16273 fi
16274
16275 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16276 then
16277
16278
16279 if $TRUEPRG; then
16280   HAVE_SGI_OS_TRUE=
16281   HAVE_SGI_OS_FALSE='#'
16282 else
16283   HAVE_SGI_OS_TRUE='#'
16284   HAVE_SGI_OS_FALSE=
16285 fi
16286         cat >>confdefs.h <<\_ACEOF
16287 #define HAVE_SGI_OS 1
16288 _ACEOF
16289
16290 else
16291
16292
16293 if $FALSEPRG; then
16294   HAVE_SGI_OS_TRUE=
16295   HAVE_SGI_OS_FALSE='#'
16296 else
16297   HAVE_SGI_OS_TRUE='#'
16298   HAVE_SGI_OS_FALSE=
16299 fi
16300 fi
16301
16302 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16303 then
16304
16305
16306 if $TRUEPRG; then
16307   HAVE_IRIX_OS_TRUE=
16308   HAVE_IRIX_OS_FALSE='#'
16309 else
16310   HAVE_IRIX_OS_TRUE='#'
16311   HAVE_IRIX_OS_FALSE=
16312 fi
16313         cat >>confdefs.h <<\_ACEOF
16314 #define HAVE_IRIX_OS 1
16315 _ACEOF
16316
16317 else
16318
16319
16320 if $FALSEPRG; then
16321   HAVE_IRIX_OS_TRUE=
16322   HAVE_IRIX_OS_FALSE='#'
16323 else
16324   HAVE_IRIX_OS_TRUE='#'
16325   HAVE_IRIX_OS_FALSE=
16326 fi
16327 fi
16328
16329 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16330 then
16331
16332
16333 if $TRUEPRG; then
16334   HAVE_DARWIN_OS_TRUE=
16335   HAVE_DARWIN_OS_FALSE='#'
16336 else
16337   HAVE_DARWIN_OS_TRUE='#'
16338   HAVE_DARWIN_OS_FALSE=
16339 fi
16340     cat >>confdefs.h <<\_ACEOF
16341 #define HAVE_DARWIN_OS 1
16342 _ACEOF
16343
16344 else
16345
16346
16347 if $FALSEPRG; then
16348   HAVE_DARWIN_OS_TRUE=
16349   HAVE_DARWIN_OS_FALSE='#'
16350 else
16351   HAVE_DARWIN_OS_TRUE='#'
16352   HAVE_DARWIN_OS_FALSE=
16353 fi
16354 fi
16355
16356
16357 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16358 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16359 if test "x$DISTNAME" != "x"
16360 then
16361         echo "distname set to $DISTNAME"
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16363 then
16364         DISTNAME=alpha
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16366 then
16367         DISTNAME=aix
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16369 then
16370         DISTNAME=hpux
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16372 then
16373         DISTNAME=solaris
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16375 then
16376         DISTNAME=freebsd
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16378 then
16379         DISTNAME=netbsd
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16381 then
16382         DISTNAME=openbsd
16383 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16384 then
16385         DISTNAME=irix
16386 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16387 then
16388         DISTNAME=bsdi
16389 elif test -f /etc/SuSE-release
16390 then
16391         DISTNAME=suse
16392 elif test -d /etc/SuSEconfig
16393 then
16394         DISTNAME=suse5
16395 elif test -f /etc/mandrake-release
16396 then
16397         DISTNAME=mandrake
16398 elif test -f /etc/whitebox-release
16399 then
16400        DISTNAME=redhat
16401 elif test -f /etc/redhat-release
16402 then
16403         DISTNAME=redhat
16404 elif test -f /etc/gentoo-release
16405 then
16406         DISTNAME=gentoo
16407 elif test -f /etc/debian_version
16408 then
16409         DISTNAME=debian
16410 elif test -f /etc/slackware-version
16411 then
16412         DISTNAME=slackware
16413 elif test x$host_vendor = xapple
16414 then
16415     DISTNAME=osx
16416 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16417 then
16418     DISTNAME=darwin
16419 elif test -f /etc/engarde-version
16420 then
16421         DISTNAME=engarde
16422 elif test "$CYGWIN" = yes
16423 then
16424         DISTNAME=cygwin
16425         cat >>confdefs.h <<\_ACEOF
16426 #define HAVE_CYGWIN 1
16427 _ACEOF
16428
16429 else
16430         DISTNAME=unknown
16431 fi
16432 { echo "$as_me:$LINENO: result: done" >&5
16433 echo "${ECHO_T}done" >&6; }
16434
16435
16436 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16437 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16438 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16439 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16440   echo $ECHO_N "(cached) $ECHO_C" >&6
16441 else
16442   cat >conftest.make <<\_ACEOF
16443 SHELL = /bin/sh
16444 all:
16445         @echo '@@@%%%=$(MAKE)=@@@%%%'
16446 _ACEOF
16447 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16448 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16449   *@@@%%%=?*=@@@%%%*)
16450     eval ac_cv_prog_make_${ac_make}_set=yes;;
16451   *)
16452     eval ac_cv_prog_make_${ac_make}_set=no;;
16453 esac
16454 rm -f conftest.make
16455 fi
16456 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16457   { echo "$as_me:$LINENO: result: yes" >&5
16458 echo "${ECHO_T}yes" >&6; }
16459   SET_MAKE=
16460 else
16461   { echo "$as_me:$LINENO: result: no" >&5
16462 echo "${ECHO_T}no" >&6; }
16463   SET_MAKE="MAKE=${MAKE-make}"
16464 fi
16465
16466
16467
16468         MKINSTALLDIRS=
16469   if test -n "$ac_aux_dir"; then
16470     case "$ac_aux_dir" in
16471       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16472       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16473     esac
16474   fi
16475   if test -z "$MKINSTALLDIRS"; then
16476     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16477   fi
16478
16479
16480
16481   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16482 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16483     # Check whether --enable-nls was given.
16484 if test "${enable_nls+set}" = set; then
16485   enableval=$enable_nls; USE_NLS=$enableval
16486 else
16487   USE_NLS=yes
16488 fi
16489
16490   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16491 echo "${ECHO_T}$USE_NLS" >&6; }
16492
16493
16494
16495
16496
16497
16498 # Prepare PATH_SEPARATOR.
16499 # The user is always right.
16500 if test "${PATH_SEPARATOR+set}" != set; then
16501   echo "#! /bin/sh" >conf$$.sh
16502   echo  "exit 0"   >>conf$$.sh
16503   chmod +x conf$$.sh
16504   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16505     PATH_SEPARATOR=';'
16506   else
16507     PATH_SEPARATOR=:
16508   fi
16509   rm -f conf$$.sh
16510 fi
16511
16512 # Find out how to test for executable files. Don't use a zero-byte file,
16513 # as systems may use methods other than mode bits to determine executability.
16514 cat >conf$$.file <<_ASEOF
16515 #! /bin/sh
16516 exit 0
16517 _ASEOF
16518 chmod +x conf$$.file
16519 if test -x conf$$.file >/dev/null 2>&1; then
16520   ac_executable_p="test -x"
16521 else
16522   ac_executable_p="test -f"
16523 fi
16524 rm -f conf$$.file
16525
16526 # Extract the first word of "msgfmt", so it can be a program name with args.
16527 set dummy msgfmt; ac_word=$2
16528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16530 if test "${ac_cv_path_MSGFMT+set}" = set; then
16531   echo $ECHO_N "(cached) $ECHO_C" >&6
16532 else
16533   case "$MSGFMT" in
16534   [\\/]* | ?:[\\/]*)
16535     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16536     ;;
16537   *)
16538     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16539     for ac_dir in $PATH; do
16540       IFS="$ac_save_IFS"
16541       test -z "$ac_dir" && ac_dir=.
16542       for ac_exec_ext in '' $ac_executable_extensions; do
16543         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16544           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16545           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16546      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16547             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16548             break 2
16549           fi
16550         fi
16551       done
16552     done
16553     IFS="$ac_save_IFS"
16554   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16555     ;;
16556 esac
16557 fi
16558 MSGFMT="$ac_cv_path_MSGFMT"
16559 if test "$MSGFMT" != ":"; then
16560   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16561 echo "${ECHO_T}$MSGFMT" >&6; }
16562 else
16563   { echo "$as_me:$LINENO: result: no" >&5
16564 echo "${ECHO_T}no" >&6; }
16565 fi
16566
16567   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16568 set dummy gmsgfmt; ac_word=$2
16569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16571 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16572   echo $ECHO_N "(cached) $ECHO_C" >&6
16573 else
16574   case $GMSGFMT in
16575   [\\/]* | ?:[\\/]*)
16576   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16577   ;;
16578   *)
16579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16580 for as_dir in $PATH
16581 do
16582   IFS=$as_save_IFS
16583   test -z "$as_dir" && as_dir=.
16584   for ac_exec_ext in '' $ac_executable_extensions; do
16585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16586     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16588     break 2
16589   fi
16590 done
16591 done
16592 IFS=$as_save_IFS
16593
16594   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16595   ;;
16596 esac
16597 fi
16598 GMSGFMT=$ac_cv_path_GMSGFMT
16599 if test -n "$GMSGFMT"; then
16600   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16601 echo "${ECHO_T}$GMSGFMT" >&6; }
16602 else
16603   { echo "$as_me:$LINENO: result: no" >&5
16604 echo "${ECHO_T}no" >&6; }
16605 fi
16606
16607
16608
16609
16610 # Prepare PATH_SEPARATOR.
16611 # The user is always right.
16612 if test "${PATH_SEPARATOR+set}" != set; then
16613   echo "#! /bin/sh" >conf$$.sh
16614   echo  "exit 0"   >>conf$$.sh
16615   chmod +x conf$$.sh
16616   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16617     PATH_SEPARATOR=';'
16618   else
16619     PATH_SEPARATOR=:
16620   fi
16621   rm -f conf$$.sh
16622 fi
16623
16624 # Find out how to test for executable files. Don't use a zero-byte file,
16625 # as systems may use methods other than mode bits to determine executability.
16626 cat >conf$$.file <<_ASEOF
16627 #! /bin/sh
16628 exit 0
16629 _ASEOF
16630 chmod +x conf$$.file
16631 if test -x conf$$.file >/dev/null 2>&1; then
16632   ac_executable_p="test -x"
16633 else
16634   ac_executable_p="test -f"
16635 fi
16636 rm -f conf$$.file
16637
16638 # Extract the first word of "xgettext", so it can be a program name with args.
16639 set dummy xgettext; ac_word=$2
16640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16642 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16643   echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645   case "$XGETTEXT" in
16646   [\\/]* | ?:[\\/]*)
16647     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16648     ;;
16649   *)
16650     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16651     for ac_dir in $PATH; do
16652       IFS="$ac_save_IFS"
16653       test -z "$ac_dir" && ac_dir=.
16654       for ac_exec_ext in '' $ac_executable_extensions; do
16655         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16656           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16657           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16658      (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
16659             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16660             break 2
16661           fi
16662         fi
16663       done
16664     done
16665     IFS="$ac_save_IFS"
16666   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16667     ;;
16668 esac
16669 fi
16670 XGETTEXT="$ac_cv_path_XGETTEXT"
16671 if test "$XGETTEXT" != ":"; then
16672   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16673 echo "${ECHO_T}$XGETTEXT" >&6; }
16674 else
16675   { echo "$as_me:$LINENO: result: no" >&5
16676 echo "${ECHO_T}no" >&6; }
16677 fi
16678
16679     rm -f messages.po
16680
16681
16682 # Prepare PATH_SEPARATOR.
16683 # The user is always right.
16684 if test "${PATH_SEPARATOR+set}" != set; then
16685   echo "#! /bin/sh" >conf$$.sh
16686   echo  "exit 0"   >>conf$$.sh
16687   chmod +x conf$$.sh
16688   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16689     PATH_SEPARATOR=';'
16690   else
16691     PATH_SEPARATOR=:
16692   fi
16693   rm -f conf$$.sh
16694 fi
16695
16696 # Find out how to test for executable files. Don't use a zero-byte file,
16697 # as systems may use methods other than mode bits to determine executability.
16698 cat >conf$$.file <<_ASEOF
16699 #! /bin/sh
16700 exit 0
16701 _ASEOF
16702 chmod +x conf$$.file
16703 if test -x conf$$.file >/dev/null 2>&1; then
16704   ac_executable_p="test -x"
16705 else
16706   ac_executable_p="test -f"
16707 fi
16708 rm -f conf$$.file
16709
16710 # Extract the first word of "msgmerge", so it can be a program name with args.
16711 set dummy msgmerge; ac_word=$2
16712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16714 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16715   echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717   case "$MSGMERGE" in
16718   [\\/]* | ?:[\\/]*)
16719     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16720     ;;
16721   *)
16722     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16723     for ac_dir in $PATH; do
16724       IFS="$ac_save_IFS"
16725       test -z "$ac_dir" && ac_dir=.
16726       for ac_exec_ext in '' $ac_executable_extensions; do
16727         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16728           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16729           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16730             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16731             break 2
16732           fi
16733         fi
16734       done
16735     done
16736     IFS="$ac_save_IFS"
16737   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16738     ;;
16739 esac
16740 fi
16741 MSGMERGE="$ac_cv_path_MSGMERGE"
16742 if test "$MSGMERGE" != ":"; then
16743   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16744 echo "${ECHO_T}$MSGMERGE" >&6; }
16745 else
16746   { echo "$as_me:$LINENO: result: no" >&5
16747 echo "${ECHO_T}no" >&6; }
16748 fi
16749
16750
16751       if test "$GMSGFMT" != ":"; then
16752             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16753        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16754       : ;
16755     else
16756       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16757       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16758 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16759       GMSGFMT=":"
16760     fi
16761   fi
16762
16763       if test "$XGETTEXT" != ":"; then
16764             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16765        (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
16766       : ;
16767     else
16768       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16769 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16770       XGETTEXT=":"
16771     fi
16772         rm -f messages.po
16773   fi
16774
16775   ac_config_commands="$ac_config_commands default-1"
16776
16777
16778
16779       if test "X$prefix" = "XNONE"; then
16780     acl_final_prefix="$ac_default_prefix"
16781   else
16782     acl_final_prefix="$prefix"
16783   fi
16784   if test "X$exec_prefix" = "XNONE"; then
16785     acl_final_exec_prefix='${prefix}'
16786   else
16787     acl_final_exec_prefix="$exec_prefix"
16788   fi
16789   acl_save_prefix="$prefix"
16790   prefix="$acl_final_prefix"
16791   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16792   prefix="$acl_save_prefix"
16793
16794
16795 # Check whether --with-gnu-ld was given.
16796 if test "${with_gnu_ld+set}" = set; then
16797   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16798 else
16799   with_gnu_ld=no
16800 fi
16801
16802 # Prepare PATH_SEPARATOR.
16803 # The user is always right.
16804 if test "${PATH_SEPARATOR+set}" != set; then
16805   echo "#! /bin/sh" >conf$$.sh
16806   echo  "exit 0"   >>conf$$.sh
16807   chmod +x conf$$.sh
16808   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16809     PATH_SEPARATOR=';'
16810   else
16811     PATH_SEPARATOR=:
16812   fi
16813   rm -f conf$$.sh
16814 fi
16815 ac_prog=ld
16816 if test "$GCC" = yes; then
16817   # Check if gcc -print-prog-name=ld gives a path.
16818   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16819 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16820   case $host in
16821   *-*-mingw*)
16822     # gcc leaves a trailing carriage return which upsets mingw
16823     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16824   *)
16825     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16826   esac
16827   case $ac_prog in
16828     # Accept absolute paths.
16829     [\\/]* | [A-Za-z]:[\\/]*)
16830       re_direlt='/[^/][^/]*/\.\./'
16831       # Canonicalize the path of ld
16832       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16833       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16834         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16835       done
16836       test -z "$LD" && LD="$ac_prog"
16837       ;;
16838   "")
16839     # If it fails, then pretend we aren't using GCC.
16840     ac_prog=ld
16841     ;;
16842   *)
16843     # If it is relative, then search for the first ld in PATH.
16844     with_gnu_ld=unknown
16845     ;;
16846   esac
16847 elif test "$with_gnu_ld" = yes; then
16848   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16849 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16850 else
16851   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16852 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16853 fi
16854 if test "${acl_cv_path_LD+set}" = set; then
16855   echo $ECHO_N "(cached) $ECHO_C" >&6
16856 else
16857   if test -z "$LD"; then
16858   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16859   for ac_dir in $PATH; do
16860     test -z "$ac_dir" && ac_dir=.
16861     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16862       acl_cv_path_LD="$ac_dir/$ac_prog"
16863       # Check to see if the program is GNU ld.  I'd rather use --version,
16864       # but apparently some GNU ld's only accept -v.
16865       # Break only if it was the GNU/non-GNU ld that we prefer.
16866       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16867       *GNU* | *'with BFD'*)
16868         test "$with_gnu_ld" != no && break ;;
16869       *)
16870         test "$with_gnu_ld" != yes && break ;;
16871       esac
16872     fi
16873   done
16874   IFS="$ac_save_ifs"
16875 else
16876   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16877 fi
16878 fi
16879
16880 LD="$acl_cv_path_LD"
16881 if test -n "$LD"; then
16882   { echo "$as_me:$LINENO: result: $LD" >&5
16883 echo "${ECHO_T}$LD" >&6; }
16884 else
16885   { echo "$as_me:$LINENO: result: no" >&5
16886 echo "${ECHO_T}no" >&6; }
16887 fi
16888 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16889 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16890    { (exit 1); exit 1; }; }
16891 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16892 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16893 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16894   echo $ECHO_N "(cached) $ECHO_C" >&6
16895 else
16896   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16897 case `$LD -v 2>&1 </dev/null` in
16898 *GNU* | *'with BFD'*)
16899   acl_cv_prog_gnu_ld=yes ;;
16900 *)
16901   acl_cv_prog_gnu_ld=no ;;
16902 esac
16903 fi
16904 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16905 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16906 with_gnu_ld=$acl_cv_prog_gnu_ld
16907
16908
16909
16910
16911                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16912 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16913 if test "${acl_cv_rpath+set}" = set; then
16914   echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916
16917     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16918     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16919     . ./conftest.sh
16920     rm -f ./conftest.sh
16921     acl_cv_rpath=done
16922
16923 fi
16924 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16925 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16926   wl="$acl_cv_wl"
16927   libext="$acl_cv_libext"
16928   shlibext="$acl_cv_shlibext"
16929   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16930   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16931   hardcode_direct="$acl_cv_hardcode_direct"
16932   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16933     # Check whether --enable-rpath was given.
16934 if test "${enable_rpath+set}" = set; then
16935   enableval=$enable_rpath; :
16936 else
16937   enable_rpath=yes
16938 fi
16939
16940
16941
16942
16943
16944
16945
16946
16947     use_additional=yes
16948
16949   acl_save_prefix="$prefix"
16950   prefix="$acl_final_prefix"
16951   acl_save_exec_prefix="$exec_prefix"
16952   exec_prefix="$acl_final_exec_prefix"
16953
16954     eval additional_includedir=\"$includedir\"
16955     eval additional_libdir=\"$libdir\"
16956
16957   exec_prefix="$acl_save_exec_prefix"
16958   prefix="$acl_save_prefix"
16959
16960
16961 # Check whether --with-libiconv-prefix was given.
16962 if test "${with_libiconv_prefix+set}" = set; then
16963   withval=$with_libiconv_prefix;
16964     if test "X$withval" = "Xno"; then
16965       use_additional=no
16966     else
16967       if test "X$withval" = "X"; then
16968
16969   acl_save_prefix="$prefix"
16970   prefix="$acl_final_prefix"
16971   acl_save_exec_prefix="$exec_prefix"
16972   exec_prefix="$acl_final_exec_prefix"
16973
16974           eval additional_includedir=\"$includedir\"
16975           eval additional_libdir=\"$libdir\"
16976
16977   exec_prefix="$acl_save_exec_prefix"
16978   prefix="$acl_save_prefix"
16979
16980       else
16981         additional_includedir="$withval/include"
16982         additional_libdir="$withval/lib"
16983       fi
16984     fi
16985
16986 fi
16987
16988       LIBICONV=
16989   LTLIBICONV=
16990   INCICONV=
16991   rpathdirs=
16992   ltrpathdirs=
16993   names_already_handled=
16994   names_next_round='iconv '
16995   while test -n "$names_next_round"; do
16996     names_this_round="$names_next_round"
16997     names_next_round=
16998     for name in $names_this_round; do
16999       already_handled=
17000       for n in $names_already_handled; do
17001         if test "$n" = "$name"; then
17002           already_handled=yes
17003           break
17004         fi
17005       done
17006       if test -z "$already_handled"; then
17007         names_already_handled="$names_already_handled $name"
17008                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17009         eval value=\"\$HAVE_LIB$uppername\"
17010         if test -n "$value"; then
17011           if test "$value" = yes; then
17012             eval value=\"\$LIB$uppername\"
17013             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17014             eval value=\"\$LTLIB$uppername\"
17015             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17016           else
17017                                     :
17018           fi
17019         else
17020                               found_dir=
17021           found_la=
17022           found_so=
17023           found_a=
17024           if test $use_additional = yes; then
17025             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17026               found_dir="$additional_libdir"
17027               found_so="$additional_libdir/lib$name.$shlibext"
17028               if test -f "$additional_libdir/lib$name.la"; then
17029                 found_la="$additional_libdir/lib$name.la"
17030               fi
17031             else
17032               if test -f "$additional_libdir/lib$name.$libext"; then
17033                 found_dir="$additional_libdir"
17034                 found_a="$additional_libdir/lib$name.$libext"
17035                 if test -f "$additional_libdir/lib$name.la"; then
17036                   found_la="$additional_libdir/lib$name.la"
17037                 fi
17038               fi
17039             fi
17040           fi
17041           if test "X$found_dir" = "X"; then
17042             for x in $LDFLAGS $LTLIBICONV; do
17043
17044   acl_save_prefix="$prefix"
17045   prefix="$acl_final_prefix"
17046   acl_save_exec_prefix="$exec_prefix"
17047   exec_prefix="$acl_final_exec_prefix"
17048   eval x=\"$x\"
17049   exec_prefix="$acl_save_exec_prefix"
17050   prefix="$acl_save_prefix"
17051
17052               case "$x" in
17053                 -L*)
17054                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17055                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17056                     found_dir="$dir"
17057                     found_so="$dir/lib$name.$shlibext"
17058                     if test -f "$dir/lib$name.la"; then
17059                       found_la="$dir/lib$name.la"
17060                     fi
17061                   else
17062                     if test -f "$dir/lib$name.$libext"; then
17063                       found_dir="$dir"
17064                       found_a="$dir/lib$name.$libext"
17065                       if test -f "$dir/lib$name.la"; then
17066                         found_la="$dir/lib$name.la"
17067                       fi
17068                     fi
17069                   fi
17070                   ;;
17071               esac
17072               if test "X$found_dir" != "X"; then
17073                 break
17074               fi
17075             done
17076           fi
17077           if test "X$found_dir" != "X"; then
17078                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17079             if test "X$found_so" != "X"; then
17080                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17081                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17082               else
17083                                                                                 haveit=
17084                 for x in $ltrpathdirs; do
17085                   if test "X$x" = "X$found_dir"; then
17086                     haveit=yes
17087                     break
17088                   fi
17089                 done
17090                 if test -z "$haveit"; then
17091                   ltrpathdirs="$ltrpathdirs $found_dir"
17092                 fi
17093                                 if test "$hardcode_direct" = yes; then
17094                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17095                 else
17096                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17097                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17098                                                             haveit=
17099                     for x in $rpathdirs; do
17100                       if test "X$x" = "X$found_dir"; then
17101                         haveit=yes
17102                         break
17103                       fi
17104                     done
17105                     if test -z "$haveit"; then
17106                       rpathdirs="$rpathdirs $found_dir"
17107                     fi
17108                   else
17109                                                                                 haveit=
17110                     for x in $LDFLAGS $LIBICONV; do
17111
17112   acl_save_prefix="$prefix"
17113   prefix="$acl_final_prefix"
17114   acl_save_exec_prefix="$exec_prefix"
17115   exec_prefix="$acl_final_exec_prefix"
17116   eval x=\"$x\"
17117   exec_prefix="$acl_save_exec_prefix"
17118   prefix="$acl_save_prefix"
17119
17120                       if test "X$x" = "X-L$found_dir"; then
17121                         haveit=yes
17122                         break
17123                       fi
17124                     done
17125                     if test -z "$haveit"; then
17126                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17127                     fi
17128                     if test "$hardcode_minus_L" != no; then
17129                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17130                     else
17131                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17132                     fi
17133                   fi
17134                 fi
17135               fi
17136             else
17137               if test "X$found_a" != "X"; then
17138                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17139               else
17140                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17141               fi
17142             fi
17143                         additional_includedir=
17144             case "$found_dir" in
17145               */lib | */lib/)
17146                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17147                 additional_includedir="$basedir/include"
17148                 ;;
17149             esac
17150             if test "X$additional_includedir" != "X"; then
17151                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17152                 haveit=
17153                 if test "X$additional_includedir" = "X/usr/local/include"; then
17154                   if test -n "$GCC"; then
17155                     case $host_os in
17156                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17157                     esac
17158                   fi
17159                 fi
17160                 if test -z "$haveit"; then
17161                   for x in $CPPFLAGS $INCICONV; do
17162
17163   acl_save_prefix="$prefix"
17164   prefix="$acl_final_prefix"
17165   acl_save_exec_prefix="$exec_prefix"
17166   exec_prefix="$acl_final_exec_prefix"
17167   eval x=\"$x\"
17168   exec_prefix="$acl_save_exec_prefix"
17169   prefix="$acl_save_prefix"
17170
17171                     if test "X$x" = "X-I$additional_includedir"; then
17172                       haveit=yes
17173                       break
17174                     fi
17175                   done
17176                   if test -z "$haveit"; then
17177                     if test -d "$additional_includedir"; then
17178                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17179                     fi
17180                   fi
17181                 fi
17182               fi
17183             fi
17184                         if test -n "$found_la"; then
17185                                                         save_libdir="$libdir"
17186               case "$found_la" in
17187                 */* | *\\*) . "$found_la" ;;
17188                 *) . "./$found_la" ;;
17189               esac
17190               libdir="$save_libdir"
17191                             for dep in $dependency_libs; do
17192                 case "$dep" in
17193                   -L*)
17194                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17195                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17196                       haveit=
17197                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17198                         if test -n "$GCC"; then
17199                           case $host_os in
17200                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17201                           esac
17202                         fi
17203                       fi
17204                       if test -z "$haveit"; then
17205                         haveit=
17206                         for x in $LDFLAGS $LIBICONV; do
17207
17208   acl_save_prefix="$prefix"
17209   prefix="$acl_final_prefix"
17210   acl_save_exec_prefix="$exec_prefix"
17211   exec_prefix="$acl_final_exec_prefix"
17212   eval x=\"$x\"
17213   exec_prefix="$acl_save_exec_prefix"
17214   prefix="$acl_save_prefix"
17215
17216                           if test "X$x" = "X-L$additional_libdir"; then
17217                             haveit=yes
17218                             break
17219                           fi
17220                         done
17221                         if test -z "$haveit"; then
17222                           if test -d "$additional_libdir"; then
17223                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17224                           fi
17225                         fi
17226                         haveit=
17227                         for x in $LDFLAGS $LTLIBICONV; do
17228
17229   acl_save_prefix="$prefix"
17230   prefix="$acl_final_prefix"
17231   acl_save_exec_prefix="$exec_prefix"
17232   exec_prefix="$acl_final_exec_prefix"
17233   eval x=\"$x\"
17234   exec_prefix="$acl_save_exec_prefix"
17235   prefix="$acl_save_prefix"
17236
17237                           if test "X$x" = "X-L$additional_libdir"; then
17238                             haveit=yes
17239                             break
17240                           fi
17241                         done
17242                         if test -z "$haveit"; then
17243                           if test -d "$additional_libdir"; then
17244                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17245                           fi
17246                         fi
17247                       fi
17248                     fi
17249                     ;;
17250                   -R*)
17251                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17252                     if test "$enable_rpath" != no; then
17253                                                                   haveit=
17254                       for x in $rpathdirs; do
17255                         if test "X$x" = "X$dir"; then
17256                           haveit=yes
17257                           break
17258                         fi
17259                       done
17260                       if test -z "$haveit"; then
17261                         rpathdirs="$rpathdirs $dir"
17262                       fi
17263                                                                   haveit=
17264                       for x in $ltrpathdirs; do
17265                         if test "X$x" = "X$dir"; then
17266                           haveit=yes
17267                           break
17268                         fi
17269                       done
17270                       if test -z "$haveit"; then
17271                         ltrpathdirs="$ltrpathdirs $dir"
17272                       fi
17273                     fi
17274                     ;;
17275                   -l*)
17276                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17277                     ;;
17278                   *.la)
17279                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17280                     ;;
17281                   *)
17282                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17283                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17284                     ;;
17285                 esac
17286               done
17287             fi
17288           else
17289                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17290             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17291           fi
17292         fi
17293       fi
17294     done
17295   done
17296   if test "X$rpathdirs" != "X"; then
17297     if test -n "$hardcode_libdir_separator"; then
17298                         alldirs=
17299       for found_dir in $rpathdirs; do
17300         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17301       done
17302             acl_save_libdir="$libdir"
17303       libdir="$alldirs"
17304       eval flag=\"$hardcode_libdir_flag_spec\"
17305       libdir="$acl_save_libdir"
17306       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17307     else
17308             for found_dir in $rpathdirs; do
17309         acl_save_libdir="$libdir"
17310         libdir="$found_dir"
17311         eval flag=\"$hardcode_libdir_flag_spec\"
17312         libdir="$acl_save_libdir"
17313         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17314       done
17315     fi
17316   fi
17317   if test "X$ltrpathdirs" != "X"; then
17318             for found_dir in $ltrpathdirs; do
17319       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17320     done
17321   fi
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17341 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17342 if test "${gt_cv_func_CFPreferencesCopyAppValue+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 <CFPreferences.h>
17356 int
17357 main ()
17358 {
17359 CFPreferencesCopyAppValue(NULL, NULL)
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_CFPreferencesCopyAppValue=yes
17383 else
17384   echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17386
17387         gt_cv_func_CFPreferencesCopyAppValue=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_CFPreferencesCopyAppValue" >&5
17396 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17397   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17398
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17401 _ACEOF
17402
17403   fi
17404     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17405 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17406 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   gt_save_CPPFLAGS="$CPPFLAGS"
17410      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17411      gt_save_LIBS="$LIBS"
17412      LIBS="$LIBS -framework CoreFoundation"
17413      cat >conftest.$ac_ext <<_ACEOF
17414 /* confdefs.h.  */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h.  */
17419 #include <CFLocale.h>
17420 int
17421 main ()
17422 {
17423 CFLocaleCopyCurrent();
17424   ;
17425   return 0;
17426 }
17427 _ACEOF
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (ac_try="$ac_link"
17430 case "(($ac_try" in
17431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432   *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435   (eval "$ac_link") 2>conftest.er1
17436   ac_status=$?
17437   grep -v '^ *+' conftest.er1 >conftest.err
17438   rm -f conftest.er1
17439   cat conftest.err >&5
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); } && {
17442          test -z "$ac_c_werror_flag" ||
17443          test ! -s conftest.err
17444        } && test -s conftest$ac_exeext &&
17445        $as_test_x conftest$ac_exeext; then
17446   gt_cv_func_CFLocaleCopyCurrent=yes
17447 else
17448   echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451         gt_cv_func_CFLocaleCopyCurrent=no
17452 fi
17453
17454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17455       conftest$ac_exeext conftest.$ac_ext
17456      CPPFLAGS="$gt_save_CPPFLAGS"
17457      LIBS="$gt_save_LIBS"
17458 fi
17459 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17460 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17461   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17462
17463 cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_CFLOCALECOPYCURRENT 1
17465 _ACEOF
17466
17467   fi
17468   INTL_MACOSX_LIBS=
17469   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17470     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17471   fi
17472
17473
17474
17475
17476   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17477 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17478     # Check whether --enable-nls was given.
17479 if test "${enable_nls+set}" = set; then
17480   enableval=$enable_nls; USE_NLS=$enableval
17481 else
17482   USE_NLS=yes
17483 fi
17484
17485   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17486 echo "${ECHO_T}$USE_NLS" >&6; }
17487
17488
17489
17490
17491   LIBINTL=
17492   LTLIBINTL=
17493   POSUB=
17494
17495     if test "$USE_NLS" = "yes"; then
17496     gt_use_preinstalled_gnugettext=no
17497
17498
17499
17500
17501
17502
17503         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17504 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17505 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508   cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h.  */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h.  */
17514 #include <libintl.h>
17515 extern int _nl_msg_cat_cntr;
17516 extern int *_nl_domain_bindings;
17517 int
17518 main ()
17519 {
17520 bindtextdomain ("", "");
17521 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (ac_try="$ac_link"
17528 case "(($ac_try" in
17529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530   *) ac_try_echo=$ac_try;;
17531 esac
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533   (eval "$ac_link") 2>conftest.er1
17534   ac_status=$?
17535   grep -v '^ *+' conftest.er1 >conftest.err
17536   rm -f conftest.er1
17537   cat conftest.err >&5
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); } && {
17540          test -z "$ac_c_werror_flag" ||
17541          test ! -s conftest.err
17542        } && test -s conftest$ac_exeext &&
17543        $as_test_x conftest$ac_exeext; then
17544   gt_cv_func_gnugettext1_libc=yes
17545 else
17546   echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17548
17549         gt_cv_func_gnugettext1_libc=no
17550 fi
17551
17552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17553       conftest$ac_exeext conftest.$ac_ext
17554 fi
17555 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17556 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17557
17558         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17559
17560
17561
17562
17563
17564           am_save_CPPFLAGS="$CPPFLAGS"
17565
17566   for element in $INCICONV; do
17567     haveit=
17568     for x in $CPPFLAGS; do
17569
17570   acl_save_prefix="$prefix"
17571   prefix="$acl_final_prefix"
17572   acl_save_exec_prefix="$exec_prefix"
17573   exec_prefix="$acl_final_exec_prefix"
17574   eval x=\"$x\"
17575   exec_prefix="$acl_save_exec_prefix"
17576   prefix="$acl_save_prefix"
17577
17578       if test "X$x" = "X$element"; then
17579         haveit=yes
17580         break
17581       fi
17582     done
17583     if test -z "$haveit"; then
17584       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17585     fi
17586   done
17587
17588
17589   { echo "$as_me:$LINENO: checking for iconv" >&5
17590 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17591 if test "${am_cv_func_iconv+set}" = set; then
17592   echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594
17595     am_cv_func_iconv="no, consider installing GNU libiconv"
17596     am_cv_lib_iconv=no
17597     cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h.  */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h.  */
17603 #include <stdlib.h>
17604 #include <iconv.h>
17605 int
17606 main ()
17607 {
17608 iconv_t cd = iconv_open("","");
17609        iconv(cd,NULL,NULL,NULL,NULL);
17610        iconv_close(cd);
17611   ;
17612   return 0;
17613 }
17614 _ACEOF
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619   *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622   (eval "$ac_link") 2>conftest.er1
17623   ac_status=$?
17624   grep -v '^ *+' conftest.er1 >conftest.err
17625   rm -f conftest.er1
17626   cat conftest.err >&5
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); } && {
17629          test -z "$ac_c_werror_flag" ||
17630          test ! -s conftest.err
17631        } && test -s conftest$ac_exeext &&
17632        $as_test_x conftest$ac_exeext; then
17633   am_cv_func_iconv=yes
17634 else
17635   echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17637
17638
17639 fi
17640
17641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17642       conftest$ac_exeext conftest.$ac_ext
17643     if test "$am_cv_func_iconv" != yes; then
17644       am_save_LIBS="$LIBS"
17645       LIBS="$LIBS $LIBICONV"
17646       cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h.  */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h.  */
17652 #include <stdlib.h>
17653 #include <iconv.h>
17654 int
17655 main ()
17656 {
17657 iconv_t cd = iconv_open("","");
17658          iconv(cd,NULL,NULL,NULL,NULL);
17659          iconv_close(cd);
17660   ;
17661   return 0;
17662 }
17663 _ACEOF
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (ac_try="$ac_link"
17666 case "(($ac_try" in
17667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668   *) ac_try_echo=$ac_try;;
17669 esac
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671   (eval "$ac_link") 2>conftest.er1
17672   ac_status=$?
17673   grep -v '^ *+' conftest.er1 >conftest.err
17674   rm -f conftest.er1
17675   cat conftest.err >&5
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); } && {
17678          test -z "$ac_c_werror_flag" ||
17679          test ! -s conftest.err
17680        } && test -s conftest$ac_exeext &&
17681        $as_test_x conftest$ac_exeext; then
17682   am_cv_lib_iconv=yes
17683         am_cv_func_iconv=yes
17684 else
17685   echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688
17689 fi
17690
17691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17692       conftest$ac_exeext conftest.$ac_ext
17693       LIBS="$am_save_LIBS"
17694     fi
17695
17696 fi
17697 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17698 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17699   if test "$am_cv_func_iconv" = yes; then
17700
17701 cat >>confdefs.h <<\_ACEOF
17702 #define HAVE_ICONV 1
17703 _ACEOF
17704
17705   fi
17706   if test "$am_cv_lib_iconv" = yes; then
17707     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17708 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17709     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17710 echo "${ECHO_T}$LIBICONV" >&6; }
17711   else
17712             CPPFLAGS="$am_save_CPPFLAGS"
17713     LIBICONV=
17714     LTLIBICONV=
17715   fi
17716
17717
17718
17719
17720
17721
17722     use_additional=yes
17723
17724   acl_save_prefix="$prefix"
17725   prefix="$acl_final_prefix"
17726   acl_save_exec_prefix="$exec_prefix"
17727   exec_prefix="$acl_final_exec_prefix"
17728
17729     eval additional_includedir=\"$includedir\"
17730     eval additional_libdir=\"$libdir\"
17731
17732   exec_prefix="$acl_save_exec_prefix"
17733   prefix="$acl_save_prefix"
17734
17735
17736 # Check whether --with-libintl-prefix was given.
17737 if test "${with_libintl_prefix+set}" = set; then
17738   withval=$with_libintl_prefix;
17739     if test "X$withval" = "Xno"; then
17740       use_additional=no
17741     else
17742       if test "X$withval" = "X"; then
17743
17744   acl_save_prefix="$prefix"
17745   prefix="$acl_final_prefix"
17746   acl_save_exec_prefix="$exec_prefix"
17747   exec_prefix="$acl_final_exec_prefix"
17748
17749           eval additional_includedir=\"$includedir\"
17750           eval additional_libdir=\"$libdir\"
17751
17752   exec_prefix="$acl_save_exec_prefix"
17753   prefix="$acl_save_prefix"
17754
17755       else
17756         additional_includedir="$withval/include"
17757         additional_libdir="$withval/lib"
17758       fi
17759     fi
17760
17761 fi
17762
17763       LIBINTL=
17764   LTLIBINTL=
17765   INCINTL=
17766   rpathdirs=
17767   ltrpathdirs=
17768   names_already_handled=
17769   names_next_round='intl '
17770   while test -n "$names_next_round"; do
17771     names_this_round="$names_next_round"
17772     names_next_round=
17773     for name in $names_this_round; do
17774       already_handled=
17775       for n in $names_already_handled; do
17776         if test "$n" = "$name"; then
17777           already_handled=yes
17778           break
17779         fi
17780       done
17781       if test -z "$already_handled"; then
17782         names_already_handled="$names_already_handled $name"
17783                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17784         eval value=\"\$HAVE_LIB$uppername\"
17785         if test -n "$value"; then
17786           if test "$value" = yes; then
17787             eval value=\"\$LIB$uppername\"
17788             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17789             eval value=\"\$LTLIB$uppername\"
17790             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17791           else
17792                                     :
17793           fi
17794         else
17795                               found_dir=
17796           found_la=
17797           found_so=
17798           found_a=
17799           if test $use_additional = yes; then
17800             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17801               found_dir="$additional_libdir"
17802               found_so="$additional_libdir/lib$name.$shlibext"
17803               if test -f "$additional_libdir/lib$name.la"; then
17804                 found_la="$additional_libdir/lib$name.la"
17805               fi
17806             else
17807               if test -f "$additional_libdir/lib$name.$libext"; then
17808                 found_dir="$additional_libdir"
17809                 found_a="$additional_libdir/lib$name.$libext"
17810                 if test -f "$additional_libdir/lib$name.la"; then
17811                   found_la="$additional_libdir/lib$name.la"
17812                 fi
17813               fi
17814             fi
17815           fi
17816           if test "X$found_dir" = "X"; then
17817             for x in $LDFLAGS $LTLIBINTL; do
17818
17819   acl_save_prefix="$prefix"
17820   prefix="$acl_final_prefix"
17821   acl_save_exec_prefix="$exec_prefix"
17822   exec_prefix="$acl_final_exec_prefix"
17823   eval x=\"$x\"
17824   exec_prefix="$acl_save_exec_prefix"
17825   prefix="$acl_save_prefix"
17826
17827               case "$x" in
17828                 -L*)
17829                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17830                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17831                     found_dir="$dir"
17832                     found_so="$dir/lib$name.$shlibext"
17833                     if test -f "$dir/lib$name.la"; then
17834                       found_la="$dir/lib$name.la"
17835                     fi
17836                   else
17837                     if test -f "$dir/lib$name.$libext"; then
17838                       found_dir="$dir"
17839                       found_a="$dir/lib$name.$libext"
17840                       if test -f "$dir/lib$name.la"; then
17841                         found_la="$dir/lib$name.la"
17842                       fi
17843                     fi
17844                   fi
17845                   ;;
17846               esac
17847               if test "X$found_dir" != "X"; then
17848                 break
17849               fi
17850             done
17851           fi
17852           if test "X$found_dir" != "X"; then
17853                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17854             if test "X$found_so" != "X"; then
17855                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17856                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17857               else
17858                                                                                 haveit=
17859                 for x in $ltrpathdirs; do
17860                   if test "X$x" = "X$found_dir"; then
17861                     haveit=yes
17862                     break
17863                   fi
17864                 done
17865                 if test -z "$haveit"; then
17866                   ltrpathdirs="$ltrpathdirs $found_dir"
17867                 fi
17868                                 if test "$hardcode_direct" = yes; then
17869                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17870                 else
17871                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17872                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17873                                                             haveit=
17874                     for x in $rpathdirs; do
17875                       if test "X$x" = "X$found_dir"; then
17876                         haveit=yes
17877                         break
17878                       fi
17879                     done
17880                     if test -z "$haveit"; then
17881                       rpathdirs="$rpathdirs $found_dir"
17882                     fi
17883                   else
17884                                                                                 haveit=
17885                     for x in $LDFLAGS $LIBINTL; do
17886
17887   acl_save_prefix="$prefix"
17888   prefix="$acl_final_prefix"
17889   acl_save_exec_prefix="$exec_prefix"
17890   exec_prefix="$acl_final_exec_prefix"
17891   eval x=\"$x\"
17892   exec_prefix="$acl_save_exec_prefix"
17893   prefix="$acl_save_prefix"
17894
17895                       if test "X$x" = "X-L$found_dir"; then
17896                         haveit=yes
17897                         break
17898                       fi
17899                     done
17900                     if test -z "$haveit"; then
17901                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17902                     fi
17903                     if test "$hardcode_minus_L" != no; then
17904                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17905                     else
17906                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17907                     fi
17908                   fi
17909                 fi
17910               fi
17911             else
17912               if test "X$found_a" != "X"; then
17913                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17914               else
17915                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17916               fi
17917             fi
17918                         additional_includedir=
17919             case "$found_dir" in
17920               */lib | */lib/)
17921                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17922                 additional_includedir="$basedir/include"
17923                 ;;
17924             esac
17925             if test "X$additional_includedir" != "X"; then
17926                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17927                 haveit=
17928                 if test "X$additional_includedir" = "X/usr/local/include"; then
17929                   if test -n "$GCC"; then
17930                     case $host_os in
17931                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17932                     esac
17933                   fi
17934                 fi
17935                 if test -z "$haveit"; then
17936                   for x in $CPPFLAGS $INCINTL; do
17937
17938   acl_save_prefix="$prefix"
17939   prefix="$acl_final_prefix"
17940   acl_save_exec_prefix="$exec_prefix"
17941   exec_prefix="$acl_final_exec_prefix"
17942   eval x=\"$x\"
17943   exec_prefix="$acl_save_exec_prefix"
17944   prefix="$acl_save_prefix"
17945
17946                     if test "X$x" = "X-I$additional_includedir"; then
17947                       haveit=yes
17948                       break
17949                     fi
17950                   done
17951                   if test -z "$haveit"; then
17952                     if test -d "$additional_includedir"; then
17953                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17954                     fi
17955                   fi
17956                 fi
17957               fi
17958             fi
17959                         if test -n "$found_la"; then
17960                                                         save_libdir="$libdir"
17961               case "$found_la" in
17962                 */* | *\\*) . "$found_la" ;;
17963                 *) . "./$found_la" ;;
17964               esac
17965               libdir="$save_libdir"
17966                             for dep in $dependency_libs; do
17967                 case "$dep" in
17968                   -L*)
17969                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17970                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17971                       haveit=
17972                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17973                         if test -n "$GCC"; then
17974                           case $host_os in
17975                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17976                           esac
17977                         fi
17978                       fi
17979                       if test -z "$haveit"; then
17980                         haveit=
17981                         for x in $LDFLAGS $LIBINTL; do
17982
17983   acl_save_prefix="$prefix"
17984   prefix="$acl_final_prefix"
17985   acl_save_exec_prefix="$exec_prefix"
17986   exec_prefix="$acl_final_exec_prefix"
17987   eval x=\"$x\"
17988   exec_prefix="$acl_save_exec_prefix"
17989   prefix="$acl_save_prefix"
17990
17991                           if test "X$x" = "X-L$additional_libdir"; then
17992                             haveit=yes
17993                             break
17994                           fi
17995                         done
17996                         if test -z "$haveit"; then
17997                           if test -d "$additional_libdir"; then
17998                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17999                           fi
18000                         fi
18001                         haveit=
18002                         for x in $LDFLAGS $LTLIBINTL; do
18003
18004   acl_save_prefix="$prefix"
18005   prefix="$acl_final_prefix"
18006   acl_save_exec_prefix="$exec_prefix"
18007   exec_prefix="$acl_final_exec_prefix"
18008   eval x=\"$x\"
18009   exec_prefix="$acl_save_exec_prefix"
18010   prefix="$acl_save_prefix"
18011
18012                           if test "X$x" = "X-L$additional_libdir"; then
18013                             haveit=yes
18014                             break
18015                           fi
18016                         done
18017                         if test -z "$haveit"; then
18018                           if test -d "$additional_libdir"; then
18019                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18020                           fi
18021                         fi
18022                       fi
18023                     fi
18024                     ;;
18025                   -R*)
18026                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18027                     if test "$enable_rpath" != no; then
18028                                                                   haveit=
18029                       for x in $rpathdirs; do
18030                         if test "X$x" = "X$dir"; then
18031                           haveit=yes
18032                           break
18033                         fi
18034                       done
18035                       if test -z "$haveit"; then
18036                         rpathdirs="$rpathdirs $dir"
18037                       fi
18038                                                                   haveit=
18039                       for x in $ltrpathdirs; do
18040                         if test "X$x" = "X$dir"; then
18041                           haveit=yes
18042                           break
18043                         fi
18044                       done
18045                       if test -z "$haveit"; then
18046                         ltrpathdirs="$ltrpathdirs $dir"
18047                       fi
18048                     fi
18049                     ;;
18050                   -l*)
18051                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18052                     ;;
18053                   *.la)
18054                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18055                     ;;
18056                   *)
18057                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18058                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18059                     ;;
18060                 esac
18061               done
18062             fi
18063           else
18064                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18065             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18066           fi
18067         fi
18068       fi
18069     done
18070   done
18071   if test "X$rpathdirs" != "X"; then
18072     if test -n "$hardcode_libdir_separator"; then
18073                         alldirs=
18074       for found_dir in $rpathdirs; do
18075         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18076       done
18077             acl_save_libdir="$libdir"
18078       libdir="$alldirs"
18079       eval flag=\"$hardcode_libdir_flag_spec\"
18080       libdir="$acl_save_libdir"
18081       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18082     else
18083             for found_dir in $rpathdirs; do
18084         acl_save_libdir="$libdir"
18085         libdir="$found_dir"
18086         eval flag=\"$hardcode_libdir_flag_spec\"
18087         libdir="$acl_save_libdir"
18088         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18089       done
18090     fi
18091   fi
18092   if test "X$ltrpathdirs" != "X"; then
18093             for found_dir in $ltrpathdirs; do
18094       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18095     done
18096   fi
18097
18098           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18099 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18100 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18101   echo $ECHO_N "(cached) $ECHO_C" >&6
18102 else
18103   gt_save_CPPFLAGS="$CPPFLAGS"
18104             CPPFLAGS="$CPPFLAGS $INCINTL"
18105             gt_save_LIBS="$LIBS"
18106             LIBS="$LIBS $LIBINTL"
18107                         cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h.  */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h.  */
18113 #include <libintl.h>
18114 extern int _nl_msg_cat_cntr;
18115 extern
18116 #ifdef __cplusplus
18117 "C"
18118 #endif
18119 const char *_nl_expand_alias (const char *);
18120 int
18121 main ()
18122 {
18123 bindtextdomain ("", "");
18124 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18125   ;
18126   return 0;
18127 }
18128 _ACEOF
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (ac_try="$ac_link"
18131 case "(($ac_try" in
18132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133   *) ac_try_echo=$ac_try;;
18134 esac
18135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136   (eval "$ac_link") 2>conftest.er1
18137   ac_status=$?
18138   grep -v '^ *+' conftest.er1 >conftest.err
18139   rm -f conftest.er1
18140   cat conftest.err >&5
18141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142   (exit $ac_status); } && {
18143          test -z "$ac_c_werror_flag" ||
18144          test ! -s conftest.err
18145        } && test -s conftest$ac_exeext &&
18146        $as_test_x conftest$ac_exeext; then
18147   gt_cv_func_gnugettext1_libintl=yes
18148 else
18149   echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18151
18152         gt_cv_func_gnugettext1_libintl=no
18153 fi
18154
18155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18156       conftest$ac_exeext conftest.$ac_ext
18157                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18158               LIBS="$LIBS $LIBICONV"
18159               cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h.  */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h.  */
18165 #include <libintl.h>
18166 extern int _nl_msg_cat_cntr;
18167 extern
18168 #ifdef __cplusplus
18169 "C"
18170 #endif
18171 const char *_nl_expand_alias (const char *);
18172 int
18173 main ()
18174 {
18175 bindtextdomain ("", "");
18176 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18177   ;
18178   return 0;
18179 }
18180 _ACEOF
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185   *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188   (eval "$ac_link") 2>conftest.er1
18189   ac_status=$?
18190   grep -v '^ *+' conftest.er1 >conftest.err
18191   rm -f conftest.er1
18192   cat conftest.err >&5
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); } && {
18195          test -z "$ac_c_werror_flag" ||
18196          test ! -s conftest.err
18197        } && test -s conftest$ac_exeext &&
18198        $as_test_x conftest$ac_exeext; then
18199   LIBINTL="$LIBINTL $LIBICONV"
18200                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18201                 gt_cv_func_gnugettext1_libintl=yes
18202
18203 else
18204   echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18206
18207
18208 fi
18209
18210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18211       conftest$ac_exeext conftest.$ac_ext
18212             fi
18213             CPPFLAGS="$gt_save_CPPFLAGS"
18214             LIBS="$gt_save_LIBS"
18215 fi
18216 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18217 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18218         fi
18219
18220                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18221            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18222                 && test "$PACKAGE" != gettext-runtime \
18223                 && test "$PACKAGE" != gettext-tools; }; then
18224           gt_use_preinstalled_gnugettext=yes
18225         else
18226                     LIBINTL=
18227           LTLIBINTL=
18228           INCINTL=
18229         fi
18230
18231
18232
18233     if test -n "$INTL_MACOSX_LIBS"; then
18234       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18235          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18236                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18237         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18238       fi
18239     fi
18240
18241     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18242        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18243
18244 cat >>confdefs.h <<\_ACEOF
18245 #define ENABLE_NLS 1
18246 _ACEOF
18247
18248     else
18249       USE_NLS=no
18250     fi
18251   fi
18252
18253   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18254 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18255   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18256 echo "${ECHO_T}$USE_NLS" >&6; }
18257   if test "$USE_NLS" = "yes"; then
18258     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18259 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18260     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18261       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18262         gt_source="external libintl"
18263       else
18264         gt_source="libc"
18265       fi
18266     else
18267       gt_source="included intl directory"
18268     fi
18269     { echo "$as_me:$LINENO: result: $gt_source" >&5
18270 echo "${ECHO_T}$gt_source" >&6; }
18271   fi
18272
18273   if test "$USE_NLS" = "yes"; then
18274
18275     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18276       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18277         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18278 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18279         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18280 echo "${ECHO_T}$LIBINTL" >&6; }
18281
18282   for element in $INCINTL; do
18283     haveit=
18284     for x in $CPPFLAGS; do
18285
18286   acl_save_prefix="$prefix"
18287   prefix="$acl_final_prefix"
18288   acl_save_exec_prefix="$exec_prefix"
18289   exec_prefix="$acl_final_exec_prefix"
18290   eval x=\"$x\"
18291   exec_prefix="$acl_save_exec_prefix"
18292   prefix="$acl_save_prefix"
18293
18294       if test "X$x" = "X$element"; then
18295         haveit=yes
18296         break
18297       fi
18298     done
18299     if test -z "$haveit"; then
18300       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18301     fi
18302   done
18303
18304       fi
18305
18306
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE_GETTEXT 1
18309 _ACEOF
18310
18311
18312 cat >>confdefs.h <<\_ACEOF
18313 #define HAVE_DCGETTEXT 1
18314 _ACEOF
18315
18316     fi
18317
18318         POSUB=po
18319   fi
18320
18321
18322
18323     INTLLIBS="$LIBINTL"
18324
18325
18326
18327
18328
18329
18330
18331 os_name=`uname -s 2>/dev/null`
18332 if test x${prefix} = xNONE ; then
18333    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18334       sysconfdir=/etc/bacula
18335    fi
18336
18337    if test `eval echo ${libdir}` = NONE/lib ; then
18338       case ${os_name} in
18339       Linux)
18340          os_processor=`uname -p 2>/dev/null`
18341          case ${os_processor} in
18342          x86_64)
18343             libdir=/usr/lib64
18344             ;;
18345          *)
18346             libdir=/usr/lib
18347             ;;
18348          esac
18349          ;;
18350       *)
18351          libdir=/usr/lib
18352          ;;
18353       esac
18354    fi
18355
18356    if test `eval echo ${includedir}` = NONE/include ; then
18357       includedir=/usr/include
18358    fi
18359
18360    if test `eval echo ${datarootdir}` = NONE/share ; then
18361       datarootdir=/usr/share
18362    fi
18363    prefix=
18364 fi
18365
18366 if test x${exec_prefix} = xNONE ; then
18367    exec_prefix=${prefix}
18368 fi
18369
18370 sysconfdir=`eval echo ${sysconfdir}`
18371 datarootdir=`eval echo ${datarootdir}`
18372 docdir=`eval echo ${docdir}`
18373 htmldir=`eval echo ${htmldir}`
18374 libdir=`eval echo ${libdir}`
18375 includedir=`eval echo ${includedir}`
18376 localedir=`eval echo ${datarootdir}/locale`
18377 cat >>confdefs.h <<_ACEOF
18378 #define SYSCONFDIR "$sysconfdir"
18379 _ACEOF
18380
18381 cat >>confdefs.h <<_ACEOF
18382 #define LOCALEDIR "$localedir"
18383 _ACEOF
18384
18385
18386 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18387    sbindir=${exec_prefix}/sbin
18388 fi
18389 sbindir=`eval echo ${sbindir}`
18390
18391 if test x$mandir = x'${prefix}/man' ; then
18392    mandir=/usr/share/man
18393 fi
18394
18395 if test x$htmldir = x${docdir} ; then
18396    htmldir=`eval echo ${docdir}bacula/html`
18397 fi
18398
18399 if test x$docdir = x'/usr/share/doc/' ; then
18400    docdir=`eval echo ${docdir}bacula`
18401 fi
18402
18403
18404 for ac_prog in msgfmt
18405 do
18406   # Extract the first word of "$ac_prog", so it can be a program name with args.
18407 set dummy $ac_prog; 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_path_MSGFMT+set}" = set; then
18411   echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413   case $MSGFMT in
18414   [\\/]* | ?:[\\/]*)
18415   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18416   ;;
18417   *)
18418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18419 for as_dir in $PATH
18420 do
18421   IFS=$as_save_IFS
18422   test -z "$as_dir" && as_dir=.
18423   for ac_exec_ext in '' $ac_executable_extensions; do
18424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18425     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18427     break 2
18428   fi
18429 done
18430 done
18431 IFS=$as_save_IFS
18432
18433   ;;
18434 esac
18435 fi
18436 MSGFMT=$ac_cv_path_MSGFMT
18437 if test -n "$MSGFMT"; then
18438   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18439 echo "${ECHO_T}$MSGFMT" >&6; }
18440 else
18441   { echo "$as_me:$LINENO: result: no" >&5
18442 echo "${ECHO_T}no" >&6; }
18443 fi
18444
18445
18446   test -n "$MSGFMT" && break
18447 done
18448 test -n "$MSGFMT" || MSGFMT="no"
18449
18450 if test "$MSGFMT" = "no"
18451 then
18452    echo 'msgfmt program not found, disabling NLS !'
18453    USE_NLS=no
18454    USE_INCLUDED_LIBINTL=no
18455 #else
18456
18457     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18458 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18459 if test "${ac_cv_gnu_library_2+set}" = set; then
18460   echo $ECHO_N "(cached) $ECHO_C" >&6
18461 else
18462   cat >conftest.$ac_ext <<_ACEOF
18463 /* confdefs.h.  */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h.  */
18468
18469 #include <features.h>
18470 #ifdef __GNU_LIBRARY__
18471  #if (__GLIBC__ >= 2)
18472   Lucky GNU user
18473  #endif
18474 #endif
18475
18476 _ACEOF
18477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18478   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18479   ac_cv_gnu_library_2=yes
18480 else
18481   ac_cv_gnu_library_2=no
18482 fi
18483 rm -f conftest*
18484
18485
18486
18487 fi
18488 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18489 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18490
18491     GLIBC2="$ac_cv_gnu_library_2"
18492
18493
18494 if test -n "$ac_tool_prefix"; then
18495   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18499 if test "${ac_cv_prog_RANLIB+set}" = set; then
18500   echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502   if test -n "$RANLIB"; then
18503   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18504 else
18505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18506 for as_dir in $PATH
18507 do
18508   IFS=$as_save_IFS
18509   test -z "$as_dir" && as_dir=.
18510   for ac_exec_ext in '' $ac_executable_extensions; do
18511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18512     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18514     break 2
18515   fi
18516 done
18517 done
18518 IFS=$as_save_IFS
18519
18520 fi
18521 fi
18522 RANLIB=$ac_cv_prog_RANLIB
18523 if test -n "$RANLIB"; then
18524   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18525 echo "${ECHO_T}$RANLIB" >&6; }
18526 else
18527   { echo "$as_me:$LINENO: result: no" >&5
18528 echo "${ECHO_T}no" >&6; }
18529 fi
18530
18531
18532 fi
18533 if test -z "$ac_cv_prog_RANLIB"; then
18534   ac_ct_RANLIB=$RANLIB
18535   # Extract the first word of "ranlib", so it can be a program name with args.
18536 set dummy ranlib; ac_word=$2
18537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18539 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18540   echo $ECHO_N "(cached) $ECHO_C" >&6
18541 else
18542   if test -n "$ac_ct_RANLIB"; then
18543   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18544 else
18545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18546 for as_dir in $PATH
18547 do
18548   IFS=$as_save_IFS
18549   test -z "$as_dir" && as_dir=.
18550   for ac_exec_ext in '' $ac_executable_extensions; do
18551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18552     ac_cv_prog_ac_ct_RANLIB="ranlib"
18553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18554     break 2
18555   fi
18556 done
18557 done
18558 IFS=$as_save_IFS
18559
18560 fi
18561 fi
18562 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18563 if test -n "$ac_ct_RANLIB"; then
18564   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18565 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18566 else
18567   { echo "$as_me:$LINENO: result: no" >&5
18568 echo "${ECHO_T}no" >&6; }
18569 fi
18570
18571   if test "x$ac_ct_RANLIB" = x; then
18572     RANLIB=":"
18573   else
18574     case $cross_compiling:$ac_tool_warned in
18575 yes:)
18576 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18577 whose name does not start with the host triplet.  If you think this
18578 configuration is useful to you, please write to autoconf@gnu.org." >&5
18579 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18580 whose name does not start with the host triplet.  If you think this
18581 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18582 ac_tool_warned=yes ;;
18583 esac
18584     RANLIB=$ac_ct_RANLIB
18585   fi
18586 else
18587   RANLIB="$ac_cv_prog_RANLIB"
18588 fi
18589
18590
18591         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18592 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18593 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18594   echo $ECHO_N "(cached) $ECHO_C" >&6
18595 else
18596   ac_check_lib_save_LIBS=$LIBS
18597 LIBS="-lcposix  $LIBS"
18598 cat >conftest.$ac_ext <<_ACEOF
18599 /* confdefs.h.  */
18600 _ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h.  */
18604
18605 /* Override any GCC internal prototype to avoid an error.
18606    Use char because int might match the return type of a GCC
18607    builtin and then its argument prototype would still apply.  */
18608 #ifdef __cplusplus
18609 extern "C"
18610 #endif
18611 char strerror ();
18612 int
18613 main ()
18614 {
18615 return strerror ();
18616   ;
18617   return 0;
18618 }
18619 _ACEOF
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624   *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627   (eval "$ac_link") 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } && {
18634          test -z "$ac_c_werror_flag" ||
18635          test ! -s conftest.err
18636        } && test -s conftest$ac_exeext &&
18637        $as_test_x conftest$ac_exeext; then
18638   ac_cv_lib_cposix_strerror=yes
18639 else
18640   echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643         ac_cv_lib_cposix_strerror=no
18644 fi
18645
18646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18647       conftest$ac_exeext conftest.$ac_ext
18648 LIBS=$ac_check_lib_save_LIBS
18649 fi
18650 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18651 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18652 if test $ac_cv_lib_cposix_strerror = yes; then
18653   LIBS="$LIBS -lcposix"
18654 fi
18655
18656
18657
18658 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18659 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18660 if test "${ac_cv_c_const+set}" = set; then
18661   echo $ECHO_N "(cached) $ECHO_C" >&6
18662 else
18663   cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h.  */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h.  */
18669
18670 int
18671 main ()
18672 {
18673 /* FIXME: Include the comments suggested by Paul. */
18674 #ifndef __cplusplus
18675   /* Ultrix mips cc rejects this.  */
18676   typedef int charset[2];
18677   const charset cs;
18678   /* SunOS 4.1.1 cc rejects this.  */
18679   char const *const *pcpcc;
18680   char **ppc;
18681   /* NEC SVR4.0.2 mips cc rejects this.  */
18682   struct point {int x, y;};
18683   static struct point const zero = {0,0};
18684   /* AIX XL C 1.02.0.0 rejects this.
18685      It does not let you subtract one const X* pointer from another in
18686      an arm of an if-expression whose if-part is not a constant
18687      expression */
18688   const char *g = "string";
18689   pcpcc = &g + (g ? g-g : 0);
18690   /* HPUX 7.0 cc rejects these. */
18691   ++pcpcc;
18692   ppc = (char**) pcpcc;
18693   pcpcc = (char const *const *) ppc;
18694   { /* SCO 3.2v4 cc rejects this.  */
18695     char *t;
18696     char const *s = 0 ? (char *) 0 : (char const *) 0;
18697
18698     *t++ = 0;
18699     if (s) return 0;
18700   }
18701   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18702     int x[] = {25, 17};
18703     const int *foo = &x[0];
18704     ++foo;
18705   }
18706   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18707     typedef const int *iptr;
18708     iptr p = 0;
18709     ++p;
18710   }
18711   { /* AIX XL C 1.02.0.0 rejects this saying
18712        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18713     struct s { int j; const int *ap[3]; };
18714     struct s *b; b->j = 5;
18715   }
18716   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18717     const int foo = 10;
18718     if (!foo) return 0;
18719   }
18720   return !cs[0] && !zero.x;
18721 #endif
18722
18723   ;
18724   return 0;
18725 }
18726 _ACEOF
18727 rm -f conftest.$ac_objext
18728 if { (ac_try="$ac_compile"
18729 case "(($ac_try" in
18730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731   *) ac_try_echo=$ac_try;;
18732 esac
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734   (eval "$ac_compile") 2>conftest.er1
18735   ac_status=$?
18736   grep -v '^ *+' conftest.er1 >conftest.err
18737   rm -f conftest.er1
18738   cat conftest.err >&5
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); } && {
18741          test -z "$ac_c_werror_flag" ||
18742          test ! -s conftest.err
18743        } && test -s conftest.$ac_objext; then
18744   ac_cv_c_const=yes
18745 else
18746   echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18748
18749         ac_cv_c_const=no
18750 fi
18751
18752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18753 fi
18754 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18755 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18756 if test $ac_cv_c_const = no; then
18757
18758 cat >>confdefs.h <<\_ACEOF
18759 #define const
18760 _ACEOF
18761
18762 fi
18763
18764
18765   { echo "$as_me:$LINENO: checking for signed" >&5
18766 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18767 if test "${bh_cv_c_signed+set}" = set; then
18768   echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770   cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h.  */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h.  */
18776
18777 int
18778 main ()
18779 {
18780 signed char x;
18781   ;
18782   return 0;
18783 }
18784 _ACEOF
18785 rm -f conftest.$ac_objext
18786 if { (ac_try="$ac_compile"
18787 case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792   (eval "$ac_compile") 2>conftest.er1
18793   ac_status=$?
18794   grep -v '^ *+' conftest.er1 >conftest.err
18795   rm -f conftest.er1
18796   cat conftest.err >&5
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); } && {
18799          test -z "$ac_c_werror_flag" ||
18800          test ! -s conftest.err
18801        } && test -s conftest.$ac_objext; then
18802   bh_cv_c_signed=yes
18803 else
18804   echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18806
18807         bh_cv_c_signed=no
18808 fi
18809
18810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18811 fi
18812 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18813 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18814   if test $bh_cv_c_signed = no; then
18815
18816 cat >>confdefs.h <<\_ACEOF
18817 #define signed
18818 _ACEOF
18819
18820   fi
18821
18822 { echo "$as_me:$LINENO: checking for inline" >&5
18823 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18824 if test "${ac_cv_c_inline+set}" = set; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827   ac_cv_c_inline=no
18828 for ac_kw in inline __inline__ __inline; do
18829   cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835 #ifndef __cplusplus
18836 typedef int foo_t;
18837 static $ac_kw foo_t static_foo () {return 0; }
18838 $ac_kw foo_t foo () {return 0; }
18839 #endif
18840
18841 _ACEOF
18842 rm -f conftest.$ac_objext
18843 if { (ac_try="$ac_compile"
18844 case "(($ac_try" in
18845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846   *) ac_try_echo=$ac_try;;
18847 esac
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849   (eval "$ac_compile") 2>conftest.er1
18850   ac_status=$?
18851   grep -v '^ *+' conftest.er1 >conftest.err
18852   rm -f conftest.er1
18853   cat conftest.err >&5
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); } && {
18856          test -z "$ac_c_werror_flag" ||
18857          test ! -s conftest.err
18858        } && test -s conftest.$ac_objext; then
18859   ac_cv_c_inline=$ac_kw
18860 else
18861   echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18863
18864
18865 fi
18866
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868   test "$ac_cv_c_inline" != no && break
18869 done
18870
18871 fi
18872 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18873 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18874
18875
18876 case $ac_cv_c_inline in
18877   inline | yes) ;;
18878   *)
18879     case $ac_cv_c_inline in
18880       no) ac_val=;;
18881       *) ac_val=$ac_cv_c_inline;;
18882     esac
18883     cat >>confdefs.h <<_ACEOF
18884 #ifndef __cplusplus
18885 #define inline $ac_val
18886 #endif
18887 _ACEOF
18888     ;;
18889 esac
18890
18891 { echo "$as_me:$LINENO: checking for off_t" >&5
18892 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18893 if test "${ac_cv_type_off_t+set}" = set; then
18894   echo $ECHO_N "(cached) $ECHO_C" >&6
18895 else
18896   cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h.  */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h.  */
18902 $ac_includes_default
18903 typedef off_t ac__type_new_;
18904 int
18905 main ()
18906 {
18907 if ((ac__type_new_ *) 0)
18908   return 0;
18909 if (sizeof (ac__type_new_))
18910   return 0;
18911   ;
18912   return 0;
18913 }
18914 _ACEOF
18915 rm -f conftest.$ac_objext
18916 if { (ac_try="$ac_compile"
18917 case "(($ac_try" in
18918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919   *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922   (eval "$ac_compile") 2>conftest.er1
18923   ac_status=$?
18924   grep -v '^ *+' conftest.er1 >conftest.err
18925   rm -f conftest.er1
18926   cat conftest.err >&5
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } && {
18929          test -z "$ac_c_werror_flag" ||
18930          test ! -s conftest.err
18931        } && test -s conftest.$ac_objext; then
18932   ac_cv_type_off_t=yes
18933 else
18934   echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18936
18937         ac_cv_type_off_t=no
18938 fi
18939
18940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18941 fi
18942 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18943 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18944 if test $ac_cv_type_off_t = yes; then
18945   :
18946 else
18947
18948 cat >>confdefs.h <<_ACEOF
18949 #define off_t long int
18950 _ACEOF
18951
18952 fi
18953
18954 { echo "$as_me:$LINENO: checking for size_t" >&5
18955 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18956 if test "${ac_cv_type_size_t+set}" = set; then
18957   echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959   cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h.  */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h.  */
18965 $ac_includes_default
18966 typedef size_t ac__type_new_;
18967 int
18968 main ()
18969 {
18970 if ((ac__type_new_ *) 0)
18971   return 0;
18972 if (sizeof (ac__type_new_))
18973   return 0;
18974   ;
18975   return 0;
18976 }
18977 _ACEOF
18978 rm -f conftest.$ac_objext
18979 if { (ac_try="$ac_compile"
18980 case "(($ac_try" in
18981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982   *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985   (eval "$ac_compile") 2>conftest.er1
18986   ac_status=$?
18987   grep -v '^ *+' conftest.er1 >conftest.err
18988   rm -f conftest.er1
18989   cat conftest.err >&5
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); } && {
18992          test -z "$ac_c_werror_flag" ||
18993          test ! -s conftest.err
18994        } && test -s conftest.$ac_objext; then
18995   ac_cv_type_size_t=yes
18996 else
18997   echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
18999
19000         ac_cv_type_size_t=no
19001 fi
19002
19003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19004 fi
19005 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19006 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19007 if test $ac_cv_type_size_t = yes; then
19008   :
19009 else
19010
19011 cat >>confdefs.h <<_ACEOF
19012 #define size_t unsigned int
19013 _ACEOF
19014
19015 fi
19016
19017
19018   { echo "$as_me:$LINENO: checking for long long" >&5
19019 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19020 if test "${ac_cv_type_long_long+set}" = set; then
19021   echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023   cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029 long long ll = 1LL; int i = 63;
19030 int
19031 main ()
19032 {
19033 long long llmax = (long long) -1;
19034      return ll << i | ll >> i | llmax / ll | llmax % ll;
19035   ;
19036   return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043   *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046   (eval "$ac_link") 2>conftest.er1
19047   ac_status=$?
19048   grep -v '^ *+' conftest.er1 >conftest.err
19049   rm -f conftest.er1
19050   cat conftest.err >&5
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); } && {
19053          test -z "$ac_c_werror_flag" ||
19054          test ! -s conftest.err
19055        } && test -s conftest$ac_exeext &&
19056        $as_test_x conftest$ac_exeext; then
19057   ac_cv_type_long_long=yes
19058 else
19059   echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19061
19062         ac_cv_type_long_long=no
19063 fi
19064
19065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19066       conftest$ac_exeext conftest.$ac_ext
19067 fi
19068 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19069 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19070   if test $ac_cv_type_long_long = yes; then
19071
19072 cat >>confdefs.h <<\_ACEOF
19073 #define HAVE_LONG_LONG 1
19074 _ACEOF
19075
19076   fi
19077
19078
19079   { echo "$as_me:$LINENO: checking for long double" >&5
19080 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19081 if test "${gt_cv_c_long_double+set}" = set; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   if test "$GCC" = yes; then
19085        gt_cv_c_long_double=yes
19086      else
19087        cat >conftest.$ac_ext <<_ACEOF
19088 /* confdefs.h.  */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h.  */
19093
19094          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19095          long double foo = 0.0;
19096          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19097          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19098
19099 int
19100 main ()
19101 {
19102
19103   ;
19104   return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext
19108 if { (ac_try="$ac_compile"
19109 case "(($ac_try" in
19110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111   *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114   (eval "$ac_compile") 2>conftest.er1
19115   ac_status=$?
19116   grep -v '^ *+' conftest.er1 >conftest.err
19117   rm -f conftest.er1
19118   cat conftest.err >&5
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); } && {
19121          test -z "$ac_c_werror_flag" ||
19122          test ! -s conftest.err
19123        } && test -s conftest.$ac_objext; then
19124   gt_cv_c_long_double=yes
19125 else
19126   echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129         gt_cv_c_long_double=no
19130 fi
19131
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133      fi
19134 fi
19135 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19136 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19137   if test $gt_cv_c_long_double = yes; then
19138
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_LONG_DOUBLE 1
19141 _ACEOF
19142
19143   fi
19144
19145
19146   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19147 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19148 if test "${gt_cv_c_wchar_t+set}" = set; then
19149   echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151   cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h.  */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h.  */
19157 #include <stddef.h>
19158        wchar_t foo = (wchar_t)'\0';
19159 int
19160 main ()
19161 {
19162
19163   ;
19164   return 0;
19165 }
19166 _ACEOF
19167 rm -f conftest.$ac_objext
19168 if { (ac_try="$ac_compile"
19169 case "(($ac_try" in
19170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171   *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174   (eval "$ac_compile") 2>conftest.er1
19175   ac_status=$?
19176   grep -v '^ *+' conftest.er1 >conftest.err
19177   rm -f conftest.er1
19178   cat conftest.err >&5
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } && {
19181          test -z "$ac_c_werror_flag" ||
19182          test ! -s conftest.err
19183        } && test -s conftest.$ac_objext; then
19184   gt_cv_c_wchar_t=yes
19185 else
19186   echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19188
19189         gt_cv_c_wchar_t=no
19190 fi
19191
19192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19193 fi
19194 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19195 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19196   if test $gt_cv_c_wchar_t = yes; then
19197
19198 cat >>confdefs.h <<\_ACEOF
19199 #define HAVE_WCHAR_T 1
19200 _ACEOF
19201
19202   fi
19203
19204
19205   { echo "$as_me:$LINENO: checking for wint_t" >&5
19206 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19207 if test "${gt_cv_c_wint_t+set}" = set; then
19208   echo $ECHO_N "(cached) $ECHO_C" >&6
19209 else
19210   cat >conftest.$ac_ext <<_ACEOF
19211 /* confdefs.h.  */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h.  */
19216 #include <wchar.h>
19217        wint_t foo = (wchar_t)'\0';
19218 int
19219 main ()
19220 {
19221
19222   ;
19223   return 0;
19224 }
19225 _ACEOF
19226 rm -f conftest.$ac_objext
19227 if { (ac_try="$ac_compile"
19228 case "(($ac_try" in
19229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230   *) ac_try_echo=$ac_try;;
19231 esac
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233   (eval "$ac_compile") 2>conftest.er1
19234   ac_status=$?
19235   grep -v '^ *+' conftest.er1 >conftest.err
19236   rm -f conftest.er1
19237   cat conftest.err >&5
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); } && {
19240          test -z "$ac_c_werror_flag" ||
19241          test ! -s conftest.err
19242        } && test -s conftest.$ac_objext; then
19243   gt_cv_c_wint_t=yes
19244 else
19245   echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248         gt_cv_c_wint_t=no
19249 fi
19250
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 fi
19253 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19254 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19255   if test $gt_cv_c_wint_t = yes; then
19256
19257 cat >>confdefs.h <<\_ACEOF
19258 #define HAVE_WINT_T 1
19259 _ACEOF
19260
19261   fi
19262
19263
19264   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19265 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19266 if test "${gl_cv_header_inttypes_h+set}" = set; then
19267   echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269   cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h.  */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h.  */
19275 #include <sys/types.h>
19276 #include <inttypes.h>
19277 int
19278 main ()
19279 {
19280 uintmax_t i = (uintmax_t) -1;
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext
19286 if { (ac_try="$ac_compile"
19287 case "(($ac_try" in
19288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289   *) ac_try_echo=$ac_try;;
19290 esac
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292   (eval "$ac_compile") 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } && {
19299          test -z "$ac_c_werror_flag" ||
19300          test ! -s conftest.err
19301        } && test -s conftest.$ac_objext; then
19302   gl_cv_header_inttypes_h=yes
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307         gl_cv_header_inttypes_h=no
19308 fi
19309
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311 fi
19312 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19313 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19314   if test $gl_cv_header_inttypes_h = yes; then
19315
19316 cat >>confdefs.h <<_ACEOF
19317 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19318 _ACEOF
19319
19320   fi
19321
19322
19323   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19324 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19325 if test "${gl_cv_header_stdint_h+set}" = set; then
19326   echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328   cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h.  */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h.  */
19334 #include <sys/types.h>
19335 #include <stdint.h>
19336 int
19337 main ()
19338 {
19339 uintmax_t i = (uintmax_t) -1;
19340   ;
19341   return 0;
19342 }
19343 _ACEOF
19344 rm -f conftest.$ac_objext
19345 if { (ac_try="$ac_compile"
19346 case "(($ac_try" in
19347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348   *) ac_try_echo=$ac_try;;
19349 esac
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351   (eval "$ac_compile") 2>conftest.er1
19352   ac_status=$?
19353   grep -v '^ *+' conftest.er1 >conftest.err
19354   rm -f conftest.er1
19355   cat conftest.err >&5
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); } && {
19358          test -z "$ac_c_werror_flag" ||
19359          test ! -s conftest.err
19360        } && test -s conftest.$ac_objext; then
19361   gl_cv_header_stdint_h=yes
19362 else
19363   echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366         gl_cv_header_stdint_h=no
19367 fi
19368
19369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19370 fi
19371 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19372 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19373   if test $gl_cv_header_stdint_h = yes; then
19374
19375 cat >>confdefs.h <<_ACEOF
19376 #define HAVE_STDINT_H_WITH_UINTMAX 1
19377 _ACEOF
19378
19379   fi
19380
19381
19382
19383
19384   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19385 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19386 if test "${gt_cv_c_intmax_t+set}" = set; then
19387   echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389   cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h.  */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h.  */
19395
19396 #include <stddef.h>
19397 #include <stdlib.h>
19398 #if HAVE_STDINT_H_WITH_UINTMAX
19399 #include <stdint.h>
19400 #endif
19401 #if HAVE_INTTYPES_H_WITH_UINTMAX
19402 #include <inttypes.h>
19403 #endif
19404
19405 int
19406 main ()
19407 {
19408 intmax_t x = -1;
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext
19414 if { (ac_try="$ac_compile"
19415 case "(($ac_try" in
19416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417   *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420   (eval "$ac_compile") 2>conftest.er1
19421   ac_status=$?
19422   grep -v '^ *+' conftest.er1 >conftest.err
19423   rm -f conftest.er1
19424   cat conftest.err >&5
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); } && {
19427          test -z "$ac_c_werror_flag" ||
19428          test ! -s conftest.err
19429        } && test -s conftest.$ac_objext; then
19430   gt_cv_c_intmax_t=yes
19431 else
19432   echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435         gt_cv_c_intmax_t=no
19436 fi
19437
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 fi
19440 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19441 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19442   if test $gt_cv_c_intmax_t = yes; then
19443
19444 cat >>confdefs.h <<\_ACEOF
19445 #define HAVE_INTMAX_T 1
19446 _ACEOF
19447
19448   fi
19449
19450
19451
19452   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19453 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19454 if test "${gt_cv_func_printf_posix+set}" = set; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457
19458       if test "$cross_compiling" = yes; then
19459
19460         cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h.  */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h.  */
19466
19467 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19468   notposix
19469 #endif
19470
19471 _ACEOF
19472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19473   $EGREP "notposix" >/dev/null 2>&1; then
19474   gt_cv_func_printf_posix="guessing no"
19475 else
19476   gt_cv_func_printf_posix="guessing yes"
19477 fi
19478 rm -f conftest*
19479
19480
19481 else
19482   cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488
19489 #include <stdio.h>
19490 #include <string.h>
19491 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19492    dollar expansion (possibly an autoconf bug).  */
19493 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19494 static char buf[100];
19495 int main ()
19496 {
19497   sprintf (buf, format, 33, 55);
19498   return (strcmp (buf, "55 33") != 0);
19499 }
19500 _ACEOF
19501 rm -f conftest$ac_exeext
19502 if { (ac_try="$ac_link"
19503 case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_link") 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19512   { (case "(($ac_try" in
19513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514   *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517   (eval "$ac_try") 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); }; }; then
19521   gt_cv_func_printf_posix=yes
19522 else
19523   echo "$as_me: program exited with status $ac_status" >&5
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19526
19527 ( exit $ac_status )
19528 gt_cv_func_printf_posix=no
19529 fi
19530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19531 fi
19532
19533
19534
19535 fi
19536 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19537 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19538   case $gt_cv_func_printf_posix in
19539     *yes)
19540
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE_POSIX_PRINTF 1
19543 _ACEOF
19544
19545       ;;
19546   esac
19547
19548 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19549 # for constant arguments.  Useless!
19550 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19551 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19552 if test "${ac_cv_working_alloca_h+set}" = set; then
19553   echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19555   cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h.  */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h.  */
19561 #include <alloca.h>
19562 int
19563 main ()
19564 {
19565 char *p = (char *) alloca (2 * sizeof (int));
19566                           if (p) return 0;
19567   ;
19568   return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (ac_try="$ac_link"
19573 case "(($ac_try" in
19574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575   *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578   (eval "$ac_link") 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } && {
19585          test -z "$ac_c_werror_flag" ||
19586          test ! -s conftest.err
19587        } && test -s conftest$ac_exeext &&
19588        $as_test_x conftest$ac_exeext; then
19589   ac_cv_working_alloca_h=yes
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594         ac_cv_working_alloca_h=no
19595 fi
19596
19597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19598       conftest$ac_exeext conftest.$ac_ext
19599 fi
19600 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19601 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19602 if test $ac_cv_working_alloca_h = yes; then
19603
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE_ALLOCA_H 1
19606 _ACEOF
19607
19608 fi
19609
19610 { echo "$as_me:$LINENO: checking for alloca" >&5
19611 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19612 if test "${ac_cv_func_alloca_works+set}" = set; then
19613   echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615   cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621 #ifdef __GNUC__
19622 # define alloca __builtin_alloca
19623 #else
19624 # ifdef _MSC_VER
19625 #  include <malloc.h>
19626 #  define alloca _alloca
19627 # else
19628 #  ifdef HAVE_ALLOCA_H
19629 #   include <alloca.h>
19630 #  else
19631 #   ifdef _AIX
19632  #pragma alloca
19633 #   else
19634 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19635 char *alloca ();
19636 #    endif
19637 #   endif
19638 #  endif
19639 # endif
19640 #endif
19641
19642 int
19643 main ()
19644 {
19645 char *p = (char *) alloca (1);
19646                                     if (p) return 0;
19647   ;
19648   return 0;
19649 }
19650 _ACEOF
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655   *) ac_try_echo=$ac_try;;
19656 esac
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658   (eval "$ac_link") 2>conftest.er1
19659   ac_status=$?
19660   grep -v '^ *+' conftest.er1 >conftest.err
19661   rm -f conftest.er1
19662   cat conftest.err >&5
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); } && {
19665          test -z "$ac_c_werror_flag" ||
19666          test ! -s conftest.err
19667        } && test -s conftest$ac_exeext &&
19668        $as_test_x conftest$ac_exeext; then
19669   ac_cv_func_alloca_works=yes
19670 else
19671   echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19673
19674         ac_cv_func_alloca_works=no
19675 fi
19676
19677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19678       conftest$ac_exeext conftest.$ac_ext
19679 fi
19680 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19681 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19682
19683 if test $ac_cv_func_alloca_works = yes; then
19684
19685 cat >>confdefs.h <<\_ACEOF
19686 #define HAVE_ALLOCA 1
19687 _ACEOF
19688
19689 else
19690   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19691 # that cause trouble.  Some versions do not even contain alloca or
19692 # contain a buggy version.  If you still want to use their alloca,
19693 # use ar to extract alloca.o from them instead of compiling alloca.c.
19694
19695 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19696
19697 cat >>confdefs.h <<\_ACEOF
19698 #define C_ALLOCA 1
19699 _ACEOF
19700
19701
19702 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19703 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19704 if test "${ac_cv_os_cray+set}" = set; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707   cat >conftest.$ac_ext <<_ACEOF
19708 /* confdefs.h.  */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h.  */
19713 #if defined CRAY && ! defined CRAY2
19714 webecray
19715 #else
19716 wenotbecray
19717 #endif
19718
19719 _ACEOF
19720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19721   $EGREP "webecray" >/dev/null 2>&1; then
19722   ac_cv_os_cray=yes
19723 else
19724   ac_cv_os_cray=no
19725 fi
19726 rm -f conftest*
19727
19728 fi
19729 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19730 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19731 if test $ac_cv_os_cray = yes; then
19732   for ac_func in _getb67 GETB67 getb67; do
19733     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19737   echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739   cat >conftest.$ac_ext <<_ACEOF
19740 /* confdefs.h.  */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h.  */
19745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19747 #define $ac_func innocuous_$ac_func
19748
19749 /* System header to define __stub macros and hopefully few prototypes,
19750     which can conflict with char $ac_func (); below.
19751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19752     <limits.h> exists even on freestanding compilers.  */
19753
19754 #ifdef __STDC__
19755 # include <limits.h>
19756 #else
19757 # include <assert.h>
19758 #endif
19759
19760 #undef $ac_func
19761
19762 /* Override any GCC internal prototype to avoid an error.
19763    Use char because int might match the return type of a GCC
19764    builtin and then its argument prototype would still apply.  */
19765 #ifdef __cplusplus
19766 extern "C"
19767 #endif
19768 char $ac_func ();
19769 /* The GNU C library defines this for functions which it implements
19770     to always fail with ENOSYS.  Some functions are actually named
19771     something starting with __ and the normal name is an alias.  */
19772 #if defined __stub_$ac_func || defined __stub___$ac_func
19773 choke me
19774 #endif
19775
19776 int
19777 main ()
19778 {
19779 return $ac_func ();
19780   ;
19781   return 0;
19782 }
19783 _ACEOF
19784 rm -f conftest.$ac_objext conftest$ac_exeext
19785 if { (ac_try="$ac_link"
19786 case "(($ac_try" in
19787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788   *) ac_try_echo=$ac_try;;
19789 esac
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791   (eval "$ac_link") 2>conftest.er1
19792   ac_status=$?
19793   grep -v '^ *+' conftest.er1 >conftest.err
19794   rm -f conftest.er1
19795   cat conftest.err >&5
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); } && {
19798          test -z "$ac_c_werror_flag" ||
19799          test ! -s conftest.err
19800        } && test -s conftest$ac_exeext &&
19801        $as_test_x conftest$ac_exeext; then
19802   eval "$as_ac_var=yes"
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807         eval "$as_ac_var=no"
19808 fi
19809
19810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19811       conftest$ac_exeext conftest.$ac_ext
19812 fi
19813 ac_res=`eval echo '${'$as_ac_var'}'`
19814                { echo "$as_me:$LINENO: result: $ac_res" >&5
19815 echo "${ECHO_T}$ac_res" >&6; }
19816 if test `eval echo '${'$as_ac_var'}'` = yes; then
19817
19818 cat >>confdefs.h <<_ACEOF
19819 #define CRAY_STACKSEG_END $ac_func
19820 _ACEOF
19821
19822     break
19823 fi
19824
19825   done
19826 fi
19827
19828 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19829 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19830 if test "${ac_cv_c_stack_direction+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   if test "$cross_compiling" = yes; then
19834   ac_cv_c_stack_direction=0
19835 else
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 int
19844 find_stack_direction ()
19845 {
19846   static char *addr = 0;
19847   auto char dummy;
19848   if (addr == 0)
19849     {
19850       addr = &dummy;
19851       return find_stack_direction ();
19852     }
19853   else
19854     return (&dummy > addr) ? 1 : -1;
19855 }
19856
19857 int
19858 main ()
19859 {
19860   return find_stack_direction () < 0;
19861 }
19862 _ACEOF
19863 rm -f conftest$ac_exeext
19864 if { (ac_try="$ac_link"
19865 case "(($ac_try" in
19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867   *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870   (eval "$ac_link") 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19874   { (case "(($ac_try" in
19875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876   *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879   (eval "$ac_try") 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); }; }; then
19883   ac_cv_c_stack_direction=1
19884 else
19885   echo "$as_me: program exited with status $ac_status" >&5
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ( exit $ac_status )
19890 ac_cv_c_stack_direction=-1
19891 fi
19892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19893 fi
19894
19895
19896 fi
19897 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19898 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19899
19900 cat >>confdefs.h <<_ACEOF
19901 #define STACK_DIRECTION $ac_cv_c_stack_direction
19902 _ACEOF
19903
19904
19905 fi
19906
19907
19908
19909 for ac_header in stdlib.h unistd.h
19910 do
19911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916   echo $ECHO_N "(cached) $ECHO_C" >&6
19917 fi
19918 ac_res=`eval echo '${'$as_ac_Header'}'`
19919                { echo "$as_me:$LINENO: result: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19921 else
19922   # Is the header compilable?
19923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19925 cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931 $ac_includes_default
19932 #include <$ac_header>
19933 _ACEOF
19934 rm -f conftest.$ac_objext
19935 if { (ac_try="$ac_compile"
19936 case "(($ac_try" in
19937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938   *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941   (eval "$ac_compile") 2>conftest.er1
19942   ac_status=$?
19943   grep -v '^ *+' conftest.er1 >conftest.err
19944   rm -f conftest.er1
19945   cat conftest.err >&5
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); } && {
19948          test -z "$ac_c_werror_flag" ||
19949          test ! -s conftest.err
19950        } && test -s conftest.$ac_objext; then
19951   ac_header_compiler=yes
19952 else
19953   echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956         ac_header_compiler=no
19957 fi
19958
19959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19961 echo "${ECHO_T}$ac_header_compiler" >&6; }
19962
19963 # Is the header present?
19964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h.  */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h.  */
19972 #include <$ac_header>
19973 _ACEOF
19974 if { (ac_try="$ac_cpp conftest.$ac_ext"
19975 case "(($ac_try" in
19976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977   *) ac_try_echo=$ac_try;;
19978 esac
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19981   ac_status=$?
19982   grep -v '^ *+' conftest.er1 >conftest.err
19983   rm -f conftest.er1
19984   cat conftest.err >&5
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); } >/dev/null && {
19987          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19988          test ! -s conftest.err
19989        }; then
19990   ac_header_preproc=yes
19991 else
19992   echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19994
19995   ac_header_preproc=no
19996 fi
19997
19998 rm -f conftest.err conftest.$ac_ext
19999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20000 echo "${ECHO_T}$ac_header_preproc" >&6; }
20001
20002 # So?  What about this header?
20003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20004   yes:no: )
20005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20009     ac_header_preproc=yes
20010     ;;
20011   no:yes:* )
20012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20024
20025     ;;
20026 esac
20027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   eval "$as_ac_Header=\$ac_header_preproc"
20033 fi
20034 ac_res=`eval echo '${'$as_ac_Header'}'`
20035                { echo "$as_me:$LINENO: result: $ac_res" >&5
20036 echo "${ECHO_T}$ac_res" >&6; }
20037
20038 fi
20039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20040   cat >>confdefs.h <<_ACEOF
20041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20042 _ACEOF
20043
20044 fi
20045
20046 done
20047
20048
20049 for ac_func in getpagesize
20050 do
20051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057   cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h.  */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h.  */
20063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20065 #define $ac_func innocuous_$ac_func
20066
20067 /* System header to define __stub macros and hopefully few prototypes,
20068     which can conflict with char $ac_func (); below.
20069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20070     <limits.h> exists even on freestanding compilers.  */
20071
20072 #ifdef __STDC__
20073 # include <limits.h>
20074 #else
20075 # include <assert.h>
20076 #endif
20077
20078 #undef $ac_func
20079
20080 /* Override any GCC internal prototype to avoid an error.
20081    Use char because int might match the return type of a GCC
20082    builtin and then its argument prototype would still apply.  */
20083 #ifdef __cplusplus
20084 extern "C"
20085 #endif
20086 char $ac_func ();
20087 /* The GNU C library defines this for functions which it implements
20088     to always fail with ENOSYS.  Some functions are actually named
20089     something starting with __ and the normal name is an alias.  */
20090 #if defined __stub_$ac_func || defined __stub___$ac_func
20091 choke me
20092 #endif
20093
20094 int
20095 main ()
20096 {
20097 return $ac_func ();
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_link") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && {
20116          test -z "$ac_c_werror_flag" ||
20117          test ! -s conftest.err
20118        } && test -s conftest$ac_exeext &&
20119        $as_test_x conftest$ac_exeext; then
20120   eval "$as_ac_var=yes"
20121 else
20122   echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125         eval "$as_ac_var=no"
20126 fi
20127
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129       conftest$ac_exeext conftest.$ac_ext
20130 fi
20131 ac_res=`eval echo '${'$as_ac_var'}'`
20132                { echo "$as_me:$LINENO: result: $ac_res" >&5
20133 echo "${ECHO_T}$ac_res" >&6; }
20134 if test `eval echo '${'$as_ac_var'}'` = yes; then
20135   cat >>confdefs.h <<_ACEOF
20136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20137 _ACEOF
20138
20139 fi
20140 done
20141
20142 { echo "$as_me:$LINENO: checking for working mmap" >&5
20143 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20144 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147   if test "$cross_compiling" = yes; then
20148   ac_cv_func_mmap_fixed_mapped=no
20149 else
20150   cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h.  */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h.  */
20156 $ac_includes_default
20157 /* malloc might have been renamed as rpl_malloc. */
20158 #undef malloc
20159
20160 /* Thanks to Mike Haertel and Jim Avera for this test.
20161    Here is a matrix of mmap possibilities:
20162         mmap private not fixed
20163         mmap private fixed at somewhere currently unmapped
20164         mmap private fixed at somewhere already mapped
20165         mmap shared not fixed
20166         mmap shared fixed at somewhere currently unmapped
20167         mmap shared fixed at somewhere already mapped
20168    For private mappings, we should verify that changes cannot be read()
20169    back from the file, nor mmap's back from the file at a different
20170    address.  (There have been systems where private was not correctly
20171    implemented like the infamous i386 svr4.0, and systems where the
20172    VM page cache was not coherent with the file system buffer cache
20173    like early versions of FreeBSD and possibly contemporary NetBSD.)
20174    For shared mappings, we should conversely verify that changes get
20175    propagated back to all the places they're supposed to be.
20176
20177    Grep wants private fixed already mapped.
20178    The main things grep needs to know about mmap are:
20179    * does it exist and is it safe to write into the mmap'd area
20180    * how to use it (BSD variants)  */
20181
20182 #include <fcntl.h>
20183 #include <sys/mman.h>
20184
20185 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20186 char *malloc ();
20187 #endif
20188
20189 /* This mess was copied from the GNU getpagesize.h.  */
20190 #ifndef HAVE_GETPAGESIZE
20191 /* Assume that all systems that can run configure have sys/param.h.  */
20192 # ifndef HAVE_SYS_PARAM_H
20193 #  define HAVE_SYS_PARAM_H 1
20194 # endif
20195
20196 # ifdef _SC_PAGESIZE
20197 #  define getpagesize() sysconf(_SC_PAGESIZE)
20198 # else /* no _SC_PAGESIZE */
20199 #  ifdef HAVE_SYS_PARAM_H
20200 #   include <sys/param.h>
20201 #   ifdef EXEC_PAGESIZE
20202 #    define getpagesize() EXEC_PAGESIZE
20203 #   else /* no EXEC_PAGESIZE */
20204 #    ifdef NBPG
20205 #     define getpagesize() NBPG * CLSIZE
20206 #     ifndef CLSIZE
20207 #      define CLSIZE 1
20208 #     endif /* no CLSIZE */
20209 #    else /* no NBPG */
20210 #     ifdef NBPC
20211 #      define getpagesize() NBPC
20212 #     else /* no NBPC */
20213 #      ifdef PAGESIZE
20214 #       define getpagesize() PAGESIZE
20215 #      endif /* PAGESIZE */
20216 #     endif /* no NBPC */
20217 #    endif /* no NBPG */
20218 #   endif /* no EXEC_PAGESIZE */
20219 #  else /* no HAVE_SYS_PARAM_H */
20220 #   define getpagesize() 8192   /* punt totally */
20221 #  endif /* no HAVE_SYS_PARAM_H */
20222 # endif /* no _SC_PAGESIZE */
20223
20224 #endif /* no HAVE_GETPAGESIZE */
20225
20226 int
20227 main ()
20228 {
20229   char *data, *data2, *data3;
20230   int i, pagesize;
20231   int fd;
20232
20233   pagesize = getpagesize ();
20234
20235   /* First, make a file with some known garbage in it. */
20236   data = (char *) malloc (pagesize);
20237   if (!data)
20238     return 1;
20239   for (i = 0; i < pagesize; ++i)
20240     *(data + i) = rand ();
20241   umask (0);
20242   fd = creat ("conftest.mmap", 0600);
20243   if (fd < 0)
20244     return 1;
20245   if (write (fd, data, pagesize) != pagesize)
20246     return 1;
20247   close (fd);
20248
20249   /* Next, try to mmap the file at a fixed address which already has
20250      something else allocated at it.  If we can, also make sure that
20251      we see the same garbage.  */
20252   fd = open ("conftest.mmap", O_RDWR);
20253   if (fd < 0)
20254     return 1;
20255   data2 = (char *) malloc (2 * pagesize);
20256   if (!data2)
20257     return 1;
20258   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20259   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20260                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20261     return 1;
20262   for (i = 0; i < pagesize; ++i)
20263     if (*(data + i) != *(data2 + i))
20264       return 1;
20265
20266   /* Finally, make sure that changes to the mapped area do not
20267      percolate back to the file as seen by read().  (This is a bug on
20268      some variants of i386 svr4.0.)  */
20269   for (i = 0; i < pagesize; ++i)
20270     *(data2 + i) = *(data2 + i) + 1;
20271   data3 = (char *) malloc (pagesize);
20272   if (!data3)
20273     return 1;
20274   if (read (fd, data3, pagesize) != pagesize)
20275     return 1;
20276   for (i = 0; i < pagesize; ++i)
20277     if (*(data + i) != *(data3 + i))
20278       return 1;
20279   close (fd);
20280   return 0;
20281 }
20282 _ACEOF
20283 rm -f conftest$ac_exeext
20284 if { (ac_try="$ac_link"
20285 case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_link") 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20294   { (case "(($ac_try" in
20295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296   *) ac_try_echo=$ac_try;;
20297 esac
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299   (eval "$ac_try") 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; }; then
20303   ac_cv_func_mmap_fixed_mapped=yes
20304 else
20305   echo "$as_me: program exited with status $ac_status" >&5
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20308
20309 ( exit $ac_status )
20310 ac_cv_func_mmap_fixed_mapped=no
20311 fi
20312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20313 fi
20314
20315
20316 fi
20317 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20318 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20319 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20320
20321 cat >>confdefs.h <<\_ACEOF
20322 #define HAVE_MMAP 1
20323 _ACEOF
20324
20325 fi
20326 rm -f conftest.mmap
20327
20328
20329     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20330 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20331 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20332   echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334   cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h.  */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h.  */
20340
20341 #include <features.h>
20342 #ifdef __GNU_LIBRARY__
20343  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20344   Lucky GNU user
20345  #endif
20346 #endif
20347
20348 _ACEOF
20349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20350   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20351   ac_cv_gnu_library_2_1=yes
20352 else
20353   ac_cv_gnu_library_2_1=no
20354 fi
20355 rm -f conftest*
20356
20357
20358
20359 fi
20360 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20361 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20362
20363     GLIBC21="$ac_cv_gnu_library_2_1"
20364
20365
20366
20367
20368   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20369 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20370 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20371   echo $ECHO_N "(cached) $ECHO_C" >&6
20372 else
20373
20374       if test "$cross_compiling" = yes; then
20375
20376           # Guess based on the CPU.
20377           case "$host_cpu" in
20378             alpha* | i3456786 | m68k | s390*)
20379               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20380             *)
20381               gt_cv_int_divbyzero_sigfpe="guessing no";;
20382           esac
20383
20384 else
20385   cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391
20392 #include <stdlib.h>
20393 #include <signal.h>
20394
20395 static void
20396 #ifdef __cplusplus
20397 sigfpe_handler (int sig)
20398 #else
20399 sigfpe_handler (sig) int sig;
20400 #endif
20401 {
20402   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20403   exit (sig != SIGFPE);
20404 }
20405
20406 int x = 1;
20407 int y = 0;
20408 int z;
20409 int nan;
20410
20411 int main ()
20412 {
20413   signal (SIGFPE, sigfpe_handler);
20414 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20415 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20416   signal (SIGTRAP, sigfpe_handler);
20417 #endif
20418 /* Linux/SPARC yields signal SIGILL.  */
20419 #if defined (__sparc__) && defined (__linux__)
20420   signal (SIGILL, sigfpe_handler);
20421 #endif
20422
20423   z = x / y;
20424   nan = y / y;
20425   exit (1);
20426 }
20427
20428 _ACEOF
20429 rm -f conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_link") 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20440   { (case "(($ac_try" in
20441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442   *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445   (eval "$ac_try") 2>&5
20446   ac_status=$?
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); }; }; then
20449   gt_cv_int_divbyzero_sigfpe=yes
20450 else
20451   echo "$as_me: program exited with status $ac_status" >&5
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 ( exit $ac_status )
20456 gt_cv_int_divbyzero_sigfpe=no
20457 fi
20458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20459 fi
20460
20461
20462
20463 fi
20464 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20465 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20466   case "$gt_cv_int_divbyzero_sigfpe" in
20467     *yes) value=1;;
20468     *) value=0;;
20469   esac
20470
20471 cat >>confdefs.h <<_ACEOF
20472 #define INTDIV0_RAISES_SIGFPE $value
20473 _ACEOF
20474
20475
20476
20477   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20478 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20479 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20480   echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482   cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h.  */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h.  */
20488 unsigned long long ull = 1ULL; int i = 63;
20489 int
20490 main ()
20491 {
20492 unsigned long long ullmax = (unsigned long long) -1;
20493      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20494   ;
20495   return 0;
20496 }
20497 _ACEOF
20498 rm -f conftest.$ac_objext conftest$ac_exeext
20499 if { (ac_try="$ac_link"
20500 case "(($ac_try" in
20501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502   *) ac_try_echo=$ac_try;;
20503 esac
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505   (eval "$ac_link") 2>conftest.er1
20506   ac_status=$?
20507   grep -v '^ *+' conftest.er1 >conftest.err
20508   rm -f conftest.er1
20509   cat conftest.err >&5
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); } && {
20512          test -z "$ac_c_werror_flag" ||
20513          test ! -s conftest.err
20514        } && test -s conftest$ac_exeext &&
20515        $as_test_x conftest$ac_exeext; then
20516   ac_cv_type_unsigned_long_long=yes
20517 else
20518   echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521         ac_cv_type_unsigned_long_long=no
20522 fi
20523
20524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20525       conftest$ac_exeext conftest.$ac_ext
20526 fi
20527 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20528 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20529   if test $ac_cv_type_unsigned_long_long = yes; then
20530
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE_UNSIGNED_LONG_LONG 1
20533 _ACEOF
20534
20535   fi
20536
20537
20538
20539
20540   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20541
20542     test $ac_cv_type_unsigned_long_long = yes \
20543       && ac_type='unsigned long long' \
20544       || ac_type='unsigned long'
20545
20546 cat >>confdefs.h <<_ACEOF
20547 #define uintmax_t $ac_type
20548 _ACEOF
20549
20550   else
20551
20552 cat >>confdefs.h <<\_ACEOF
20553 #define HAVE_UINTMAX_T 1
20554 _ACEOF
20555
20556   fi
20557
20558
20559   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20560 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20561 if test "${gt_cv_header_inttypes_h+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564
20565     cat >conftest.$ac_ext <<_ACEOF
20566 /* confdefs.h.  */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h.  */
20571 #include <sys/types.h>
20572 #include <inttypes.h>
20573 int
20574 main ()
20575 {
20576
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 rm -f conftest.$ac_objext
20582 if { (ac_try="$ac_compile"
20583 case "(($ac_try" in
20584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585   *) ac_try_echo=$ac_try;;
20586 esac
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588   (eval "$ac_compile") 2>conftest.er1
20589   ac_status=$?
20590   grep -v '^ *+' conftest.er1 >conftest.err
20591   rm -f conftest.er1
20592   cat conftest.err >&5
20593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594   (exit $ac_status); } && {
20595          test -z "$ac_c_werror_flag" ||
20596          test ! -s conftest.err
20597        } && test -s conftest.$ac_objext; then
20598   gt_cv_header_inttypes_h=yes
20599 else
20600   echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20602
20603         gt_cv_header_inttypes_h=no
20604 fi
20605
20606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607
20608 fi
20609 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20610 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20611   if test $gt_cv_header_inttypes_h = yes; then
20612
20613 cat >>confdefs.h <<_ACEOF
20614 #define HAVE_INTTYPES_H 1
20615 _ACEOF
20616
20617   fi
20618
20619
20620
20621   if test $gt_cv_header_inttypes_h = yes; then
20622     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20623 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20624 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20625   echo $ECHO_N "(cached) $ECHO_C" >&6
20626 else
20627
20628         cat >conftest.$ac_ext <<_ACEOF
20629 /* confdefs.h.  */
20630 _ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h.  */
20634 #include <inttypes.h>
20635 #ifdef PRId32
20636 char *p = PRId32;
20637 #endif
20638
20639 int
20640 main ()
20641 {
20642
20643   ;
20644   return 0;
20645 }
20646 _ACEOF
20647 rm -f conftest.$ac_objext
20648 if { (ac_try="$ac_compile"
20649 case "(($ac_try" in
20650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651   *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654   (eval "$ac_compile") 2>conftest.er1
20655   ac_status=$?
20656   grep -v '^ *+' conftest.er1 >conftest.err
20657   rm -f conftest.er1
20658   cat conftest.err >&5
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); } && {
20661          test -z "$ac_c_werror_flag" ||
20662          test ! -s conftest.err
20663        } && test -s conftest.$ac_objext; then
20664   gt_cv_inttypes_pri_broken=no
20665 else
20666   echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20668
20669         gt_cv_inttypes_pri_broken=yes
20670 fi
20671
20672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20673
20674 fi
20675 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20676 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20677   fi
20678   if test "$gt_cv_inttypes_pri_broken" = yes; then
20679
20680 cat >>confdefs.h <<_ACEOF
20681 #define PRI_MACROS_BROKEN 1
20682 _ACEOF
20683
20684   fi
20685
20686
20687
20688 for ac_header in stdint.h
20689 do
20690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20692   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20695   echo $ECHO_N "(cached) $ECHO_C" >&6
20696 fi
20697 ac_res=`eval echo '${'$as_ac_Header'}'`
20698                { echo "$as_me:$LINENO: result: $ac_res" >&5
20699 echo "${ECHO_T}$ac_res" >&6; }
20700 else
20701   # Is the header compilable?
20702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h.  */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h.  */
20710 $ac_includes_default
20711 #include <$ac_header>
20712 _ACEOF
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717   *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720   (eval "$ac_compile") 2>conftest.er1
20721   ac_status=$?
20722   grep -v '^ *+' conftest.er1 >conftest.err
20723   rm -f conftest.er1
20724   cat conftest.err >&5
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); } && {
20727          test -z "$ac_c_werror_flag" ||
20728          test ! -s conftest.err
20729        } && test -s conftest.$ac_objext; then
20730   ac_header_compiler=yes
20731 else
20732   echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735         ac_header_compiler=no
20736 fi
20737
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20740 echo "${ECHO_T}$ac_header_compiler" >&6; }
20741
20742 # Is the header present?
20743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20745 cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751 #include <$ac_header>
20752 _ACEOF
20753 if { (ac_try="$ac_cpp conftest.$ac_ext"
20754 case "(($ac_try" in
20755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756   *) ac_try_echo=$ac_try;;
20757 esac
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20760   ac_status=$?
20761   grep -v '^ *+' conftest.er1 >conftest.err
20762   rm -f conftest.er1
20763   cat conftest.err >&5
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); } >/dev/null && {
20766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20767          test ! -s conftest.err
20768        }; then
20769   ac_header_preproc=yes
20770 else
20771   echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20773
20774   ac_header_preproc=no
20775 fi
20776
20777 rm -f conftest.err conftest.$ac_ext
20778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20779 echo "${ECHO_T}$ac_header_preproc" >&6; }
20780
20781 # So?  What about this header?
20782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20783   yes:no: )
20784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20788     ac_header_preproc=yes
20789     ;;
20790   no:yes:* )
20791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20803
20804     ;;
20805 esac
20806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20809   echo $ECHO_N "(cached) $ECHO_C" >&6
20810 else
20811   eval "$as_ac_Header=\$ac_header_preproc"
20812 fi
20813 ac_res=`eval echo '${'$as_ac_Header'}'`
20814                { echo "$as_me:$LINENO: result: $ac_res" >&5
20815 echo "${ECHO_T}$ac_res" >&6; }
20816
20817 fi
20818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20819   cat >>confdefs.h <<_ACEOF
20820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20821 _ACEOF
20822
20823 fi
20824
20825 done
20826
20827     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20828 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20829   result=
20830   cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h.  */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h.  */
20836
20837 #include <limits.h>
20838 #if HAVE_STDINT_H
20839 #include <stdint.h>
20840 #endif
20841 #ifdef SIZE_MAX
20842 Found it
20843 #endif
20844
20845 _ACEOF
20846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20847   $EGREP "Found it" >/dev/null 2>&1; then
20848   result=yes
20849 fi
20850 rm -f conftest*
20851
20852   if test -z "$result"; then
20853                     if test "$cross_compiling" = yes; then
20854   # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930         ac_lo=`expr $ac_mid + 1`
20931                         if test $ac_lo -le $ac_mid; then
20932                           ac_lo= ac_hi=
20933                           break
20934                         fi
20935                         ac_mid=`expr 2 '*' $ac_mid + 1`
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         cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 #include <stddef.h>
20951 int
20952 main ()
20953 {
20954 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20955 test_array [0] = 0
20956
20957   ;
20958   return 0;
20959 }
20960 _ACEOF
20961 rm -f conftest.$ac_objext
20962 if { (ac_try="$ac_compile"
20963 case "(($ac_try" in
20964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965   *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968   (eval "$ac_compile") 2>conftest.er1
20969   ac_status=$?
20970   grep -v '^ *+' conftest.er1 >conftest.err
20971   rm -f conftest.er1
20972   cat conftest.err >&5
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); } && {
20975          test -z "$ac_c_werror_flag" ||
20976          test ! -s conftest.err
20977        } && test -s conftest.$ac_objext; then
20978   ac_hi=-1 ac_mid=-1
20979   while :; do
20980     cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h.  */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h.  */
20986 #include <stddef.h>
20987 int
20988 main ()
20989 {
20990 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20991 test_array [0] = 0
20992
20993   ;
20994   return 0;
20995 }
20996 _ACEOF
20997 rm -f conftest.$ac_objext
20998 if { (ac_try="$ac_compile"
20999 case "(($ac_try" in
21000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001   *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004   (eval "$ac_compile") 2>conftest.er1
21005   ac_status=$?
21006   grep -v '^ *+' conftest.er1 >conftest.err
21007   rm -f conftest.er1
21008   cat conftest.err >&5
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); } && {
21011          test -z "$ac_c_werror_flag" ||
21012          test ! -s conftest.err
21013        } && test -s conftest.$ac_objext; then
21014   ac_lo=$ac_mid; break
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019         ac_hi=`expr '(' $ac_mid ')' - 1`
21020                         if test $ac_mid -le $ac_hi; then
21021                           ac_lo= ac_hi=
21022                           break
21023                         fi
21024                         ac_mid=`expr 2 '*' $ac_mid`
21025 fi
21026
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028   done
21029 else
21030   echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21032
21033         ac_lo= ac_hi=
21034 fi
21035
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 fi
21038
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 # Binary search between lo and hi bounds.
21041 while test "x$ac_lo" != "x$ac_hi"; do
21042   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21043   cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049 #include <stddef.h>
21050 int
21051 main ()
21052 {
21053 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21054 test_array [0] = 0
21055
21056   ;
21057   return 0;
21058 }
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064   *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067   (eval "$ac_compile") 2>conftest.er1
21068   ac_status=$?
21069   grep -v '^ *+' conftest.er1 >conftest.err
21070   rm -f conftest.er1
21071   cat conftest.err >&5
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); } && {
21074          test -z "$ac_c_werror_flag" ||
21075          test ! -s conftest.err
21076        } && test -s conftest.$ac_objext; then
21077   ac_hi=$ac_mid
21078 else
21079   echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082         ac_lo=`expr '(' $ac_mid ')' + 1`
21083 fi
21084
21085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086 done
21087 case $ac_lo in
21088 ?*) res_hi=$ac_lo;;
21089 '') result=? ;;
21090 esac
21091 else
21092   cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 #include <stddef.h>
21099 static long int longval () { return ~(size_t)0 / 10; }
21100 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21101 #include <stdio.h>
21102 #include <stdlib.h>
21103 int
21104 main ()
21105 {
21106
21107   FILE *f = fopen ("conftest.val", "w");
21108   if (! f)
21109     return 1;
21110   if ((~(size_t)0 / 10) < 0)
21111     {
21112       long int i = longval ();
21113       if (i != (~(size_t)0 / 10))
21114         return 1;
21115       fprintf (f, "%ld\n", i);
21116     }
21117   else
21118     {
21119       unsigned long int i = ulongval ();
21120       if (i != (~(size_t)0 / 10))
21121         return 1;
21122       fprintf (f, "%lu\n", i);
21123     }
21124   return ferror (f) || fclose (f) != 0;
21125
21126   ;
21127   return 0;
21128 }
21129 _ACEOF
21130 rm -f conftest$ac_exeext
21131 if { (ac_try="$ac_link"
21132 case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137   (eval "$ac_link") 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21141   { (case "(($ac_try" in
21142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143   *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146   (eval "$ac_try") 2>&5
21147   ac_status=$?
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); }; }; then
21150   res_hi=`cat conftest.val`
21151 else
21152   echo "$as_me: program exited with status $ac_status" >&5
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21155
21156 ( exit $ac_status )
21157 result=?
21158 fi
21159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21160 fi
21161 rm -f conftest.val
21162
21163     if test "$cross_compiling" = yes; then
21164   # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
21236 else
21237   echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21239
21240         ac_lo=`expr $ac_mid + 1`
21241                         if test $ac_lo -le $ac_mid; then
21242                           ac_lo= ac_hi=
21243                           break
21244                         fi
21245                         ac_mid=`expr 2 '*' $ac_mid + 1`
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         cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h.  */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h.  */
21260 #include <stddef.h>
21261 int
21262 main ()
21263 {
21264 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21265 test_array [0] = 0
21266
21267   ;
21268   return 0;
21269 }
21270 _ACEOF
21271 rm -f conftest.$ac_objext
21272 if { (ac_try="$ac_compile"
21273 case "(($ac_try" in
21274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275   *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278   (eval "$ac_compile") 2>conftest.er1
21279   ac_status=$?
21280   grep -v '^ *+' conftest.er1 >conftest.err
21281   rm -f conftest.er1
21282   cat conftest.err >&5
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); } && {
21285          test -z "$ac_c_werror_flag" ||
21286          test ! -s conftest.err
21287        } && test -s conftest.$ac_objext; then
21288   ac_hi=-1 ac_mid=-1
21289   while :; do
21290     cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h.  */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h.  */
21296 #include <stddef.h>
21297 int
21298 main ()
21299 {
21300 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21301 test_array [0] = 0
21302
21303   ;
21304   return 0;
21305 }
21306 _ACEOF
21307 rm -f conftest.$ac_objext
21308 if { (ac_try="$ac_compile"
21309 case "(($ac_try" in
21310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311   *) ac_try_echo=$ac_try;;
21312 esac
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314   (eval "$ac_compile") 2>conftest.er1
21315   ac_status=$?
21316   grep -v '^ *+' conftest.er1 >conftest.err
21317   rm -f conftest.er1
21318   cat conftest.err >&5
21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   (exit $ac_status); } && {
21321          test -z "$ac_c_werror_flag" ||
21322          test ! -s conftest.err
21323        } && test -s conftest.$ac_objext; then
21324   ac_lo=$ac_mid; break
21325 else
21326   echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21328
21329         ac_hi=`expr '(' $ac_mid ')' - 1`
21330                         if test $ac_mid -le $ac_hi; then
21331                           ac_lo= ac_hi=
21332                           break
21333                         fi
21334                         ac_mid=`expr 2 '*' $ac_mid`
21335 fi
21336
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338   done
21339 else
21340   echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21342
21343         ac_lo= ac_hi=
21344 fi
21345
21346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21347 fi
21348
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350 # Binary search between lo and hi bounds.
21351 while test "x$ac_lo" != "x$ac_hi"; do
21352   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21353   cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 #include <stddef.h>
21360 int
21361 main ()
21362 {
21363 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21364 test_array [0] = 0
21365
21366   ;
21367   return 0;
21368 }
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374   *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377   (eval "$ac_compile") 2>conftest.er1
21378   ac_status=$?
21379   grep -v '^ *+' conftest.er1 >conftest.err
21380   rm -f conftest.er1
21381   cat conftest.err >&5
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); } && {
21384          test -z "$ac_c_werror_flag" ||
21385          test ! -s conftest.err
21386        } && test -s conftest.$ac_objext; then
21387   ac_hi=$ac_mid
21388 else
21389   echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21391
21392         ac_lo=`expr '(' $ac_mid ')' + 1`
21393 fi
21394
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 done
21397 case $ac_lo in
21398 ?*) res_lo=$ac_lo;;
21399 '') result=? ;;
21400 esac
21401 else
21402   cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h.  */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h.  */
21408 #include <stddef.h>
21409 static long int longval () { return ~(size_t)0 % 10; }
21410 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21411 #include <stdio.h>
21412 #include <stdlib.h>
21413 int
21414 main ()
21415 {
21416
21417   FILE *f = fopen ("conftest.val", "w");
21418   if (! f)
21419     return 1;
21420   if ((~(size_t)0 % 10) < 0)
21421     {
21422       long int i = longval ();
21423       if (i != (~(size_t)0 % 10))
21424         return 1;
21425       fprintf (f, "%ld\n", i);
21426     }
21427   else
21428     {
21429       unsigned long int i = ulongval ();
21430       if (i != (~(size_t)0 % 10))
21431         return 1;
21432       fprintf (f, "%lu\n", i);
21433     }
21434   return ferror (f) || fclose (f) != 0;
21435
21436   ;
21437   return 0;
21438 }
21439 _ACEOF
21440 rm -f conftest$ac_exeext
21441 if { (ac_try="$ac_link"
21442 case "(($ac_try" in
21443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444   *) ac_try_echo=$ac_try;;
21445 esac
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447   (eval "$ac_link") 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21451   { (case "(($ac_try" in
21452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453   *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456   (eval "$ac_try") 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); }; }; then
21460   res_lo=`cat conftest.val`
21461 else
21462   echo "$as_me: program exited with status $ac_status" >&5
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466 ( exit $ac_status )
21467 result=?
21468 fi
21469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21470 fi
21471 rm -f conftest.val
21472
21473     if test "$cross_compiling" = yes; then
21474   # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
21546 else
21547   echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21549
21550         ac_lo=`expr $ac_mid + 1`
21551                         if test $ac_lo -le $ac_mid; then
21552                           ac_lo= ac_hi=
21553                           break
21554                         fi
21555                         ac_mid=`expr 2 '*' $ac_mid + 1`
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         cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h.  */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h.  */
21570 #include <stddef.h>
21571 int
21572 main ()
21573 {
21574 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21575 test_array [0] = 0
21576
21577   ;
21578   return 0;
21579 }
21580 _ACEOF
21581 rm -f conftest.$ac_objext
21582 if { (ac_try="$ac_compile"
21583 case "(($ac_try" in
21584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585   *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588   (eval "$ac_compile") 2>conftest.er1
21589   ac_status=$?
21590   grep -v '^ *+' conftest.er1 >conftest.err
21591   rm -f conftest.er1
21592   cat conftest.err >&5
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); } && {
21595          test -z "$ac_c_werror_flag" ||
21596          test ! -s conftest.err
21597        } && test -s conftest.$ac_objext; then
21598   ac_hi=-1 ac_mid=-1
21599   while :; do
21600     cat >conftest.$ac_ext <<_ACEOF
21601 /* confdefs.h.  */
21602 _ACEOF
21603 cat confdefs.h >>conftest.$ac_ext
21604 cat >>conftest.$ac_ext <<_ACEOF
21605 /* end confdefs.h.  */
21606 #include <stddef.h>
21607 int
21608 main ()
21609 {
21610 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21611 test_array [0] = 0
21612
21613   ;
21614   return 0;
21615 }
21616 _ACEOF
21617 rm -f conftest.$ac_objext
21618 if { (ac_try="$ac_compile"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_compile") 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } && {
21631          test -z "$ac_c_werror_flag" ||
21632          test ! -s conftest.err
21633        } && test -s conftest.$ac_objext; then
21634   ac_lo=$ac_mid; break
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639         ac_hi=`expr '(' $ac_mid ')' - 1`
21640                         if test $ac_mid -le $ac_hi; then
21641                           ac_lo= ac_hi=
21642                           break
21643                         fi
21644                         ac_mid=`expr 2 '*' $ac_mid`
21645 fi
21646
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648   done
21649 else
21650   echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653         ac_lo= ac_hi=
21654 fi
21655
21656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21657 fi
21658
21659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 # Binary search between lo and hi bounds.
21661 while test "x$ac_lo" != "x$ac_hi"; do
21662   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21663   cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669 #include <stddef.h>
21670 int
21671 main ()
21672 {
21673 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21674 test_array [0] = 0
21675
21676   ;
21677   return 0;
21678 }
21679 _ACEOF
21680 rm -f conftest.$ac_objext
21681 if { (ac_try="$ac_compile"
21682 case "(($ac_try" in
21683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684   *) ac_try_echo=$ac_try;;
21685 esac
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687   (eval "$ac_compile") 2>conftest.er1
21688   ac_status=$?
21689   grep -v '^ *+' conftest.er1 >conftest.err
21690   rm -f conftest.er1
21691   cat conftest.err >&5
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); } && {
21694          test -z "$ac_c_werror_flag" ||
21695          test ! -s conftest.err
21696        } && test -s conftest.$ac_objext; then
21697   ac_hi=$ac_mid
21698 else
21699   echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21701
21702         ac_lo=`expr '(' $ac_mid ')' + 1`
21703 fi
21704
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706 done
21707 case $ac_lo in
21708 ?*) fits_in_uint=$ac_lo;;
21709 '') result=? ;;
21710 esac
21711 else
21712   cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h.  */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h.  */
21718 #include <stddef.h>
21719 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21720 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21721 #include <stdio.h>
21722 #include <stdlib.h>
21723 int
21724 main ()
21725 {
21726
21727   FILE *f = fopen ("conftest.val", "w");
21728   if (! f)
21729     return 1;
21730   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21731     {
21732       long int i = longval ();
21733       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21734         return 1;
21735       fprintf (f, "%ld\n", i);
21736     }
21737   else
21738     {
21739       unsigned long int i = ulongval ();
21740       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21741         return 1;
21742       fprintf (f, "%lu\n", i);
21743     }
21744   return ferror (f) || fclose (f) != 0;
21745
21746   ;
21747   return 0;
21748 }
21749 _ACEOF
21750 rm -f conftest$ac_exeext
21751 if { (ac_try="$ac_link"
21752 case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_link") 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21761   { (case "(($ac_try" in
21762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763   *) ac_try_echo=$ac_try;;
21764 esac
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766   (eval "$ac_try") 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); }; }; then
21770   fits_in_uint=`cat conftest.val`
21771 else
21772   echo "$as_me: program exited with status $ac_status" >&5
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21775
21776 ( exit $ac_status )
21777 result=?
21778 fi
21779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21780 fi
21781 rm -f conftest.val
21782
21783     if test "$fits_in_uint" = 1; then
21784                   cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h.  */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h.  */
21790 #include <stddef.h>
21791         extern size_t foo;
21792         extern unsigned long foo;
21793
21794 int
21795 main ()
21796 {
21797
21798   ;
21799   return 0;
21800 }
21801 _ACEOF
21802 rm -f conftest.$ac_objext
21803 if { (ac_try="$ac_compile"
21804 case "(($ac_try" in
21805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806   *) ac_try_echo=$ac_try;;
21807 esac
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809   (eval "$ac_compile") 2>conftest.er1
21810   ac_status=$?
21811   grep -v '^ *+' conftest.er1 >conftest.err
21812   rm -f conftest.er1
21813   cat conftest.err >&5
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } && {
21816          test -z "$ac_c_werror_flag" ||
21817          test ! -s conftest.err
21818        } && test -s conftest.$ac_objext; then
21819   fits_in_uint=0
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824
21825 fi
21826
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828     fi
21829     if test -z "$result"; then
21830       if test "$fits_in_uint" = 1; then
21831         result="$res_hi$res_lo"U
21832       else
21833         result="$res_hi$res_lo"UL
21834       fi
21835     else
21836             result='~(size_t)0'
21837     fi
21838   fi
21839   { echo "$as_me:$LINENO: result: $result" >&5
21840 echo "${ECHO_T}$result" >&6; }
21841   if test "$result" != yes; then
21842
21843 cat >>confdefs.h <<_ACEOF
21844 #define SIZE_MAX $result
21845 _ACEOF
21846
21847   fi
21848
21849
21850
21851
21852
21853 for ac_header in stdint.h
21854 do
21855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21857   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21860   echo $ECHO_N "(cached) $ECHO_C" >&6
21861 fi
21862 ac_res=`eval echo '${'$as_ac_Header'}'`
21863                { echo "$as_me:$LINENO: result: $ac_res" >&5
21864 echo "${ECHO_T}$ac_res" >&6; }
21865 else
21866   # Is the header compilable?
21867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21869 cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 $ac_includes_default
21876 #include <$ac_header>
21877 _ACEOF
21878 rm -f conftest.$ac_objext
21879 if { (ac_try="$ac_compile"
21880 case "(($ac_try" in
21881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882   *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885   (eval "$ac_compile") 2>conftest.er1
21886   ac_status=$?
21887   grep -v '^ *+' conftest.er1 >conftest.err
21888   rm -f conftest.er1
21889   cat conftest.err >&5
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); } && {
21892          test -z "$ac_c_werror_flag" ||
21893          test ! -s conftest.err
21894        } && test -s conftest.$ac_objext; then
21895   ac_header_compiler=yes
21896 else
21897   echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21899
21900         ac_header_compiler=no
21901 fi
21902
21903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21905 echo "${ECHO_T}$ac_header_compiler" >&6; }
21906
21907 # Is the header present?
21908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21910 cat >conftest.$ac_ext <<_ACEOF
21911 /* confdefs.h.  */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h.  */
21916 #include <$ac_header>
21917 _ACEOF
21918 if { (ac_try="$ac_cpp conftest.$ac_ext"
21919 case "(($ac_try" in
21920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921   *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21925   ac_status=$?
21926   grep -v '^ *+' conftest.er1 >conftest.err
21927   rm -f conftest.er1
21928   cat conftest.err >&5
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } >/dev/null && {
21931          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21932          test ! -s conftest.err
21933        }; then
21934   ac_header_preproc=yes
21935 else
21936   echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21938
21939   ac_header_preproc=no
21940 fi
21941
21942 rm -f conftest.err conftest.$ac_ext
21943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21944 echo "${ECHO_T}$ac_header_preproc" >&6; }
21945
21946 # So?  What about this header?
21947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21948   yes:no: )
21949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21953     ac_header_preproc=yes
21954     ;;
21955   no:yes:* )
21956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21968
21969     ;;
21970 esac
21971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21974   echo $ECHO_N "(cached) $ECHO_C" >&6
21975 else
21976   eval "$as_ac_Header=\$ac_header_preproc"
21977 fi
21978 ac_res=`eval echo '${'$as_ac_Header'}'`
21979                { echo "$as_me:$LINENO: result: $ac_res" >&5
21980 echo "${ECHO_T}$ac_res" >&6; }
21981
21982 fi
21983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21984   cat >>confdefs.h <<_ACEOF
21985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21986 _ACEOF
21987
21988 fi
21989
21990 done
21991
21992
21993
21994
21995
21996
21997
21998
21999   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22000 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
22001 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22002   echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004   cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h.  */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h.  */
22010 $ac_includes_default
22011 typedef ptrdiff_t ac__type_new_;
22012 int
22013 main ()
22014 {
22015 if ((ac__type_new_ *) 0)
22016   return 0;
22017 if (sizeof (ac__type_new_))
22018   return 0;
22019   ;
22020   return 0;
22021 }
22022 _ACEOF
22023 rm -f conftest.$ac_objext
22024 if { (ac_try="$ac_compile"
22025 case "(($ac_try" in
22026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027   *) ac_try_echo=$ac_try;;
22028 esac
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030   (eval "$ac_compile") 2>conftest.er1
22031   ac_status=$?
22032   grep -v '^ *+' conftest.er1 >conftest.err
22033   rm -f conftest.er1
22034   cat conftest.err >&5
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); } && {
22037          test -z "$ac_c_werror_flag" ||
22038          test ! -s conftest.err
22039        } && test -s conftest.$ac_objext; then
22040   ac_cv_type_ptrdiff_t=yes
22041 else
22042   echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22044
22045         ac_cv_type_ptrdiff_t=no
22046 fi
22047
22048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22049 fi
22050 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22051 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22052 if test $ac_cv_type_ptrdiff_t = yes; then
22053   :
22054 else
22055
22056 cat >>confdefs.h <<\_ACEOF
22057 #define ptrdiff_t long
22058 _ACEOF
22059
22060
22061 fi
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22074 stdlib.h string.h unistd.h sys/param.h
22075 do
22076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22078   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22081   echo $ECHO_N "(cached) $ECHO_C" >&6
22082 fi
22083 ac_res=`eval echo '${'$as_ac_Header'}'`
22084                { echo "$as_me:$LINENO: result: $ac_res" >&5
22085 echo "${ECHO_T}$ac_res" >&6; }
22086 else
22087   # Is the header compilable?
22088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h.  */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h.  */
22096 $ac_includes_default
22097 #include <$ac_header>
22098 _ACEOF
22099 rm -f conftest.$ac_objext
22100 if { (ac_try="$ac_compile"
22101 case "(($ac_try" in
22102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103   *) ac_try_echo=$ac_try;;
22104 esac
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106   (eval "$ac_compile") 2>conftest.er1
22107   ac_status=$?
22108   grep -v '^ *+' conftest.er1 >conftest.err
22109   rm -f conftest.er1
22110   cat conftest.err >&5
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); } && {
22113          test -z "$ac_c_werror_flag" ||
22114          test ! -s conftest.err
22115        } && test -s conftest.$ac_objext; then
22116   ac_header_compiler=yes
22117 else
22118   echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22120
22121         ac_header_compiler=no
22122 fi
22123
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22126 echo "${ECHO_T}$ac_header_compiler" >&6; }
22127
22128 # Is the header present?
22129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22131 cat >conftest.$ac_ext <<_ACEOF
22132 /* confdefs.h.  */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h.  */
22137 #include <$ac_header>
22138 _ACEOF
22139 if { (ac_try="$ac_cpp conftest.$ac_ext"
22140 case "(($ac_try" in
22141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142   *) ac_try_echo=$ac_try;;
22143 esac
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22146   ac_status=$?
22147   grep -v '^ *+' conftest.er1 >conftest.err
22148   rm -f conftest.er1
22149   cat conftest.err >&5
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); } >/dev/null && {
22152          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22153          test ! -s conftest.err
22154        }; then
22155   ac_header_preproc=yes
22156 else
22157   echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22159
22160   ac_header_preproc=no
22161 fi
22162
22163 rm -f conftest.err conftest.$ac_ext
22164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22165 echo "${ECHO_T}$ac_header_preproc" >&6; }
22166
22167 # So?  What about this header?
22168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22169   yes:no: )
22170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22174     ac_header_preproc=yes
22175     ;;
22176   no:yes:* )
22177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22189
22190     ;;
22191 esac
22192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22195   echo $ECHO_N "(cached) $ECHO_C" >&6
22196 else
22197   eval "$as_ac_Header=\$ac_header_preproc"
22198 fi
22199 ac_res=`eval echo '${'$as_ac_Header'}'`
22200                { echo "$as_me:$LINENO: result: $ac_res" >&5
22201 echo "${ECHO_T}$ac_res" >&6; }
22202
22203 fi
22204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22205   cat >>confdefs.h <<_ACEOF
22206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22207 _ACEOF
22208
22209 fi
22210
22211 done
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22237 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22238 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22239 __fsetlocking
22240 do
22241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22245   echo $ECHO_N "(cached) $ECHO_C" >&6
22246 else
22247   cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h.  */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h.  */
22253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22255 #define $ac_func innocuous_$ac_func
22256
22257 /* System header to define __stub macros and hopefully few prototypes,
22258     which can conflict with char $ac_func (); below.
22259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22260     <limits.h> exists even on freestanding compilers.  */
22261
22262 #ifdef __STDC__
22263 # include <limits.h>
22264 #else
22265 # include <assert.h>
22266 #endif
22267
22268 #undef $ac_func
22269
22270 /* Override any GCC internal prototype to avoid an error.
22271    Use char because int might match the return type of a GCC
22272    builtin and then its argument prototype would still apply.  */
22273 #ifdef __cplusplus
22274 extern "C"
22275 #endif
22276 char $ac_func ();
22277 /* The GNU C library defines this for functions which it implements
22278     to always fail with ENOSYS.  Some functions are actually named
22279     something starting with __ and the normal name is an alias.  */
22280 #if defined __stub_$ac_func || defined __stub___$ac_func
22281 choke me
22282 #endif
22283
22284 int
22285 main ()
22286 {
22287 return $ac_func ();
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296   *) ac_try_echo=$ac_try;;
22297 esac
22298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299   (eval "$ac_link") 2>conftest.er1
22300   ac_status=$?
22301   grep -v '^ *+' conftest.er1 >conftest.err
22302   rm -f conftest.er1
22303   cat conftest.err >&5
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); } && {
22306          test -z "$ac_c_werror_flag" ||
22307          test ! -s conftest.err
22308        } && test -s conftest$ac_exeext &&
22309        $as_test_x conftest$ac_exeext; then
22310   eval "$as_ac_var=yes"
22311 else
22312   echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315         eval "$as_ac_var=no"
22316 fi
22317
22318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22319       conftest$ac_exeext conftest.$ac_ext
22320 fi
22321 ac_res=`eval echo '${'$as_ac_var'}'`
22322                { echo "$as_me:$LINENO: result: $ac_res" >&5
22323 echo "${ECHO_T}$ac_res" >&6; }
22324 if test `eval echo '${'$as_ac_var'}'` = yes; then
22325   cat >>confdefs.h <<_ACEOF
22326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22327 _ACEOF
22328
22329 fi
22330 done
22331
22332
22333
22334   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22335 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22336 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22337   echo $ECHO_N "(cached) $ECHO_C" >&6
22338 else
22339   cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345 #include <stdio.h>
22346 int
22347 main ()
22348 {
22349
22350 #ifndef _snprintf
22351   char *p = (char *) _snprintf;
22352 #endif
22353
22354   ;
22355   return 0;
22356 }
22357 _ACEOF
22358 rm -f conftest.$ac_objext
22359 if { (ac_try="$ac_compile"
22360 case "(($ac_try" in
22361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362   *) ac_try_echo=$ac_try;;
22363 esac
22364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22365   (eval "$ac_compile") 2>conftest.er1
22366   ac_status=$?
22367   grep -v '^ *+' conftest.er1 >conftest.err
22368   rm -f conftest.er1
22369   cat conftest.err >&5
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); } && {
22372          test -z "$ac_c_werror_flag" ||
22373          test ! -s conftest.err
22374        } && test -s conftest.$ac_objext; then
22375   ac_cv_have_decl__snprintf=yes
22376 else
22377   echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22379
22380         ac_cv_have_decl__snprintf=no
22381 fi
22382
22383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 fi
22385 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22386 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22387   if test $ac_cv_have_decl__snprintf = yes; then
22388     gt_value=1
22389   else
22390     gt_value=0
22391   fi
22392
22393 cat >>confdefs.h <<_ACEOF
22394 #define HAVE_DECL__SNPRINTF $gt_value
22395 _ACEOF
22396
22397
22398
22399   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22400 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22401 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22402   echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404   cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h.  */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h.  */
22410 #include <stdio.h>
22411 int
22412 main ()
22413 {
22414
22415 #ifndef _snwprintf
22416   char *p = (char *) _snwprintf;
22417 #endif
22418
22419   ;
22420   return 0;
22421 }
22422 _ACEOF
22423 rm -f conftest.$ac_objext
22424 if { (ac_try="$ac_compile"
22425 case "(($ac_try" in
22426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427   *) ac_try_echo=$ac_try;;
22428 esac
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430   (eval "$ac_compile") 2>conftest.er1
22431   ac_status=$?
22432   grep -v '^ *+' conftest.er1 >conftest.err
22433   rm -f conftest.er1
22434   cat conftest.err >&5
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); } && {
22437          test -z "$ac_c_werror_flag" ||
22438          test ! -s conftest.err
22439        } && test -s conftest.$ac_objext; then
22440   ac_cv_have_decl__snwprintf=yes
22441 else
22442   echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22444
22445         ac_cv_have_decl__snwprintf=no
22446 fi
22447
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449 fi
22450 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22451 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22452   if test $ac_cv_have_decl__snwprintf = yes; then
22453     gt_value=1
22454   else
22455     gt_value=0
22456   fi
22457
22458 cat >>confdefs.h <<_ACEOF
22459 #define HAVE_DECL__SNWPRINTF $gt_value
22460 _ACEOF
22461
22462
22463
22464
22465   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22466 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22467 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22468   echo $ECHO_N "(cached) $ECHO_C" >&6
22469 else
22470   cat >conftest.$ac_ext <<_ACEOF
22471 /* confdefs.h.  */
22472 _ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h.  */
22476 #include <stdio.h>
22477 int
22478 main ()
22479 {
22480
22481 #ifndef feof_unlocked
22482   char *p = (char *) feof_unlocked;
22483 #endif
22484
22485   ;
22486   return 0;
22487 }
22488 _ACEOF
22489 rm -f conftest.$ac_objext
22490 if { (ac_try="$ac_compile"
22491 case "(($ac_try" in
22492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493   *) ac_try_echo=$ac_try;;
22494 esac
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496   (eval "$ac_compile") 2>conftest.er1
22497   ac_status=$?
22498   grep -v '^ *+' conftest.er1 >conftest.err
22499   rm -f conftest.er1
22500   cat conftest.err >&5
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); } && {
22503          test -z "$ac_c_werror_flag" ||
22504          test ! -s conftest.err
22505        } && test -s conftest.$ac_objext; then
22506   ac_cv_have_decl_feof_unlocked=yes
22507 else
22508   echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22510
22511         ac_cv_have_decl_feof_unlocked=no
22512 fi
22513
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 fi
22516 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22517 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22518   if test $ac_cv_have_decl_feof_unlocked = yes; then
22519     gt_value=1
22520   else
22521     gt_value=0
22522   fi
22523
22524 cat >>confdefs.h <<_ACEOF
22525 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22526 _ACEOF
22527
22528
22529
22530   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22531 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22532 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22533   echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22535   cat >conftest.$ac_ext <<_ACEOF
22536 /* confdefs.h.  */
22537 _ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h.  */
22541 #include <stdio.h>
22542 int
22543 main ()
22544 {
22545
22546 #ifndef fgets_unlocked
22547   char *p = (char *) fgets_unlocked;
22548 #endif
22549
22550   ;
22551   return 0;
22552 }
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558   *) ac_try_echo=$ac_try;;
22559 esac
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561   (eval "$ac_compile") 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } && {
22568          test -z "$ac_c_werror_flag" ||
22569          test ! -s conftest.err
22570        } && test -s conftest.$ac_objext; then
22571   ac_cv_have_decl_fgets_unlocked=yes
22572 else
22573   echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22575
22576         ac_cv_have_decl_fgets_unlocked=no
22577 fi
22578
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 fi
22581 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22582 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22583   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22584     gt_value=1
22585   else
22586     gt_value=0
22587   fi
22588
22589 cat >>confdefs.h <<_ACEOF
22590 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22591 _ACEOF
22592
22593
22594
22595   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22596 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22597 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22598   echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600   cat >conftest.$ac_ext <<_ACEOF
22601 /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606 #include <stdio.h>
22607 int
22608 main ()
22609 {
22610
22611 #ifndef getc_unlocked
22612   char *p = (char *) getc_unlocked;
22613 #endif
22614
22615   ;
22616   return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623   *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626   (eval "$ac_compile") 2>conftest.er1
22627   ac_status=$?
22628   grep -v '^ *+' conftest.er1 >conftest.err
22629   rm -f conftest.er1
22630   cat conftest.err >&5
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); } && {
22633          test -z "$ac_c_werror_flag" ||
22634          test ! -s conftest.err
22635        } && test -s conftest.$ac_objext; then
22636   ac_cv_have_decl_getc_unlocked=yes
22637 else
22638   echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641         ac_cv_have_decl_getc_unlocked=no
22642 fi
22643
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 fi
22646 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22647 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22648   if test $ac_cv_have_decl_getc_unlocked = yes; then
22649     gt_value=1
22650   else
22651     gt_value=0
22652   fi
22653
22654 cat >>confdefs.h <<_ACEOF
22655 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22656 _ACEOF
22657
22658
22659
22660   case $gt_cv_func_printf_posix in
22661     *yes) HAVE_POSIX_PRINTF=1 ;;
22662     *) HAVE_POSIX_PRINTF=0 ;;
22663   esac
22664
22665   if test "$ac_cv_func_asprintf" = yes; then
22666     HAVE_ASPRINTF=1
22667   else
22668     HAVE_ASPRINTF=0
22669   fi
22670
22671   if test "$ac_cv_func_snprintf" = yes; then
22672     HAVE_SNPRINTF=1
22673   else
22674     HAVE_SNPRINTF=0
22675   fi
22676
22677   if test "$ac_cv_func_wprintf" = yes; then
22678     HAVE_WPRINTF=1
22679   else
22680     HAVE_WPRINTF=0
22681   fi
22682
22683
22684
22685
22686
22687
22688
22689           am_save_CPPFLAGS="$CPPFLAGS"
22690
22691   for element in $INCICONV; do
22692     haveit=
22693     for x in $CPPFLAGS; do
22694
22695   acl_save_prefix="$prefix"
22696   prefix="$acl_final_prefix"
22697   acl_save_exec_prefix="$exec_prefix"
22698   exec_prefix="$acl_final_exec_prefix"
22699   eval x=\"$x\"
22700   exec_prefix="$acl_save_exec_prefix"
22701   prefix="$acl_save_prefix"
22702
22703       if test "X$x" = "X$element"; then
22704         haveit=yes
22705         break
22706       fi
22707     done
22708     if test -z "$haveit"; then
22709       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22710     fi
22711   done
22712
22713
22714   { echo "$as_me:$LINENO: checking for iconv" >&5
22715 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22716 if test "${am_cv_func_iconv+set}" = set; then
22717   echo $ECHO_N "(cached) $ECHO_C" >&6
22718 else
22719
22720     am_cv_func_iconv="no, consider installing GNU libiconv"
22721     am_cv_lib_iconv=no
22722     cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728 #include <stdlib.h>
22729 #include <iconv.h>
22730 int
22731 main ()
22732 {
22733 iconv_t cd = iconv_open("","");
22734        iconv(cd,NULL,NULL,NULL,NULL);
22735        iconv_close(cd);
22736   ;
22737   return 0;
22738 }
22739 _ACEOF
22740 rm -f conftest.$ac_objext conftest$ac_exeext
22741 if { (ac_try="$ac_link"
22742 case "(($ac_try" in
22743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744   *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747   (eval "$ac_link") 2>conftest.er1
22748   ac_status=$?
22749   grep -v '^ *+' conftest.er1 >conftest.err
22750   rm -f conftest.er1
22751   cat conftest.err >&5
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); } && {
22754          test -z "$ac_c_werror_flag" ||
22755          test ! -s conftest.err
22756        } && test -s conftest$ac_exeext &&
22757        $as_test_x conftest$ac_exeext; then
22758   am_cv_func_iconv=yes
22759 else
22760   echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22762
22763
22764 fi
22765
22766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22767       conftest$ac_exeext conftest.$ac_ext
22768     if test "$am_cv_func_iconv" != yes; then
22769       am_save_LIBS="$LIBS"
22770       LIBS="$LIBS $LIBICONV"
22771       cat >conftest.$ac_ext <<_ACEOF
22772 /* confdefs.h.  */
22773 _ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h.  */
22777 #include <stdlib.h>
22778 #include <iconv.h>
22779 int
22780 main ()
22781 {
22782 iconv_t cd = iconv_open("","");
22783          iconv(cd,NULL,NULL,NULL,NULL);
22784          iconv_close(cd);
22785   ;
22786   return 0;
22787 }
22788 _ACEOF
22789 rm -f conftest.$ac_objext conftest$ac_exeext
22790 if { (ac_try="$ac_link"
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_link") 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_exeext &&
22806        $as_test_x conftest$ac_exeext; then
22807   am_cv_lib_iconv=yes
22808         am_cv_func_iconv=yes
22809 else
22810   echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22812
22813
22814 fi
22815
22816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22817       conftest$ac_exeext conftest.$ac_ext
22818       LIBS="$am_save_LIBS"
22819     fi
22820
22821 fi
22822 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22823 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22824   if test "$am_cv_func_iconv" = yes; then
22825
22826 cat >>confdefs.h <<\_ACEOF
22827 #define HAVE_ICONV 1
22828 _ACEOF
22829
22830   fi
22831   if test "$am_cv_lib_iconv" = yes; then
22832     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22833 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22834     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22835 echo "${ECHO_T}$LIBICONV" >&6; }
22836   else
22837             CPPFLAGS="$am_save_CPPFLAGS"
22838     LIBICONV=
22839     LTLIBICONV=
22840   fi
22841
22842
22843
22844   if test "$am_cv_func_iconv" = yes; then
22845     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22846 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22847     if test "${am_cv_proto_iconv+set}" = set; then
22848   echo $ECHO_N "(cached) $ECHO_C" >&6
22849 else
22850
22851       cat >conftest.$ac_ext <<_ACEOF
22852 /* confdefs.h.  */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h.  */
22857
22858 #include <stdlib.h>
22859 #include <iconv.h>
22860 extern
22861 #ifdef __cplusplus
22862 "C"
22863 #endif
22864 #if defined(__STDC__) || defined(__cplusplus)
22865 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22866 #else
22867 size_t iconv();
22868 #endif
22869
22870 int
22871 main ()
22872 {
22873
22874   ;
22875   return 0;
22876 }
22877 _ACEOF
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882   *) ac_try_echo=$ac_try;;
22883 esac
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885   (eval "$ac_compile") 2>conftest.er1
22886   ac_status=$?
22887   grep -v '^ *+' conftest.er1 >conftest.err
22888   rm -f conftest.er1
22889   cat conftest.err >&5
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); } && {
22892          test -z "$ac_c_werror_flag" ||
22893          test ! -s conftest.err
22894        } && test -s conftest.$ac_objext; then
22895   am_cv_proto_iconv_arg1=""
22896 else
22897   echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900         am_cv_proto_iconv_arg1="const"
22901 fi
22902
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904       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);"
22905 fi
22906
22907     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22908     { echo "$as_me:$LINENO: result: ${ac_t:-
22909          }$am_cv_proto_iconv" >&5
22910 echo "${ECHO_T}${ac_t:-
22911          }$am_cv_proto_iconv" >&6; }
22912
22913 cat >>confdefs.h <<_ACEOF
22914 #define ICONV_CONST $am_cv_proto_iconv_arg1
22915 _ACEOF
22916
22917   fi
22918
22919
22920   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22921 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22922 if test "${am_cv_langinfo_codeset+set}" = set; then
22923   echo $ECHO_N "(cached) $ECHO_C" >&6
22924 else
22925   cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h.  */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h.  */
22931 #include <langinfo.h>
22932 int
22933 main ()
22934 {
22935 char* cs = nl_langinfo(CODESET);
22936   ;
22937   return 0;
22938 }
22939 _ACEOF
22940 rm -f conftest.$ac_objext conftest$ac_exeext
22941 if { (ac_try="$ac_link"
22942 case "(($ac_try" in
22943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944   *) ac_try_echo=$ac_try;;
22945 esac
22946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22947   (eval "$ac_link") 2>conftest.er1
22948   ac_status=$?
22949   grep -v '^ *+' conftest.er1 >conftest.err
22950   rm -f conftest.er1
22951   cat conftest.err >&5
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); } && {
22954          test -z "$ac_c_werror_flag" ||
22955          test ! -s conftest.err
22956        } && test -s conftest$ac_exeext &&
22957        $as_test_x conftest$ac_exeext; then
22958   am_cv_langinfo_codeset=yes
22959 else
22960   echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22962
22963         am_cv_langinfo_codeset=no
22964 fi
22965
22966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22967       conftest$ac_exeext conftest.$ac_ext
22968
22969 fi
22970 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22971 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22972   if test $am_cv_langinfo_codeset = yes; then
22973
22974 cat >>confdefs.h <<\_ACEOF
22975 #define HAVE_LANGINFO_CODESET 1
22976 _ACEOF
22977
22978   fi
22979
22980   if test $ac_cv_header_locale_h = yes; then
22981
22982   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22983 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22984 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22985   echo $ECHO_N "(cached) $ECHO_C" >&6
22986 else
22987   cat >conftest.$ac_ext <<_ACEOF
22988 /* confdefs.h.  */
22989 _ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h.  */
22993 #include <locale.h>
22994 int
22995 main ()
22996 {
22997 return LC_MESSAGES
22998   ;
22999   return 0;
23000 }
23001 _ACEOF
23002 rm -f conftest.$ac_objext conftest$ac_exeext
23003 if { (ac_try="$ac_link"
23004 case "(($ac_try" in
23005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23006   *) ac_try_echo=$ac_try;;
23007 esac
23008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23009   (eval "$ac_link") 2>conftest.er1
23010   ac_status=$?
23011   grep -v '^ *+' conftest.er1 >conftest.err
23012   rm -f conftest.er1
23013   cat conftest.err >&5
23014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015   (exit $ac_status); } && {
23016          test -z "$ac_c_werror_flag" ||
23017          test ! -s conftest.err
23018        } && test -s conftest$ac_exeext &&
23019        $as_test_x conftest$ac_exeext; then
23020   gt_cv_val_LC_MESSAGES=yes
23021 else
23022   echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23024
23025         gt_cv_val_LC_MESSAGES=no
23026 fi
23027
23028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23029       conftest$ac_exeext conftest.$ac_ext
23030 fi
23031 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23032 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23033   if test $gt_cv_val_LC_MESSAGES = yes; then
23034
23035 cat >>confdefs.h <<\_ACEOF
23036 #define HAVE_LC_MESSAGES 1
23037 _ACEOF
23038
23039   fi
23040
23041   fi
23042
23043   if test -n "$INTL_MACOSX_LIBS"; then
23044     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23045   fi
23046
23047                       for ac_prog in bison
23048 do
23049   # Extract the first word of "$ac_prog", so it can be a program name with args.
23050 set dummy $ac_prog; ac_word=$2
23051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23053 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23054   echo $ECHO_N "(cached) $ECHO_C" >&6
23055 else
23056   if test -n "$INTLBISON"; then
23057   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23058 else
23059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23060 for as_dir in $PATH
23061 do
23062   IFS=$as_save_IFS
23063   test -z "$as_dir" && as_dir=.
23064   for ac_exec_ext in '' $ac_executable_extensions; do
23065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23066     ac_cv_prog_INTLBISON="$ac_prog"
23067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23068     break 2
23069   fi
23070 done
23071 done
23072 IFS=$as_save_IFS
23073
23074 fi
23075 fi
23076 INTLBISON=$ac_cv_prog_INTLBISON
23077 if test -n "$INTLBISON"; then
23078   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23079 echo "${ECHO_T}$INTLBISON" >&6; }
23080 else
23081   { echo "$as_me:$LINENO: result: no" >&5
23082 echo "${ECHO_T}no" >&6; }
23083 fi
23084
23085
23086   test -n "$INTLBISON" && break
23087 done
23088
23089   if test -z "$INTLBISON"; then
23090     ac_verc_fail=yes
23091   else
23092         { echo "$as_me:$LINENO: checking version of bison" >&5
23093 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23094     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23095     case $ac_prog_version in
23096       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23097       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23098          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23099       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23100     esac
23101     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23102 echo "${ECHO_T}$ac_prog_version" >&6; }
23103   fi
23104   if test $ac_verc_fail = yes; then
23105     INTLBISON=:
23106   fi
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23124 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23125 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23126   echo $ECHO_N "(cached) $ECHO_C" >&6
23127 else
23128   gt_save_CPPFLAGS="$CPPFLAGS"
23129      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23130      gt_save_LIBS="$LIBS"
23131      LIBS="$LIBS -framework CoreFoundation"
23132      cat >conftest.$ac_ext <<_ACEOF
23133 /* confdefs.h.  */
23134 _ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h.  */
23138 #include <CFPreferences.h>
23139 int
23140 main ()
23141 {
23142 CFPreferencesCopyAppValue(NULL, NULL)
23143   ;
23144   return 0;
23145 }
23146 _ACEOF
23147 rm -f conftest.$ac_objext conftest$ac_exeext
23148 if { (ac_try="$ac_link"
23149 case "(($ac_try" in
23150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151   *) ac_try_echo=$ac_try;;
23152 esac
23153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23154   (eval "$ac_link") 2>conftest.er1
23155   ac_status=$?
23156   grep -v '^ *+' conftest.er1 >conftest.err
23157   rm -f conftest.er1
23158   cat conftest.err >&5
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); } && {
23161          test -z "$ac_c_werror_flag" ||
23162          test ! -s conftest.err
23163        } && test -s conftest$ac_exeext &&
23164        $as_test_x conftest$ac_exeext; then
23165   gt_cv_func_CFPreferencesCopyAppValue=yes
23166 else
23167   echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23169
23170         gt_cv_func_CFPreferencesCopyAppValue=no
23171 fi
23172
23173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23174       conftest$ac_exeext conftest.$ac_ext
23175      CPPFLAGS="$gt_save_CPPFLAGS"
23176      LIBS="$gt_save_LIBS"
23177 fi
23178 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23179 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23180   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23181
23182 cat >>confdefs.h <<\_ACEOF
23183 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23184 _ACEOF
23185
23186   fi
23187     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23188 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23189 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23190   echo $ECHO_N "(cached) $ECHO_C" >&6
23191 else
23192   gt_save_CPPFLAGS="$CPPFLAGS"
23193      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23194      gt_save_LIBS="$LIBS"
23195      LIBS="$LIBS -framework CoreFoundation"
23196      cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h.  */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h.  */
23202 #include <CFLocale.h>
23203 int
23204 main ()
23205 {
23206 CFLocaleCopyCurrent();
23207   ;
23208   return 0;
23209 }
23210 _ACEOF
23211 rm -f conftest.$ac_objext conftest$ac_exeext
23212 if { (ac_try="$ac_link"
23213 case "(($ac_try" in
23214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215   *) ac_try_echo=$ac_try;;
23216 esac
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218   (eval "$ac_link") 2>conftest.er1
23219   ac_status=$?
23220   grep -v '^ *+' conftest.er1 >conftest.err
23221   rm -f conftest.er1
23222   cat conftest.err >&5
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); } && {
23225          test -z "$ac_c_werror_flag" ||
23226          test ! -s conftest.err
23227        } && test -s conftest$ac_exeext &&
23228        $as_test_x conftest$ac_exeext; then
23229   gt_cv_func_CFLocaleCopyCurrent=yes
23230 else
23231   echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23233
23234         gt_cv_func_CFLocaleCopyCurrent=no
23235 fi
23236
23237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23238       conftest$ac_exeext conftest.$ac_ext
23239      CPPFLAGS="$gt_save_CPPFLAGS"
23240      LIBS="$gt_save_LIBS"
23241 fi
23242 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23243 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23244   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23245
23246 cat >>confdefs.h <<\_ACEOF
23247 #define HAVE_CFLOCALECOPYCURRENT 1
23248 _ACEOF
23249
23250   fi
23251   INTL_MACOSX_LIBS=
23252   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23253     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23254   fi
23255
23256
23257
23258
23259   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23260 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23261     # Check whether --enable-nls was given.
23262 if test "${enable_nls+set}" = set; then
23263   enableval=$enable_nls; USE_NLS=$enableval
23264 else
23265   USE_NLS=yes
23266 fi
23267
23268   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23269 echo "${ECHO_T}$USE_NLS" >&6; }
23270
23271
23272
23273
23274     BUILD_INCLUDED_LIBINTL=no
23275     USE_INCLUDED_LIBINTL=no
23276
23277   LIBINTL=
23278   LTLIBINTL=
23279   POSUB=
23280
23281     if test "$USE_NLS" = "yes"; then
23282     gt_use_preinstalled_gnugettext=no
23283
23284       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23285 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23286
23287 # Check whether --with-included-gettext was given.
23288 if test "${with_included_gettext+set}" = set; then
23289   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23290 else
23291   nls_cv_force_use_gnu_gettext=no
23292 fi
23293
23294       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23295 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23296
23297       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23298       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23299
23300
23301
23302
23303
23304
23305         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23306 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23307 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23308   echo $ECHO_N "(cached) $ECHO_C" >&6
23309 else
23310   cat >conftest.$ac_ext <<_ACEOF
23311 /* confdefs.h.  */
23312 _ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h.  */
23316 #include <libintl.h>
23317 extern int _nl_msg_cat_cntr;
23318 extern int *_nl_domain_bindings;
23319 int
23320 main ()
23321 {
23322 bindtextdomain ("", "");
23323 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23324   ;
23325   return 0;
23326 }
23327 _ACEOF
23328 rm -f conftest.$ac_objext conftest$ac_exeext
23329 if { (ac_try="$ac_link"
23330 case "(($ac_try" in
23331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332   *) ac_try_echo=$ac_try;;
23333 esac
23334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23335   (eval "$ac_link") 2>conftest.er1
23336   ac_status=$?
23337   grep -v '^ *+' conftest.er1 >conftest.err
23338   rm -f conftest.er1
23339   cat conftest.err >&5
23340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341   (exit $ac_status); } && {
23342          test -z "$ac_c_werror_flag" ||
23343          test ! -s conftest.err
23344        } && test -s conftest$ac_exeext &&
23345        $as_test_x conftest$ac_exeext; then
23346   gt_cv_func_gnugettext1_libc=yes
23347 else
23348   echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23350
23351         gt_cv_func_gnugettext1_libc=no
23352 fi
23353
23354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23355       conftest$ac_exeext conftest.$ac_ext
23356 fi
23357 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23358 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23359
23360         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23361
23362
23363
23364     use_additional=yes
23365
23366   acl_save_prefix="$prefix"
23367   prefix="$acl_final_prefix"
23368   acl_save_exec_prefix="$exec_prefix"
23369   exec_prefix="$acl_final_exec_prefix"
23370
23371     eval additional_includedir=\"$includedir\"
23372     eval additional_libdir=\"$libdir\"
23373
23374   exec_prefix="$acl_save_exec_prefix"
23375   prefix="$acl_save_prefix"
23376
23377
23378 # Check whether --with-libintl-prefix was given.
23379 if test "${with_libintl_prefix+set}" = set; then
23380   withval=$with_libintl_prefix;
23381     if test "X$withval" = "Xno"; then
23382       use_additional=no
23383     else
23384       if test "X$withval" = "X"; then
23385
23386   acl_save_prefix="$prefix"
23387   prefix="$acl_final_prefix"
23388   acl_save_exec_prefix="$exec_prefix"
23389   exec_prefix="$acl_final_exec_prefix"
23390
23391           eval additional_includedir=\"$includedir\"
23392           eval additional_libdir=\"$libdir\"
23393
23394   exec_prefix="$acl_save_exec_prefix"
23395   prefix="$acl_save_prefix"
23396
23397       else
23398         additional_includedir="$withval/include"
23399         additional_libdir="$withval/lib"
23400       fi
23401     fi
23402
23403 fi
23404
23405       LIBINTL=
23406   LTLIBINTL=
23407   INCINTL=
23408   rpathdirs=
23409   ltrpathdirs=
23410   names_already_handled=
23411   names_next_round='intl '
23412   while test -n "$names_next_round"; do
23413     names_this_round="$names_next_round"
23414     names_next_round=
23415     for name in $names_this_round; do
23416       already_handled=
23417       for n in $names_already_handled; do
23418         if test "$n" = "$name"; then
23419           already_handled=yes
23420           break
23421         fi
23422       done
23423       if test -z "$already_handled"; then
23424         names_already_handled="$names_already_handled $name"
23425                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23426         eval value=\"\$HAVE_LIB$uppername\"
23427         if test -n "$value"; then
23428           if test "$value" = yes; then
23429             eval value=\"\$LIB$uppername\"
23430             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23431             eval value=\"\$LTLIB$uppername\"
23432             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23433           else
23434                                     :
23435           fi
23436         else
23437                               found_dir=
23438           found_la=
23439           found_so=
23440           found_a=
23441           if test $use_additional = yes; then
23442             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23443               found_dir="$additional_libdir"
23444               found_so="$additional_libdir/lib$name.$shlibext"
23445               if test -f "$additional_libdir/lib$name.la"; then
23446                 found_la="$additional_libdir/lib$name.la"
23447               fi
23448             else
23449               if test -f "$additional_libdir/lib$name.$libext"; then
23450                 found_dir="$additional_libdir"
23451                 found_a="$additional_libdir/lib$name.$libext"
23452                 if test -f "$additional_libdir/lib$name.la"; then
23453                   found_la="$additional_libdir/lib$name.la"
23454                 fi
23455               fi
23456             fi
23457           fi
23458           if test "X$found_dir" = "X"; then
23459             for x in $LDFLAGS $LTLIBINTL; do
23460
23461   acl_save_prefix="$prefix"
23462   prefix="$acl_final_prefix"
23463   acl_save_exec_prefix="$exec_prefix"
23464   exec_prefix="$acl_final_exec_prefix"
23465   eval x=\"$x\"
23466   exec_prefix="$acl_save_exec_prefix"
23467   prefix="$acl_save_prefix"
23468
23469               case "$x" in
23470                 -L*)
23471                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23472                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23473                     found_dir="$dir"
23474                     found_so="$dir/lib$name.$shlibext"
23475                     if test -f "$dir/lib$name.la"; then
23476                       found_la="$dir/lib$name.la"
23477                     fi
23478                   else
23479                     if test -f "$dir/lib$name.$libext"; then
23480                       found_dir="$dir"
23481                       found_a="$dir/lib$name.$libext"
23482                       if test -f "$dir/lib$name.la"; then
23483                         found_la="$dir/lib$name.la"
23484                       fi
23485                     fi
23486                   fi
23487                   ;;
23488               esac
23489               if test "X$found_dir" != "X"; then
23490                 break
23491               fi
23492             done
23493           fi
23494           if test "X$found_dir" != "X"; then
23495                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23496             if test "X$found_so" != "X"; then
23497                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23498                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23499               else
23500                                                                                 haveit=
23501                 for x in $ltrpathdirs; do
23502                   if test "X$x" = "X$found_dir"; then
23503                     haveit=yes
23504                     break
23505                   fi
23506                 done
23507                 if test -z "$haveit"; then
23508                   ltrpathdirs="$ltrpathdirs $found_dir"
23509                 fi
23510                                 if test "$hardcode_direct" = yes; then
23511                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23512                 else
23513                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23514                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23515                                                             haveit=
23516                     for x in $rpathdirs; do
23517                       if test "X$x" = "X$found_dir"; then
23518                         haveit=yes
23519                         break
23520                       fi
23521                     done
23522                     if test -z "$haveit"; then
23523                       rpathdirs="$rpathdirs $found_dir"
23524                     fi
23525                   else
23526                                                                                 haveit=
23527                     for x in $LDFLAGS $LIBINTL; do
23528
23529   acl_save_prefix="$prefix"
23530   prefix="$acl_final_prefix"
23531   acl_save_exec_prefix="$exec_prefix"
23532   exec_prefix="$acl_final_exec_prefix"
23533   eval x=\"$x\"
23534   exec_prefix="$acl_save_exec_prefix"
23535   prefix="$acl_save_prefix"
23536
23537                       if test "X$x" = "X-L$found_dir"; then
23538                         haveit=yes
23539                         break
23540                       fi
23541                     done
23542                     if test -z "$haveit"; then
23543                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23544                     fi
23545                     if test "$hardcode_minus_L" != no; then
23546                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23547                     else
23548                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23549                     fi
23550                   fi
23551                 fi
23552               fi
23553             else
23554               if test "X$found_a" != "X"; then
23555                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23556               else
23557                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23558               fi
23559             fi
23560                         additional_includedir=
23561             case "$found_dir" in
23562               */lib | */lib/)
23563                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23564                 additional_includedir="$basedir/include"
23565                 ;;
23566             esac
23567             if test "X$additional_includedir" != "X"; then
23568                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23569                 haveit=
23570                 if test "X$additional_includedir" = "X/usr/local/include"; then
23571                   if test -n "$GCC"; then
23572                     case $host_os in
23573                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23574                     esac
23575                   fi
23576                 fi
23577                 if test -z "$haveit"; then
23578                   for x in $CPPFLAGS $INCINTL; do
23579
23580   acl_save_prefix="$prefix"
23581   prefix="$acl_final_prefix"
23582   acl_save_exec_prefix="$exec_prefix"
23583   exec_prefix="$acl_final_exec_prefix"
23584   eval x=\"$x\"
23585   exec_prefix="$acl_save_exec_prefix"
23586   prefix="$acl_save_prefix"
23587
23588                     if test "X$x" = "X-I$additional_includedir"; then
23589                       haveit=yes
23590                       break
23591                     fi
23592                   done
23593                   if test -z "$haveit"; then
23594                     if test -d "$additional_includedir"; then
23595                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23596                     fi
23597                   fi
23598                 fi
23599               fi
23600             fi
23601                         if test -n "$found_la"; then
23602                                                         save_libdir="$libdir"
23603               case "$found_la" in
23604                 */* | *\\*) . "$found_la" ;;
23605                 *) . "./$found_la" ;;
23606               esac
23607               libdir="$save_libdir"
23608                             for dep in $dependency_libs; do
23609                 case "$dep" in
23610                   -L*)
23611                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23612                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23613                       haveit=
23614                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23615                         if test -n "$GCC"; then
23616                           case $host_os in
23617                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23618                           esac
23619                         fi
23620                       fi
23621                       if test -z "$haveit"; then
23622                         haveit=
23623                         for x in $LDFLAGS $LIBINTL; do
23624
23625   acl_save_prefix="$prefix"
23626   prefix="$acl_final_prefix"
23627   acl_save_exec_prefix="$exec_prefix"
23628   exec_prefix="$acl_final_exec_prefix"
23629   eval x=\"$x\"
23630   exec_prefix="$acl_save_exec_prefix"
23631   prefix="$acl_save_prefix"
23632
23633                           if test "X$x" = "X-L$additional_libdir"; then
23634                             haveit=yes
23635                             break
23636                           fi
23637                         done
23638                         if test -z "$haveit"; then
23639                           if test -d "$additional_libdir"; then
23640                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23641                           fi
23642                         fi
23643                         haveit=
23644                         for x in $LDFLAGS $LTLIBINTL; do
23645
23646   acl_save_prefix="$prefix"
23647   prefix="$acl_final_prefix"
23648   acl_save_exec_prefix="$exec_prefix"
23649   exec_prefix="$acl_final_exec_prefix"
23650   eval x=\"$x\"
23651   exec_prefix="$acl_save_exec_prefix"
23652   prefix="$acl_save_prefix"
23653
23654                           if test "X$x" = "X-L$additional_libdir"; then
23655                             haveit=yes
23656                             break
23657                           fi
23658                         done
23659                         if test -z "$haveit"; then
23660                           if test -d "$additional_libdir"; then
23661                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23662                           fi
23663                         fi
23664                       fi
23665                     fi
23666                     ;;
23667                   -R*)
23668                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23669                     if test "$enable_rpath" != no; then
23670                                                                   haveit=
23671                       for x in $rpathdirs; do
23672                         if test "X$x" = "X$dir"; then
23673                           haveit=yes
23674                           break
23675                         fi
23676                       done
23677                       if test -z "$haveit"; then
23678                         rpathdirs="$rpathdirs $dir"
23679                       fi
23680                                                                   haveit=
23681                       for x in $ltrpathdirs; do
23682                         if test "X$x" = "X$dir"; then
23683                           haveit=yes
23684                           break
23685                         fi
23686                       done
23687                       if test -z "$haveit"; then
23688                         ltrpathdirs="$ltrpathdirs $dir"
23689                       fi
23690                     fi
23691                     ;;
23692                   -l*)
23693                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23694                     ;;
23695                   *.la)
23696                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23697                     ;;
23698                   *)
23699                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23700                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23701                     ;;
23702                 esac
23703               done
23704             fi
23705           else
23706                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23707             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23708           fi
23709         fi
23710       fi
23711     done
23712   done
23713   if test "X$rpathdirs" != "X"; then
23714     if test -n "$hardcode_libdir_separator"; then
23715                         alldirs=
23716       for found_dir in $rpathdirs; do
23717         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23718       done
23719             acl_save_libdir="$libdir"
23720       libdir="$alldirs"
23721       eval flag=\"$hardcode_libdir_flag_spec\"
23722       libdir="$acl_save_libdir"
23723       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23724     else
23725             for found_dir in $rpathdirs; do
23726         acl_save_libdir="$libdir"
23727         libdir="$found_dir"
23728         eval flag=\"$hardcode_libdir_flag_spec\"
23729         libdir="$acl_save_libdir"
23730         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23731       done
23732     fi
23733   fi
23734   if test "X$ltrpathdirs" != "X"; then
23735             for found_dir in $ltrpathdirs; do
23736       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23737     done
23738   fi
23739
23740           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23741 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23742 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23743   echo $ECHO_N "(cached) $ECHO_C" >&6
23744 else
23745   gt_save_CPPFLAGS="$CPPFLAGS"
23746             CPPFLAGS="$CPPFLAGS $INCINTL"
23747             gt_save_LIBS="$LIBS"
23748             LIBS="$LIBS $LIBINTL"
23749                         cat >conftest.$ac_ext <<_ACEOF
23750 /* confdefs.h.  */
23751 _ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h.  */
23755 #include <libintl.h>
23756 extern int _nl_msg_cat_cntr;
23757 extern
23758 #ifdef __cplusplus
23759 "C"
23760 #endif
23761 const char *_nl_expand_alias (const char *);
23762 int
23763 main ()
23764 {
23765 bindtextdomain ("", "");
23766 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23767   ;
23768   return 0;
23769 }
23770 _ACEOF
23771 rm -f conftest.$ac_objext conftest$ac_exeext
23772 if { (ac_try="$ac_link"
23773 case "(($ac_try" in
23774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775   *) ac_try_echo=$ac_try;;
23776 esac
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778   (eval "$ac_link") 2>conftest.er1
23779   ac_status=$?
23780   grep -v '^ *+' conftest.er1 >conftest.err
23781   rm -f conftest.er1
23782   cat conftest.err >&5
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); } && {
23785          test -z "$ac_c_werror_flag" ||
23786          test ! -s conftest.err
23787        } && test -s conftest$ac_exeext &&
23788        $as_test_x conftest$ac_exeext; then
23789   gt_cv_func_gnugettext1_libintl=yes
23790 else
23791   echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23793
23794         gt_cv_func_gnugettext1_libintl=no
23795 fi
23796
23797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23798       conftest$ac_exeext conftest.$ac_ext
23799                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23800               LIBS="$LIBS $LIBICONV"
23801               cat >conftest.$ac_ext <<_ACEOF
23802 /* confdefs.h.  */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h.  */
23807 #include <libintl.h>
23808 extern int _nl_msg_cat_cntr;
23809 extern
23810 #ifdef __cplusplus
23811 "C"
23812 #endif
23813 const char *_nl_expand_alias (const char *);
23814 int
23815 main ()
23816 {
23817 bindtextdomain ("", "");
23818 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23819   ;
23820   return 0;
23821 }
23822 _ACEOF
23823 rm -f conftest.$ac_objext conftest$ac_exeext
23824 if { (ac_try="$ac_link"
23825 case "(($ac_try" in
23826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827   *) ac_try_echo=$ac_try;;
23828 esac
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830   (eval "$ac_link") 2>conftest.er1
23831   ac_status=$?
23832   grep -v '^ *+' conftest.er1 >conftest.err
23833   rm -f conftest.er1
23834   cat conftest.err >&5
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); } && {
23837          test -z "$ac_c_werror_flag" ||
23838          test ! -s conftest.err
23839        } && test -s conftest$ac_exeext &&
23840        $as_test_x conftest$ac_exeext; then
23841   LIBINTL="$LIBINTL $LIBICONV"
23842                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23843                 gt_cv_func_gnugettext1_libintl=yes
23844
23845 else
23846   echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849
23850 fi
23851
23852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23853       conftest$ac_exeext conftest.$ac_ext
23854             fi
23855             CPPFLAGS="$gt_save_CPPFLAGS"
23856             LIBS="$gt_save_LIBS"
23857 fi
23858 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23859 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23860         fi
23861
23862                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23863            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23864                 && test "$PACKAGE" != gettext-runtime \
23865                 && test "$PACKAGE" != gettext-tools; }; then
23866           gt_use_preinstalled_gnugettext=yes
23867         else
23868                     LIBINTL=
23869           LTLIBINTL=
23870           INCINTL=
23871         fi
23872
23873
23874         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23875                               nls_cv_use_gnu_gettext=yes
23876         fi
23877       fi
23878
23879       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23880                 BUILD_INCLUDED_LIBINTL=yes
23881         USE_INCLUDED_LIBINTL=yes
23882         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23883         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23884         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23885       fi
23886
23887       CATOBJEXT=
23888       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23889          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23890                 CATOBJEXT=.gmo
23891       fi
23892
23893
23894     if test -n "$INTL_MACOSX_LIBS"; then
23895       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23896          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23897                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23898         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23899       fi
23900     fi
23901
23902     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23903        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23904
23905 cat >>confdefs.h <<\_ACEOF
23906 #define ENABLE_NLS 1
23907 _ACEOF
23908
23909     else
23910       USE_NLS=no
23911     fi
23912   fi
23913
23914   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23915 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23916   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23917 echo "${ECHO_T}$USE_NLS" >&6; }
23918   if test "$USE_NLS" = "yes"; then
23919     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23920 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23921     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23922       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23923         gt_source="external libintl"
23924       else
23925         gt_source="libc"
23926       fi
23927     else
23928       gt_source="included intl directory"
23929     fi
23930     { echo "$as_me:$LINENO: result: $gt_source" >&5
23931 echo "${ECHO_T}$gt_source" >&6; }
23932   fi
23933
23934   if test "$USE_NLS" = "yes"; then
23935
23936     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23937       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23938         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23939 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23940         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23941 echo "${ECHO_T}$LIBINTL" >&6; }
23942
23943   for element in $INCINTL; do
23944     haveit=
23945     for x in $CPPFLAGS; do
23946
23947   acl_save_prefix="$prefix"
23948   prefix="$acl_final_prefix"
23949   acl_save_exec_prefix="$exec_prefix"
23950   exec_prefix="$acl_final_exec_prefix"
23951   eval x=\"$x\"
23952   exec_prefix="$acl_save_exec_prefix"
23953   prefix="$acl_save_prefix"
23954
23955       if test "X$x" = "X$element"; then
23956         haveit=yes
23957         break
23958       fi
23959     done
23960     if test -z "$haveit"; then
23961       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23962     fi
23963   done
23964
23965       fi
23966
23967
23968 cat >>confdefs.h <<\_ACEOF
23969 #define HAVE_GETTEXT 1
23970 _ACEOF
23971
23972
23973 cat >>confdefs.h <<\_ACEOF
23974 #define HAVE_DCGETTEXT 1
23975 _ACEOF
23976
23977     fi
23978
23979         POSUB=po
23980   fi
23981
23982
23983             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23984       BUILD_INCLUDED_LIBINTL=yes
23985     fi
23986
23987
23988
23989
23990
23991         nls_cv_header_intl=
23992     nls_cv_header_libgt=
23993
23994         DATADIRNAME=share
23995
23996
23997         INSTOBJEXT=.mo
23998
23999
24000         GENCAT=gencat
24001
24002
24003         INTLOBJS=
24004     if test "$USE_INCLUDED_LIBINTL" = yes; then
24005       INTLOBJS="\$(GETTOBJS)"
24006     fi
24007
24008
24009         INTL_LIBTOOL_SUFFIX_PREFIX=
24010
24011
24012
24013     INTLLIBS="$LIBINTL"
24014
24015
24016
24017
24018
24019
24020 fi
24021
24022 support_mysql=no
24023 support_sqlite=no
24024 support_sqlite3=no
24025 support_postgresql=no
24026 support_ingres=no
24027 support_dbi=no
24028 support_smartalloc=yes
24029 support_readline=yes
24030 support_conio=yes
24031 support_gnome=no
24032 support_bat=no
24033 support_wx_console=no
24034 support_tray_monitor=no
24035 support_tls=no
24036 support_crypto=no
24037 gnome_version=
24038 wx_version=
24039 support_static_tools=no
24040 support_static_fd=no
24041 support_static_sd=no
24042 support_static_dir=no
24043 support_static_cons=no
24044 support_python=no
24045 build_client_only=no
24046 build_dird=yes
24047 build_stored=yes
24048 cats=
24049 db_type=Internal
24050 support_lockmgr=no
24051 DB_TYPE=bdb
24052
24053
24054 # Check whether --enable-gnome was given.
24055 if test "${enable_gnome+set}" = set; then
24056   enableval=$enable_gnome;
24057        if test x$enableval = xyes; then
24058           support_gnome=yes
24059        fi
24060
24061
24062 fi
24063
24064
24065 GNOME_DIR=
24066 if test x$support_gnome = xyes; then
24067    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24068 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24069    { (exit 1); exit 1; }; }
24070    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24071 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24072    { (exit 1); exit 1; }; }
24073 fi
24074 # AC_SUBST(GNOME_DIR)
24075
24076 # Check whether --enable-bat was given.
24077 if test "${enable_bat+set}" = set; then
24078   enableval=$enable_bat;
24079        if test x$enableval = xyes; then
24080
24081 cat >>confdefs.h <<\_ACEOF
24082 #define HAVE_BAT 1
24083 _ACEOF
24084
24085           support_bat=yes
24086        fi
24087
24088
24089 fi
24090
24091
24092 BAT_DIR=
24093 if test x$support_bat = xyes; then
24094    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24095    pkg=$?
24096    if test $pkg = 0; then
24097       BAT_DIR=src/qt-console
24098    else
24099       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24100 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24101    { (exit 1); exit 1; }; }
24102    fi
24103 fi
24104
24105 got_qwt=no
24106 QWT_INC=
24107 QWT_LDFLAGS=
24108 QWT_LIB=
24109 QWT=
24110 no_qwt=no
24111
24112
24113
24114
24115
24116
24117
24118
24119 # Check whether --enable-bwx-console was given.
24120 if test "${enable_bwx_console+set}" = set; then
24121   enableval=$enable_bwx_console;
24122        if test x$enableval = xyes; then
24123           support_wx_console=yes
24124        fi
24125
24126
24127 fi
24128
24129
24130 WX_DIR=
24131 if test x$support_wx_console = xyes; then
24132    abc=`$WXCONFIG $WXFLAGS --cppflags`
24133    pkg=$?
24134    if test $pkg = 0; then
24135       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24136       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24137       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24138
24139
24140
24141       WX_DIR="src/wx-console"
24142    else
24143       echo " "
24144       echo "wx-config program not found. bwx-console disabled."
24145       echo " "
24146       support_wx_console=no
24147    fi
24148 fi
24149
24150
24151 # Check whether --enable-tray-monitor was given.
24152 if test "${enable_tray_monitor+set}" = set; then
24153   enableval=$enable_tray_monitor;
24154        if test x$enableval = xyes; then
24155           support_tray_monitor=yes
24156        fi
24157
24158
24159 fi
24160
24161
24162 TRAY_MONITOR_DIR=
24163 if test x$support_tray_monitor = xyes; then
24164    abc=`$PKGCONFIG --exists gtk+-2.0`
24165    pkg=$?
24166    if test $pkg = 0; then
24167       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24168       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24169
24170
24171       TRAY_MONITOR_DIR=src/tray-monitor
24172       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24173       pkg=$?
24174       if test $pkg = 0; then
24175
24176 cat >>confdefs.h <<\_ACEOF
24177 #define HAVE_GTK_2_4 1
24178 _ACEOF
24179
24180       fi
24181    fi
24182 fi
24183
24184
24185 # Check whether --enable-smartalloc was given.
24186 if test "${enable_smartalloc+set}" = set; then
24187   enableval=$enable_smartalloc;
24188        if test x$enableval = xno; then
24189           support_smartalloc=no
24190        fi
24191
24192
24193 fi
24194
24195
24196 if test x$support_smartalloc = xyes; then
24197
24198 cat >>confdefs.h <<\_ACEOF
24199 #define SMARTALLOC 1
24200 _ACEOF
24201
24202 fi
24203
24204 # Check whether --enable-lockmgr was given.
24205 if test "${enable_lockmgr+set}" = set; then
24206   enableval=$enable_lockmgr;
24207        if test x$enableval = xyes; then
24208           support_lockmgr=yes
24209        fi
24210
24211
24212 fi
24213
24214
24215 if test x$support_lockmgr = xyes; then
24216
24217 cat >>confdefs.h <<\_ACEOF
24218 #define _USE_LOCKMGR 1
24219 _ACEOF
24220
24221 fi
24222
24223
24224 # Check whether --enable-static-tools was given.
24225 if test "${enable_static_tools+set}" = set; then
24226   enableval=$enable_static_tools;
24227        if test x$enableval = xyes; then
24228           if test x$use_libtool = xyes; then
24229              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24230   please rerun configure with --disable-libtool" >&5
24231 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24232   please rerun configure with --disable-libtool" >&2;}
24233    { (exit 1); exit 1; }; }
24234           fi
24235           support_static_tools=yes
24236        fi
24237
24238
24239 fi
24240
24241
24242 TTOOL_LDFLAGS=
24243 if test x$support_static_tools = xyes; then
24244    TTOOL_LDFLAGS="-static"
24245 fi
24246
24247
24248 # Check whether --enable-static-fd was given.
24249 if test "${enable_static_fd+set}" = set; then
24250   enableval=$enable_static_fd;
24251        if test x$enableval = xyes; then
24252           if test x$use_libtool = xyes; then
24253              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24254   please rerun configure with --disable-libtool" >&5
24255 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24256   please rerun configure with --disable-libtool" >&2;}
24257    { (exit 1); exit 1; }; }
24258           fi
24259           support_static_fd=yes
24260        fi
24261
24262
24263 fi
24264
24265
24266 STATIC_FD=
24267 if test x$support_static_fd = xyes; then
24268    STATIC_FD="static-bacula-fd"
24269 fi
24270
24271
24272 # Check whether --enable-static-sd was given.
24273 if test "${enable_static_sd+set}" = set; then
24274   enableval=$enable_static_sd;
24275        if test x$enableval = xyes; then
24276           if test x$use_libtool = xyes; then
24277              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24278   please rerun configure with --disable-libtool" >&5
24279 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24280   please rerun configure with --disable-libtool" >&2;}
24281    { (exit 1); exit 1; }; }
24282           fi
24283           support_static_sd=yes
24284        fi
24285
24286
24287 fi
24288
24289
24290 STATIC_SD=
24291 if test x$support_static_sd = xyes; then
24292    STATIC_SD="static-bacula-sd"
24293 fi
24294
24295
24296 # Check whether --enable-static-dir was given.
24297 if test "${enable_static_dir+set}" = set; then
24298   enableval=$enable_static_dir;
24299        if test x$enableval = xyes; then
24300           if test x$use_libtool = xyes; then
24301              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24302   please rerun configure with --disable-libtool" >&5
24303 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24304   please rerun configure with --disable-libtool" >&2;}
24305    { (exit 1); exit 1; }; }
24306           fi
24307           support_static_dir=yes
24308        fi
24309
24310
24311 fi
24312
24313
24314 STATIC_DIR=
24315 if test x$support_static_dir = xyes; then
24316    STATIC_DIR="static-bacula-dir"
24317 fi
24318
24319
24320 # Check whether --enable-static-cons was given.
24321 if test "${enable_static_cons+set}" = set; then
24322   enableval=$enable_static_cons;
24323        if test x$enableval = xyes; then
24324           if test x$use_libtool = xyes; then
24325              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24326   please rerun configure with --disable-libtool" >&5
24327 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24328   please rerun configure with --disable-libtool" >&2;}
24329    { (exit 1); exit 1; }; }
24330           fi
24331           support_static_cons=yes
24332        fi
24333
24334
24335 fi
24336
24337
24338 STATIC_CONS=
24339 STATIC_GNOME_CONS=
24340 STATIC_WX_CONS=
24341 if test x$support_static_cons = xyes; then
24342    STATIC_CONS="static-bconsole"
24343    STATIC_GNOME_CONS="static-bgnome-console"
24344    STATIC_WX_CONS="static-bwx-console"
24345 fi
24346
24347
24348
24349
24350 # Check whether --enable-client-only was given.
24351 if test "${enable_client_only+set}" = set; then
24352   enableval=$enable_client_only;
24353        if test x$enableval = xyes; then
24354           build_client_only=yes
24355           db_type=None
24356           DB_TYPE=none
24357        fi
24358
24359
24360 fi
24361
24362 if test x$build_client_only = xno; then
24363    ALL_DIRS="subdirs"
24364 else
24365    ALL_DIRS=""
24366 fi
24367
24368
24369 # Check whether --enable-build-dird was given.
24370 if test "${enable_build_dird+set}" = set; then
24371   enableval=$enable_build_dird;
24372        if test x$enableval = xno; then
24373           build_dird=no
24374        fi
24375
24376
24377 fi
24378
24379 if test x$build_dird = xyes; then
24380    DIRD_DIR="src/dird"
24381    DIR_TOOLS="DIRTOOLS"
24382 else
24383    DIRD_DIR=""
24384    DIR_TOOLS="NODIRTOOLS"
24385 fi
24386
24387
24388
24389 # Check whether --enable-build-stored was given.
24390 if test "${enable_build_stored+set}" = set; then
24391   enableval=$enable_build_stored;
24392       if test x$enableval = xno; then
24393          build_stored=no
24394       fi
24395
24396
24397 fi
24398
24399 if test x$build_stored = xyes; then
24400    STORED_DIR="src/stored"
24401 else
24402    STORED_DIR=""
24403 fi
24404
24405
24406 # Check whether --enable-conio was given.
24407 if test "${enable_conio+set}" = set; then
24408   enableval=$enable_conio;
24409        if test x$enableval = xno; then
24410           support_conio=no
24411        fi
24412
24413
24414 fi
24415
24416
24417
24418 support_ipv6=yes
24419 # Check whether --enable-ipv6 was given.
24420 if test "${enable_ipv6+set}" = set; then
24421   enableval=$enable_ipv6;
24422        if test x$enableval = xno; then
24423           support_ipv6=no
24424        fi
24425
24426
24427 fi
24428
24429
24430 if test x$support_ipv6 = xyes; then
24431     cat >conftest.$ac_ext <<_ACEOF
24432 /* confdefs.h.  */
24433 _ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h.  */
24437  #include <sys/types.h>
24438 #include <sys/socket.h>
24439 #include <netinet/in.h>
24440 int
24441 main ()
24442 {
24443 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24444   ;
24445   return 0;
24446 }
24447 _ACEOF
24448 rm -f conftest.$ac_objext conftest$ac_exeext
24449 if { (ac_try="$ac_link"
24450 case "(($ac_try" in
24451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452   *) ac_try_echo=$ac_try;;
24453 esac
24454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24455   (eval "$ac_link") 2>conftest.er1
24456   ac_status=$?
24457   grep -v '^ *+' conftest.er1 >conftest.err
24458   rm -f conftest.er1
24459   cat conftest.err >&5
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); } && {
24462          test -z "$ac_c_werror_flag" ||
24463          test ! -s conftest.err
24464        } && test -s conftest$ac_exeext &&
24465        $as_test_x conftest$ac_exeext; then
24466   support_ipv6=yes
24467 else
24468   echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24470
24471         support_ipv6=no
24472 fi
24473
24474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24475       conftest$ac_exeext conftest.$ac_ext
24476 fi
24477
24478 if test x$support_ipv6 = xyes; then
24479
24480 cat >>confdefs.h <<\_ACEOF
24481 #define HAVE_IPV6 1
24482 _ACEOF
24483
24484 fi
24485
24486 got_conio="no"
24487 if test x$support_conio = xyes; then
24488    if test "${ac_cv_header_termcap_h+set}" = set; then
24489   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24490 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24491 if test "${ac_cv_header_termcap_h+set}" = set; then
24492   echo $ECHO_N "(cached) $ECHO_C" >&6
24493 fi
24494 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24495 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24496 else
24497   # Is the header compilable?
24498 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24499 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24500 cat >conftest.$ac_ext <<_ACEOF
24501 /* confdefs.h.  */
24502 _ACEOF
24503 cat confdefs.h >>conftest.$ac_ext
24504 cat >>conftest.$ac_ext <<_ACEOF
24505 /* end confdefs.h.  */
24506 $ac_includes_default
24507 #include <termcap.h>
24508 _ACEOF
24509 rm -f conftest.$ac_objext
24510 if { (ac_try="$ac_compile"
24511 case "(($ac_try" in
24512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513   *) ac_try_echo=$ac_try;;
24514 esac
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516   (eval "$ac_compile") 2>conftest.er1
24517   ac_status=$?
24518   grep -v '^ *+' conftest.er1 >conftest.err
24519   rm -f conftest.er1
24520   cat conftest.err >&5
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); } && {
24523          test -z "$ac_c_werror_flag" ||
24524          test ! -s conftest.err
24525        } && test -s conftest.$ac_objext; then
24526   ac_header_compiler=yes
24527 else
24528   echo "$as_me: failed program was:" >&5
24529 sed 's/^/| /' conftest.$ac_ext >&5
24530
24531         ac_header_compiler=no
24532 fi
24533
24534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24536 echo "${ECHO_T}$ac_header_compiler" >&6; }
24537
24538 # Is the header present?
24539 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24540 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24541 cat >conftest.$ac_ext <<_ACEOF
24542 /* confdefs.h.  */
24543 _ACEOF
24544 cat confdefs.h >>conftest.$ac_ext
24545 cat >>conftest.$ac_ext <<_ACEOF
24546 /* end confdefs.h.  */
24547 #include <termcap.h>
24548 _ACEOF
24549 if { (ac_try="$ac_cpp conftest.$ac_ext"
24550 case "(($ac_try" in
24551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552   *) ac_try_echo=$ac_try;;
24553 esac
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24556   ac_status=$?
24557   grep -v '^ *+' conftest.er1 >conftest.err
24558   rm -f conftest.er1
24559   cat conftest.err >&5
24560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); } >/dev/null && {
24562          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24563          test ! -s conftest.err
24564        }; then
24565   ac_header_preproc=yes
24566 else
24567   echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24569
24570   ac_header_preproc=no
24571 fi
24572
24573 rm -f conftest.err conftest.$ac_ext
24574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24575 echo "${ECHO_T}$ac_header_preproc" >&6; }
24576
24577 # So?  What about this header?
24578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24579   yes:no: )
24580     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24581 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24582     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24583 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24584     ac_header_preproc=yes
24585     ;;
24586   no:yes:* )
24587     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24588 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24589     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24590 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24591     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24592 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24593     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24594 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24595     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24596 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24597     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24598 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24599
24600     ;;
24601 esac
24602 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24603 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24604 if test "${ac_cv_header_termcap_h+set}" = set; then
24605   echo $ECHO_N "(cached) $ECHO_C" >&6
24606 else
24607   ac_cv_header_termcap_h=$ac_header_preproc
24608 fi
24609 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24610 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24611
24612 fi
24613 if test $ac_cv_header_termcap_h = yes; then
24614    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24615 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24616 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24617   echo $ECHO_N "(cached) $ECHO_C" >&6
24618 else
24619   ac_check_lib_save_LIBS=$LIBS
24620 LIBS="-ltermcap  $LIBS"
24621 cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h.  */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h.  */
24627
24628 /* Override any GCC internal prototype to avoid an error.
24629    Use char because int might match the return type of a GCC
24630    builtin and then its argument prototype would still apply.  */
24631 #ifdef __cplusplus
24632 extern "C"
24633 #endif
24634 char tgetent ();
24635 int
24636 main ()
24637 {
24638 return tgetent ();
24639   ;
24640   return 0;
24641 }
24642 _ACEOF
24643 rm -f conftest.$ac_objext conftest$ac_exeext
24644 if { (ac_try="$ac_link"
24645 case "(($ac_try" in
24646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24647   *) ac_try_echo=$ac_try;;
24648 esac
24649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24650   (eval "$ac_link") 2>conftest.er1
24651   ac_status=$?
24652   grep -v '^ *+' conftest.er1 >conftest.err
24653   rm -f conftest.er1
24654   cat conftest.err >&5
24655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); } && {
24657          test -z "$ac_c_werror_flag" ||
24658          test ! -s conftest.err
24659        } && test -s conftest$ac_exeext &&
24660        $as_test_x conftest$ac_exeext; then
24661   ac_cv_lib_termcap_tgetent=yes
24662 else
24663   echo "$as_me: failed program was:" >&5
24664 sed 's/^/| /' conftest.$ac_ext >&5
24665
24666         ac_cv_lib_termcap_tgetent=no
24667 fi
24668
24669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24670       conftest$ac_exeext conftest.$ac_ext
24671 LIBS=$ac_check_lib_save_LIBS
24672 fi
24673 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24674 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24675 if test $ac_cv_lib_termcap_tgetent = yes; then
24676    CONS_LIBS="-ltermcap"
24677     CONS_OBJ="conio.o"
24678     CONS_SRC="conio.c"
24679     got_conio="yes"
24680     support_readline=no
24681
24682 cat >>confdefs.h <<\_ACEOF
24683 #define HAVE_CONIO 1
24684 _ACEOF
24685
24686
24687 else
24688    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24689 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24690 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24691   echo $ECHO_N "(cached) $ECHO_C" >&6
24692 else
24693   ac_check_lib_save_LIBS=$LIBS
24694 LIBS="-lncurses  $LIBS"
24695 cat >conftest.$ac_ext <<_ACEOF
24696 /* confdefs.h.  */
24697 _ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h.  */
24701
24702 /* Override any GCC internal prototype to avoid an error.
24703    Use char because int might match the return type of a GCC
24704    builtin and then its argument prototype would still apply.  */
24705 #ifdef __cplusplus
24706 extern "C"
24707 #endif
24708 char tgetent ();
24709 int
24710 main ()
24711 {
24712 return tgetent ();
24713   ;
24714   return 0;
24715 }
24716 _ACEOF
24717 rm -f conftest.$ac_objext conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721   *) ac_try_echo=$ac_try;;
24722 esac
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724   (eval "$ac_link") 2>conftest.er1
24725   ac_status=$?
24726   grep -v '^ *+' conftest.er1 >conftest.err
24727   rm -f conftest.er1
24728   cat conftest.err >&5
24729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); } && {
24731          test -z "$ac_c_werror_flag" ||
24732          test ! -s conftest.err
24733        } && test -s conftest$ac_exeext &&
24734        $as_test_x conftest$ac_exeext; then
24735   ac_cv_lib_ncurses_tgetent=yes
24736 else
24737   echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24739
24740         ac_cv_lib_ncurses_tgetent=no
24741 fi
24742
24743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24744       conftest$ac_exeext conftest.$ac_ext
24745 LIBS=$ac_check_lib_save_LIBS
24746 fi
24747 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24748 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24749 if test $ac_cv_lib_ncurses_tgetent = yes; then
24750    CONS_LIBS="-lncurses"
24751       CONS_OBJ="conio.o"
24752       CONS_SRC="conio.c"
24753       got_conio="yes"
24754       support_readline=no
24755
24756 cat >>confdefs.h <<\_ACEOF
24757 #define HAVE_CONIO 1
24758 _ACEOF
24759
24760
24761 fi
24762
24763
24764 fi
24765
24766
24767 else
24768
24769
24770 for ac_header in curses.h
24771 do
24772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24774   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24777   echo $ECHO_N "(cached) $ECHO_C" >&6
24778 fi
24779 ac_res=`eval echo '${'$as_ac_Header'}'`
24780                { echo "$as_me:$LINENO: result: $ac_res" >&5
24781 echo "${ECHO_T}$ac_res" >&6; }
24782 else
24783   # Is the header compilable?
24784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24786 cat >conftest.$ac_ext <<_ACEOF
24787 /* confdefs.h.  */
24788 _ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h.  */
24792 $ac_includes_default
24793 #include <$ac_header>
24794 _ACEOF
24795 rm -f conftest.$ac_objext
24796 if { (ac_try="$ac_compile"
24797 case "(($ac_try" in
24798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24799   *) ac_try_echo=$ac_try;;
24800 esac
24801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24802   (eval "$ac_compile") 2>conftest.er1
24803   ac_status=$?
24804   grep -v '^ *+' conftest.er1 >conftest.err
24805   rm -f conftest.er1
24806   cat conftest.err >&5
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); } && {
24809          test -z "$ac_c_werror_flag" ||
24810          test ! -s conftest.err
24811        } && test -s conftest.$ac_objext; then
24812   ac_header_compiler=yes
24813 else
24814   echo "$as_me: failed program was:" >&5
24815 sed 's/^/| /' conftest.$ac_ext >&5
24816
24817         ac_header_compiler=no
24818 fi
24819
24820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24822 echo "${ECHO_T}$ac_header_compiler" >&6; }
24823
24824 # Is the header present?
24825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24827 cat >conftest.$ac_ext <<_ACEOF
24828 /* confdefs.h.  */
24829 _ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h.  */
24833 #include <$ac_header>
24834 _ACEOF
24835 if { (ac_try="$ac_cpp conftest.$ac_ext"
24836 case "(($ac_try" in
24837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838   *) ac_try_echo=$ac_try;;
24839 esac
24840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24842   ac_status=$?
24843   grep -v '^ *+' conftest.er1 >conftest.err
24844   rm -f conftest.er1
24845   cat conftest.err >&5
24846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847   (exit $ac_status); } >/dev/null && {
24848          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24849          test ! -s conftest.err
24850        }; then
24851   ac_header_preproc=yes
24852 else
24853   echo "$as_me: failed program was:" >&5
24854 sed 's/^/| /' conftest.$ac_ext >&5
24855
24856   ac_header_preproc=no
24857 fi
24858
24859 rm -f conftest.err conftest.$ac_ext
24860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24861 echo "${ECHO_T}$ac_header_preproc" >&6; }
24862
24863 # So?  What about this header?
24864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24865   yes:no: )
24866     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24870     ac_header_preproc=yes
24871     ;;
24872   no:yes:* )
24873     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24875     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24876 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24877     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24879     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24880 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24883     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24885
24886     ;;
24887 esac
24888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24891   echo $ECHO_N "(cached) $ECHO_C" >&6
24892 else
24893   eval "$as_ac_Header=\$ac_header_preproc"
24894 fi
24895 ac_res=`eval echo '${'$as_ac_Header'}'`
24896                { echo "$as_me:$LINENO: result: $ac_res" >&5
24897 echo "${ECHO_T}$ac_res" >&6; }
24898
24899 fi
24900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24901   cat >>confdefs.h <<_ACEOF
24902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24903 _ACEOF
24904
24905 fi
24906
24907 done
24908
24909     { echo "$as_me:$LINENO: checking for term.h" >&5
24910 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24911 if test "${ac_cv_header_term_h+set}" = set; then
24912   echo $ECHO_N "(cached) $ECHO_C" >&6
24913 else
24914   cat >conftest.$ac_ext <<_ACEOF
24915 /* confdefs.h.  */
24916 _ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h.  */
24920 #if HAVE_CURSES_H
24921 #include <curses.h>
24922 #endif
24923
24924
24925 #include <term.h>
24926 _ACEOF
24927 rm -f conftest.$ac_objext
24928 if { (ac_try="$ac_compile"
24929 case "(($ac_try" in
24930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931   *) ac_try_echo=$ac_try;;
24932 esac
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934   (eval "$ac_compile") 2>conftest.er1
24935   ac_status=$?
24936   grep -v '^ *+' conftest.er1 >conftest.err
24937   rm -f conftest.er1
24938   cat conftest.err >&5
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); } && {
24941          test -z "$ac_c_werror_flag" ||
24942          test ! -s conftest.err
24943        } && test -s conftest.$ac_objext; then
24944   ac_cv_header_term_h=yes
24945 else
24946   echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24948
24949         ac_cv_header_term_h=no
24950 fi
24951
24952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24953 fi
24954 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24955 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24956 if test $ac_cv_header_term_h = yes; then
24957    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24958 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24959 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24960   echo $ECHO_N "(cached) $ECHO_C" >&6
24961 else
24962   ac_check_lib_save_LIBS=$LIBS
24963 LIBS="-lcurses  $LIBS"
24964 cat >conftest.$ac_ext <<_ACEOF
24965 /* confdefs.h.  */
24966 _ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h.  */
24970
24971 /* Override any GCC internal prototype to avoid an error.
24972    Use char because int might match the return type of a GCC
24973    builtin and then its argument prototype would still apply.  */
24974 #ifdef __cplusplus
24975 extern "C"
24976 #endif
24977 char tgetent ();
24978 int
24979 main ()
24980 {
24981 return tgetent ();
24982   ;
24983   return 0;
24984 }
24985 _ACEOF
24986 rm -f conftest.$ac_objext conftest$ac_exeext
24987 if { (ac_try="$ac_link"
24988 case "(($ac_try" in
24989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990   *) ac_try_echo=$ac_try;;
24991 esac
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993   (eval "$ac_link") 2>conftest.er1
24994   ac_status=$?
24995   grep -v '^ *+' conftest.er1 >conftest.err
24996   rm -f conftest.er1
24997   cat conftest.err >&5
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); } && {
25000          test -z "$ac_c_werror_flag" ||
25001          test ! -s conftest.err
25002        } && test -s conftest$ac_exeext &&
25003        $as_test_x conftest$ac_exeext; then
25004   ac_cv_lib_curses_tgetent=yes
25005 else
25006   echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25008
25009         ac_cv_lib_curses_tgetent=no
25010 fi
25011
25012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25013       conftest$ac_exeext conftest.$ac_ext
25014 LIBS=$ac_check_lib_save_LIBS
25015 fi
25016 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25017 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25018 if test $ac_cv_lib_curses_tgetent = yes; then
25019    CONS_LIBS="-lcurses"
25020          CONS_OBJ="conio.o"
25021          CONS_SRC="conio.c"
25022          got_conio="yes"
25023          support_readline=no
25024
25025 cat >>confdefs.h <<\_ACEOF
25026 #define HAVE_CONIO 1
25027 _ACEOF
25028
25029
25030 fi
25031
25032
25033 else
25034    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25035 fi
25036
25037
25038
25039 fi
25040
25041
25042 fi
25043
25044
25045 # Check whether --enable-readline was given.
25046 if test "${enable_readline+set}" = set; then
25047   enableval=$enable_readline;
25048        if test x$enableval = xno; then
25049           support_readline=no
25050        fi
25051
25052
25053 fi
25054
25055
25056 got_readline="no"
25057 READLINE_SRC=
25058 if test x$support_readline = xyes; then
25059
25060 # Check whether --with-readline was given.
25061 if test "${with_readline+set}" = set; then
25062   withval=$with_readline;
25063           case "$with_readline" in
25064           no)
25065              :
25066              ;;
25067           yes|*)
25068              if test -f ${with_readline}/readline.h; then
25069                 CONS_INC="-I${with_readline}"
25070                 CONS_LDFLAGS="-L$with_readline"
25071              elif test -f ${with_readline}/include/readline/readline.h; then
25072                 CONS_INC="-I${with_readline}/include/readline"
25073                 CONS_LDFLAGS="-L${with_readline}/lib"
25074                 with_readline="${with_readline}/include/readline"
25075              else
25076                 with_readline="/usr/include/readline"
25077              fi
25078
25079              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25081   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25082 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25084   echo $ECHO_N "(cached) $ECHO_C" >&6
25085 fi
25086 ac_res=`eval echo '${'$as_ac_Header'}'`
25087                { echo "$as_me:$LINENO: result: $ac_res" >&5
25088 echo "${ECHO_T}$ac_res" >&6; }
25089 else
25090   # Is the header compilable?
25091 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25092 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25093 cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h.  */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h.  */
25099 $ac_includes_default
25100 #include <${with_readline}/readline.h>
25101 _ACEOF
25102 rm -f conftest.$ac_objext
25103 if { (ac_try="$ac_compile"
25104 case "(($ac_try" in
25105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106   *) ac_try_echo=$ac_try;;
25107 esac
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109   (eval "$ac_compile") 2>conftest.er1
25110   ac_status=$?
25111   grep -v '^ *+' conftest.er1 >conftest.err
25112   rm -f conftest.er1
25113   cat conftest.err >&5
25114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115   (exit $ac_status); } && {
25116          test -z "$ac_c_werror_flag" ||
25117          test ! -s conftest.err
25118        } && test -s conftest.$ac_objext; then
25119   ac_header_compiler=yes
25120 else
25121   echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25123
25124         ac_header_compiler=no
25125 fi
25126
25127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25129 echo "${ECHO_T}$ac_header_compiler" >&6; }
25130
25131 # Is the header present?
25132 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25133 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25134 cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h.  */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h.  */
25140 #include <${with_readline}/readline.h>
25141 _ACEOF
25142 if { (ac_try="$ac_cpp conftest.$ac_ext"
25143 case "(($ac_try" in
25144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145   *) ac_try_echo=$ac_try;;
25146 esac
25147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25149   ac_status=$?
25150   grep -v '^ *+' conftest.er1 >conftest.err
25151   rm -f conftest.er1
25152   cat conftest.err >&5
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); } >/dev/null && {
25155          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25156          test ! -s conftest.err
25157        }; then
25158   ac_header_preproc=yes
25159 else
25160   echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163   ac_header_preproc=no
25164 fi
25165
25166 rm -f conftest.err conftest.$ac_ext
25167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25168 echo "${ECHO_T}$ac_header_preproc" >&6; }
25169
25170 # So?  What about this header?
25171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25172   yes:no: )
25173     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25174 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25175     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25176 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25177     ac_header_preproc=yes
25178     ;;
25179   no:yes:* )
25180     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25181 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25182     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25183 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25184     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25185 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25186     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25187 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25188     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25189 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25190     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25191 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25192
25193     ;;
25194 esac
25195 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25196 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25198   echo $ECHO_N "(cached) $ECHO_C" >&6
25199 else
25200   eval "$as_ac_Header=\$ac_header_preproc"
25201 fi
25202 ac_res=`eval echo '${'$as_ac_Header'}'`
25203                { echo "$as_me:$LINENO: result: $ac_res" >&5
25204 echo "${ECHO_T}$ac_res" >&6; }
25205
25206 fi
25207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25208
25209
25210 cat >>confdefs.h <<\_ACEOF
25211 #define HAVE_READLINE 1
25212 _ACEOF
25213
25214                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25215                     got_readline="yes"
25216
25217 else
25218
25219                     echo " "
25220                     echo "readline.h not found. readline turned off ..."
25221                     echo " "
25222
25223
25224 fi
25225
25226
25227              ;;
25228           esac
25229
25230 else
25231
25232                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25233   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25234 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25235 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25236   echo $ECHO_N "(cached) $ECHO_C" >&6
25237 fi
25238 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25239 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25240 else
25241   # Is the header compilable?
25242 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25243 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25244 cat >conftest.$ac_ext <<_ACEOF
25245 /* confdefs.h.  */
25246 _ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h.  */
25250 $ac_includes_default
25251 #include </usr/include/readline/readline.h>
25252 _ACEOF
25253 rm -f conftest.$ac_objext
25254 if { (ac_try="$ac_compile"
25255 case "(($ac_try" in
25256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257   *) ac_try_echo=$ac_try;;
25258 esac
25259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260   (eval "$ac_compile") 2>conftest.er1
25261   ac_status=$?
25262   grep -v '^ *+' conftest.er1 >conftest.err
25263   rm -f conftest.er1
25264   cat conftest.err >&5
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } && {
25267          test -z "$ac_c_werror_flag" ||
25268          test ! -s conftest.err
25269        } && test -s conftest.$ac_objext; then
25270   ac_header_compiler=yes
25271 else
25272   echo "$as_me: failed program was:" >&5
25273 sed 's/^/| /' conftest.$ac_ext >&5
25274
25275         ac_header_compiler=no
25276 fi
25277
25278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25280 echo "${ECHO_T}$ac_header_compiler" >&6; }
25281
25282 # Is the header present?
25283 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25284 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25285 cat >conftest.$ac_ext <<_ACEOF
25286 /* confdefs.h.  */
25287 _ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h.  */
25291 #include </usr/include/readline/readline.h>
25292 _ACEOF
25293 if { (ac_try="$ac_cpp conftest.$ac_ext"
25294 case "(($ac_try" in
25295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296   *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25300   ac_status=$?
25301   grep -v '^ *+' conftest.er1 >conftest.err
25302   rm -f conftest.er1
25303   cat conftest.err >&5
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); } >/dev/null && {
25306          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25307          test ! -s conftest.err
25308        }; then
25309   ac_header_preproc=yes
25310 else
25311   echo "$as_me: failed program was:" >&5
25312 sed 's/^/| /' conftest.$ac_ext >&5
25313
25314   ac_header_preproc=no
25315 fi
25316
25317 rm -f conftest.err conftest.$ac_ext
25318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25319 echo "${ECHO_T}$ac_header_preproc" >&6; }
25320
25321 # So?  What about this header?
25322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25323   yes:no: )
25324     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25325 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25326     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25327 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25328     ac_header_preproc=yes
25329     ;;
25330   no:yes:* )
25331     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25332 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25333     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25334 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25335     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25336 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25337     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25338 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25339     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25340 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25341     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25342 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25343
25344     ;;
25345 esac
25346 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25347 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25348 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25349   echo $ECHO_N "(cached) $ECHO_C" >&6
25350 else
25351   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25352 fi
25353 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25354 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25355
25356 fi
25357 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25358
25359
25360 cat >>confdefs.h <<\_ACEOF
25361 #define HAVE_READLINE 1
25362 _ACEOF
25363
25364                 got_readline="yes"
25365                 CONS_INC="-I/usr/include/readline"
25366                 CONS_LIBS="-lreadline -ltermcap"
25367
25368 else
25369
25370                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25372   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25373 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25375   echo $ECHO_N "(cached) $ECHO_C" >&6
25376 fi
25377 ac_res=`eval echo '${'$as_ac_Header'}'`
25378                { echo "$as_me:$LINENO: result: $ac_res" >&5
25379 echo "${ECHO_T}$ac_res" >&6; }
25380 else
25381   # Is the header compilable?
25382 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25383 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25384 cat >conftest.$ac_ext <<_ACEOF
25385 /* confdefs.h.  */
25386 _ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h.  */
25390 $ac_includes_default
25391 #include <${TOP_DIR}/depkgs/readline/readline.h>
25392 _ACEOF
25393 rm -f conftest.$ac_objext
25394 if { (ac_try="$ac_compile"
25395 case "(($ac_try" in
25396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25397   *) ac_try_echo=$ac_try;;
25398 esac
25399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25400   (eval "$ac_compile") 2>conftest.er1
25401   ac_status=$?
25402   grep -v '^ *+' conftest.er1 >conftest.err
25403   rm -f conftest.er1
25404   cat conftest.err >&5
25405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406   (exit $ac_status); } && {
25407          test -z "$ac_c_werror_flag" ||
25408          test ! -s conftest.err
25409        } && test -s conftest.$ac_objext; then
25410   ac_header_compiler=yes
25411 else
25412   echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25414
25415         ac_header_compiler=no
25416 fi
25417
25418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25420 echo "${ECHO_T}$ac_header_compiler" >&6; }
25421
25422 # Is the header present?
25423 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25424 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25425 cat >conftest.$ac_ext <<_ACEOF
25426 /* confdefs.h.  */
25427 _ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h.  */
25431 #include <${TOP_DIR}/depkgs/readline/readline.h>
25432 _ACEOF
25433 if { (ac_try="$ac_cpp conftest.$ac_ext"
25434 case "(($ac_try" in
25435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436   *) ac_try_echo=$ac_try;;
25437 esac
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25440   ac_status=$?
25441   grep -v '^ *+' conftest.er1 >conftest.err
25442   rm -f conftest.er1
25443   cat conftest.err >&5
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); } >/dev/null && {
25446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25447          test ! -s conftest.err
25448        }; then
25449   ac_header_preproc=yes
25450 else
25451   echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.$ac_ext >&5
25453
25454   ac_header_preproc=no
25455 fi
25456
25457 rm -f conftest.err conftest.$ac_ext
25458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25459 echo "${ECHO_T}$ac_header_preproc" >&6; }
25460
25461 # So?  What about this header?
25462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25463   yes:no: )
25464     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25465 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25466     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25467 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25468     ac_header_preproc=yes
25469     ;;
25470   no:yes:* )
25471     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25473     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25474 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25475     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25476 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25477     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25478 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25479     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25480 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25481     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25482 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25483
25484     ;;
25485 esac
25486 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25487 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25489   echo $ECHO_N "(cached) $ECHO_C" >&6
25490 else
25491   eval "$as_ac_Header=\$ac_header_preproc"
25492 fi
25493 ac_res=`eval echo '${'$as_ac_Header'}'`
25494                { echo "$as_me:$LINENO: result: $ac_res" >&5
25495 echo "${ECHO_T}$ac_res" >&6; }
25496
25497 fi
25498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25499
25500
25501 cat >>confdefs.h <<\_ACEOF
25502 #define HAVE_READLINE 1
25503 _ACEOF
25504
25505                         got_readline="yes"
25506                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25507                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25508                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25509                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25510
25511 else
25512
25513                         echo " "
25514                         echo "readline.h not found. readline turned off ..."
25515                         echo " "
25516
25517
25518 fi
25519
25520
25521
25522
25523 fi
25524
25525
25526
25527
25528 fi
25529
25530 fi
25531
25532
25533
25534
25535
25536
25537
25538
25539 MAKE_SHELL=/bin/sh
25540
25541 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25542 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25543 if test "${ac_cv_header_stat_broken+set}" = set; then
25544   echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546   cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h.  */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h.  */
25552 #include <sys/types.h>
25553 #include <sys/stat.h>
25554
25555 #if defined S_ISBLK && defined S_IFDIR
25556 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25557 #endif
25558
25559 #if defined S_ISBLK && defined S_IFCHR
25560 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25561 #endif
25562
25563 #if defined S_ISLNK && defined S_IFREG
25564 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25565 #endif
25566
25567 #if defined S_ISSOCK && defined S_IFREG
25568 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25569 #endif
25570
25571 _ACEOF
25572 rm -f conftest.$ac_objext
25573 if { (ac_try="$ac_compile"
25574 case "(($ac_try" in
25575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25576   *) ac_try_echo=$ac_try;;
25577 esac
25578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25579   (eval "$ac_compile") 2>conftest.er1
25580   ac_status=$?
25581   grep -v '^ *+' conftest.er1 >conftest.err
25582   rm -f conftest.er1
25583   cat conftest.err >&5
25584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585   (exit $ac_status); } && {
25586          test -z "$ac_c_werror_flag" ||
25587          test ! -s conftest.err
25588        } && test -s conftest.$ac_objext; then
25589   ac_cv_header_stat_broken=no
25590 else
25591   echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.$ac_ext >&5
25593
25594         ac_cv_header_stat_broken=yes
25595 fi
25596
25597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25598 fi
25599 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25600 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25601 if test $ac_cv_header_stat_broken = yes; then
25602
25603 cat >>confdefs.h <<\_ACEOF
25604 #define STAT_MACROS_BROKEN 1
25605 _ACEOF
25606
25607 fi
25608
25609
25610
25611
25612
25613
25614 ac_header_dirent=no
25615 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25616   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25617 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25618 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25620   echo $ECHO_N "(cached) $ECHO_C" >&6
25621 else
25622   cat >conftest.$ac_ext <<_ACEOF
25623 /* confdefs.h.  */
25624 _ACEOF
25625 cat confdefs.h >>conftest.$ac_ext
25626 cat >>conftest.$ac_ext <<_ACEOF
25627 /* end confdefs.h.  */
25628 #include <sys/types.h>
25629 #include <$ac_hdr>
25630
25631 int
25632 main ()
25633 {
25634 if ((DIR *) 0)
25635 return 0;
25636   ;
25637   return 0;
25638 }
25639 _ACEOF
25640 rm -f conftest.$ac_objext
25641 if { (ac_try="$ac_compile"
25642 case "(($ac_try" in
25643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644   *) ac_try_echo=$ac_try;;
25645 esac
25646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25647   (eval "$ac_compile") 2>conftest.er1
25648   ac_status=$?
25649   grep -v '^ *+' conftest.er1 >conftest.err
25650   rm -f conftest.er1
25651   cat conftest.err >&5
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); } && {
25654          test -z "$ac_c_werror_flag" ||
25655          test ! -s conftest.err
25656        } && test -s conftest.$ac_objext; then
25657   eval "$as_ac_Header=yes"
25658 else
25659   echo "$as_me: failed program was:" >&5
25660 sed 's/^/| /' conftest.$ac_ext >&5
25661
25662         eval "$as_ac_Header=no"
25663 fi
25664
25665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25666 fi
25667 ac_res=`eval echo '${'$as_ac_Header'}'`
25668                { echo "$as_me:$LINENO: result: $ac_res" >&5
25669 echo "${ECHO_T}$ac_res" >&6; }
25670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25671   cat >>confdefs.h <<_ACEOF
25672 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25673 _ACEOF
25674
25675 ac_header_dirent=$ac_hdr; break
25676 fi
25677
25678 done
25679 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25680 if test $ac_header_dirent = dirent.h; then
25681   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25682 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25683 if test "${ac_cv_search_opendir+set}" = set; then
25684   echo $ECHO_N "(cached) $ECHO_C" >&6
25685 else
25686   ac_func_search_save_LIBS=$LIBS
25687 cat >conftest.$ac_ext <<_ACEOF
25688 /* confdefs.h.  */
25689 _ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h.  */
25693
25694 /* Override any GCC internal prototype to avoid an error.
25695    Use char because int might match the return type of a GCC
25696    builtin and then its argument prototype would still apply.  */
25697 #ifdef __cplusplus
25698 extern "C"
25699 #endif
25700 char opendir ();
25701 int
25702 main ()
25703 {
25704 return opendir ();
25705   ;
25706   return 0;
25707 }
25708 _ACEOF
25709 for ac_lib in '' dir; do
25710   if test -z "$ac_lib"; then
25711     ac_res="none required"
25712   else
25713     ac_res=-l$ac_lib
25714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25715   fi
25716   rm -f conftest.$ac_objext conftest$ac_exeext
25717 if { (ac_try="$ac_link"
25718 case "(($ac_try" in
25719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720   *) ac_try_echo=$ac_try;;
25721 esac
25722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25723   (eval "$ac_link") 2>conftest.er1
25724   ac_status=$?
25725   grep -v '^ *+' conftest.er1 >conftest.err
25726   rm -f conftest.er1
25727   cat conftest.err >&5
25728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729   (exit $ac_status); } && {
25730          test -z "$ac_c_werror_flag" ||
25731          test ! -s conftest.err
25732        } && test -s conftest$ac_exeext &&
25733        $as_test_x conftest$ac_exeext; then
25734   ac_cv_search_opendir=$ac_res
25735 else
25736   echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25738
25739
25740 fi
25741
25742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25743       conftest$ac_exeext
25744   if test "${ac_cv_search_opendir+set}" = set; then
25745   break
25746 fi
25747 done
25748 if test "${ac_cv_search_opendir+set}" = set; then
25749   :
25750 else
25751   ac_cv_search_opendir=no
25752 fi
25753 rm conftest.$ac_ext
25754 LIBS=$ac_func_search_save_LIBS
25755 fi
25756 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25757 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25758 ac_res=$ac_cv_search_opendir
25759 if test "$ac_res" != no; then
25760   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25761
25762 fi
25763
25764 else
25765   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25766 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25767 if test "${ac_cv_search_opendir+set}" = set; then
25768   echo $ECHO_N "(cached) $ECHO_C" >&6
25769 else
25770   ac_func_search_save_LIBS=$LIBS
25771 cat >conftest.$ac_ext <<_ACEOF
25772 /* confdefs.h.  */
25773 _ACEOF
25774 cat confdefs.h >>conftest.$ac_ext
25775 cat >>conftest.$ac_ext <<_ACEOF
25776 /* end confdefs.h.  */
25777
25778 /* Override any GCC internal prototype to avoid an error.
25779    Use char because int might match the return type of a GCC
25780    builtin and then its argument prototype would still apply.  */
25781 #ifdef __cplusplus
25782 extern "C"
25783 #endif
25784 char opendir ();
25785 int
25786 main ()
25787 {
25788 return opendir ();
25789   ;
25790   return 0;
25791 }
25792 _ACEOF
25793 for ac_lib in '' x; do
25794   if test -z "$ac_lib"; then
25795     ac_res="none required"
25796   else
25797     ac_res=-l$ac_lib
25798     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25799   fi
25800   rm -f conftest.$ac_objext conftest$ac_exeext
25801 if { (ac_try="$ac_link"
25802 case "(($ac_try" in
25803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804   *) ac_try_echo=$ac_try;;
25805 esac
25806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25807   (eval "$ac_link") 2>conftest.er1
25808   ac_status=$?
25809   grep -v '^ *+' conftest.er1 >conftest.err
25810   rm -f conftest.er1
25811   cat conftest.err >&5
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); } && {
25814          test -z "$ac_c_werror_flag" ||
25815          test ! -s conftest.err
25816        } && test -s conftest$ac_exeext &&
25817        $as_test_x conftest$ac_exeext; then
25818   ac_cv_search_opendir=$ac_res
25819 else
25820   echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25822
25823
25824 fi
25825
25826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25827       conftest$ac_exeext
25828   if test "${ac_cv_search_opendir+set}" = set; then
25829   break
25830 fi
25831 done
25832 if test "${ac_cv_search_opendir+set}" = set; then
25833   :
25834 else
25835   ac_cv_search_opendir=no
25836 fi
25837 rm conftest.$ac_ext
25838 LIBS=$ac_func_search_save_LIBS
25839 fi
25840 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25841 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25842 ac_res=$ac_cv_search_opendir
25843 if test "$ac_res" != no; then
25844   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25845
25846 fi
25847
25848 fi
25849
25850
25851
25852
25853
25854
25855
25856
25857 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25858 do
25859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25863   echo $ECHO_N "(cached) $ECHO_C" >&6
25864 else
25865   cat >conftest.$ac_ext <<_ACEOF
25866 /* confdefs.h.  */
25867 _ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h.  */
25871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25873 #define $ac_func innocuous_$ac_func
25874
25875 /* System header to define __stub macros and hopefully few prototypes,
25876     which can conflict with char $ac_func (); below.
25877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25878     <limits.h> exists even on freestanding compilers.  */
25879
25880 #ifdef __STDC__
25881 # include <limits.h>
25882 #else
25883 # include <assert.h>
25884 #endif
25885
25886 #undef $ac_func
25887
25888 /* Override any GCC internal prototype to avoid an error.
25889    Use char because int might match the return type of a GCC
25890    builtin and then its argument prototype would still apply.  */
25891 #ifdef __cplusplus
25892 extern "C"
25893 #endif
25894 char $ac_func ();
25895 /* The GNU C library defines this for functions which it implements
25896     to always fail with ENOSYS.  Some functions are actually named
25897     something starting with __ and the normal name is an alias.  */
25898 #if defined __stub_$ac_func || defined __stub___$ac_func
25899 choke me
25900 #endif
25901
25902 int
25903 main ()
25904 {
25905 return $ac_func ();
25906   ;
25907   return 0;
25908 }
25909 _ACEOF
25910 rm -f conftest.$ac_objext conftest$ac_exeext
25911 if { (ac_try="$ac_link"
25912 case "(($ac_try" in
25913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25914   *) ac_try_echo=$ac_try;;
25915 esac
25916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25917   (eval "$ac_link") 2>conftest.er1
25918   ac_status=$?
25919   grep -v '^ *+' conftest.er1 >conftest.err
25920   rm -f conftest.er1
25921   cat conftest.err >&5
25922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923   (exit $ac_status); } && {
25924          test -z "$ac_c_werror_flag" ||
25925          test ! -s conftest.err
25926        } && test -s conftest$ac_exeext &&
25927        $as_test_x conftest$ac_exeext; then
25928   eval "$as_ac_var=yes"
25929 else
25930   echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25932
25933         eval "$as_ac_var=no"
25934 fi
25935
25936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25937       conftest$ac_exeext conftest.$ac_ext
25938 fi
25939 ac_res=`eval echo '${'$as_ac_var'}'`
25940                { echo "$as_me:$LINENO: result: $ac_res" >&5
25941 echo "${ECHO_T}$ac_res" >&6; }
25942 if test `eval echo '${'$as_ac_var'}'` = yes; then
25943   cat >>confdefs.h <<_ACEOF
25944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25945 _ACEOF
25946
25947 fi
25948 done
25949
25950
25951
25952 for ac_func in nanosleep nl_langinfo
25953 do
25954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25958   echo $ECHO_N "(cached) $ECHO_C" >&6
25959 else
25960   cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h.  */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h.  */
25966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25968 #define $ac_func innocuous_$ac_func
25969
25970 /* System header to define __stub macros and hopefully few prototypes,
25971     which can conflict with char $ac_func (); below.
25972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25973     <limits.h> exists even on freestanding compilers.  */
25974
25975 #ifdef __STDC__
25976 # include <limits.h>
25977 #else
25978 # include <assert.h>
25979 #endif
25980
25981 #undef $ac_func
25982
25983 /* Override any GCC internal prototype to avoid an error.
25984    Use char because int might match the return type of a GCC
25985    builtin and then its argument prototype would still apply.  */
25986 #ifdef __cplusplus
25987 extern "C"
25988 #endif
25989 char $ac_func ();
25990 /* The GNU C library defines this for functions which it implements
25991     to always fail with ENOSYS.  Some functions are actually named
25992     something starting with __ and the normal name is an alias.  */
25993 #if defined __stub_$ac_func || defined __stub___$ac_func
25994 choke me
25995 #endif
25996
25997 int
25998 main ()
25999 {
26000 return $ac_func ();
26001   ;
26002   return 0;
26003 }
26004 _ACEOF
26005 rm -f conftest.$ac_objext conftest$ac_exeext
26006 if { (ac_try="$ac_link"
26007 case "(($ac_try" in
26008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009   *) ac_try_echo=$ac_try;;
26010 esac
26011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26012   (eval "$ac_link") 2>conftest.er1
26013   ac_status=$?
26014   grep -v '^ *+' conftest.er1 >conftest.err
26015   rm -f conftest.er1
26016   cat conftest.err >&5
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); } && {
26019          test -z "$ac_c_werror_flag" ||
26020          test ! -s conftest.err
26021        } && test -s conftest$ac_exeext &&
26022        $as_test_x conftest$ac_exeext; then
26023   eval "$as_ac_var=yes"
26024 else
26025   echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26027
26028         eval "$as_ac_var=no"
26029 fi
26030
26031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26032       conftest$ac_exeext conftest.$ac_ext
26033 fi
26034 ac_res=`eval echo '${'$as_ac_var'}'`
26035                { echo "$as_me:$LINENO: result: $ac_res" >&5
26036 echo "${ECHO_T}$ac_res" >&6; }
26037 if test `eval echo '${'$as_ac_var'}'` = yes; then
26038   cat >>confdefs.h <<_ACEOF
26039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26040 _ACEOF
26041
26042 fi
26043 done
26044
26045
26046 for ac_header in varargs.h
26047 do
26048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26050   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26053   echo $ECHO_N "(cached) $ECHO_C" >&6
26054 fi
26055 ac_res=`eval echo '${'$as_ac_Header'}'`
26056                { echo "$as_me:$LINENO: result: $ac_res" >&5
26057 echo "${ECHO_T}$ac_res" >&6; }
26058 else
26059   # Is the header compilable?
26060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26062 cat >conftest.$ac_ext <<_ACEOF
26063 /* confdefs.h.  */
26064 _ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h.  */
26068 $ac_includes_default
26069 #include <$ac_header>
26070 _ACEOF
26071 rm -f conftest.$ac_objext
26072 if { (ac_try="$ac_compile"
26073 case "(($ac_try" in
26074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075   *) ac_try_echo=$ac_try;;
26076 esac
26077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26078   (eval "$ac_compile") 2>conftest.er1
26079   ac_status=$?
26080   grep -v '^ *+' conftest.er1 >conftest.err
26081   rm -f conftest.er1
26082   cat conftest.err >&5
26083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084   (exit $ac_status); } && {
26085          test -z "$ac_c_werror_flag" ||
26086          test ! -s conftest.err
26087        } && test -s conftest.$ac_objext; then
26088   ac_header_compiler=yes
26089 else
26090   echo "$as_me: failed program was:" >&5
26091 sed 's/^/| /' conftest.$ac_ext >&5
26092
26093         ac_header_compiler=no
26094 fi
26095
26096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26098 echo "${ECHO_T}$ac_header_compiler" >&6; }
26099
26100 # Is the header present?
26101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26103 cat >conftest.$ac_ext <<_ACEOF
26104 /* confdefs.h.  */
26105 _ACEOF
26106 cat confdefs.h >>conftest.$ac_ext
26107 cat >>conftest.$ac_ext <<_ACEOF
26108 /* end confdefs.h.  */
26109 #include <$ac_header>
26110 _ACEOF
26111 if { (ac_try="$ac_cpp conftest.$ac_ext"
26112 case "(($ac_try" in
26113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26114   *) ac_try_echo=$ac_try;;
26115 esac
26116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26117   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26118   ac_status=$?
26119   grep -v '^ *+' conftest.er1 >conftest.err
26120   rm -f conftest.er1
26121   cat conftest.err >&5
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); } >/dev/null && {
26124          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26125          test ! -s conftest.err
26126        }; then
26127   ac_header_preproc=yes
26128 else
26129   echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26131
26132   ac_header_preproc=no
26133 fi
26134
26135 rm -f conftest.err conftest.$ac_ext
26136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26137 echo "${ECHO_T}$ac_header_preproc" >&6; }
26138
26139 # So?  What about this header?
26140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26141   yes:no: )
26142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26146     ac_header_preproc=yes
26147     ;;
26148   no:yes:* )
26149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26161
26162     ;;
26163 esac
26164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26167   echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169   eval "$as_ac_Header=\$ac_header_preproc"
26170 fi
26171 ac_res=`eval echo '${'$as_ac_Header'}'`
26172                { echo "$as_me:$LINENO: result: $ac_res" >&5
26173 echo "${ECHO_T}$ac_res" >&6; }
26174
26175 fi
26176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26177   cat >>confdefs.h <<_ACEOF
26178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26179 _ACEOF
26180
26181 fi
26182
26183 done
26184
26185
26186
26187 { echo "$as_me:$LINENO: checking for Python support" >&5
26188 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26189
26190 # Check whether --with-python was given.
26191 if test "${with_python+set}" = set; then
26192   withval=$with_python;
26193        PYTHON_INCDIR=
26194        PYTHON_LIBS=
26195        if test "$withval" != "no"; then
26196           if test "$withval" = "yes"; then
26197              if test -e /usr/bin/python-config ; then
26198                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26199                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26200              else
26201                 for python_root in /usr /usr/local /usr/sfw; do
26202                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26203                       if test -f $python_root/include/${ver}/Python.h; then
26204                          PYTHON_INCDIR=-I$python_root/include/${ver}
26205                          if test -d $python_root/lib64/${ver}/config; then
26206                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26207                          else
26208                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26209                          fi
26210                          break
26211                       fi
26212                    done
26213                 done
26214
26215                 if test x$PYTHON_INCDIR = x; then
26216                    if test -f $prefix/include/Python.h; then
26217                       PYTHON_INCDIR=-I$prefix/include
26218                       if test -d $prefix/lib64/config; then
26219                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26220                       else
26221                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26222                       fi
26223                    else
26224                       { echo "$as_me:$LINENO: result: no" >&5
26225 echo "${ECHO_T}no" >&6; }
26226                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26227 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26228    { (exit 1); exit 1; }; }
26229                    fi
26230                 fi
26231              fi
26232           else
26233              if test -e $withval/bin/python-config ; then
26234                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26235                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26236              elif test -f $withval/Python.h; then
26237                 PYTHON_INCDIR=-I$withval
26238                 PYTHON_LIBS="-L$withval/config -lpython"
26239              elif test -f $withval/include/Python.h; then
26240                 PYTHON_INCDIR=-I$withval/include
26241                 if test -d $withval/lib64/config; then
26242                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26243                 else
26244                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26245                 fi
26246              elif test -f $withval/include/python/Python.h; then
26247                 PYTHON_INCDIR=-I$withval/include/python
26248                 if test -d $withval/lib64/python/config; then
26249                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26250                 else
26251                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26252                 fi
26253              else
26254                 { echo "$as_me:$LINENO: result: no" >&5
26255 echo "${ECHO_T}no" >&6; }
26256                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26257 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26258    { (exit 1); exit 1; }; }
26259              fi
26260           fi
26261
26262           cat >>confdefs.h <<\_ACEOF
26263 #define HAVE_PYTHON 1
26264 _ACEOF
26265
26266           { echo "$as_me:$LINENO: result: yes" >&5
26267 echo "${ECHO_T}yes" >&6; }
26268           support_python=yes
26269           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26270 echo "$as_me: checking for more Python libs" >&6;}
26271           saved_LIBS="$LIBS"; LIBS=
26272           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26273 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26274 if test "${ac_cv_search_shm_open+set}" = set; then
26275   echo $ECHO_N "(cached) $ECHO_C" >&6
26276 else
26277   ac_func_search_save_LIBS=$LIBS
26278 cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284
26285 /* Override any GCC internal prototype to avoid an error.
26286    Use char because int might match the return type of a GCC
26287    builtin and then its argument prototype would still apply.  */
26288 #ifdef __cplusplus
26289 extern "C"
26290 #endif
26291 char shm_open ();
26292 int
26293 main ()
26294 {
26295 return shm_open ();
26296   ;
26297   return 0;
26298 }
26299 _ACEOF
26300 for ac_lib in '' rt; do
26301   if test -z "$ac_lib"; then
26302     ac_res="none required"
26303   else
26304     ac_res=-l$ac_lib
26305     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26306   fi
26307   rm -f conftest.$ac_objext conftest$ac_exeext
26308 if { (ac_try="$ac_link"
26309 case "(($ac_try" in
26310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311   *) ac_try_echo=$ac_try;;
26312 esac
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314   (eval "$ac_link") 2>conftest.er1
26315   ac_status=$?
26316   grep -v '^ *+' conftest.er1 >conftest.err
26317   rm -f conftest.er1
26318   cat conftest.err >&5
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); } && {
26321          test -z "$ac_c_werror_flag" ||
26322          test ! -s conftest.err
26323        } && test -s conftest$ac_exeext &&
26324        $as_test_x conftest$ac_exeext; then
26325   ac_cv_search_shm_open=$ac_res
26326 else
26327   echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26329
26330
26331 fi
26332
26333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26334       conftest$ac_exeext
26335   if test "${ac_cv_search_shm_open+set}" = set; then
26336   break
26337 fi
26338 done
26339 if test "${ac_cv_search_shm_open+set}" = set; then
26340   :
26341 else
26342   ac_cv_search_shm_open=no
26343 fi
26344 rm conftest.$ac_ext
26345 LIBS=$ac_func_search_save_LIBS
26346 fi
26347 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26348 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26349 ac_res=$ac_cv_search_shm_open
26350 if test "$ac_res" != no; then
26351   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26352
26353 fi
26354
26355
26356 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26357 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26358 if test "${ac_cv_lib_util_openpty+set}" = set; then
26359   echo $ECHO_N "(cached) $ECHO_C" >&6
26360 else
26361   ac_check_lib_save_LIBS=$LIBS
26362 LIBS="-lutil  $LIBS"
26363 cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h.  */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h.  */
26369
26370 /* Override any GCC internal prototype to avoid an error.
26371    Use char because int might match the return type of a GCC
26372    builtin and then its argument prototype would still apply.  */
26373 #ifdef __cplusplus
26374 extern "C"
26375 #endif
26376 char openpty ();
26377 int
26378 main ()
26379 {
26380 return openpty ();
26381   ;
26382   return 0;
26383 }
26384 _ACEOF
26385 rm -f conftest.$ac_objext conftest$ac_exeext
26386 if { (ac_try="$ac_link"
26387 case "(($ac_try" in
26388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389   *) ac_try_echo=$ac_try;;
26390 esac
26391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26392   (eval "$ac_link") 2>conftest.er1
26393   ac_status=$?
26394   grep -v '^ *+' conftest.er1 >conftest.err
26395   rm -f conftest.er1
26396   cat conftest.err >&5
26397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398   (exit $ac_status); } && {
26399          test -z "$ac_c_werror_flag" ||
26400          test ! -s conftest.err
26401        } && test -s conftest$ac_exeext &&
26402        $as_test_x conftest$ac_exeext; then
26403   ac_cv_lib_util_openpty=yes
26404 else
26405   echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26407
26408         ac_cv_lib_util_openpty=no
26409 fi
26410
26411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26412       conftest$ac_exeext conftest.$ac_ext
26413 LIBS=$ac_check_lib_save_LIBS
26414 fi
26415 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26416 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26417 if test $ac_cv_lib_util_openpty = yes; then
26418   cat >>confdefs.h <<_ACEOF
26419 #define HAVE_LIBUTIL 1
26420 _ACEOF
26421
26422   LIBS="-lutil $LIBS"
26423
26424 fi
26425
26426           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26427           LIBS="$saved_LIBS"
26428        else
26429           { echo "$as_me:$LINENO: result: no" >&5
26430 echo "${ECHO_T}no" >&6; }
26431        fi
26432
26433 else
26434
26435        { echo "$as_me:$LINENO: result: no" >&5
26436 echo "${ECHO_T}no" >&6; }
26437
26438
26439 fi
26440
26441
26442
26443
26444 { echo "$as_me:$LINENO: checking for socket" >&5
26445 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26446 if test "${ac_cv_func_socket+set}" = set; then
26447   echo $ECHO_N "(cached) $ECHO_C" >&6
26448 else
26449   cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h.  */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h.  */
26455 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26457 #define socket innocuous_socket
26458
26459 /* System header to define __stub macros and hopefully few prototypes,
26460     which can conflict with char socket (); below.
26461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26462     <limits.h> exists even on freestanding compilers.  */
26463
26464 #ifdef __STDC__
26465 # include <limits.h>
26466 #else
26467 # include <assert.h>
26468 #endif
26469
26470 #undef socket
26471
26472 /* Override any GCC internal prototype to avoid an error.
26473    Use char because int might match the return type of a GCC
26474    builtin and then its argument prototype would still apply.  */
26475 #ifdef __cplusplus
26476 extern "C"
26477 #endif
26478 char socket ();
26479 /* The GNU C library defines this for functions which it implements
26480     to always fail with ENOSYS.  Some functions are actually named
26481     something starting with __ and the normal name is an alias.  */
26482 #if defined __stub_socket || defined __stub___socket
26483 choke me
26484 #endif
26485
26486 int
26487 main ()
26488 {
26489 return socket ();
26490   ;
26491   return 0;
26492 }
26493 _ACEOF
26494 rm -f conftest.$ac_objext conftest$ac_exeext
26495 if { (ac_try="$ac_link"
26496 case "(($ac_try" in
26497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498   *) ac_try_echo=$ac_try;;
26499 esac
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501   (eval "$ac_link") 2>conftest.er1
26502   ac_status=$?
26503   grep -v '^ *+' conftest.er1 >conftest.err
26504   rm -f conftest.er1
26505   cat conftest.err >&5
26506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507   (exit $ac_status); } && {
26508          test -z "$ac_c_werror_flag" ||
26509          test ! -s conftest.err
26510        } && test -s conftest$ac_exeext &&
26511        $as_test_x conftest$ac_exeext; then
26512   ac_cv_func_socket=yes
26513 else
26514   echo "$as_me: failed program was:" >&5
26515 sed 's/^/| /' conftest.$ac_ext >&5
26516
26517         ac_cv_func_socket=no
26518 fi
26519
26520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26521       conftest$ac_exeext conftest.$ac_ext
26522 fi
26523 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26524 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26525 if test $ac_cv_func_socket = yes; then
26526   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26527 echo "${ECHO_T}using libc's socket" >&6; }
26528 else
26529
26530 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26531 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26532 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26533   echo $ECHO_N "(cached) $ECHO_C" >&6
26534 else
26535   ac_check_lib_save_LIBS=$LIBS
26536 LIBS="-lxnet  $LIBS"
26537 cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h.  */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h.  */
26543
26544 /* Override any GCC internal prototype to avoid an error.
26545    Use char because int might match the return type of a GCC
26546    builtin and then its argument prototype would still apply.  */
26547 #ifdef __cplusplus
26548 extern "C"
26549 #endif
26550 char socket ();
26551 int
26552 main ()
26553 {
26554 return socket ();
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 rm -f conftest.$ac_objext conftest$ac_exeext
26560 if { (ac_try="$ac_link"
26561 case "(($ac_try" in
26562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563   *) ac_try_echo=$ac_try;;
26564 esac
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566   (eval "$ac_link") 2>conftest.er1
26567   ac_status=$?
26568   grep -v '^ *+' conftest.er1 >conftest.err
26569   rm -f conftest.er1
26570   cat conftest.err >&5
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); } && {
26573          test -z "$ac_c_werror_flag" ||
26574          test ! -s conftest.err
26575        } && test -s conftest$ac_exeext &&
26576        $as_test_x conftest$ac_exeext; then
26577   ac_cv_lib_xnet_socket=yes
26578 else
26579   echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26581
26582         ac_cv_lib_xnet_socket=no
26583 fi
26584
26585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26586       conftest$ac_exeext conftest.$ac_ext
26587 LIBS=$ac_check_lib_save_LIBS
26588 fi
26589 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26590 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26591 if test $ac_cv_lib_xnet_socket = yes; then
26592   cat >>confdefs.h <<_ACEOF
26593 #define HAVE_LIBXNET 1
26594 _ACEOF
26595
26596   LIBS="-lxnet $LIBS"
26597
26598 fi
26599
26600
26601 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26602 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26603 if test "${ac_cv_lib_socket_socket+set}" = set; then
26604   echo $ECHO_N "(cached) $ECHO_C" >&6
26605 else
26606   ac_check_lib_save_LIBS=$LIBS
26607 LIBS="-lsocket  $LIBS"
26608 cat >conftest.$ac_ext <<_ACEOF
26609 /* confdefs.h.  */
26610 _ACEOF
26611 cat confdefs.h >>conftest.$ac_ext
26612 cat >>conftest.$ac_ext <<_ACEOF
26613 /* end confdefs.h.  */
26614
26615 /* Override any GCC internal prototype to avoid an error.
26616    Use char because int might match the return type of a GCC
26617    builtin and then its argument prototype would still apply.  */
26618 #ifdef __cplusplus
26619 extern "C"
26620 #endif
26621 char socket ();
26622 int
26623 main ()
26624 {
26625 return socket ();
26626   ;
26627   return 0;
26628 }
26629 _ACEOF
26630 rm -f conftest.$ac_objext conftest$ac_exeext
26631 if { (ac_try="$ac_link"
26632 case "(($ac_try" in
26633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634   *) ac_try_echo=$ac_try;;
26635 esac
26636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637   (eval "$ac_link") 2>conftest.er1
26638   ac_status=$?
26639   grep -v '^ *+' conftest.er1 >conftest.err
26640   rm -f conftest.er1
26641   cat conftest.err >&5
26642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643   (exit $ac_status); } && {
26644          test -z "$ac_c_werror_flag" ||
26645          test ! -s conftest.err
26646        } && test -s conftest$ac_exeext &&
26647        $as_test_x conftest$ac_exeext; then
26648   ac_cv_lib_socket_socket=yes
26649 else
26650   echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26652
26653         ac_cv_lib_socket_socket=no
26654 fi
26655
26656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26657       conftest$ac_exeext conftest.$ac_ext
26658 LIBS=$ac_check_lib_save_LIBS
26659 fi
26660 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26661 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26662 if test $ac_cv_lib_socket_socket = yes; then
26663   cat >>confdefs.h <<_ACEOF
26664 #define HAVE_LIBSOCKET 1
26665 _ACEOF
26666
26667   LIBS="-lsocket $LIBS"
26668
26669 fi
26670
26671
26672 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26673 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26674 if test "${ac_cv_lib_inet_socket+set}" = set; then
26675   echo $ECHO_N "(cached) $ECHO_C" >&6
26676 else
26677   ac_check_lib_save_LIBS=$LIBS
26678 LIBS="-linet  $LIBS"
26679 cat >conftest.$ac_ext <<_ACEOF
26680 /* confdefs.h.  */
26681 _ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h.  */
26685
26686 /* Override any GCC internal prototype to avoid an error.
26687    Use char because int might match the return type of a GCC
26688    builtin and then its argument prototype would still apply.  */
26689 #ifdef __cplusplus
26690 extern "C"
26691 #endif
26692 char socket ();
26693 int
26694 main ()
26695 {
26696 return socket ();
26697   ;
26698   return 0;
26699 }
26700 _ACEOF
26701 rm -f conftest.$ac_objext conftest$ac_exeext
26702 if { (ac_try="$ac_link"
26703 case "(($ac_try" in
26704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705   *) ac_try_echo=$ac_try;;
26706 esac
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708   (eval "$ac_link") 2>conftest.er1
26709   ac_status=$?
26710   grep -v '^ *+' conftest.er1 >conftest.err
26711   rm -f conftest.er1
26712   cat conftest.err >&5
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); } && {
26715          test -z "$ac_c_werror_flag" ||
26716          test ! -s conftest.err
26717        } && test -s conftest$ac_exeext &&
26718        $as_test_x conftest$ac_exeext; then
26719   ac_cv_lib_inet_socket=yes
26720 else
26721   echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26723
26724         ac_cv_lib_inet_socket=no
26725 fi
26726
26727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26728       conftest$ac_exeext conftest.$ac_ext
26729 LIBS=$ac_check_lib_save_LIBS
26730 fi
26731 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26732 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26733 if test $ac_cv_lib_inet_socket = yes; then
26734   cat >>confdefs.h <<_ACEOF
26735 #define HAVE_LIBINET 1
26736 _ACEOF
26737
26738   LIBS="-linet $LIBS"
26739
26740 fi
26741
26742 fi
26743
26744
26745 TCPW_MSG="no"
26746 WRAPLIBS=""
26747
26748 # Check whether --with-tcp-wrappers was given.
26749 if test "${with_tcp_wrappers+set}" = set; then
26750   withval=$with_tcp_wrappers;
26751        if test "x$withval" != "xno" ; then
26752           saved_LIBS="$LIBS"
26753           LIBS="$saved_LIBS -lwrap"
26754           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26755 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26756 if test "${ac_cv_search_nanosleep+set}" = set; then
26757   echo $ECHO_N "(cached) $ECHO_C" >&6
26758 else
26759   ac_func_search_save_LIBS=$LIBS
26760 cat >conftest.$ac_ext <<_ACEOF
26761 /* confdefs.h.  */
26762 _ACEOF
26763 cat confdefs.h >>conftest.$ac_ext
26764 cat >>conftest.$ac_ext <<_ACEOF
26765 /* end confdefs.h.  */
26766
26767 /* Override any GCC internal prototype to avoid an error.
26768    Use char because int might match the return type of a GCC
26769    builtin and then its argument prototype would still apply.  */
26770 #ifdef __cplusplus
26771 extern "C"
26772 #endif
26773 char nanosleep ();
26774 int
26775 main ()
26776 {
26777 return nanosleep ();
26778   ;
26779   return 0;
26780 }
26781 _ACEOF
26782 for ac_lib in '' rt; do
26783   if test -z "$ac_lib"; then
26784     ac_res="none required"
26785   else
26786     ac_res=-l$ac_lib
26787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26788   fi
26789   rm -f conftest.$ac_objext conftest$ac_exeext
26790 if { (ac_try="$ac_link"
26791 case "(($ac_try" in
26792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793   *) ac_try_echo=$ac_try;;
26794 esac
26795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26796   (eval "$ac_link") 2>conftest.er1
26797   ac_status=$?
26798   grep -v '^ *+' conftest.er1 >conftest.err
26799   rm -f conftest.er1
26800   cat conftest.err >&5
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); } && {
26803          test -z "$ac_c_werror_flag" ||
26804          test ! -s conftest.err
26805        } && test -s conftest$ac_exeext &&
26806        $as_test_x conftest$ac_exeext; then
26807   ac_cv_search_nanosleep=$ac_res
26808 else
26809   echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26811
26812
26813 fi
26814
26815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26816       conftest$ac_exeext
26817   if test "${ac_cv_search_nanosleep+set}" = set; then
26818   break
26819 fi
26820 done
26821 if test "${ac_cv_search_nanosleep+set}" = set; then
26822   :
26823 else
26824   ac_cv_search_nanosleep=no
26825 fi
26826 rm conftest.$ac_ext
26827 LIBS=$ac_func_search_save_LIBS
26828 fi
26829 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26830 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26831 ac_res=$ac_cv_search_nanosleep
26832 if test "$ac_res" != no; then
26833   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26834
26835 fi
26836
26837           { echo "$as_me:$LINENO: checking for libwrap" >&5
26838 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26839           cat >conftest.$ac_ext <<_ACEOF
26840 /* confdefs.h.  */
26841 _ACEOF
26842 cat confdefs.h >>conftest.$ac_ext
26843 cat >>conftest.$ac_ext <<_ACEOF
26844 /* end confdefs.h.  */
26845
26846                #include <sys/types.h>
26847                #include <tcpd.h>
26848                int deny_severity = 0;
26849                int allow_severity = 0;
26850                struct request_info *req;
26851
26852 int
26853 main ()
26854 {
26855
26856                 hosts_access(req);
26857
26858   ;
26859   return 0;
26860 }
26861 _ACEOF
26862 rm -f conftest.$ac_objext conftest$ac_exeext
26863 if { (ac_try="$ac_link"
26864 case "(($ac_try" in
26865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26866   *) ac_try_echo=$ac_try;;
26867 esac
26868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26869   (eval "$ac_link") 2>conftest.er1
26870   ac_status=$?
26871   grep -v '^ *+' conftest.er1 >conftest.err
26872   rm -f conftest.er1
26873   cat conftest.err >&5
26874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875   (exit $ac_status); } && {
26876          test -z "$ac_c_werror_flag" ||
26877          test ! -s conftest.err
26878        } && test -s conftest$ac_exeext &&
26879        $as_test_x conftest$ac_exeext; then
26880
26881                  { echo "$as_me:$LINENO: result: yes" >&5
26882 echo "${ECHO_T}yes" >&6; }
26883
26884 cat >>confdefs.h <<\_ACEOF
26885 #define HAVE_LIBWRAP 1
26886 _ACEOF
26887
26888                  TCPW_MSG="yes"
26889                  LIBS="$saved_LIBS"
26890                  WRAPLIBS="-lwrap"
26891
26892 else
26893   echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26895
26896
26897                  LIBS="$saved_LIBS -lwrap -lnsl"
26898                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26899                  cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h.  */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h.  */
26905
26906                        #include <sys/types.h>
26907                        #include <tcpd.h>
26908                        int deny_severity = 0;
26909                        int allow_severity = 0;
26910                        struct request_info *req;
26911
26912 int
26913 main ()
26914 {
26915
26916                        hosts_access(req);
26917
26918   ;
26919   return 0;
26920 }
26921 _ACEOF
26922 rm -f conftest.$ac_objext conftest$ac_exeext
26923 if { (ac_try="$ac_link"
26924 case "(($ac_try" in
26925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926   *) ac_try_echo=$ac_try;;
26927 esac
26928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26929   (eval "$ac_link") 2>conftest.er1
26930   ac_status=$?
26931   grep -v '^ *+' conftest.er1 >conftest.err
26932   rm -f conftest.er1
26933   cat conftest.err >&5
26934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935   (exit $ac_status); } && {
26936          test -z "$ac_c_werror_flag" ||
26937          test ! -s conftest.err
26938        } && test -s conftest$ac_exeext &&
26939        $as_test_x conftest$ac_exeext; then
26940
26941                       { echo "$as_me:$LINENO: result: yes" >&5
26942 echo "${ECHO_T}yes" >&6; }
26943
26944 cat >>confdefs.h <<\_ACEOF
26945 #define HAVE_LIBWRAP 1
26946 _ACEOF
26947
26948                       TCPW_MSG="yes"
26949                       LIBS="$saved_LIBS"
26950                       WRAPLIBS="-lwrap"
26951
26952 else
26953   echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26955
26956
26957                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26958 echo "$as_me: error: *** libwrap missing" >&2;}
26959    { (exit 1); exit 1; }; }
26960
26961
26962 fi
26963
26964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26965       conftest$ac_exeext conftest.$ac_ext
26966
26967
26968 fi
26969
26970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26971       conftest$ac_exeext conftest.$ac_ext
26972        fi
26973
26974
26975 fi
26976
26977
26978 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26979 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26980
26981 # Check whether --with-openssl was given.
26982 if test "${with_openssl+set}" = set; then
26983   withval=$with_openssl;
26984         with_openssl_directory=${withval}
26985
26986
26987 fi
26988
26989
26990 if test "x$with_openssl_directory" != "xno"; then
26991    OPENSSL_LIBS="-lssl -lcrypto"
26992    OPENSSL_INC=""
26993
26994    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26995       #
26996       # Make sure the $with_openssl_directory also makes sense
26997       #
26998       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26999          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27000          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27001       fi
27002    fi
27003
27004    saved_LIBS="${LIBS}"
27005    saved_CFLAGS="${CFLAGS}"
27006    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27007    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27008
27009    cat >conftest.$ac_ext <<_ACEOF
27010 /* confdefs.h.  */
27011 _ACEOF
27012 cat confdefs.h >>conftest.$ac_ext
27013 cat >>conftest.$ac_ext <<_ACEOF
27014 /* end confdefs.h.  */
27015
27016           #include <openssl/ssl.h>
27017
27018 int
27019 main ()
27020 {
27021
27022            CRYPTO_set_id_callback(NULL);
27023
27024   ;
27025   return 0;
27026 }
27027 _ACEOF
27028 rm -f conftest.$ac_objext conftest$ac_exeext
27029 if { (ac_try="$ac_link"
27030 case "(($ac_try" in
27031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032   *) ac_try_echo=$ac_try;;
27033 esac
27034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035   (eval "$ac_link") 2>conftest.er1
27036   ac_status=$?
27037   grep -v '^ *+' conftest.er1 >conftest.err
27038   rm -f conftest.er1
27039   cat conftest.err >&5
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); } && {
27042          test -z "$ac_c_werror_flag" ||
27043          test ! -s conftest.err
27044        } && test -s conftest$ac_exeext &&
27045        $as_test_x conftest$ac_exeext; then
27046
27047           support_tls="yes"
27048           support_crypto="yes"
27049
27050 else
27051   echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27053
27054
27055           support_tls="no"
27056           support_crypto="no"
27057
27058
27059 fi
27060
27061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27062       conftest$ac_exeext conftest.$ac_ext
27063
27064    cat >conftest.$ac_ext <<_ACEOF
27065 /* confdefs.h.  */
27066 _ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h.  */
27070
27071           #include <openssl/evp.h>
27072
27073 int
27074 main ()
27075 {
27076
27077           EVP_sha512();
27078
27079   ;
27080   return 0;
27081 }
27082 _ACEOF
27083 rm -f conftest.$ac_objext conftest$ac_exeext
27084 if { (ac_try="$ac_link"
27085 case "(($ac_try" in
27086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087   *) ac_try_echo=$ac_try;;
27088 esac
27089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27090   (eval "$ac_link") 2>conftest.er1
27091   ac_status=$?
27092   grep -v '^ *+' conftest.er1 >conftest.err
27093   rm -f conftest.er1
27094   cat conftest.err >&5
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); } && {
27097          test -z "$ac_c_werror_flag" ||
27098          test ! -s conftest.err
27099        } && test -s conftest$ac_exeext &&
27100        $as_test_x conftest$ac_exeext; then
27101
27102           ac_cv_openssl_sha2="yes"
27103
27104 else
27105   echo "$as_me: failed program was:" >&5
27106 sed 's/^/| /' conftest.$ac_ext >&5
27107
27108
27109           ac_cv_openssl_sha2="no"
27110
27111
27112 fi
27113
27114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27115       conftest$ac_exeext conftest.$ac_ext
27116
27117                cat >conftest.$ac_ext <<_ACEOF
27118 /* confdefs.h.  */
27119 _ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h.  */
27123
27124           #include <openssl/evp.h>
27125
27126 int
27127 main ()
27128 {
27129
27130           EVP_aes_192_cbc();
27131
27132   ;
27133   return 0;
27134 }
27135 _ACEOF
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (ac_try="$ac_link"
27138 case "(($ac_try" in
27139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140   *) ac_try_echo=$ac_try;;
27141 esac
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143   (eval "$ac_link") 2>conftest.er1
27144   ac_status=$?
27145   grep -v '^ *+' conftest.er1 >conftest.err
27146   rm -f conftest.er1
27147   cat conftest.err >&5
27148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149   (exit $ac_status); } && {
27150          test -z "$ac_c_werror_flag" ||
27151          test ! -s conftest.err
27152        } && test -s conftest$ac_exeext &&
27153        $as_test_x conftest$ac_exeext; then
27154
27155           ac_cv_openssl_export="no"
27156
27157 else
27158   echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27160
27161
27162           ac_cv_openssl_export="yes"
27163
27164
27165 fi
27166
27167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27168       conftest$ac_exeext conftest.$ac_ext
27169
27170    LIBS="${saved_LIBS}"
27171    CFLAGS="${saved_CFLAGS}"
27172
27173    if test "$support_tls" = "yes"; then
27174
27175 cat >>confdefs.h <<\_ACEOF
27176 #define HAVE_OPENSSL 1
27177 _ACEOF
27178
27179
27180 cat >>confdefs.h <<\_ACEOF
27181 #define HAVE_TLS 1
27182 _ACEOF
27183
27184
27185 cat >>confdefs.h <<\_ACEOF
27186 #define HAVE_CRYPTO 1
27187 _ACEOF
27188
27189    fi
27190
27191    if test "$ac_cv_openssl_sha2" = "yes"; then
27192
27193 cat >>confdefs.h <<\_ACEOF
27194 #define HAVE_SHA2 1
27195 _ACEOF
27196
27197    fi
27198
27199    if test "$ac_cv_openssl_export" = "yes"; then
27200
27201 cat >>confdefs.h <<\_ACEOF
27202 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27203 _ACEOF
27204
27205    fi
27206 else
27207    support_tls="no"
27208    support_crypto="no"
27209    OPENSSL_LIBS=""
27210    OPENSSL_INC=""
27211 fi
27212
27213 if test "$support_tls" = "no"; then
27214    OPENSSL_LIBS=""
27215    OPENSSL_INC=""
27216 fi
27217 if test "$support_crypto" = "no"; then
27218    OPENSSL_LIBS=""
27219    OPENSSL_INC=""
27220 fi
27221
27222 { echo "$as_me:$LINENO: result: $support_tls" >&5
27223 echo "${ECHO_T}$support_tls" >&6; }
27224
27225
27226
27227 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27228 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27229 if test "${ac_cv_search_dlopen+set}" = set; then
27230   echo $ECHO_N "(cached) $ECHO_C" >&6
27231 else
27232   ac_func_search_save_LIBS=$LIBS
27233 cat >conftest.$ac_ext <<_ACEOF
27234 /* confdefs.h.  */
27235 _ACEOF
27236 cat confdefs.h >>conftest.$ac_ext
27237 cat >>conftest.$ac_ext <<_ACEOF
27238 /* end confdefs.h.  */
27239
27240 /* Override any GCC internal prototype to avoid an error.
27241    Use char because int might match the return type of a GCC
27242    builtin and then its argument prototype would still apply.  */
27243 #ifdef __cplusplus
27244 extern "C"
27245 #endif
27246 char dlopen ();
27247 int
27248 main ()
27249 {
27250 return dlopen ();
27251   ;
27252   return 0;
27253 }
27254 _ACEOF
27255 for ac_lib in '' dl; do
27256   if test -z "$ac_lib"; then
27257     ac_res="none required"
27258   else
27259     ac_res=-l$ac_lib
27260     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27261   fi
27262   rm -f conftest.$ac_objext conftest$ac_exeext
27263 if { (ac_try="$ac_link"
27264 case "(($ac_try" in
27265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27266   *) ac_try_echo=$ac_try;;
27267 esac
27268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27269   (eval "$ac_link") 2>conftest.er1
27270   ac_status=$?
27271   grep -v '^ *+' conftest.er1 >conftest.err
27272   rm -f conftest.er1
27273   cat conftest.err >&5
27274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275   (exit $ac_status); } && {
27276          test -z "$ac_c_werror_flag" ||
27277          test ! -s conftest.err
27278        } && test -s conftest$ac_exeext &&
27279        $as_test_x conftest$ac_exeext; then
27280   ac_cv_search_dlopen=$ac_res
27281 else
27282   echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27284
27285
27286 fi
27287
27288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27289       conftest$ac_exeext
27290   if test "${ac_cv_search_dlopen+set}" = set; then
27291   break
27292 fi
27293 done
27294 if test "${ac_cv_search_dlopen+set}" = set; then
27295   :
27296 else
27297   ac_cv_search_dlopen=no
27298 fi
27299 rm conftest.$ac_ext
27300 LIBS=$ac_func_search_save_LIBS
27301 fi
27302 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27303 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27304 ac_res=$ac_cv_search_dlopen
27305 if test "$ac_res" != no; then
27306   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27307
27308 fi
27309
27310
27311 working_dir=`eval echo ${prefix}/var/bacula/working`
27312
27313 # Check whether --with-working-dir was given.
27314 if test "${with_working_dir+set}" = set; then
27315   withval=$with_working_dir;
27316        if test "x$withval" != "xno" ; then
27317          working_dir=$withval
27318        fi
27319
27320
27321 fi
27322
27323
27324
27325
27326 archivedir=/tmp
27327
27328 # Check whether --with-archivedir was given.
27329 if test "${with_archivedir+set}" = set; then
27330   withval=$with_archivedir;
27331        if test "x$withval" != "xno" ; then
27332           archivedir=$withval
27333        fi
27334
27335
27336 fi
27337
27338
27339
27340
27341 basename=`hostname`
27342
27343 # Check whether --with-basename was given.
27344 if test "${with_basename+set}" = set; then
27345   withval=$with_basename;
27346        if test "x$withval" != "xno" ; then
27347           basename=$withval
27348        fi
27349
27350
27351 fi
27352
27353
27354
27355
27356 hostname=`uname -n | cut -d '.' -f 1`
27357 if test x${hostname} = x ; then
27358   hostname="localhost"
27359 fi
27360
27361 # Check whether --with-hostname was given.
27362 if test "${with_hostname+set}" = set; then
27363   withval=$with_hostname;
27364        if test "x$withval" != "xno" ; then
27365          hostname=$withval
27366        fi
27367
27368
27369 fi
27370
27371
27372
27373
27374
27375 scriptdir=`eval echo ${sysconfdir}`
27376
27377 # Check whether --with-scriptdir was given.
27378 if test "${with_scriptdir+set}" = set; then
27379   withval=$with_scriptdir;
27380        if test "x$withval" != "xno" ; then
27381           scriptdir=$withval
27382        fi
27383
27384
27385 fi
27386
27387
27388
27389
27390
27391 bsrdir=/tmp
27392
27393 # Check whether --with-bsrdir was given.
27394 if test "${with_bsrdir+set}" = set; then
27395   withval=$with_bsrdir;
27396        if test "x$withval" != "xno" ; then
27397           bsrdir=$withval
27398        fi
27399
27400
27401 fi
27402
27403
27404
27405
27406 logdir=/tmp
27407
27408 # Check whether --with-logdir was given.
27409 if test "${with_logdir+set}" = set; then
27410   withval=$with_logdir;
27411        if test "x$withval" != "xno" ; then
27412           logdir=$withval
27413        fi
27414
27415
27416 fi
27417
27418
27419
27420
27421
27422 # ------------------------------------------
27423 # Where to place plugindir (plugin files)
27424 # ------------------------------------------
27425 plugindir=`eval echo ${libdir}`
27426
27427 # Check whether --with-plugindir was given.
27428 if test "${with_plugindir+set}" = set; then
27429   withval=$with_plugindir;
27430        if test "x$withval" != "xno" ; then
27431           plugindir=$withval
27432        fi
27433
27434
27435 fi
27436
27437
27438
27439
27440 dump_email=root@localhost
27441
27442 # Check whether --with-dump-email was given.
27443 if test "${with_dump_email+set}" = set; then
27444   withval=$with_dump_email;
27445        if test "x$withval" != "xno" ; then
27446           dump_email=$withval
27447        fi
27448
27449
27450 fi
27451
27452
27453
27454
27455 job_email=root@localhost
27456
27457 # Check whether --with-job-email was given.
27458 if test "${with_job_email+set}" = set; then
27459   withval=$with_job_email;
27460        if test "x$withval" != "xno" ; then
27461           job_email=$withval
27462        fi
27463
27464
27465 fi
27466
27467
27468
27469
27470 smtp_host=localhost
27471
27472 # Check whether --with-smtp_host was given.
27473 if test "${with_smtp_host+set}" = set; then
27474   withval=$with_smtp_host;
27475        if test "x$withval" != "xno" ; then
27476           smtp_host=$withval
27477        fi
27478
27479
27480 fi
27481
27482
27483
27484
27485 piddir=/var/run
27486
27487 # Check whether --with-pid-dir was given.
27488 if test "${with_pid_dir+set}" = set; then
27489   withval=$with_pid_dir;
27490        if test "x$withval" != "xno" ; then
27491           piddir=$withval
27492        fi
27493
27494
27495 fi
27496
27497
27498 cat >>confdefs.h <<_ACEOF
27499 #define _PATH_BACULA_PIDDIR "$piddir"
27500 _ACEOF
27501
27502
27503
27504 subsysdir=/var/run/subsys
27505 if test -d /var/run/subsys; then
27506    subsysdir=/var/run/subsys
27507 elif test -d /var/lock/subsys; then
27508    subsysdir=/var/lock/subsys
27509 else
27510    subsysdir=/var/run/subsys
27511 fi
27512
27513 # Check whether --with-subsys-dir was given.
27514 if test "${with_subsys_dir+set}" = set; then
27515   withval=$with_subsys_dir;
27516        if test "x$withval" != "xno" ; then
27517           subsysdir=$withval
27518        fi
27519
27520
27521 fi
27522
27523
27524
27525
27526 baseport=9101
27527
27528 # Check whether --with-baseport was given.
27529 if test "${with_baseport+set}" = set; then
27530   withval=$with_baseport;
27531        if test "x$withval" != "xno" ; then
27532           baseport=$withval
27533        fi
27534
27535
27536 fi
27537
27538
27539
27540 dir_port=`expr $baseport`
27541 fd_port=`expr $baseport + 1`
27542 sd_port=`expr $fd_port + 1`
27543
27544
27545
27546
27547
27548 dir_password=
27549
27550 # Check whether --with-dir-password was given.
27551 if test "${with_dir_password+set}" = set; then
27552   withval=$with_dir_password;
27553        if test "x$withval" != "xno" ; then
27554           dir_password=$withval
27555        fi
27556
27557
27558 fi
27559
27560
27561 if test "x$dir_password" = "x" ; then
27562    if test "x$OPENSSL" = "xnone" ; then
27563       key=`autoconf/randpass 33`
27564    else
27565       key=`openssl rand -base64 33`
27566    fi
27567    dir_password=$key
27568 fi
27569
27570 fd_password=
27571
27572 # Check whether --with-fd-password was given.
27573 if test "${with_fd_password+set}" = set; then
27574   withval=$with_fd_password;
27575        if test "x$withval" != "xno" ; then
27576           fd_password=$withval
27577        fi
27578
27579
27580 fi
27581
27582
27583 if test "x$fd_password" = "x" ; then
27584    if test "x$OPENSSL" = "xnone" ; then
27585       key=`autoconf/randpass 37`
27586    else
27587       key=`openssl rand -base64 33`
27588    fi
27589    fd_password=$key
27590 fi
27591
27592 sd_password=
27593
27594 # Check whether --with-sd-password was given.
27595 if test "${with_sd_password+set}" = set; then
27596   withval=$with_sd_password;
27597        if test "x$withval" != "xno" ; then
27598           sd_password=$withval
27599        fi
27600
27601
27602 fi
27603
27604
27605 if test "x$sd_password" = "x" ; then
27606    if test "x$OPENSSL" = "xnone" ; then
27607       key=`autoconf/randpass 41`
27608    else
27609       key=`openssl rand -base64 33`
27610    fi
27611    sd_password=$key
27612 fi
27613
27614 mon_dir_password=
27615
27616 # Check whether --with-mon-dir-password was given.
27617 if test "${with_mon_dir_password+set}" = set; then
27618   withval=$with_mon_dir_password;
27619        if test "x$withval" != "xno" ; then
27620           mon_dir_password=$withval
27621        fi
27622
27623
27624 fi
27625
27626
27627 if test "x$mon_dir_password" = "x" ; then
27628    if test "x$OPENSSL" = "xnone" ; then
27629       key=`autoconf/randpass 33`
27630    else
27631       key=`openssl rand -base64 33`
27632    fi
27633    mon_dir_password=$key
27634 fi
27635
27636 mon_fd_password=
27637
27638 # Check whether --with-mon-fd-password was given.
27639 if test "${with_mon_fd_password+set}" = set; then
27640   withval=$with_mon_fd_password;
27641        if test "x$withval" != "xno" ; then
27642           mon_fd_password=$withval
27643        fi
27644
27645
27646 fi
27647
27648
27649 if test "x$mon_fd_password" = "x" ; then
27650    if test "x$OPENSSL" = "xnone" ; then
27651       key=`autoconf/randpass 37`
27652    else
27653       key=`openssl rand -base64 33`
27654    fi
27655    mon_fd_password=$key
27656 fi
27657
27658 mon_sd_password=
27659
27660 # Check whether --with-mon-sd-password was given.
27661 if test "${with_mon_sd_password+set}" = set; then
27662   withval=$with_mon_sd_password;
27663        if test "x$withval" != "xno" ; then
27664           mon_sd_password=$withval
27665        fi
27666
27667
27668 fi
27669
27670
27671 if test "x$mon_sd_password" = "x" ; then
27672    if test "x$OPENSSL" = "xnone" ; then
27673       key=`autoconf/randpass 41`
27674    else
27675       key=`openssl rand -base64 33`
27676    fi
27677    mon_sd_password=$key
27678 fi
27679
27680
27681
27682
27683
27684
27685
27686
27687 db_name=bacula
27688
27689 # Check whether --with-db_name was given.
27690 if test "${with_db_name+set}" = set; then
27691   withval=$with_db_name;
27692        if test "x$withval" != "x" ; then
27693           db_name=$withval
27694        fi
27695
27696
27697 fi
27698
27699
27700
27701 db_user=bacula
27702
27703 # Check whether --with-db_user was given.
27704 if test "${with_db_user+set}" = set; then
27705   withval=$with_db_user;
27706        if test "x$withval" != "x" ; then
27707           db_user=$withval
27708        fi
27709
27710
27711 fi
27712
27713
27714
27715 db_password=
27716
27717 # Check whether --with-db_password was given.
27718 if test "${with_db_password+set}" = set; then
27719   withval=$with_db_password;
27720        if test "x$withval" != "x" ; then
27721           db_password=$withval
27722        fi
27723
27724
27725 fi
27726
27727
27728
27729 db_port=" "
27730
27731 # Check whether --with-db_port was given.
27732 if test "${with_db_port+set}" = set; then
27733   withval=$with_db_port;
27734        if test "x$withval" != "x" ; then
27735           db_port=$withval
27736        fi
27737
27738
27739 fi
27740
27741
27742
27743 #
27744 # Handle users and groups for each daemon
27745 #
27746 dir_user=
27747
27748 # Check whether --with-dir_user was given.
27749 if test "${with_dir_user+set}" = set; then
27750   withval=$with_dir_user;
27751        if test "x$withval" != "x" ; then
27752            dir_user=$withval
27753        fi
27754
27755
27756 fi
27757
27758
27759 dir_group=
27760
27761 # Check whether --with-dir_group was given.
27762 if test "${with_dir_group+set}" = set; then
27763   withval=$with_dir_group;
27764        if test "x$withval" != "x" ; then
27765           dir_group=$withval
27766        fi
27767
27768
27769 fi
27770
27771
27772 sd_user=
27773
27774 # Check whether --with-sd_user was given.
27775 if test "${with_sd_user+set}" = set; then
27776   withval=$with_sd_user;
27777        if test "x$withval" != "x" ; then
27778           sd_user=$withval
27779        fi
27780
27781
27782 fi
27783
27784
27785 sd_group=
27786
27787 # Check whether --with-sd_group was given.
27788 if test "${with_sd_group+set}" = set; then
27789   withval=$with_sd_group;
27790        if test "x$withval" != "x" ; then
27791           sd_group=$withval
27792        fi
27793
27794
27795 fi
27796
27797
27798 fd_user=
27799
27800 # Check whether --with-fd_user was given.
27801 if test "${with_fd_user+set}" = set; then
27802   withval=$with_fd_user;
27803        if test "x$withval" != "x" ; then
27804           fd_user=$withval
27805        fi
27806
27807
27808 fi
27809
27810
27811 fd_group=
27812
27813 # Check whether --with-fd_group was given.
27814 if test "${with_fd_group+set}" = set; then
27815   withval=$with_fd_group;
27816        if test "x$withval" != "x" ; then
27817           fd_group=$withval
27818        fi
27819
27820
27821 fi
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831 SBINPERM=0754
27832
27833 # Check whether --with-sbin-perm was given.
27834 if test "${with_sbin_perm+set}" = set; then
27835   withval=$with_sbin_perm;
27836        if test "x$withval" != "x" ; then
27837           SBINPERM=$withval
27838        fi
27839
27840
27841 fi
27842
27843
27844
27845
27846 SQL_LIB=
27847
27848 db_found=no
27849 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27850 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27851
27852 # Check whether --with-postgresql was given.
27853 if test "${with_postgresql+set}" = set; then
27854   withval=$with_postgresql;
27855   if test "$withval" != "no"; then
27856       if test "$db_found" = "yes"; then
27857           { echo "$as_me:$LINENO: result: error" >&5
27858 echo "${ECHO_T}error" >&6; }
27859           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27860 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27861    { (exit 1); exit 1; }; };
27862       fi
27863       if test "$withval" = "yes"; then
27864           PG_CONFIG=`which pg_config`
27865           if test -n "$PG_CONFIG";then
27866               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27867               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27868               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27869           elif test -f /usr/local/include/libpq-fe.h; then
27870               POSTGRESQL_INCDIR=/usr/local/include
27871               if test -d /usr/local/lib64; then
27872                  POSTGRESQL_LIBDIR=/usr/local/lib64
27873               else
27874                  POSTGRESQL_LIBDIR=/usr/local/lib
27875               fi
27876               POSTGRESQL_BINDIR=/usr/local/bin
27877           elif test -f /usr/include/libpq-fe.h; then
27878               POSTGRESQL_INCDIR=/usr/include
27879               if test -d /usr/lib64; then
27880                  POSTGRESQL_LIBDIR=/usr/lib64
27881               else
27882                  POSTGRESQL_LIBDIR=/usr/lib
27883               fi
27884               POSTGRESQL_BINDIR=/usr/bin
27885           elif test -f /usr/include/pgsql/libpq-fe.h; then
27886               POSTGRESQL_INCDIR=/usr/include/pgsql
27887               if test -d /usr/lib64/pgsql; then
27888                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27889               else
27890                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27891               fi
27892               POSTGRESQL_BINDIR=/usr/bin
27893           elif test -f /usr/include/postgresql/libpq-fe.h; then
27894               POSTGRESQL_INCDIR=/usr/include/postgresql
27895               if test -d /usr/lib64/postgresql; then
27896                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27897               else
27898                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27899               fi
27900               POSTGRESQL_BINDIR=/usr/bin
27901           else
27902               { echo "$as_me:$LINENO: result: no" >&5
27903 echo "${ECHO_T}no" >&6; }
27904               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27905 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27906    { (exit 1); exit 1; }; }
27907           fi
27908       elif test -f $withval/include/libpq-fe.h; then
27909           POSTGRESQL_INCDIR=$withval/include
27910           POSTGRESQL_LIBDIR=$withval/lib
27911           POSTGRESQL_BINDIR=$withval/bin
27912       elif test -f $withval/include/postgresql/libpq-fe.h; then
27913           POSTGRESQL_INCDIR=$withval/include/postgresql
27914      if test -d $withval/lib64; then
27915          POSTGRESQL_LIBDIR=$withval/lib64
27916      else
27917          POSTGRESQL_LIBDIR=$withval/lib
27918      fi
27919           POSTGRESQL_BINDIR=$withval/bin
27920       else
27921           { echo "$as_me:$LINENO: result: no" >&5
27922 echo "${ECHO_T}no" >&6; }
27923           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27924 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27925    { (exit 1); exit 1; }; }
27926       fi
27927       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27928       { echo "$as_me:$LINENO: checking for crypt" >&5
27929 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27930 if test "${ac_cv_func_crypt+set}" = set; then
27931   echo $ECHO_N "(cached) $ECHO_C" >&6
27932 else
27933   cat >conftest.$ac_ext <<_ACEOF
27934 /* confdefs.h.  */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h.  */
27939 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27941 #define crypt innocuous_crypt
27942
27943 /* System header to define __stub macros and hopefully few prototypes,
27944     which can conflict with char crypt (); below.
27945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27946     <limits.h> exists even on freestanding compilers.  */
27947
27948 #ifdef __STDC__
27949 # include <limits.h>
27950 #else
27951 # include <assert.h>
27952 #endif
27953
27954 #undef crypt
27955
27956 /* Override any GCC internal prototype to avoid an error.
27957    Use char because int might match the return type of a GCC
27958    builtin and then its argument prototype would still apply.  */
27959 #ifdef __cplusplus
27960 extern "C"
27961 #endif
27962 char crypt ();
27963 /* The GNU C library defines this for functions which it implements
27964     to always fail with ENOSYS.  Some functions are actually named
27965     something starting with __ and the normal name is an alias.  */
27966 #if defined __stub_crypt || defined __stub___crypt
27967 choke me
27968 #endif
27969
27970 int
27971 main ()
27972 {
27973 return crypt ();
27974   ;
27975   return 0;
27976 }
27977 _ACEOF
27978 rm -f conftest.$ac_objext conftest$ac_exeext
27979 if { (ac_try="$ac_link"
27980 case "(($ac_try" in
27981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982   *) ac_try_echo=$ac_try;;
27983 esac
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985   (eval "$ac_link") 2>conftest.er1
27986   ac_status=$?
27987   grep -v '^ *+' conftest.er1 >conftest.err
27988   rm -f conftest.er1
27989   cat conftest.err >&5
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); } && {
27992          test -z "$ac_c_werror_flag" ||
27993          test ! -s conftest.err
27994        } && test -s conftest$ac_exeext &&
27995        $as_test_x conftest$ac_exeext; then
27996   ac_cv_func_crypt=yes
27997 else
27998   echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28000
28001         ac_cv_func_crypt=no
28002 fi
28003
28004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28005       conftest$ac_exeext conftest.$ac_ext
28006 fi
28007 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28008 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28009 if test $ac_cv_func_crypt = yes; then
28010   :
28011 else
28012   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28013 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28014 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28015   echo $ECHO_N "(cached) $ECHO_C" >&6
28016 else
28017   ac_check_lib_save_LIBS=$LIBS
28018 LIBS="-lcrypt  $LIBS"
28019 cat >conftest.$ac_ext <<_ACEOF
28020 /* confdefs.h.  */
28021 _ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h.  */
28025
28026 /* Override any GCC internal prototype to avoid an error.
28027    Use char because int might match the return type of a GCC
28028    builtin and then its argument prototype would still apply.  */
28029 #ifdef __cplusplus
28030 extern "C"
28031 #endif
28032 char crypt ();
28033 int
28034 main ()
28035 {
28036 return crypt ();
28037   ;
28038   return 0;
28039 }
28040 _ACEOF
28041 rm -f conftest.$ac_objext conftest$ac_exeext
28042 if { (ac_try="$ac_link"
28043 case "(($ac_try" in
28044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045   *) ac_try_echo=$ac_try;;
28046 esac
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048   (eval "$ac_link") 2>conftest.er1
28049   ac_status=$?
28050   grep -v '^ *+' conftest.er1 >conftest.err
28051   rm -f conftest.er1
28052   cat conftest.err >&5
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); } && {
28055          test -z "$ac_c_werror_flag" ||
28056          test ! -s conftest.err
28057        } && test -s conftest$ac_exeext &&
28058        $as_test_x conftest$ac_exeext; then
28059   ac_cv_lib_crypt_crypt=yes
28060 else
28061   echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28063
28064         ac_cv_lib_crypt_crypt=no
28065 fi
28066
28067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28068       conftest$ac_exeext conftest.$ac_ext
28069 LIBS=$ac_check_lib_save_LIBS
28070 fi
28071 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28072 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28073 if test $ac_cv_lib_crypt_crypt = yes; then
28074   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28075 fi
28076
28077 fi
28078
28079       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28080       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28081       SQL_BINDIR=$POSTGRESQL_BINDIR
28082       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28083
28084       cat >>confdefs.h <<\_ACEOF
28085 #define HAVE_POSTGRESQL 1
28086 _ACEOF
28087
28088       { echo "$as_me:$LINENO: result: yes" >&5
28089 echo "${ECHO_T}yes" >&6; }
28090       db_found=yes
28091       support_postgresql=yes
28092       db_type=PostgreSQL
28093       DB_TYPE=postgresql
28094   else
28095       { echo "$as_me:$LINENO: result: no" >&5
28096 echo "${ECHO_T}no" >&6; }
28097   fi
28098
28099 else
28100
28101   { echo "$as_me:$LINENO: result: no" >&5
28102 echo "${ECHO_T}no" >&6; }
28103
28104 fi
28105
28106
28107
28108
28109
28110
28111
28112
28113 db_found=no
28114 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28115 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28116
28117 # Check whether --with-mysql was given.
28118 if test "${with_mysql+set}" = set; then
28119   withval=$with_mysql;
28120   if test "$withval" != "no"; then
28121         if test "$withval" = "yes"; then
28122            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28123                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28124                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28125                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28126                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28127                    else
28128                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28129                    fi
28130                    MYSQL_BINDIR=/usr/local/mysql/bin
28131            elif test -f /usr/include/mysql/mysql.h; then
28132                    MYSQL_INCDIR=/usr/include/mysql
28133                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28134                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28135                            MYSQL_LIBDIR=/usr/lib64/mysql
28136                    elif test -f /usr/lib64/libmysqlclient_r.a \
28137                         -o -f /usr/lib64/libmysqlclient_r.so; then
28138                            MYSQL_LIBDIR=/usr/lib64
28139                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28140                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28141                            MYSQL_LIBDIR=/usr/lib/mysql
28142                    else
28143                            MYSQL_LIBDIR=/usr/lib
28144                    fi
28145                    MYSQL_BINDIR=/usr/bin
28146            elif test -f /usr/include/mysql.h; then
28147                    MYSQL_INCDIR=/usr/include
28148                    if test -f /usr/lib64/libmysqlclient_r.a \
28149                         -o -f /usr/lib64/libmysqlclient_r.so; then
28150                            MYSQL_LIBDIR=/usr/lib64
28151                    else
28152                            MYSQL_LIBDIR=/usr/lib
28153                    fi
28154                    MYSQL_BINDIR=/usr/bin
28155            elif test -f /usr/local/include/mysql/mysql.h; then
28156                    MYSQL_INCDIR=/usr/local/include/mysql
28157                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28158                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28159                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28160                    else
28161                            MYSQL_LIBDIR=/usr/local/lib/mysql
28162                    fi
28163                    MYSQL_BINDIR=/usr/local/bin
28164            elif test -f /usr/local/include/mysql.h; then
28165                    MYSQL_INCDIR=/usr/local/include
28166                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28167                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28168                            MYSQL_LIBDIR=/usr/local/lib64
28169                    else
28170                            MYSQL_LIBDIR=/usr/local/lib
28171                    fi
28172                    MYSQL_BINDIR=/usr/local/bin
28173            else
28174               { echo "$as_me:$LINENO: result: no" >&5
28175 echo "${ECHO_T}no" >&6; }
28176               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28177 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28178    { (exit 1); exit 1; }; }
28179            fi
28180         else
28181            if test -f $withval/include/mysql/mysql.h; then
28182               MYSQL_INCDIR=$withval/include/mysql
28183               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28184                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28185                  MYSQL_LIBDIR=$withval/lib64/mysql
28186               elif test -f $withval/lib64/libmysqlclient_r.a \
28187                    -o -f $withval/lib64/libmysqlclient_r.so; then
28188                  MYSQL_LIBDIR=$withval/lib64
28189               elif test -f $withval/lib/libmysqlclient_r.a \
28190                    -o -f $withval/lib/libmysqlclient_r.so; then
28191                  MYSQL_LIBDIR=$withval/lib
28192               else
28193                  MYSQL_LIBDIR=$withval/lib/mysql
28194               fi
28195               MYSQL_BINDIR=$withval/bin
28196            elif test -f $withval/include/mysql.h; then
28197               MYSQL_INCDIR=$withval/include
28198               if test -f $withval/lib64/libmysqlclient_r.a \
28199                    -o -f $withval/lib64/libmysqlclient_r.so; then
28200                  MYSQL_LIBDIR=$withval/lib64
28201               else
28202                  MYSQL_LIBDIR=$withval/lib
28203               fi
28204               MYSQL_BINDIR=$withval/bin
28205            else
28206               { echo "$as_me:$LINENO: result: no" >&5
28207 echo "${ECHO_T}no" >&6; }
28208               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28209 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28210    { (exit 1); exit 1; }; }
28211            fi
28212         fi
28213     SQL_INCLUDE=-I$MYSQL_INCDIR
28214     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28215          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28216        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28217        cat >>confdefs.h <<\_ACEOF
28218 #define HAVE_THREAD_SAFE_MYSQL 1
28219 _ACEOF
28220
28221     fi
28222     SQL_BINDIR=$MYSQL_BINDIR
28223     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28224
28225
28226 cat >>confdefs.h <<\_ACEOF
28227 #define HAVE_MYSQL 1
28228 _ACEOF
28229
28230     { echo "$as_me:$LINENO: result: yes" >&5
28231 echo "${ECHO_T}yes" >&6; }
28232     db_found=yes
28233     support_mysql=yes
28234     db_type=MySQL
28235     DB_TYPE=mysql
28236
28237   else
28238         { echo "$as_me:$LINENO: result: no" >&5
28239 echo "${ECHO_T}no" >&6; }
28240   fi
28241
28242
28243 fi
28244
28245
28246
28247 # Check whether --with-embedded-mysql was given.
28248 if test "${with_embedded_mysql+set}" = set; then
28249   withval=$with_embedded_mysql;
28250   if test "$withval" != "no"; then
28251         if test "$withval" = "yes"; then
28252                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28253                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28254                         if test -d /usr/local/mysql/lib64/mysql; then
28255                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28256                         else
28257                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28258                         fi
28259                         MYSQL_BINDIR=/usr/local/mysql/bin
28260                 elif test -f /usr/include/mysql/mysql.h; then
28261                         MYSQL_INCDIR=/usr/include/mysql
28262                         if test -d /usr/lib64/mysql; then
28263                                 MYSQL_LIBDIR=/usr/lib64/mysql
28264                         else
28265                                 MYSQL_LIBDIR=/usr/lib/mysql
28266                         fi
28267                         MYSQL_BINDIR=/usr/bin
28268                 elif test -f /usr/include/mysql.h; then
28269                         MYSQL_INCDIR=/usr/include
28270                         if test -d /usr/lib64; then
28271                                 MYSQL_LIBDIR=/usr/lib64
28272                         else
28273                                 MYSQL_LIBDIR=/usr/lib
28274                         fi
28275                         MYSQL_BINDIR=/usr/bin
28276                 elif test -f /usr/local/include/mysql/mysql.h; then
28277                         MYSQL_INCDIR=/usr/local/include/mysql
28278                         if test -d /usr/local/lib64/mysql; then
28279                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28280                         else
28281                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28282                         fi
28283                         MYSQL_BINDIR=/usr/local/bin
28284                 elif test -f /usr/local/include/mysql.h; then
28285                         MYSQL_INCDIR=/usr/local/include
28286                         if test -d /usr/local/lib64; then
28287                                 MYSQL_LIBDIR=/usr/local/lib64
28288                         else
28289                                 MYSQL_LIBDIR=/usr/local/lib
28290                         fi
28291                         MYSQL_BINDIR=/usr/local/bin
28292                 else
28293                    { echo "$as_me:$LINENO: result: no" >&5
28294 echo "${ECHO_T}no" >&6; }
28295                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28296 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28297    { (exit 1); exit 1; }; }
28298                 fi
28299         else
28300                 if test -f $withval/include/mysql/mysql.h; then
28301                         MYSQL_INCDIR=$withval/include/mysql
28302                         if test -d $withval/lib64/mysql; then
28303                                 MYSQL_LIBDIR=$withval/lib64/mysql
28304                         else
28305                                 MYSQL_LIBDIR=$withval/lib/mysql
28306                         fi
28307                         MYSQL_BINDIR=$withval/bin
28308                 elif test -f $withval/include/mysql.h; then
28309                         MYSQL_INCDIR=$withval/include
28310                         if test -d $withval/lib64; then
28311                                 MYSQL_LIBDIR=$withval/lib64
28312                         else
28313                                 MYSQL_LIBDIR=$withval/lib
28314                         fi
28315                         MYSQL_BINDIR=$withval/bin
28316                 else
28317                    { echo "$as_me:$LINENO: result: no" >&5
28318 echo "${ECHO_T}no" >&6; }
28319                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28320 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28321    { (exit 1); exit 1; }; }
28322                 fi
28323         fi
28324     SQL_INCLUDE=-I$MYSQL_INCDIR
28325     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28326     SQL_BINDIR=$MYSQL_BINDIR
28327     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28328
28329     cat >>confdefs.h <<\_ACEOF
28330 #define HAVE_MYSQL 1
28331 _ACEOF
28332
28333     cat >>confdefs.h <<\_ACEOF
28334 #define HAVE_EMBEDDED_MYSQL 1
28335 _ACEOF
28336
28337     { echo "$as_me:$LINENO: result: yes" >&5
28338 echo "${ECHO_T}yes" >&6; }
28339     db_found=yes
28340     support_mysql=yes
28341     db_type=MySQL
28342     DB_TYPE=mysql
28343
28344   else
28345         { echo "$as_me:$LINENO: result: no" >&5
28346 echo "${ECHO_T}no" >&6; }
28347   fi
28348
28349
28350 fi
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361 db_found=no
28362 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28363 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28364
28365 # Check whether --with-ingres was given.
28366 if test "${with_ingres+set}" = set; then
28367   withval=$with_ingres;
28368   if test "$withval" != "no"; then
28369      if test "$withval" = "yes"; then
28370         if test -f ${II_SYSTEM}/files/eqdefc.h; then
28371            INGRES_INCDIR=${II_SYSTEM}/files
28372            INGRES_LIBDIR=${II_SYSTEM}/lib
28373            INGRES_BINDIR=${II_SYSTEM}/bin
28374         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28375            INGRES_INCDIR=${II_SYSTEM}/ingres/files
28376            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28377            INGRES_BINDIR=${II_SYSTEM}/bin
28378         else
28379            { echo "$as_me:$LINENO: result: no" >&5
28380 echo "${ECHO_T}no" >&6; }
28381            { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28382 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28383    { (exit 1); exit 1; }; }
28384         fi
28385      else
28386         if test -f $withval/files/eqdefc.h; then
28387            INGRES_INCDIR=$withval/files
28388            INGRES_LIBDIR=$withval/lib
28389            INGRES_BINDIR=$withval/bin
28390         else
28391            { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28393            { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&5
28394 echo "$as_me: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&2;}
28395    { (exit 1); exit 1; }; }
28396         fi
28397      fi
28398      SQL_INCLUDE=-I$INGRES_INCDIR
28399      SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
28400      SQL_BINDIR=$INGRES_BINDIR
28401      SQL_LIB=$INGRES_LIBDIR/libingres.a
28402
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_INGRES 1
28405 _ACEOF
28406
28407      { echo "$as_me:$LINENO: result: yes" >&5
28408 echo "${ECHO_T}yes" >&6; }
28409      db_found=yes
28410      support_ingres=yes
28411      db_type=Ingres
28412      DB_TYPE=ingres
28413
28414   else
28415      { echo "$as_me:$LINENO: result: no" >&5
28416 echo "${ECHO_T}no" >&6; }
28417   fi
28418
28419 else
28420
28421   { echo "$as_me:$LINENO: result: no" >&5
28422 echo "${ECHO_T}no" >&6; }
28423
28424 fi
28425
28426
28427
28428
28429
28430
28431
28432
28433 db_found=no
28434 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28435 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28436
28437 # Check whether --with-sqlite3 was given.
28438 if test "${with_sqlite3+set}" = set; then
28439   withval=$with_sqlite3;
28440   if test "$withval" != "no"; then
28441      if test "$withval" = "yes"; then
28442         if test -f /usr/local/include/sqlite3.h; then
28443            SQLITE_INCDIR=/usr/local/include
28444            if test -d /usr/local/lib64; then
28445               SQLITE_LIBDIR=/usr/local/lib64
28446            else
28447               SQLITE_LIBDIR=/usr/local/lib
28448            fi
28449            SQLITE_BINDIR=/usr/local/bin
28450         elif test -f /usr/include/sqlite3.h; then
28451            SQLITE_INCDIR=/usr/include
28452            if test -d /usr/lib64; then
28453               SQLITE_LIBDIR=/usr/lib64
28454            else
28455               SQLITE_LIBDIR=/usr/lib
28456            fi
28457            SQLITE_BINDIR=/usr/bin
28458         elif test -f $prefix/include/sqlite3.h; then
28459            SQLITE_INCDIR=$prefix/include
28460            if test -d $prefix/lib64; then
28461               SQLITE_LIBDIR=$prefix/lib64
28462            else
28463               SQLITE_LIBDIR=$prefix/lib
28464            fi
28465            SQLITE_BINDIR=$prefix/bin
28466         else
28467            { echo "$as_me:$LINENO: result: no" >&5
28468 echo "${ECHO_T}no" >&6; }
28469            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28470 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28471    { (exit 1); exit 1; }; }
28472         fi
28473      else
28474         if test -f $withval/sqlite3.h; then
28475            SQLITE_INCDIR=$withval
28476            SQLITE_LIBDIR=$withval
28477            SQLITE_BINDIR=$withval
28478         elif test -f $withval/include/sqlite3.h; then
28479            SQLITE_INCDIR=$withval/include
28480            if test -d $withval/lib64; then
28481               SQLITE_LIBDIR=$withval/lib64
28482            else
28483               SQLITE_LIBDIR=$withval/lib
28484            fi
28485            SQLITE_BINDIR=$withval/bin
28486         else
28487            { echo "$as_me:$LINENO: result: no" >&5
28488 echo "${ECHO_T}no" >&6; }
28489            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28490 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28491    { (exit 1); exit 1; }; }
28492         fi
28493      fi
28494      SQL_INCLUDE=-I$SQLITE_INCDIR
28495      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28496      SQL_BINDIR=$SQLITE_BINDIR
28497      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28498
28499      cat >>confdefs.h <<\_ACEOF
28500 #define HAVE_SQLITE3 1
28501 _ACEOF
28502
28503      { echo "$as_me:$LINENO: result: yes" >&5
28504 echo "${ECHO_T}yes" >&6; }
28505      db_found=yes
28506      support_sqlite3=yes
28507      db_type=SQLite3
28508      DB_TYPE=sqlite3
28509
28510   else
28511      { echo "$as_me:$LINENO: result: no" >&5
28512 echo "${ECHO_T}no" >&6; }
28513   fi
28514
28515 else
28516
28517   { echo "$as_me:$LINENO: result: no" >&5
28518 echo "${ECHO_T}no" >&6; }
28519
28520 fi
28521
28522
28523
28524
28525
28526
28527
28528 # BA_CHECK_SQLITE_DB
28529
28530
28531 db_found=no
28532 { echo "$as_me:$LINENO: checking for DBI support" >&5
28533 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28534
28535 # Check whether --with-dbi was given.
28536 if test "${with_dbi+set}" = set; then
28537   withval=$with_dbi;
28538   if test "$withval" != "no"; then
28539      if test "$withval" = "yes"; then
28540         if test -f /usr/local/include/dbi/dbi.h; then
28541            DBI_INCDIR=/usr/local/dbi/include
28542            if test -d /usr/local/lib64; then
28543               DBI_LIBDIR=/usr/local/lib64
28544            else
28545               DBI_LIBDIR=/usr/local/lib
28546            fi
28547            DBI_BINDIR=/usr/local/bin
28548         elif test -f /usr/include/dbi/dbi.h; then
28549            DBI_INCDIR=/usr/include
28550            if test -d /usr/lib64; then
28551               DBI_LIBDIR=/usr/lib64
28552            else
28553               DBI_LIBDIR=/usr/lib
28554            fi
28555            DBI_BINDIR=/usr/bin
28556         elif test -f $prefix/include/dbi/dbi.h; then
28557            DBI_INCDIR=$prefix/include
28558            if test -d $prefix/lib64; then
28559               DBI_LIBDIR=$prefix/lib64
28560            else
28561               DBI_LIBDIR=$prefix/lib
28562            fi
28563            DBI_BINDIR=$prefix/bin
28564         else
28565            { echo "$as_me:$LINENO: result: no" >&5
28566 echo "${ECHO_T}no" >&6; }
28567            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28568 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28569    { (exit 1); exit 1; }; }
28570         fi
28571         if test -d /usr/local/lib/dbd; then
28572            DRIVERDIR=/usr/local/lib/dbd
28573            if test -d /usr/local/lib64/dbd; then
28574               DRIVERDIR=/usr/local/lib64/dbd
28575            else
28576               DRIVERDIR=/usr/local/lib/dbd
28577            fi
28578         elif test -d /usr/lib/dbd; then
28579            DRIVERDIR=/usr/lib/dbd
28580            if test -d /usr/lib64/dbd; then
28581               DRIVERDIR=/usr/lib64/dbd
28582            else
28583               DRIVERDIR=/usr/lib/dbd
28584            fi
28585         elif test -d $prefix/lib/dbd; then
28586            if test -d $prefix/lib64/dbd; then
28587               DRIVERDIR=$prefix/lib64/dbd
28588            else
28589               DRIVERDIR=$prefix/lib/dbd
28590            fi
28591         elif test -d /usr/local/lib64/dbd; then
28592            DRIVERDIR=/usr/local/lib64/dbd
28593         elif test -d /usr/lib64/dbd; then
28594            DRIVERDIR=/usr/lib64/dbd
28595         elif test -d $prefix/lib64/dbd; then
28596            DRIVERDIR=$prefix/lib64/dbd
28597         else
28598            { echo "$as_me:$LINENO: result: no" >&5
28599 echo "${ECHO_T}no" >&6; }
28600            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28601 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28602    { (exit 1); exit 1; }; }
28603         fi
28604      else
28605         if test -f $withval/dbi.h; then
28606            DBI_INCDIR=$withval
28607            DBI_LIBDIR=$withval
28608            DBI_BINDIR=$withval
28609         elif test -f $withval/include/dbi/dbi.h; then
28610            DBI_INCDIR=$withval/include
28611            if test -d $withval/lib64; then
28612               DBI_LIBDIR=$withval/lib64
28613            else
28614               DBI_LIBDIR=$withval/lib
28615            fi
28616            DBI_BINDIR=$withval/bin
28617         else
28618            { echo "$as_me:$LINENO: result: no" >&5
28619 echo "${ECHO_T}no" >&6; }
28620            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28621 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28622    { (exit 1); exit 1; }; }
28623         fi
28624         if test -d $withval/dbd; then
28625            DRIVERDIR=$withval/dbd
28626         elif test -d $withval/lib/; then
28627            if test -d $withval/lib64/dbd; then
28628               DRIVERDIR=$withval/lib64/dbd
28629            else
28630               DRIVERDIR=$withval/lib/dbd
28631            fi
28632         elif test -d $withval/lib64/dbd; then
28633            DRIVERDIR=$withval/lib64/dbd
28634         else
28635            { echo "$as_me:$LINENO: result: no" >&5
28636 echo "${ECHO_T}no" >&6; }
28637            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28638 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28639    { (exit 1); exit 1; }; }
28640         fi
28641      fi
28642      SQL_INCLUDE=-I$DBI_INCDIR
28643      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28644      SQL_BINDIR=$DBI_BINDIR
28645      SQL_LIB=$DBI_LIBDIR/libdbi.a
28646      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28647
28648
28649 cat >>confdefs.h <<\_ACEOF
28650 #define HAVE_DBI 1
28651 _ACEOF
28652
28653      { echo "$as_me:$LINENO: result: yes" >&5
28654 echo "${ECHO_T}yes" >&6; }
28655      db_found=yes
28656      support_dbi=yes
28657      db_type=DBI
28658      DB_TYPE=dbi
28659      uncomment_dbi=" "
28660
28661   else
28662      { echo "$as_me:$LINENO: result: no" >&5
28663 echo "${ECHO_T}no" >&6; }
28664   fi
28665
28666 else
28667
28668   { echo "$as_me:$LINENO: result: no" >&5
28669 echo "${ECHO_T}no" >&6; }
28670
28671 fi
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682 db_found=no
28683 db_prog=no
28684 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28685 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28686
28687 # Check whether --with-dbi-driver was given.
28688 if test "${with_dbi_driver+set}" = set; then
28689   withval=$with_dbi_driver;
28690   if test "$withval" != "no"; then
28691      case $withval in
28692         "mysql")
28693            db_prog="mysql"
28694            if test -f /usr/local/mysql/bin/mysql; then
28695               SQL_BINDIR=/usr/local/mysql/bin
28696               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28697                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28698                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28699               else
28700                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28701               fi
28702            elif test -f /usr/bin/mysql; then
28703               SQL_BINDIR=/usr/bin
28704               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28705                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28706                   SQL_LIBDIR=/usr/lib64/mysql
28707               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28708                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28709                   SQL_LIBDIR=/usr/lib/mysql
28710               else
28711                   SQL_LIBDIR=/usr/lib
28712               fi
28713            elif test -f /usr/local/bin/mysql; then
28714               SQL_BINDIR=/usr/local/bin
28715               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28716                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28717                   SQL_LIBDIR=/usr/local/lib64/mysql
28718               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28719                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28720                   SQL_LIBDIR=/usr/local/lib/mysql
28721               else
28722                   SQL_LIBDIR=/usr/local/lib
28723               fi
28724            elif test -f $withval/bin/mysql; then
28725               SQL_BINDIR=$withval/bin
28726               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28727                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28728                   SQL_LIBDIR=$withval/lib64/mysql
28729               elif test -f $withval/lib64/libmysqlclient_r.a \
28730                   -o -f $withval/lib64/libmysqlclient_r.so; then
28731                   SQL_LIBDIR=$withval/lib64
28732               elif test -f $withval/lib/libmysqlclient_r.a \
28733                   -o -f $withval/lib/libmysqlclient_r.so; then
28734                   SQL_LIBDIR=$withval/lib/
28735               else
28736                   SQL_LIBDIR=$withval/lib/mysql
28737               fi
28738            else
28739               { echo "$as_me:$LINENO: result: no" >&5
28740 echo "${ECHO_T}no" >&6; }
28741               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28742 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28743    { (exit 1); exit 1; }; }
28744            fi
28745            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28746               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28747            else
28748               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28749            fi
28750         ;;
28751         "postgresql")
28752            db_prog="postgresql"
28753            PG_CONFIG=`which pg_config`
28754            if test -n "$PG_CONFIG"; then
28755               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28756               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28757            elif test -f /usr/local/bin/psql; then
28758               SQL_BINDIR=/usr/local/bin
28759               if test -d /usr/local/lib64; then
28760                  SQL_LIBDIR=/usr/local/lib64
28761               else
28762                  SQL_LIBDIR=/usr/local/lib
28763               fi
28764            elif test -f /usr/bin/psql; then
28765               SQL_BINDIR=/usr/local/bin
28766               if test -d /usr/lib64/postgresql; then
28767                  SQL_LIBDIR=/usr/lib64/postgresql
28768               elif test -d /usr/lib/postgresql; then
28769                  SQL_LIBDIR=/usr/lib/postgresql
28770               elif test -d /usr/lib64; then
28771                  SQL_LIBDIR=/usr/lib64
28772               else
28773                  SQL_LIBDIR=/usr/lib
28774               fi
28775            elif test -f $withval/bin/psql; then
28776               SQL_BINDIR=$withval/bin
28777               if test -d $withval/lib64; then
28778                  SQL_LIBDIR=$withval/lib64
28779               else
28780                  SQL_LIBDIR=$withval/lib
28781               fi
28782            else
28783               { echo "$as_me:$LINENO: result: no" >&5
28784 echo "${ECHO_T}no" >&6; }
28785               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28786 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28787    { (exit 1); exit 1; }; }
28788            fi
28789            if test -f $SQL_LIBDIR/libpq.so; then
28790               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28791            else
28792               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28793            fi
28794         ;;
28795         "sqlite")
28796            db_prog="sqlite"
28797            if test -f /usr/local/bin/sqlite; then
28798               SQL_BINDIR=/usr/local/bin
28799               if test -d /usr/local/lib64; then
28800                  SQL_LIBDIR=/usr/local/lib64
28801               else
28802                  SQL_LIBDIR=/usr/local/lib
28803               fi
28804            elif test -f /usr/bin/sqlite; then
28805               SQL_BINDIR=/usr/bin
28806               if test -d /usr/lib64; then
28807                  SQL_LIBDIR=/usr/lib64
28808               else
28809                  SQL_LIBDIR=/usr/lib
28810               fi
28811            elif test -f $withval/bin/sqlite; then
28812               SQL_BINDIR=$withval/bin
28813               if test -d $withval/lib64; then
28814                  SQL_LIBDIR=$withval/lib64
28815               else
28816                  SQL_LIBDIR=$withval/lib
28817               fi
28818            else
28819               { echo "$as_me:$LINENO: result: no" >&5
28820 echo "${ECHO_T}no" >&6; }
28821               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28822 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28823    { (exit 1); exit 1; }; }
28824            fi
28825            if test -f $SQL_LIBDIR/libsqlite.so; then
28826               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28827            else
28828               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28829            fi
28830         ;;
28831         "sqlite3")
28832            db_prog="sqlite3"
28833            if test -f /usr/local/bin/sqlite3; then
28834               SQL_BINDIR=/usr/local/bin
28835               if test -d /usr/local/lib64; then
28836                  SQL_LIBDIR=/usr/local/lib64
28837               else
28838                  SQL_LIBDIR=/usr/local/lib
28839               fi
28840            elif test -f /usr/bin/sqlite3; then
28841               SQL_BINDIR=/usr/bin
28842               if test -d /usr/lib64; then
28843                  SQL_LIBDIR=/usr/lib64
28844               else
28845                  SQL_LIBDIR=/usr/lib
28846               fi
28847            elif test -f $withval/bin/sqlite3; then
28848               SQL_BINDIR=$withval/bin
28849               if test -d $withval/lib64; then
28850                  SQL_LIBDIR=$withval/lib64
28851               else
28852                  SQL_LIBDIR=$withval/lib
28853               fi
28854            else
28855               { echo "$as_me:$LINENO: result: no" >&5
28856 echo "${ECHO_T}no" >&6; }
28857               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28858 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28859    { (exit 1); exit 1; }; }
28860            fi
28861            if test -f $SQL_LIBDIR/libsqlite3.so; then
28862               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28863            else
28864               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28865            fi
28866         ;;
28867         *)
28868            { echo "$as_me:$LINENO: result: no" >&5
28869 echo "${ECHO_T}no" >&6; }
28870            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28871 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28872    { (exit 1); exit 1; }; }
28873         ;;
28874      esac
28875
28876      { echo "$as_me:$LINENO: result: yes" >&5
28877 echo "${ECHO_T}yes" >&6; }
28878      DB_PROG=$db_prog
28879   else
28880      { echo "$as_me:$LINENO: result: no" >&5
28881 echo "${ECHO_T}no" >&6; }
28882   fi
28883
28884 else
28885
28886   { echo "$as_me:$LINENO: result: no" >&5
28887 echo "${ECHO_T}no" >&6; }
28888
28889 fi
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900 support_batch_insert=no
28901 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28902 pkg=$?
28903 if test $pkg = 0; then
28904    support_batch_insert=yes
28905    # Check whether --enable-batch-insert was given.
28906 if test "${enable_batch_insert+set}" = set; then
28907   enableval=$enable_batch_insert;
28908           if test x$enableval = xno; then
28909              support_batch_insert=no
28910           else
28911              support_batch_insert=yes
28912           fi
28913
28914
28915 fi
28916
28917 fi
28918
28919 if test x$DB_TYPE = xpostgresql; then
28920    { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28921 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28922 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28923   echo $ECHO_N "(cached) $ECHO_C" >&6
28924 else
28925   ac_check_lib_save_LIBS=$LIBS
28926 LIBS="-lpq  $LIBS"
28927 cat >conftest.$ac_ext <<_ACEOF
28928 /* confdefs.h.  */
28929 _ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h.  */
28933
28934 /* Override any GCC internal prototype to avoid an error.
28935    Use char because int might match the return type of a GCC
28936    builtin and then its argument prototype would still apply.  */
28937 #ifdef __cplusplus
28938 extern "C"
28939 #endif
28940 char PQisthreadsafe ();
28941 int
28942 main ()
28943 {
28944 return PQisthreadsafe ();
28945   ;
28946   return 0;
28947 }
28948 _ACEOF
28949 rm -f conftest.$ac_objext conftest$ac_exeext
28950 if { (ac_try="$ac_link"
28951 case "(($ac_try" in
28952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953   *) ac_try_echo=$ac_try;;
28954 esac
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956   (eval "$ac_link") 2>conftest.er1
28957   ac_status=$?
28958   grep -v '^ *+' conftest.er1 >conftest.err
28959   rm -f conftest.er1
28960   cat conftest.err >&5
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); } && {
28963          test -z "$ac_c_werror_flag" ||
28964          test ! -s conftest.err
28965        } && test -s conftest$ac_exeext &&
28966        $as_test_x conftest$ac_exeext; then
28967   ac_cv_lib_pq_PQisthreadsafe=yes
28968 else
28969   echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28971
28972         ac_cv_lib_pq_PQisthreadsafe=no
28973 fi
28974
28975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28976       conftest$ac_exeext conftest.$ac_ext
28977 LIBS=$ac_check_lib_save_LIBS
28978 fi
28979 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28980 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28981 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28982
28983 cat >>confdefs.h <<\_ACEOF
28984 #define HAVE_PQISTHREADSAFE 1
28985 _ACEOF
28986
28987 fi
28988
28989    { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28990 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28991 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28992   echo $ECHO_N "(cached) $ECHO_C" >&6
28993 else
28994   ac_check_lib_save_LIBS=$LIBS
28995 LIBS="-lpq  $LIBS"
28996 cat >conftest.$ac_ext <<_ACEOF
28997 /* confdefs.h.  */
28998 _ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h.  */
29002
29003 /* Override any GCC internal prototype to avoid an error.
29004    Use char because int might match the return type of a GCC
29005    builtin and then its argument prototype would still apply.  */
29006 #ifdef __cplusplus
29007 extern "C"
29008 #endif
29009 char PQputCopyData ();
29010 int
29011 main ()
29012 {
29013 return PQputCopyData ();
29014   ;
29015   return 0;
29016 }
29017 _ACEOF
29018 rm -f conftest.$ac_objext conftest$ac_exeext
29019 if { (ac_try="$ac_link"
29020 case "(($ac_try" in
29021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29022   *) ac_try_echo=$ac_try;;
29023 esac
29024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29025   (eval "$ac_link") 2>conftest.er1
29026   ac_status=$?
29027   grep -v '^ *+' conftest.er1 >conftest.err
29028   rm -f conftest.er1
29029   cat conftest.err >&5
29030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031   (exit $ac_status); } && {
29032          test -z "$ac_c_werror_flag" ||
29033          test ! -s conftest.err
29034        } && test -s conftest$ac_exeext &&
29035        $as_test_x conftest$ac_exeext; then
29036   ac_cv_lib_pq_PQputCopyData=yes
29037 else
29038   echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29040
29041         ac_cv_lib_pq_PQputCopyData=no
29042 fi
29043
29044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29045       conftest$ac_exeext conftest.$ac_ext
29046 LIBS=$ac_check_lib_save_LIBS
29047 fi
29048 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29049 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29050 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29051
29052 cat >>confdefs.h <<\_ACEOF
29053 #define HAVE_PQ_COPY 1
29054 _ACEOF
29055
29056 fi
29057
29058    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29059     then
29060         support_batch_insert=no
29061    fi
29062 fi
29063
29064 if test x$DB_TYPE = xdbi; then
29065    DB_TYPE=$DB_PROG
29066    db_type=$DB_PROG
29067    pkg=1
29068       if test $DB_PROG = postgresql; then
29069       { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29070 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29071 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29072   echo $ECHO_N "(cached) $ECHO_C" >&6
29073 else
29074   ac_check_lib_save_LIBS=$LIBS
29075 LIBS="-lpq  $LIBS"
29076 cat >conftest.$ac_ext <<_ACEOF
29077 /* confdefs.h.  */
29078 _ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h.  */
29082
29083 /* Override any GCC internal prototype to avoid an error.
29084    Use char because int might match the return type of a GCC
29085    builtin and then its argument prototype would still apply.  */
29086 #ifdef __cplusplus
29087 extern "C"
29088 #endif
29089 char PQisthreadsafe ();
29090 int
29091 main ()
29092 {
29093 return PQisthreadsafe ();
29094   ;
29095   return 0;
29096 }
29097 _ACEOF
29098 rm -f conftest.$ac_objext conftest$ac_exeext
29099 if { (ac_try="$ac_link"
29100 case "(($ac_try" in
29101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102   *) ac_try_echo=$ac_try;;
29103 esac
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105   (eval "$ac_link") 2>conftest.er1
29106   ac_status=$?
29107   grep -v '^ *+' conftest.er1 >conftest.err
29108   rm -f conftest.er1
29109   cat conftest.err >&5
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); } && {
29112          test -z "$ac_c_werror_flag" ||
29113          test ! -s conftest.err
29114        } && test -s conftest$ac_exeext &&
29115        $as_test_x conftest$ac_exeext; then
29116   ac_cv_lib_pq_PQisthreadsafe=yes
29117 else
29118   echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29120
29121         ac_cv_lib_pq_PQisthreadsafe=no
29122 fi
29123
29124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29125       conftest$ac_exeext conftest.$ac_ext
29126 LIBS=$ac_check_lib_save_LIBS
29127 fi
29128 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29129 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29130 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29131   cat >>confdefs.h <<\_ACEOF
29132 #define HAVE_PQISTHREADSAFE 1
29133 _ACEOF
29134
29135 fi
29136
29137       { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29138 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29139 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29140   echo $ECHO_N "(cached) $ECHO_C" >&6
29141 else
29142   ac_check_lib_save_LIBS=$LIBS
29143 LIBS="-lpq  $LIBS"
29144 cat >conftest.$ac_ext <<_ACEOF
29145 /* confdefs.h.  */
29146 _ACEOF
29147 cat confdefs.h >>conftest.$ac_ext
29148 cat >>conftest.$ac_ext <<_ACEOF
29149 /* end confdefs.h.  */
29150
29151 /* Override any GCC internal prototype to avoid an error.
29152    Use char because int might match the return type of a GCC
29153    builtin and then its argument prototype would still apply.  */
29154 #ifdef __cplusplus
29155 extern "C"
29156 #endif
29157 char PQputCopyData ();
29158 int
29159 main ()
29160 {
29161 return PQputCopyData ();
29162   ;
29163   return 0;
29164 }
29165 _ACEOF
29166 rm -f conftest.$ac_objext conftest$ac_exeext
29167 if { (ac_try="$ac_link"
29168 case "(($ac_try" in
29169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170   *) ac_try_echo=$ac_try;;
29171 esac
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173   (eval "$ac_link") 2>conftest.er1
29174   ac_status=$?
29175   grep -v '^ *+' conftest.er1 >conftest.err
29176   rm -f conftest.er1
29177   cat conftest.err >&5
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); } && {
29180          test -z "$ac_c_werror_flag" ||
29181          test ! -s conftest.err
29182        } && test -s conftest$ac_exeext &&
29183        $as_test_x conftest$ac_exeext; then
29184   ac_cv_lib_pq_PQputCopyData=yes
29185 else
29186   echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29188
29189         ac_cv_lib_pq_PQputCopyData=no
29190 fi
29191
29192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29193       conftest$ac_exeext conftest.$ac_ext
29194 LIBS=$ac_check_lib_save_LIBS
29195 fi
29196 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29197 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29198 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29199   cat >>confdefs.h <<\_ACEOF
29200 #define HAVE_PQ_COPY 1
29201 _ACEOF
29202
29203 fi
29204
29205       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29206       pkg=$?
29207    fi
29208
29209    if test $DB_PROG = mysql; then
29210       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29211       pkg=$?
29212    fi
29213
29214    if test $DB_PROG = sqlite3; then
29215       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29216       pkg=$?
29217    fi
29218
29219    if test $pkg = 0; then
29220       # Check whether --enable-batch-insert was given.
29221 if test "${enable_batch_insert+set}" = set; then
29222   enableval=$enable_batch_insert;
29223              if test x$enableval = xno; then
29224                 support_batch_insert=no
29225              else
29226                 support_batch_insert=yes
29227              fi
29228
29229
29230 fi
29231
29232    fi
29233 else
29234       uncomment_dbi="#"
29235 fi
29236
29237
29238
29239 if test $support_batch_insert = yes ; then
29240
29241 cat >>confdefs.h <<\_ACEOF
29242 #define HAVE_BATCH_FILE_INSERT 1
29243 _ACEOF
29244
29245 fi
29246
29247 cat >>confdefs.h <<\_ACEOF
29248 #define PROTOTYPES 1
29249 _ACEOF
29250
29251
29252 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29253    if test -z "$CCOPTS"; then
29254       CCOPTS='-g -O2 -Wall'
29255    fi
29256    CFLAGS="$CCOPTS"
29257 fi
29258
29259
29260
29261 largefile_support="no"
29262
29263    # Check whether --enable-largefile was given.
29264 if test "${enable_largefile+set}" = set; then
29265   enableval=$enable_largefile;
29266 fi
29267
29268    if test "$enable_largefile" != no; then
29269      if test -n "$ac_tool_prefix"; then
29270   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29271 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29274 if test "${ac_cv_prog_GETCONF+set}" = set; then
29275   echo $ECHO_N "(cached) $ECHO_C" >&6
29276 else
29277   if test -n "$GETCONF"; then
29278   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29279 else
29280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29281 for as_dir in $PATH
29282 do
29283   IFS=$as_save_IFS
29284   test -z "$as_dir" && as_dir=.
29285   for ac_exec_ext in '' $ac_executable_extensions; do
29286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29287     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29289     break 2
29290   fi
29291 done
29292 done
29293 IFS=$as_save_IFS
29294
29295 fi
29296 fi
29297 GETCONF=$ac_cv_prog_GETCONF
29298 if test -n "$GETCONF"; then
29299   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29300 echo "${ECHO_T}$GETCONF" >&6; }
29301 else
29302   { echo "$as_me:$LINENO: result: no" >&5
29303 echo "${ECHO_T}no" >&6; }
29304 fi
29305
29306
29307 fi
29308 if test -z "$ac_cv_prog_GETCONF"; then
29309   ac_ct_GETCONF=$GETCONF
29310   # Extract the first word of "getconf", so it can be a program name with args.
29311 set dummy getconf; ac_word=$2
29312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29314 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29315   echo $ECHO_N "(cached) $ECHO_C" >&6
29316 else
29317   if test -n "$ac_ct_GETCONF"; then
29318   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29319 else
29320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29321 for as_dir in $PATH
29322 do
29323   IFS=$as_save_IFS
29324   test -z "$as_dir" && as_dir=.
29325   for ac_exec_ext in '' $ac_executable_extensions; do
29326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29327     ac_cv_prog_ac_ct_GETCONF="getconf"
29328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29329     break 2
29330   fi
29331 done
29332 done
29333 IFS=$as_save_IFS
29334
29335 fi
29336 fi
29337 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29338 if test -n "$ac_ct_GETCONF"; then
29339   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29340 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29341 else
29342   { echo "$as_me:$LINENO: result: no" >&5
29343 echo "${ECHO_T}no" >&6; }
29344 fi
29345
29346   if test "x$ac_ct_GETCONF" = x; then
29347     GETCONF=""
29348   else
29349     case $cross_compiling:$ac_tool_warned in
29350 yes:)
29351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29352 whose name does not start with the host triplet.  If you think this
29353 configuration is useful to you, please write to autoconf@gnu.org." >&5
29354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29355 whose name does not start with the host triplet.  If you think this
29356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29357 ac_tool_warned=yes ;;
29358 esac
29359     GETCONF=$ac_ct_GETCONF
29360   fi
29361 else
29362   GETCONF="$ac_cv_prog_GETCONF"
29363 fi
29364
29365      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29366 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29367 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29368   echo $ECHO_N "(cached) $ECHO_C" >&6
29369 else
29370   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29371         ac_cv_sys_largefile_CFLAGS=no
29372         case "$host_os" in
29373            # IRIX 6.2 and later require cc -n32.
29374            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29375              if test "$GCC" != yes; then
29376                ac_cv_sys_largefile_CFLAGS=-n32
29377              fi
29378              ac_save_CC="$CC"
29379              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29380              cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h.  */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h.  */
29386
29387 int
29388 main ()
29389 {
29390
29391   ;
29392   return 0;
29393 }
29394 _ACEOF
29395 rm -f conftest.$ac_objext conftest$ac_exeext
29396 if { (ac_try="$ac_link"
29397 case "(($ac_try" in
29398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399   *) ac_try_echo=$ac_try;;
29400 esac
29401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402   (eval "$ac_link") 2>conftest.er1
29403   ac_status=$?
29404   grep -v '^ *+' conftest.er1 >conftest.err
29405   rm -f conftest.er1
29406   cat conftest.err >&5
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); } && {
29409          test -z "$ac_c_werror_flag" ||
29410          test ! -s conftest.err
29411        } && test -s conftest$ac_exeext &&
29412        $as_test_x conftest$ac_exeext; then
29413   :
29414 else
29415   echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29417
29418         ac_cv_sys_largefile_CFLAGS=no
29419 fi
29420
29421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29422       conftest$ac_exeext conftest.$ac_ext
29423              CC="$ac_save_CC"
29424            esac
29425       }
29426 fi
29427 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29428 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29429      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29430 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29431 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29432   echo $ECHO_N "(cached) $ECHO_C" >&6
29433 else
29434   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29435         ac_cv_sys_largefile_LDFLAGS=no
29436
29437       }
29438 fi
29439 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29440 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29441      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29442 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29443 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29444   echo $ECHO_N "(cached) $ECHO_C" >&6
29445 else
29446   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29447         ac_cv_sys_largefile_LIBS=no
29448
29449       }
29450 fi
29451 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29452 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29453
29454      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29455        case "$ac_flag" in
29456        no) ;;
29457        -D_FILE_OFFSET_BITS=*) ;;
29458        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29459        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29460        -D?* | -I?*)
29461          case "$ac_flag" in
29462    no) ;;
29463    ?*)
29464      case "$CPPFLAGS" in
29465      '') CPPFLAGS="$ac_flag" ;;
29466      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29467      esac ;;
29468    esac ;;
29469        *)
29470          case "$ac_flag" in
29471    no) ;;
29472    ?*)
29473      case "$CFLAGS" in
29474      '') CFLAGS="$ac_flag" ;;
29475      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29476      esac ;;
29477    esac ;;
29478        esac
29479      done
29480      case "$ac_cv_sys_largefile_LDFLAGS" in
29481    no) ;;
29482    ?*)
29483      case "$LDFLAGS" in
29484      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29485      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29486      esac ;;
29487    esac
29488      case "$ac_cv_sys_largefile_LIBS" in
29489    no) ;;
29490    ?*)
29491      case "$LIBS" in
29492      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29493      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29494      esac ;;
29495    esac
29496      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29497 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29498 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29499   echo $ECHO_N "(cached) $ECHO_C" >&6
29500 else
29501   ac_cv_sys_file_offset_bits=no
29502       ac_cv_sys_file_offset_bits=64
29503       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29504         case "$ac_flag" in
29505         -D_FILE_OFFSET_BITS)
29506           ac_cv_sys_file_offset_bits=1 ;;
29507         -D_FILE_OFFSET_BITS=*)
29508           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29509         esac
29510       done
29511
29512 fi
29513 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29514 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29515    if test "$ac_cv_sys_file_offset_bits" != no; then
29516
29517 cat >>confdefs.h <<_ACEOF
29518 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29519 _ACEOF
29520
29521    fi
29522      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29523 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29524 if test "${ac_cv_sys_largefile_source+set}" = set; then
29525   echo $ECHO_N "(cached) $ECHO_C" >&6
29526 else
29527   ac_cv_sys_largefile_source=no
29528       ac_cv_sys_largefile_source=1
29529       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29530         case "$ac_flag" in
29531         -D_LARGEFILE_SOURCE)
29532           ac_cv_sys_largefile_source=1 ;;
29533         -D_LARGEFILE_SOURCE=*)
29534           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29535         esac
29536       done
29537
29538 fi
29539 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29540 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29541    if test "$ac_cv_sys_largefile_source" != no; then
29542
29543 cat >>confdefs.h <<_ACEOF
29544 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29545 _ACEOF
29546
29547    fi
29548      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29549 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29550 if test "${ac_cv_sys_large_files+set}" = set; then
29551   echo $ECHO_N "(cached) $ECHO_C" >&6
29552 else
29553   ac_cv_sys_large_files=no
29554       ac_cv_sys_large_files=1
29555       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29556         case "$ac_flag" in
29557         -D_LARGE_FILES)
29558           ac_cv_sys_large_files=1 ;;
29559         -D_LARGE_FILES=*)
29560           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29561         esac
29562       done
29563
29564 fi
29565 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29566 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29567    if test "$ac_cv_sys_large_files" != no; then
29568
29569 cat >>confdefs.h <<_ACEOF
29570 #define _LARGE_FILES $ac_cv_sys_large_files
29571 _ACEOF
29572
29573    fi
29574    fi
29575
29576
29577 { echo "$as_me:$LINENO: checking for X" >&5
29578 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29579
29580
29581 # Check whether --with-x was given.
29582 if test "${with_x+set}" = set; then
29583   withval=$with_x;
29584 fi
29585
29586 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29587 if test "x$with_x" = xno; then
29588   # The user explicitly disabled X.
29589   have_x=disabled
29590 else
29591   case $x_includes,$x_libraries in #(
29592     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29593 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29594    { (exit 1); exit 1; }; };; #(
29595     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29596   echo $ECHO_N "(cached) $ECHO_C" >&6
29597 else
29598   # One or both of the vars are not set, and there is no cached value.
29599 ac_x_includes=no ac_x_libraries=no
29600 rm -f -r conftest.dir
29601 if mkdir conftest.dir; then
29602   cd conftest.dir
29603   cat >Imakefile <<'_ACEOF'
29604 incroot:
29605         @echo incroot='${INCROOT}'
29606 usrlibdir:
29607         @echo usrlibdir='${USRLIBDIR}'
29608 libdir:
29609         @echo libdir='${LIBDIR}'
29610 _ACEOF
29611   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29612     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29613     for ac_var in incroot usrlibdir libdir; do
29614       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29615     done
29616     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29617     for ac_extension in a so sl; do
29618       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29619          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29620         ac_im_usrlibdir=$ac_im_libdir; break
29621       fi
29622     done
29623     # Screen out bogus values from the imake configuration.  They are
29624     # bogus both because they are the default anyway, and because
29625     # using them would break gcc on systems where it needs fixed includes.
29626     case $ac_im_incroot in
29627         /usr/include) ac_x_includes= ;;
29628         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29629     esac
29630     case $ac_im_usrlibdir in
29631         /usr/lib | /lib) ;;
29632         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29633     esac
29634   fi
29635   cd ..
29636   rm -f -r conftest.dir
29637 fi
29638
29639 # Standard set of common directories for X headers.
29640 # Check X11 before X11Rn because it is often a symlink to the current release.
29641 ac_x_header_dirs='
29642 /usr/X11/include
29643 /usr/X11R6/include
29644 /usr/X11R5/include
29645 /usr/X11R4/include
29646
29647 /usr/include/X11
29648 /usr/include/X11R6
29649 /usr/include/X11R5
29650 /usr/include/X11R4
29651
29652 /usr/local/X11/include
29653 /usr/local/X11R6/include
29654 /usr/local/X11R5/include
29655 /usr/local/X11R4/include
29656
29657 /usr/local/include/X11
29658 /usr/local/include/X11R6
29659 /usr/local/include/X11R5
29660 /usr/local/include/X11R4
29661
29662 /usr/X386/include
29663 /usr/x386/include
29664 /usr/XFree86/include/X11
29665
29666 /usr/include
29667 /usr/local/include
29668 /usr/unsupported/include
29669 /usr/athena/include
29670 /usr/local/x11r5/include
29671 /usr/lpp/Xamples/include
29672
29673 /usr/openwin/include
29674 /usr/openwin/share/include'
29675
29676 if test "$ac_x_includes" = no; then
29677   # Guess where to find include files, by looking for Xlib.h.
29678   # First, try using that file with no special directory specified.
29679   cat >conftest.$ac_ext <<_ACEOF
29680 /* confdefs.h.  */
29681 _ACEOF
29682 cat confdefs.h >>conftest.$ac_ext
29683 cat >>conftest.$ac_ext <<_ACEOF
29684 /* end confdefs.h.  */
29685 #include <X11/Xlib.h>
29686 _ACEOF
29687 if { (ac_try="$ac_cpp conftest.$ac_ext"
29688 case "(($ac_try" in
29689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690   *) ac_try_echo=$ac_try;;
29691 esac
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29694   ac_status=$?
29695   grep -v '^ *+' conftest.er1 >conftest.err
29696   rm -f conftest.er1
29697   cat conftest.err >&5
29698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699   (exit $ac_status); } >/dev/null && {
29700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29701          test ! -s conftest.err
29702        }; then
29703   # We can compile using X headers with no special include directory.
29704 ac_x_includes=
29705 else
29706   echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29708
29709   for ac_dir in $ac_x_header_dirs; do
29710   if test -r "$ac_dir/X11/Xlib.h"; then
29711     ac_x_includes=$ac_dir
29712     break
29713   fi
29714 done
29715 fi
29716
29717 rm -f conftest.err conftest.$ac_ext
29718 fi # $ac_x_includes = no
29719
29720 if test "$ac_x_libraries" = no; then
29721   # Check for the libraries.
29722   # See if we find them without any special options.
29723   # Don't add to $LIBS permanently.
29724   ac_save_LIBS=$LIBS
29725   LIBS="-lX11 $LIBS"
29726   cat >conftest.$ac_ext <<_ACEOF
29727 /* confdefs.h.  */
29728 _ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h.  */
29732 #include <X11/Xlib.h>
29733 int
29734 main ()
29735 {
29736 XrmInitialize ()
29737   ;
29738   return 0;
29739 }
29740 _ACEOF
29741 rm -f conftest.$ac_objext conftest$ac_exeext
29742 if { (ac_try="$ac_link"
29743 case "(($ac_try" in
29744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745   *) ac_try_echo=$ac_try;;
29746 esac
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748   (eval "$ac_link") 2>conftest.er1
29749   ac_status=$?
29750   grep -v '^ *+' conftest.er1 >conftest.err
29751   rm -f conftest.er1
29752   cat conftest.err >&5
29753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754   (exit $ac_status); } && {
29755          test -z "$ac_c_werror_flag" ||
29756          test ! -s conftest.err
29757        } && test -s conftest$ac_exeext &&
29758        $as_test_x conftest$ac_exeext; then
29759   LIBS=$ac_save_LIBS
29760 # We can link X programs with no special library path.
29761 ac_x_libraries=
29762 else
29763   echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29765
29766         LIBS=$ac_save_LIBS
29767 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29768 do
29769   # Don't even attempt the hair of trying to link an X program!
29770   for ac_extension in a so sl; do
29771     if test -r "$ac_dir/libX11.$ac_extension"; then
29772       ac_x_libraries=$ac_dir
29773       break 2
29774     fi
29775   done
29776 done
29777 fi
29778
29779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29780       conftest$ac_exeext conftest.$ac_ext
29781 fi # $ac_x_libraries = no
29782
29783 case $ac_x_includes,$ac_x_libraries in #(
29784   no,* | *,no | *\'*)
29785     # Didn't find X, or a directory has "'" in its name.
29786     ac_cv_have_x="have_x=no";; #(
29787   *)
29788     # Record where we found X for the cache.
29789     ac_cv_have_x="have_x=yes\
29790         ac_x_includes='$ac_x_includes'\
29791         ac_x_libraries='$ac_x_libraries'"
29792 esac
29793 fi
29794 ;; #(
29795     *) have_x=yes;;
29796   esac
29797   eval "$ac_cv_have_x"
29798 fi # $with_x != no
29799
29800 if test "$have_x" != yes; then
29801   { echo "$as_me:$LINENO: result: $have_x" >&5
29802 echo "${ECHO_T}$have_x" >&6; }
29803   no_x=yes
29804 else
29805   # If each of the values was on the command line, it overrides each guess.
29806   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29807   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29808   # Update the cache value to reflect the command line values.
29809   ac_cv_have_x="have_x=yes\
29810         ac_x_includes='$x_includes'\
29811         ac_x_libraries='$x_libraries'"
29812   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29813 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29814 fi
29815
29816 if test "$no_x" = yes; then
29817   # Not all programs may use this symbol, but it does not hurt to define it.
29818
29819 cat >>confdefs.h <<\_ACEOF
29820 #define X_DISPLAY_MISSING 1
29821 _ACEOF
29822
29823   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29824 else
29825   if test -n "$x_includes"; then
29826     X_CFLAGS="$X_CFLAGS -I$x_includes"
29827   fi
29828
29829   # It would also be nice to do this for all -L options, not just this one.
29830   if test -n "$x_libraries"; then
29831     X_LIBS="$X_LIBS -L$x_libraries"
29832     # For Solaris; some versions of Sun CC require a space after -R and
29833     # others require no space.  Words are not sufficient . . . .
29834     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29835 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29836     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29837     ac_xsave_c_werror_flag=$ac_c_werror_flag
29838     ac_c_werror_flag=yes
29839     cat >conftest.$ac_ext <<_ACEOF
29840 /* confdefs.h.  */
29841 _ACEOF
29842 cat confdefs.h >>conftest.$ac_ext
29843 cat >>conftest.$ac_ext <<_ACEOF
29844 /* end confdefs.h.  */
29845
29846 int
29847 main ()
29848 {
29849
29850   ;
29851   return 0;
29852 }
29853 _ACEOF
29854 rm -f conftest.$ac_objext conftest$ac_exeext
29855 if { (ac_try="$ac_link"
29856 case "(($ac_try" in
29857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29858   *) ac_try_echo=$ac_try;;
29859 esac
29860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29861   (eval "$ac_link") 2>conftest.er1
29862   ac_status=$?
29863   grep -v '^ *+' conftest.er1 >conftest.err
29864   rm -f conftest.er1
29865   cat conftest.err >&5
29866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867   (exit $ac_status); } && {
29868          test -z "$ac_c_werror_flag" ||
29869          test ! -s conftest.err
29870        } && test -s conftest$ac_exeext &&
29871        $as_test_x conftest$ac_exeext; then
29872   { echo "$as_me:$LINENO: result: no" >&5
29873 echo "${ECHO_T}no" >&6; }
29874        X_LIBS="$X_LIBS -R$x_libraries"
29875 else
29876   echo "$as_me: failed program was:" >&5
29877 sed 's/^/| /' conftest.$ac_ext >&5
29878
29879         LIBS="$ac_xsave_LIBS -R $x_libraries"
29880        cat >conftest.$ac_ext <<_ACEOF
29881 /* confdefs.h.  */
29882 _ACEOF
29883 cat confdefs.h >>conftest.$ac_ext
29884 cat >>conftest.$ac_ext <<_ACEOF
29885 /* end confdefs.h.  */
29886
29887 int
29888 main ()
29889 {
29890
29891   ;
29892   return 0;
29893 }
29894 _ACEOF
29895 rm -f conftest.$ac_objext conftest$ac_exeext
29896 if { (ac_try="$ac_link"
29897 case "(($ac_try" in
29898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899   *) ac_try_echo=$ac_try;;
29900 esac
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902   (eval "$ac_link") 2>conftest.er1
29903   ac_status=$?
29904   grep -v '^ *+' conftest.er1 >conftest.err
29905   rm -f conftest.er1
29906   cat conftest.err >&5
29907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908   (exit $ac_status); } && {
29909          test -z "$ac_c_werror_flag" ||
29910          test ! -s conftest.err
29911        } && test -s conftest$ac_exeext &&
29912        $as_test_x conftest$ac_exeext; then
29913   { echo "$as_me:$LINENO: result: yes" >&5
29914 echo "${ECHO_T}yes" >&6; }
29915           X_LIBS="$X_LIBS -R $x_libraries"
29916 else
29917   echo "$as_me: failed program was:" >&5
29918 sed 's/^/| /' conftest.$ac_ext >&5
29919
29920         { echo "$as_me:$LINENO: result: neither works" >&5
29921 echo "${ECHO_T}neither works" >&6; }
29922 fi
29923
29924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29925       conftest$ac_exeext conftest.$ac_ext
29926 fi
29927
29928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29929       conftest$ac_exeext conftest.$ac_ext
29930     ac_c_werror_flag=$ac_xsave_c_werror_flag
29931     LIBS=$ac_xsave_LIBS
29932   fi
29933
29934   # Check for system-dependent libraries X programs must link with.
29935   # Do this before checking for the system-independent R6 libraries
29936   # (-lICE), since we may need -lsocket or whatever for X linking.
29937
29938   if test "$ISC" = yes; then
29939     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29940   else
29941     # Martyn Johnson says this is needed for Ultrix, if the X
29942     # libraries were built with DECnet support.  And Karl Berry says
29943     # the Alpha needs dnet_stub (dnet does not exist).
29944     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29945     cat >conftest.$ac_ext <<_ACEOF
29946 /* confdefs.h.  */
29947 _ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h.  */
29951
29952 /* Override any GCC internal prototype to avoid an error.
29953    Use char because int might match the return type of a GCC
29954    builtin and then its argument prototype would still apply.  */
29955 #ifdef __cplusplus
29956 extern "C"
29957 #endif
29958 char XOpenDisplay ();
29959 int
29960 main ()
29961 {
29962 return XOpenDisplay ();
29963   ;
29964   return 0;
29965 }
29966 _ACEOF
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (ac_try="$ac_link"
29969 case "(($ac_try" in
29970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971   *) ac_try_echo=$ac_try;;
29972 esac
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974   (eval "$ac_link") 2>conftest.er1
29975   ac_status=$?
29976   grep -v '^ *+' conftest.er1 >conftest.err
29977   rm -f conftest.er1
29978   cat conftest.err >&5
29979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980   (exit $ac_status); } && {
29981          test -z "$ac_c_werror_flag" ||
29982          test ! -s conftest.err
29983        } && test -s conftest$ac_exeext &&
29984        $as_test_x conftest$ac_exeext; then
29985   :
29986 else
29987   echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29989
29990         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29991 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29992 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29993   echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995   ac_check_lib_save_LIBS=$LIBS
29996 LIBS="-ldnet  $LIBS"
29997 cat >conftest.$ac_ext <<_ACEOF
29998 /* confdefs.h.  */
29999 _ACEOF
30000 cat confdefs.h >>conftest.$ac_ext
30001 cat >>conftest.$ac_ext <<_ACEOF
30002 /* end confdefs.h.  */
30003
30004 /* Override any GCC internal prototype to avoid an error.
30005    Use char because int might match the return type of a GCC
30006    builtin and then its argument prototype would still apply.  */
30007 #ifdef __cplusplus
30008 extern "C"
30009 #endif
30010 char dnet_ntoa ();
30011 int
30012 main ()
30013 {
30014 return dnet_ntoa ();
30015   ;
30016   return 0;
30017 }
30018 _ACEOF
30019 rm -f conftest.$ac_objext conftest$ac_exeext
30020 if { (ac_try="$ac_link"
30021 case "(($ac_try" in
30022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023   *) ac_try_echo=$ac_try;;
30024 esac
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026   (eval "$ac_link") 2>conftest.er1
30027   ac_status=$?
30028   grep -v '^ *+' conftest.er1 >conftest.err
30029   rm -f conftest.er1
30030   cat conftest.err >&5
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); } && {
30033          test -z "$ac_c_werror_flag" ||
30034          test ! -s conftest.err
30035        } && test -s conftest$ac_exeext &&
30036        $as_test_x conftest$ac_exeext; then
30037   ac_cv_lib_dnet_dnet_ntoa=yes
30038 else
30039   echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30041
30042         ac_cv_lib_dnet_dnet_ntoa=no
30043 fi
30044
30045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30046       conftest$ac_exeext conftest.$ac_ext
30047 LIBS=$ac_check_lib_save_LIBS
30048 fi
30049 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30050 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30051 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30052   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30053 fi
30054
30055     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30056       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30057 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30058 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30059   echo $ECHO_N "(cached) $ECHO_C" >&6
30060 else
30061   ac_check_lib_save_LIBS=$LIBS
30062 LIBS="-ldnet_stub  $LIBS"
30063 cat >conftest.$ac_ext <<_ACEOF
30064 /* confdefs.h.  */
30065 _ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h.  */
30069
30070 /* Override any GCC internal prototype to avoid an error.
30071    Use char because int might match the return type of a GCC
30072    builtin and then its argument prototype would still apply.  */
30073 #ifdef __cplusplus
30074 extern "C"
30075 #endif
30076 char dnet_ntoa ();
30077 int
30078 main ()
30079 {
30080 return dnet_ntoa ();
30081   ;
30082   return 0;
30083 }
30084 _ACEOF
30085 rm -f conftest.$ac_objext conftest$ac_exeext
30086 if { (ac_try="$ac_link"
30087 case "(($ac_try" in
30088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089   *) ac_try_echo=$ac_try;;
30090 esac
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092   (eval "$ac_link") 2>conftest.er1
30093   ac_status=$?
30094   grep -v '^ *+' conftest.er1 >conftest.err
30095   rm -f conftest.er1
30096   cat conftest.err >&5
30097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098   (exit $ac_status); } && {
30099          test -z "$ac_c_werror_flag" ||
30100          test ! -s conftest.err
30101        } && test -s conftest$ac_exeext &&
30102        $as_test_x conftest$ac_exeext; then
30103   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30104 else
30105   echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30107
30108         ac_cv_lib_dnet_stub_dnet_ntoa=no
30109 fi
30110
30111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30112       conftest$ac_exeext conftest.$ac_ext
30113 LIBS=$ac_check_lib_save_LIBS
30114 fi
30115 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30116 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30117 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30118   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30119 fi
30120
30121     fi
30122 fi
30123
30124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30125       conftest$ac_exeext conftest.$ac_ext
30126     LIBS="$ac_xsave_LIBS"
30127
30128     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30129     # to get the SysV transport functions.
30130     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30131     # needs -lnsl.
30132     # The nsl library prevents programs from opening the X display
30133     # on Irix 5.2, according to T.E. Dickey.
30134     # The functions gethostbyname, getservbyname, and inet_addr are
30135     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30136     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30137 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30138 if test "${ac_cv_func_gethostbyname+set}" = set; then
30139   echo $ECHO_N "(cached) $ECHO_C" >&6
30140 else
30141   cat >conftest.$ac_ext <<_ACEOF
30142 /* confdefs.h.  */
30143 _ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h.  */
30147 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30149 #define gethostbyname innocuous_gethostbyname
30150
30151 /* System header to define __stub macros and hopefully few prototypes,
30152     which can conflict with char gethostbyname (); below.
30153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30154     <limits.h> exists even on freestanding compilers.  */
30155
30156 #ifdef __STDC__
30157 # include <limits.h>
30158 #else
30159 # include <assert.h>
30160 #endif
30161
30162 #undef gethostbyname
30163
30164 /* Override any GCC internal prototype to avoid an error.
30165    Use char because int might match the return type of a GCC
30166    builtin and then its argument prototype would still apply.  */
30167 #ifdef __cplusplus
30168 extern "C"
30169 #endif
30170 char gethostbyname ();
30171 /* The GNU C library defines this for functions which it implements
30172     to always fail with ENOSYS.  Some functions are actually named
30173     something starting with __ and the normal name is an alias.  */
30174 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30175 choke me
30176 #endif
30177
30178 int
30179 main ()
30180 {
30181 return gethostbyname ();
30182   ;
30183   return 0;
30184 }
30185 _ACEOF
30186 rm -f conftest.$ac_objext conftest$ac_exeext
30187 if { (ac_try="$ac_link"
30188 case "(($ac_try" in
30189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30190   *) ac_try_echo=$ac_try;;
30191 esac
30192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30193   (eval "$ac_link") 2>conftest.er1
30194   ac_status=$?
30195   grep -v '^ *+' conftest.er1 >conftest.err
30196   rm -f conftest.er1
30197   cat conftest.err >&5
30198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199   (exit $ac_status); } && {
30200          test -z "$ac_c_werror_flag" ||
30201          test ! -s conftest.err
30202        } && test -s conftest$ac_exeext &&
30203        $as_test_x conftest$ac_exeext; then
30204   ac_cv_func_gethostbyname=yes
30205 else
30206   echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.$ac_ext >&5
30208
30209         ac_cv_func_gethostbyname=no
30210 fi
30211
30212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30213       conftest$ac_exeext conftest.$ac_ext
30214 fi
30215 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30216 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30217
30218     if test $ac_cv_func_gethostbyname = no; then
30219       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30220 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30221 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30222   echo $ECHO_N "(cached) $ECHO_C" >&6
30223 else
30224   ac_check_lib_save_LIBS=$LIBS
30225 LIBS="-lnsl  $LIBS"
30226 cat >conftest.$ac_ext <<_ACEOF
30227 /* confdefs.h.  */
30228 _ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h.  */
30232
30233 /* Override any GCC internal prototype to avoid an error.
30234    Use char because int might match the return type of a GCC
30235    builtin and then its argument prototype would still apply.  */
30236 #ifdef __cplusplus
30237 extern "C"
30238 #endif
30239 char gethostbyname ();
30240 int
30241 main ()
30242 {
30243 return gethostbyname ();
30244   ;
30245   return 0;
30246 }
30247 _ACEOF
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252   *) ac_try_echo=$ac_try;;
30253 esac
30254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30255   (eval "$ac_link") 2>conftest.er1
30256   ac_status=$?
30257   grep -v '^ *+' conftest.er1 >conftest.err
30258   rm -f conftest.er1
30259   cat conftest.err >&5
30260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261   (exit $ac_status); } && {
30262          test -z "$ac_c_werror_flag" ||
30263          test ! -s conftest.err
30264        } && test -s conftest$ac_exeext &&
30265        $as_test_x conftest$ac_exeext; then
30266   ac_cv_lib_nsl_gethostbyname=yes
30267 else
30268   echo "$as_me: failed program was:" >&5
30269 sed 's/^/| /' conftest.$ac_ext >&5
30270
30271         ac_cv_lib_nsl_gethostbyname=no
30272 fi
30273
30274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30275       conftest$ac_exeext conftest.$ac_ext
30276 LIBS=$ac_check_lib_save_LIBS
30277 fi
30278 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30279 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30280 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30281   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30282 fi
30283
30284       if test $ac_cv_lib_nsl_gethostbyname = no; then
30285         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30286 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30287 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30288   echo $ECHO_N "(cached) $ECHO_C" >&6
30289 else
30290   ac_check_lib_save_LIBS=$LIBS
30291 LIBS="-lbsd  $LIBS"
30292 cat >conftest.$ac_ext <<_ACEOF
30293 /* confdefs.h.  */
30294 _ACEOF
30295 cat confdefs.h >>conftest.$ac_ext
30296 cat >>conftest.$ac_ext <<_ACEOF
30297 /* end confdefs.h.  */
30298
30299 /* Override any GCC internal prototype to avoid an error.
30300    Use char because int might match the return type of a GCC
30301    builtin and then its argument prototype would still apply.  */
30302 #ifdef __cplusplus
30303 extern "C"
30304 #endif
30305 char gethostbyname ();
30306 int
30307 main ()
30308 {
30309 return gethostbyname ();
30310   ;
30311   return 0;
30312 }
30313 _ACEOF
30314 rm -f conftest.$ac_objext conftest$ac_exeext
30315 if { (ac_try="$ac_link"
30316 case "(($ac_try" in
30317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318   *) ac_try_echo=$ac_try;;
30319 esac
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321   (eval "$ac_link") 2>conftest.er1
30322   ac_status=$?
30323   grep -v '^ *+' conftest.er1 >conftest.err
30324   rm -f conftest.er1
30325   cat conftest.err >&5
30326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327   (exit $ac_status); } && {
30328          test -z "$ac_c_werror_flag" ||
30329          test ! -s conftest.err
30330        } && test -s conftest$ac_exeext &&
30331        $as_test_x conftest$ac_exeext; then
30332   ac_cv_lib_bsd_gethostbyname=yes
30333 else
30334   echo "$as_me: failed program was:" >&5
30335 sed 's/^/| /' conftest.$ac_ext >&5
30336
30337         ac_cv_lib_bsd_gethostbyname=no
30338 fi
30339
30340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30341       conftest$ac_exeext conftest.$ac_ext
30342 LIBS=$ac_check_lib_save_LIBS
30343 fi
30344 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30345 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30346 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30347   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30348 fi
30349
30350       fi
30351     fi
30352
30353     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30354     # socket/setsockopt and other routines are undefined under SCO ODT
30355     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30356     # on later versions), says Simon Leinen: it contains gethostby*
30357     # variants that don't use the name server (or something).  -lsocket
30358     # must be given before -lnsl if both are needed.  We assume that
30359     # if connect needs -lnsl, so does gethostbyname.
30360     { echo "$as_me:$LINENO: checking for connect" >&5
30361 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30362 if test "${ac_cv_func_connect+set}" = set; then
30363   echo $ECHO_N "(cached) $ECHO_C" >&6
30364 else
30365   cat >conftest.$ac_ext <<_ACEOF
30366 /* confdefs.h.  */
30367 _ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h.  */
30371 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30373 #define connect innocuous_connect
30374
30375 /* System header to define __stub macros and hopefully few prototypes,
30376     which can conflict with char connect (); below.
30377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30378     <limits.h> exists even on freestanding compilers.  */
30379
30380 #ifdef __STDC__
30381 # include <limits.h>
30382 #else
30383 # include <assert.h>
30384 #endif
30385
30386 #undef connect
30387
30388 /* Override any GCC internal prototype to avoid an error.
30389    Use char because int might match the return type of a GCC
30390    builtin and then its argument prototype would still apply.  */
30391 #ifdef __cplusplus
30392 extern "C"
30393 #endif
30394 char connect ();
30395 /* The GNU C library defines this for functions which it implements
30396     to always fail with ENOSYS.  Some functions are actually named
30397     something starting with __ and the normal name is an alias.  */
30398 #if defined __stub_connect || defined __stub___connect
30399 choke me
30400 #endif
30401
30402 int
30403 main ()
30404 {
30405 return connect ();
30406   ;
30407   return 0;
30408 }
30409 _ACEOF
30410 rm -f conftest.$ac_objext conftest$ac_exeext
30411 if { (ac_try="$ac_link"
30412 case "(($ac_try" in
30413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414   *) ac_try_echo=$ac_try;;
30415 esac
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417   (eval "$ac_link") 2>conftest.er1
30418   ac_status=$?
30419   grep -v '^ *+' conftest.er1 >conftest.err
30420   rm -f conftest.er1
30421   cat conftest.err >&5
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); } && {
30424          test -z "$ac_c_werror_flag" ||
30425          test ! -s conftest.err
30426        } && test -s conftest$ac_exeext &&
30427        $as_test_x conftest$ac_exeext; then
30428   ac_cv_func_connect=yes
30429 else
30430   echo "$as_me: failed program was:" >&5
30431 sed 's/^/| /' conftest.$ac_ext >&5
30432
30433         ac_cv_func_connect=no
30434 fi
30435
30436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30437       conftest$ac_exeext conftest.$ac_ext
30438 fi
30439 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30440 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30441
30442     if test $ac_cv_func_connect = no; then
30443       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30444 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30445 if test "${ac_cv_lib_socket_connect+set}" = set; then
30446   echo $ECHO_N "(cached) $ECHO_C" >&6
30447 else
30448   ac_check_lib_save_LIBS=$LIBS
30449 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30450 cat >conftest.$ac_ext <<_ACEOF
30451 /* confdefs.h.  */
30452 _ACEOF
30453 cat confdefs.h >>conftest.$ac_ext
30454 cat >>conftest.$ac_ext <<_ACEOF
30455 /* end confdefs.h.  */
30456
30457 /* Override any GCC internal prototype to avoid an error.
30458    Use char because int might match the return type of a GCC
30459    builtin and then its argument prototype would still apply.  */
30460 #ifdef __cplusplus
30461 extern "C"
30462 #endif
30463 char connect ();
30464 int
30465 main ()
30466 {
30467 return connect ();
30468   ;
30469   return 0;
30470 }
30471 _ACEOF
30472 rm -f conftest.$ac_objext conftest$ac_exeext
30473 if { (ac_try="$ac_link"
30474 case "(($ac_try" in
30475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476   *) ac_try_echo=$ac_try;;
30477 esac
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479   (eval "$ac_link") 2>conftest.er1
30480   ac_status=$?
30481   grep -v '^ *+' conftest.er1 >conftest.err
30482   rm -f conftest.er1
30483   cat conftest.err >&5
30484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); } && {
30486          test -z "$ac_c_werror_flag" ||
30487          test ! -s conftest.err
30488        } && test -s conftest$ac_exeext &&
30489        $as_test_x conftest$ac_exeext; then
30490   ac_cv_lib_socket_connect=yes
30491 else
30492   echo "$as_me: failed program was:" >&5
30493 sed 's/^/| /' conftest.$ac_ext >&5
30494
30495         ac_cv_lib_socket_connect=no
30496 fi
30497
30498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30499       conftest$ac_exeext conftest.$ac_ext
30500 LIBS=$ac_check_lib_save_LIBS
30501 fi
30502 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30503 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30504 if test $ac_cv_lib_socket_connect = yes; then
30505   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30506 fi
30507
30508     fi
30509
30510     # Guillermo Gomez says -lposix is necessary on A/UX.
30511     { echo "$as_me:$LINENO: checking for remove" >&5
30512 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30513 if test "${ac_cv_func_remove+set}" = set; then
30514   echo $ECHO_N "(cached) $ECHO_C" >&6
30515 else
30516   cat >conftest.$ac_ext <<_ACEOF
30517 /* confdefs.h.  */
30518 _ACEOF
30519 cat confdefs.h >>conftest.$ac_ext
30520 cat >>conftest.$ac_ext <<_ACEOF
30521 /* end confdefs.h.  */
30522 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30524 #define remove innocuous_remove
30525
30526 /* System header to define __stub macros and hopefully few prototypes,
30527     which can conflict with char remove (); below.
30528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30529     <limits.h> exists even on freestanding compilers.  */
30530
30531 #ifdef __STDC__
30532 # include <limits.h>
30533 #else
30534 # include <assert.h>
30535 #endif
30536
30537 #undef remove
30538
30539 /* Override any GCC internal prototype to avoid an error.
30540    Use char because int might match the return type of a GCC
30541    builtin and then its argument prototype would still apply.  */
30542 #ifdef __cplusplus
30543 extern "C"
30544 #endif
30545 char remove ();
30546 /* The GNU C library defines this for functions which it implements
30547     to always fail with ENOSYS.  Some functions are actually named
30548     something starting with __ and the normal name is an alias.  */
30549 #if defined __stub_remove || defined __stub___remove
30550 choke me
30551 #endif
30552
30553 int
30554 main ()
30555 {
30556 return remove ();
30557   ;
30558   return 0;
30559 }
30560 _ACEOF
30561 rm -f conftest.$ac_objext conftest$ac_exeext
30562 if { (ac_try="$ac_link"
30563 case "(($ac_try" in
30564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565   *) ac_try_echo=$ac_try;;
30566 esac
30567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568   (eval "$ac_link") 2>conftest.er1
30569   ac_status=$?
30570   grep -v '^ *+' conftest.er1 >conftest.err
30571   rm -f conftest.er1
30572   cat conftest.err >&5
30573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574   (exit $ac_status); } && {
30575          test -z "$ac_c_werror_flag" ||
30576          test ! -s conftest.err
30577        } && test -s conftest$ac_exeext &&
30578        $as_test_x conftest$ac_exeext; then
30579   ac_cv_func_remove=yes
30580 else
30581   echo "$as_me: failed program was:" >&5
30582 sed 's/^/| /' conftest.$ac_ext >&5
30583
30584         ac_cv_func_remove=no
30585 fi
30586
30587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30588       conftest$ac_exeext conftest.$ac_ext
30589 fi
30590 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30591 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30592
30593     if test $ac_cv_func_remove = no; then
30594       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30595 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30596 if test "${ac_cv_lib_posix_remove+set}" = set; then
30597   echo $ECHO_N "(cached) $ECHO_C" >&6
30598 else
30599   ac_check_lib_save_LIBS=$LIBS
30600 LIBS="-lposix  $LIBS"
30601 cat >conftest.$ac_ext <<_ACEOF
30602 /* confdefs.h.  */
30603 _ACEOF
30604 cat confdefs.h >>conftest.$ac_ext
30605 cat >>conftest.$ac_ext <<_ACEOF
30606 /* end confdefs.h.  */
30607
30608 /* Override any GCC internal prototype to avoid an error.
30609    Use char because int might match the return type of a GCC
30610    builtin and then its argument prototype would still apply.  */
30611 #ifdef __cplusplus
30612 extern "C"
30613 #endif
30614 char remove ();
30615 int
30616 main ()
30617 {
30618 return remove ();
30619   ;
30620   return 0;
30621 }
30622 _ACEOF
30623 rm -f conftest.$ac_objext conftest$ac_exeext
30624 if { (ac_try="$ac_link"
30625 case "(($ac_try" in
30626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30627   *) ac_try_echo=$ac_try;;
30628 esac
30629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30630   (eval "$ac_link") 2>conftest.er1
30631   ac_status=$?
30632   grep -v '^ *+' conftest.er1 >conftest.err
30633   rm -f conftest.er1
30634   cat conftest.err >&5
30635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636   (exit $ac_status); } && {
30637          test -z "$ac_c_werror_flag" ||
30638          test ! -s conftest.err
30639        } && test -s conftest$ac_exeext &&
30640        $as_test_x conftest$ac_exeext; then
30641   ac_cv_lib_posix_remove=yes
30642 else
30643   echo "$as_me: failed program was:" >&5
30644 sed 's/^/| /' conftest.$ac_ext >&5
30645
30646         ac_cv_lib_posix_remove=no
30647 fi
30648
30649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30650       conftest$ac_exeext conftest.$ac_ext
30651 LIBS=$ac_check_lib_save_LIBS
30652 fi
30653 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30654 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30655 if test $ac_cv_lib_posix_remove = yes; then
30656   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30657 fi
30658
30659     fi
30660
30661     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30662     { echo "$as_me:$LINENO: checking for shmat" >&5
30663 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30664 if test "${ac_cv_func_shmat+set}" = set; then
30665   echo $ECHO_N "(cached) $ECHO_C" >&6
30666 else
30667   cat >conftest.$ac_ext <<_ACEOF
30668 /* confdefs.h.  */
30669 _ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h.  */
30673 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30675 #define shmat innocuous_shmat
30676
30677 /* System header to define __stub macros and hopefully few prototypes,
30678     which can conflict with char shmat (); below.
30679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30680     <limits.h> exists even on freestanding compilers.  */
30681
30682 #ifdef __STDC__
30683 # include <limits.h>
30684 #else
30685 # include <assert.h>
30686 #endif
30687
30688 #undef shmat
30689
30690 /* Override any GCC internal prototype to avoid an error.
30691    Use char because int might match the return type of a GCC
30692    builtin and then its argument prototype would still apply.  */
30693 #ifdef __cplusplus
30694 extern "C"
30695 #endif
30696 char shmat ();
30697 /* The GNU C library defines this for functions which it implements
30698     to always fail with ENOSYS.  Some functions are actually named
30699     something starting with __ and the normal name is an alias.  */
30700 #if defined __stub_shmat || defined __stub___shmat
30701 choke me
30702 #endif
30703
30704 int
30705 main ()
30706 {
30707 return shmat ();
30708   ;
30709   return 0;
30710 }
30711 _ACEOF
30712 rm -f conftest.$ac_objext conftest$ac_exeext
30713 if { (ac_try="$ac_link"
30714 case "(($ac_try" in
30715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716   *) ac_try_echo=$ac_try;;
30717 esac
30718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719   (eval "$ac_link") 2>conftest.er1
30720   ac_status=$?
30721   grep -v '^ *+' conftest.er1 >conftest.err
30722   rm -f conftest.er1
30723   cat conftest.err >&5
30724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725   (exit $ac_status); } && {
30726          test -z "$ac_c_werror_flag" ||
30727          test ! -s conftest.err
30728        } && test -s conftest$ac_exeext &&
30729        $as_test_x conftest$ac_exeext; then
30730   ac_cv_func_shmat=yes
30731 else
30732   echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.$ac_ext >&5
30734
30735         ac_cv_func_shmat=no
30736 fi
30737
30738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30739       conftest$ac_exeext conftest.$ac_ext
30740 fi
30741 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30742 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30743
30744     if test $ac_cv_func_shmat = no; then
30745       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30746 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30747 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30748   echo $ECHO_N "(cached) $ECHO_C" >&6
30749 else
30750   ac_check_lib_save_LIBS=$LIBS
30751 LIBS="-lipc  $LIBS"
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
30759 /* Override any GCC internal prototype to avoid an error.
30760    Use char because int might match the return type of a GCC
30761    builtin and then its argument prototype would still apply.  */
30762 #ifdef __cplusplus
30763 extern "C"
30764 #endif
30765 char shmat ();
30766 int
30767 main ()
30768 {
30769 return shmat ();
30770   ;
30771   return 0;
30772 }
30773 _ACEOF
30774 rm -f conftest.$ac_objext conftest$ac_exeext
30775 if { (ac_try="$ac_link"
30776 case "(($ac_try" in
30777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778   *) ac_try_echo=$ac_try;;
30779 esac
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781   (eval "$ac_link") 2>conftest.er1
30782   ac_status=$?
30783   grep -v '^ *+' conftest.er1 >conftest.err
30784   rm -f conftest.er1
30785   cat conftest.err >&5
30786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787   (exit $ac_status); } && {
30788          test -z "$ac_c_werror_flag" ||
30789          test ! -s conftest.err
30790        } && test -s conftest$ac_exeext &&
30791        $as_test_x conftest$ac_exeext; then
30792   ac_cv_lib_ipc_shmat=yes
30793 else
30794   echo "$as_me: failed program was:" >&5
30795 sed 's/^/| /' conftest.$ac_ext >&5
30796
30797         ac_cv_lib_ipc_shmat=no
30798 fi
30799
30800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30801       conftest$ac_exeext conftest.$ac_ext
30802 LIBS=$ac_check_lib_save_LIBS
30803 fi
30804 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30805 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30806 if test $ac_cv_lib_ipc_shmat = yes; then
30807   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30808 fi
30809
30810     fi
30811   fi
30812
30813   # Check for libraries that X11R6 Xt/Xaw programs need.
30814   ac_save_LDFLAGS=$LDFLAGS
30815   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30816   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30817   # check for ICE first), but we must link in the order -lSM -lICE or
30818   # we get undefined symbols.  So assume we have SM if we have ICE.
30819   # These have to be linked with before -lX11, unlike the other
30820   # libraries we check for below, so use a different variable.
30821   # John Interrante, Karl Berry
30822   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30823 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30824 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30825   echo $ECHO_N "(cached) $ECHO_C" >&6
30826 else
30827   ac_check_lib_save_LIBS=$LIBS
30828 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30829 cat >conftest.$ac_ext <<_ACEOF
30830 /* confdefs.h.  */
30831 _ACEOF
30832 cat confdefs.h >>conftest.$ac_ext
30833 cat >>conftest.$ac_ext <<_ACEOF
30834 /* end confdefs.h.  */
30835
30836 /* Override any GCC internal prototype to avoid an error.
30837    Use char because int might match the return type of a GCC
30838    builtin and then its argument prototype would still apply.  */
30839 #ifdef __cplusplus
30840 extern "C"
30841 #endif
30842 char IceConnectionNumber ();
30843 int
30844 main ()
30845 {
30846 return IceConnectionNumber ();
30847   ;
30848   return 0;
30849 }
30850 _ACEOF
30851 rm -f conftest.$ac_objext conftest$ac_exeext
30852 if { (ac_try="$ac_link"
30853 case "(($ac_try" in
30854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30855   *) ac_try_echo=$ac_try;;
30856 esac
30857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30858   (eval "$ac_link") 2>conftest.er1
30859   ac_status=$?
30860   grep -v '^ *+' conftest.er1 >conftest.err
30861   rm -f conftest.er1
30862   cat conftest.err >&5
30863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864   (exit $ac_status); } && {
30865          test -z "$ac_c_werror_flag" ||
30866          test ! -s conftest.err
30867        } && test -s conftest$ac_exeext &&
30868        $as_test_x conftest$ac_exeext; then
30869   ac_cv_lib_ICE_IceConnectionNumber=yes
30870 else
30871   echo "$as_me: failed program was:" >&5
30872 sed 's/^/| /' conftest.$ac_ext >&5
30873
30874         ac_cv_lib_ICE_IceConnectionNumber=no
30875 fi
30876
30877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30878       conftest$ac_exeext conftest.$ac_ext
30879 LIBS=$ac_check_lib_save_LIBS
30880 fi
30881 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30882 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30883 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30884   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30885 fi
30886
30887   LDFLAGS=$ac_save_LDFLAGS
30888
30889 fi
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921 for ac_header in \
30922    assert.h \
30923    fcntl.h \
30924    grp.h \
30925    pwd.h \
30926    libc.h \
30927    limits.h \
30928    stdarg.h \
30929    stdlib.h \
30930    stdint.h \
30931    string.h \
30932    strings.h \
30933    termios.h \
30934    termcap.h \
30935    term.h \
30936    unistd.h \
30937    sys/bitypes.h \
30938    sys/byteorder.h \
30939    sys/ioctl.h \
30940    sys/select.h \
30941    sys/socket.h \
30942    sys/sockio.h \
30943    sys/stat.h \
30944    sys/time.h \
30945    sys/types.h \
30946    arpa/nameser.h \
30947    mtio.h \
30948    sys/mtio.h \
30949    sys/tape.h \
30950    regex.h \
30951
30952 do
30953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30955   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30958   echo $ECHO_N "(cached) $ECHO_C" >&6
30959 fi
30960 ac_res=`eval echo '${'$as_ac_Header'}'`
30961                { echo "$as_me:$LINENO: result: $ac_res" >&5
30962 echo "${ECHO_T}$ac_res" >&6; }
30963 else
30964   # Is the header compilable?
30965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30967 cat >conftest.$ac_ext <<_ACEOF
30968 /* confdefs.h.  */
30969 _ACEOF
30970 cat confdefs.h >>conftest.$ac_ext
30971 cat >>conftest.$ac_ext <<_ACEOF
30972 /* end confdefs.h.  */
30973 $ac_includes_default
30974 #include <$ac_header>
30975 _ACEOF
30976 rm -f conftest.$ac_objext
30977 if { (ac_try="$ac_compile"
30978 case "(($ac_try" in
30979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980   *) ac_try_echo=$ac_try;;
30981 esac
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983   (eval "$ac_compile") 2>conftest.er1
30984   ac_status=$?
30985   grep -v '^ *+' conftest.er1 >conftest.err
30986   rm -f conftest.er1
30987   cat conftest.err >&5
30988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989   (exit $ac_status); } && {
30990          test -z "$ac_c_werror_flag" ||
30991          test ! -s conftest.err
30992        } && test -s conftest.$ac_objext; then
30993   ac_header_compiler=yes
30994 else
30995   echo "$as_me: failed program was:" >&5
30996 sed 's/^/| /' conftest.$ac_ext >&5
30997
30998         ac_header_compiler=no
30999 fi
31000
31001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31003 echo "${ECHO_T}$ac_header_compiler" >&6; }
31004
31005 # Is the header present?
31006 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31008 cat >conftest.$ac_ext <<_ACEOF
31009 /* confdefs.h.  */
31010 _ACEOF
31011 cat confdefs.h >>conftest.$ac_ext
31012 cat >>conftest.$ac_ext <<_ACEOF
31013 /* end confdefs.h.  */
31014 #include <$ac_header>
31015 _ACEOF
31016 if { (ac_try="$ac_cpp conftest.$ac_ext"
31017 case "(($ac_try" in
31018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019   *) ac_try_echo=$ac_try;;
31020 esac
31021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31023   ac_status=$?
31024   grep -v '^ *+' conftest.er1 >conftest.err
31025   rm -f conftest.er1
31026   cat conftest.err >&5
31027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028   (exit $ac_status); } >/dev/null && {
31029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31030          test ! -s conftest.err
31031        }; then
31032   ac_header_preproc=yes
31033 else
31034   echo "$as_me: failed program was:" >&5
31035 sed 's/^/| /' conftest.$ac_ext >&5
31036
31037   ac_header_preproc=no
31038 fi
31039
31040 rm -f conftest.err conftest.$ac_ext
31041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31042 echo "${ECHO_T}$ac_header_preproc" >&6; }
31043
31044 # So?  What about this header?
31045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31046   yes:no: )
31047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31051     ac_header_preproc=yes
31052     ;;
31053   no:yes:* )
31054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31066
31067     ;;
31068 esac
31069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31072   echo $ECHO_N "(cached) $ECHO_C" >&6
31073 else
31074   eval "$as_ac_Header=\$ac_header_preproc"
31075 fi
31076 ac_res=`eval echo '${'$as_ac_Header'}'`
31077                { echo "$as_me:$LINENO: result: $ac_res" >&5
31078 echo "${ECHO_T}$ac_res" >&6; }
31079
31080 fi
31081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31082   cat >>confdefs.h <<_ACEOF
31083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31084 _ACEOF
31085
31086 fi
31087
31088 done
31089
31090 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31092 if test "${ac_cv_header_stdc+set}" = set; then
31093   echo $ECHO_N "(cached) $ECHO_C" >&6
31094 else
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 <stdlib.h>
31102 #include <stdarg.h>
31103 #include <string.h>
31104 #include <float.h>
31105
31106 int
31107 main ()
31108 {
31109
31110   ;
31111   return 0;
31112 }
31113 _ACEOF
31114 rm -f conftest.$ac_objext
31115 if { (ac_try="$ac_compile"
31116 case "(($ac_try" in
31117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118   *) ac_try_echo=$ac_try;;
31119 esac
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121   (eval "$ac_compile") 2>conftest.er1
31122   ac_status=$?
31123   grep -v '^ *+' conftest.er1 >conftest.err
31124   rm -f conftest.er1
31125   cat conftest.err >&5
31126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127   (exit $ac_status); } && {
31128          test -z "$ac_c_werror_flag" ||
31129          test ! -s conftest.err
31130        } && test -s conftest.$ac_objext; then
31131   ac_cv_header_stdc=yes
31132 else
31133   echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.$ac_ext >&5
31135
31136         ac_cv_header_stdc=no
31137 fi
31138
31139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31140
31141 if test $ac_cv_header_stdc = yes; then
31142   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31143   cat >conftest.$ac_ext <<_ACEOF
31144 /* confdefs.h.  */
31145 _ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h.  */
31149 #include <string.h>
31150
31151 _ACEOF
31152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31153   $EGREP "memchr" >/dev/null 2>&1; then
31154   :
31155 else
31156   ac_cv_header_stdc=no
31157 fi
31158 rm -f conftest*
31159
31160 fi
31161
31162 if test $ac_cv_header_stdc = yes; then
31163   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31164   cat >conftest.$ac_ext <<_ACEOF
31165 /* confdefs.h.  */
31166 _ACEOF
31167 cat confdefs.h >>conftest.$ac_ext
31168 cat >>conftest.$ac_ext <<_ACEOF
31169 /* end confdefs.h.  */
31170 #include <stdlib.h>
31171
31172 _ACEOF
31173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31174   $EGREP "free" >/dev/null 2>&1; then
31175   :
31176 else
31177   ac_cv_header_stdc=no
31178 fi
31179 rm -f conftest*
31180
31181 fi
31182
31183 if test $ac_cv_header_stdc = yes; then
31184   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31185   if test "$cross_compiling" = yes; then
31186   :
31187 else
31188   cat >conftest.$ac_ext <<_ACEOF
31189 /* confdefs.h.  */
31190 _ACEOF
31191 cat confdefs.h >>conftest.$ac_ext
31192 cat >>conftest.$ac_ext <<_ACEOF
31193 /* end confdefs.h.  */
31194 #include <ctype.h>
31195 #include <stdlib.h>
31196 #if ((' ' & 0x0FF) == 0x020)
31197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31199 #else
31200 # define ISLOWER(c) \
31201                    (('a' <= (c) && (c) <= 'i') \
31202                      || ('j' <= (c) && (c) <= 'r') \
31203                      || ('s' <= (c) && (c) <= 'z'))
31204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31205 #endif
31206
31207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31208 int
31209 main ()
31210 {
31211   int i;
31212   for (i = 0; i < 256; i++)
31213     if (XOR (islower (i), ISLOWER (i))
31214         || toupper (i) != TOUPPER (i))
31215       return 2;
31216   return 0;
31217 }
31218 _ACEOF
31219 rm -f conftest$ac_exeext
31220 if { (ac_try="$ac_link"
31221 case "(($ac_try" in
31222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223   *) ac_try_echo=$ac_try;;
31224 esac
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226   (eval "$ac_link") 2>&5
31227   ac_status=$?
31228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31230   { (case "(($ac_try" in
31231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232   *) ac_try_echo=$ac_try;;
31233 esac
31234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235   (eval "$ac_try") 2>&5
31236   ac_status=$?
31237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238   (exit $ac_status); }; }; then
31239   :
31240 else
31241   echo "$as_me: program exited with status $ac_status" >&5
31242 echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.$ac_ext >&5
31244
31245 ( exit $ac_status )
31246 ac_cv_header_stdc=no
31247 fi
31248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31249 fi
31250
31251
31252 fi
31253 fi
31254 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31255 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31256 if test $ac_cv_header_stdc = yes; then
31257
31258 cat >>confdefs.h <<\_ACEOF
31259 #define STDC_HEADERS 1
31260 _ACEOF
31261
31262 fi
31263
31264 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31265 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31266 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31267   echo $ECHO_N "(cached) $ECHO_C" >&6
31268 else
31269   cat >conftest.$ac_ext <<_ACEOF
31270 /* confdefs.h.  */
31271 _ACEOF
31272 cat confdefs.h >>conftest.$ac_ext
31273 cat >>conftest.$ac_ext <<_ACEOF
31274 /* end confdefs.h.  */
31275 #include <sys/types.h>
31276 int
31277 main ()
31278 {
31279 return makedev(0, 0);
31280   ;
31281   return 0;
31282 }
31283 _ACEOF
31284 rm -f conftest.$ac_objext conftest$ac_exeext
31285 if { (ac_try="$ac_link"
31286 case "(($ac_try" in
31287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31288   *) ac_try_echo=$ac_try;;
31289 esac
31290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31291   (eval "$ac_link") 2>conftest.er1
31292   ac_status=$?
31293   grep -v '^ *+' conftest.er1 >conftest.err
31294   rm -f conftest.er1
31295   cat conftest.err >&5
31296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297   (exit $ac_status); } && {
31298          test -z "$ac_c_werror_flag" ||
31299          test ! -s conftest.err
31300        } && test -s conftest$ac_exeext &&
31301        $as_test_x conftest$ac_exeext; then
31302   ac_cv_header_sys_types_h_makedev=yes
31303 else
31304   echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31306
31307         ac_cv_header_sys_types_h_makedev=no
31308 fi
31309
31310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31311       conftest$ac_exeext conftest.$ac_ext
31312
31313 fi
31314 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31315 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31316
31317 if test $ac_cv_header_sys_types_h_makedev = no; then
31318 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31319   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31320 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31321 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31322   echo $ECHO_N "(cached) $ECHO_C" >&6
31323 fi
31324 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31325 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31326 else
31327   # Is the header compilable?
31328 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31329 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31330 cat >conftest.$ac_ext <<_ACEOF
31331 /* confdefs.h.  */
31332 _ACEOF
31333 cat confdefs.h >>conftest.$ac_ext
31334 cat >>conftest.$ac_ext <<_ACEOF
31335 /* end confdefs.h.  */
31336 $ac_includes_default
31337 #include <sys/mkdev.h>
31338 _ACEOF
31339 rm -f conftest.$ac_objext
31340 if { (ac_try="$ac_compile"
31341 case "(($ac_try" in
31342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343   *) ac_try_echo=$ac_try;;
31344 esac
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346   (eval "$ac_compile") 2>conftest.er1
31347   ac_status=$?
31348   grep -v '^ *+' conftest.er1 >conftest.err
31349   rm -f conftest.er1
31350   cat conftest.err >&5
31351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352   (exit $ac_status); } && {
31353          test -z "$ac_c_werror_flag" ||
31354          test ! -s conftest.err
31355        } && test -s conftest.$ac_objext; then
31356   ac_header_compiler=yes
31357 else
31358   echo "$as_me: failed program was:" >&5
31359 sed 's/^/| /' conftest.$ac_ext >&5
31360
31361         ac_header_compiler=no
31362 fi
31363
31364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31366 echo "${ECHO_T}$ac_header_compiler" >&6; }
31367
31368 # Is the header present?
31369 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31370 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31371 cat >conftest.$ac_ext <<_ACEOF
31372 /* confdefs.h.  */
31373 _ACEOF
31374 cat confdefs.h >>conftest.$ac_ext
31375 cat >>conftest.$ac_ext <<_ACEOF
31376 /* end confdefs.h.  */
31377 #include <sys/mkdev.h>
31378 _ACEOF
31379 if { (ac_try="$ac_cpp conftest.$ac_ext"
31380 case "(($ac_try" in
31381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31382   *) ac_try_echo=$ac_try;;
31383 esac
31384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31386   ac_status=$?
31387   grep -v '^ *+' conftest.er1 >conftest.err
31388   rm -f conftest.er1
31389   cat conftest.err >&5
31390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391   (exit $ac_status); } >/dev/null && {
31392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31393          test ! -s conftest.err
31394        }; then
31395   ac_header_preproc=yes
31396 else
31397   echo "$as_me: failed program was:" >&5
31398 sed 's/^/| /' conftest.$ac_ext >&5
31399
31400   ac_header_preproc=no
31401 fi
31402
31403 rm -f conftest.err conftest.$ac_ext
31404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31405 echo "${ECHO_T}$ac_header_preproc" >&6; }
31406
31407 # So?  What about this header?
31408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31409   yes:no: )
31410     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31411 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31412     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31413 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31414     ac_header_preproc=yes
31415     ;;
31416   no:yes:* )
31417     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31418 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31419     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31420 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31421     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31422 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31423     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31424 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31425     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31426 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31427     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31428 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31429
31430     ;;
31431 esac
31432 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31433 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31434 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31435   echo $ECHO_N "(cached) $ECHO_C" >&6
31436 else
31437   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31438 fi
31439 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31440 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31441
31442 fi
31443 if test $ac_cv_header_sys_mkdev_h = yes; then
31444
31445 cat >>confdefs.h <<\_ACEOF
31446 #define MAJOR_IN_MKDEV 1
31447 _ACEOF
31448
31449 fi
31450
31451
31452
31453   if test $ac_cv_header_sys_mkdev_h = no; then
31454     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31455   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31456 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31457 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31458   echo $ECHO_N "(cached) $ECHO_C" >&6
31459 fi
31460 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31461 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31462 else
31463   # Is the header compilable?
31464 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31465 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31466 cat >conftest.$ac_ext <<_ACEOF
31467 /* confdefs.h.  */
31468 _ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h.  */
31472 $ac_includes_default
31473 #include <sys/sysmacros.h>
31474 _ACEOF
31475 rm -f conftest.$ac_objext
31476 if { (ac_try="$ac_compile"
31477 case "(($ac_try" in
31478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31479   *) ac_try_echo=$ac_try;;
31480 esac
31481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31482   (eval "$ac_compile") 2>conftest.er1
31483   ac_status=$?
31484   grep -v '^ *+' conftest.er1 >conftest.err
31485   rm -f conftest.er1
31486   cat conftest.err >&5
31487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488   (exit $ac_status); } && {
31489          test -z "$ac_c_werror_flag" ||
31490          test ! -s conftest.err
31491        } && test -s conftest.$ac_objext; then
31492   ac_header_compiler=yes
31493 else
31494   echo "$as_me: failed program was:" >&5
31495 sed 's/^/| /' conftest.$ac_ext >&5
31496
31497         ac_header_compiler=no
31498 fi
31499
31500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31502 echo "${ECHO_T}$ac_header_compiler" >&6; }
31503
31504 # Is the header present?
31505 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31506 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31507 cat >conftest.$ac_ext <<_ACEOF
31508 /* confdefs.h.  */
31509 _ACEOF
31510 cat confdefs.h >>conftest.$ac_ext
31511 cat >>conftest.$ac_ext <<_ACEOF
31512 /* end confdefs.h.  */
31513 #include <sys/sysmacros.h>
31514 _ACEOF
31515 if { (ac_try="$ac_cpp conftest.$ac_ext"
31516 case "(($ac_try" in
31517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518   *) ac_try_echo=$ac_try;;
31519 esac
31520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31522   ac_status=$?
31523   grep -v '^ *+' conftest.er1 >conftest.err
31524   rm -f conftest.er1
31525   cat conftest.err >&5
31526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527   (exit $ac_status); } >/dev/null && {
31528          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31529          test ! -s conftest.err
31530        }; then
31531   ac_header_preproc=yes
31532 else
31533   echo "$as_me: failed program was:" >&5
31534 sed 's/^/| /' conftest.$ac_ext >&5
31535
31536   ac_header_preproc=no
31537 fi
31538
31539 rm -f conftest.err conftest.$ac_ext
31540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31541 echo "${ECHO_T}$ac_header_preproc" >&6; }
31542
31543 # So?  What about this header?
31544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31545   yes:no: )
31546     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31547 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31548     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31549 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31550     ac_header_preproc=yes
31551     ;;
31552   no:yes:* )
31553     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31554 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31555     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31556 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31557     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31558 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31559     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31560 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31561     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31562 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31563     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31564 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31565
31566     ;;
31567 esac
31568 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31569 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31570 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31571   echo $ECHO_N "(cached) $ECHO_C" >&6
31572 else
31573   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31574 fi
31575 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31576 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31577
31578 fi
31579 if test $ac_cv_header_sys_sysmacros_h = yes; then
31580
31581 cat >>confdefs.h <<\_ACEOF
31582 #define MAJOR_IN_SYSMACROS 1
31583 _ACEOF
31584
31585 fi
31586
31587
31588   fi
31589 fi
31590
31591
31592
31593
31594
31595
31596 ac_header_dirent=no
31597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31598   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31599 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31602   echo $ECHO_N "(cached) $ECHO_C" >&6
31603 else
31604   cat >conftest.$ac_ext <<_ACEOF
31605 /* confdefs.h.  */
31606 _ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h.  */
31610 #include <sys/types.h>
31611 #include <$ac_hdr>
31612
31613 int
31614 main ()
31615 {
31616 if ((DIR *) 0)
31617 return 0;
31618   ;
31619   return 0;
31620 }
31621 _ACEOF
31622 rm -f conftest.$ac_objext
31623 if { (ac_try="$ac_compile"
31624 case "(($ac_try" in
31625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626   *) ac_try_echo=$ac_try;;
31627 esac
31628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629   (eval "$ac_compile") 2>conftest.er1
31630   ac_status=$?
31631   grep -v '^ *+' conftest.er1 >conftest.err
31632   rm -f conftest.er1
31633   cat conftest.err >&5
31634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635   (exit $ac_status); } && {
31636          test -z "$ac_c_werror_flag" ||
31637          test ! -s conftest.err
31638        } && test -s conftest.$ac_objext; then
31639   eval "$as_ac_Header=yes"
31640 else
31641   echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31643
31644         eval "$as_ac_Header=no"
31645 fi
31646
31647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31648 fi
31649 ac_res=`eval echo '${'$as_ac_Header'}'`
31650                { echo "$as_me:$LINENO: result: $ac_res" >&5
31651 echo "${ECHO_T}$ac_res" >&6; }
31652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31653   cat >>confdefs.h <<_ACEOF
31654 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31655 _ACEOF
31656
31657 ac_header_dirent=$ac_hdr; break
31658 fi
31659
31660 done
31661 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31662 if test $ac_header_dirent = dirent.h; then
31663   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31664 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31665 if test "${ac_cv_search_opendir+set}" = set; then
31666   echo $ECHO_N "(cached) $ECHO_C" >&6
31667 else
31668   ac_func_search_save_LIBS=$LIBS
31669 cat >conftest.$ac_ext <<_ACEOF
31670 /* confdefs.h.  */
31671 _ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h.  */
31675
31676 /* Override any GCC internal prototype to avoid an error.
31677    Use char because int might match the return type of a GCC
31678    builtin and then its argument prototype would still apply.  */
31679 #ifdef __cplusplus
31680 extern "C"
31681 #endif
31682 char opendir ();
31683 int
31684 main ()
31685 {
31686 return opendir ();
31687   ;
31688   return 0;
31689 }
31690 _ACEOF
31691 for ac_lib in '' dir; do
31692   if test -z "$ac_lib"; then
31693     ac_res="none required"
31694   else
31695     ac_res=-l$ac_lib
31696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31697   fi
31698   rm -f conftest.$ac_objext conftest$ac_exeext
31699 if { (ac_try="$ac_link"
31700 case "(($ac_try" in
31701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702   *) ac_try_echo=$ac_try;;
31703 esac
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705   (eval "$ac_link") 2>conftest.er1
31706   ac_status=$?
31707   grep -v '^ *+' conftest.er1 >conftest.err
31708   rm -f conftest.er1
31709   cat conftest.err >&5
31710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711   (exit $ac_status); } && {
31712          test -z "$ac_c_werror_flag" ||
31713          test ! -s conftest.err
31714        } && test -s conftest$ac_exeext &&
31715        $as_test_x conftest$ac_exeext; then
31716   ac_cv_search_opendir=$ac_res
31717 else
31718   echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.$ac_ext >&5
31720
31721
31722 fi
31723
31724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31725       conftest$ac_exeext
31726   if test "${ac_cv_search_opendir+set}" = set; then
31727   break
31728 fi
31729 done
31730 if test "${ac_cv_search_opendir+set}" = set; then
31731   :
31732 else
31733   ac_cv_search_opendir=no
31734 fi
31735 rm conftest.$ac_ext
31736 LIBS=$ac_func_search_save_LIBS
31737 fi
31738 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31739 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31740 ac_res=$ac_cv_search_opendir
31741 if test "$ac_res" != no; then
31742   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31743
31744 fi
31745
31746 else
31747   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31748 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31749 if test "${ac_cv_search_opendir+set}" = set; then
31750   echo $ECHO_N "(cached) $ECHO_C" >&6
31751 else
31752   ac_func_search_save_LIBS=$LIBS
31753 cat >conftest.$ac_ext <<_ACEOF
31754 /* confdefs.h.  */
31755 _ACEOF
31756 cat confdefs.h >>conftest.$ac_ext
31757 cat >>conftest.$ac_ext <<_ACEOF
31758 /* end confdefs.h.  */
31759
31760 /* Override any GCC internal prototype to avoid an error.
31761    Use char because int might match the return type of a GCC
31762    builtin and then its argument prototype would still apply.  */
31763 #ifdef __cplusplus
31764 extern "C"
31765 #endif
31766 char opendir ();
31767 int
31768 main ()
31769 {
31770 return opendir ();
31771   ;
31772   return 0;
31773 }
31774 _ACEOF
31775 for ac_lib in '' x; do
31776   if test -z "$ac_lib"; then
31777     ac_res="none required"
31778   else
31779     ac_res=-l$ac_lib
31780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31781   fi
31782   rm -f conftest.$ac_objext conftest$ac_exeext
31783 if { (ac_try="$ac_link"
31784 case "(($ac_try" in
31785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31786   *) ac_try_echo=$ac_try;;
31787 esac
31788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31789   (eval "$ac_link") 2>conftest.er1
31790   ac_status=$?
31791   grep -v '^ *+' conftest.er1 >conftest.err
31792   rm -f conftest.er1
31793   cat conftest.err >&5
31794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795   (exit $ac_status); } && {
31796          test -z "$ac_c_werror_flag" ||
31797          test ! -s conftest.err
31798        } && test -s conftest$ac_exeext &&
31799        $as_test_x conftest$ac_exeext; then
31800   ac_cv_search_opendir=$ac_res
31801 else
31802   echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31804
31805
31806 fi
31807
31808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31809       conftest$ac_exeext
31810   if test "${ac_cv_search_opendir+set}" = set; then
31811   break
31812 fi
31813 done
31814 if test "${ac_cv_search_opendir+set}" = set; then
31815   :
31816 else
31817   ac_cv_search_opendir=no
31818 fi
31819 rm conftest.$ac_ext
31820 LIBS=$ac_func_search_save_LIBS
31821 fi
31822 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31823 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31824 ac_res=$ac_cv_search_opendir
31825 if test "$ac_res" != no; then
31826   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31827
31828 fi
31829
31830 fi
31831
31832 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31833 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31834 if test "${ac_cv_header_stat_broken+set}" = set; then
31835   echo $ECHO_N "(cached) $ECHO_C" >&6
31836 else
31837   cat >conftest.$ac_ext <<_ACEOF
31838 /* confdefs.h.  */
31839 _ACEOF
31840 cat confdefs.h >>conftest.$ac_ext
31841 cat >>conftest.$ac_ext <<_ACEOF
31842 /* end confdefs.h.  */
31843 #include <sys/types.h>
31844 #include <sys/stat.h>
31845
31846 #if defined S_ISBLK && defined S_IFDIR
31847 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31848 #endif
31849
31850 #if defined S_ISBLK && defined S_IFCHR
31851 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31852 #endif
31853
31854 #if defined S_ISLNK && defined S_IFREG
31855 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31856 #endif
31857
31858 #if defined S_ISSOCK && defined S_IFREG
31859 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31860 #endif
31861
31862 _ACEOF
31863 rm -f conftest.$ac_objext
31864 if { (ac_try="$ac_compile"
31865 case "(($ac_try" in
31866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31867   *) ac_try_echo=$ac_try;;
31868 esac
31869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31870   (eval "$ac_compile") 2>conftest.er1
31871   ac_status=$?
31872   grep -v '^ *+' conftest.er1 >conftest.err
31873   rm -f conftest.er1
31874   cat conftest.err >&5
31875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876   (exit $ac_status); } && {
31877          test -z "$ac_c_werror_flag" ||
31878          test ! -s conftest.err
31879        } && test -s conftest.$ac_objext; then
31880   ac_cv_header_stat_broken=no
31881 else
31882   echo "$as_me: failed program was:" >&5
31883 sed 's/^/| /' conftest.$ac_ext >&5
31884
31885         ac_cv_header_stat_broken=yes
31886 fi
31887
31888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31889 fi
31890 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31891 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31892 if test $ac_cv_header_stat_broken = yes; then
31893
31894 cat >>confdefs.h <<\_ACEOF
31895 #define STAT_MACROS_BROKEN 1
31896 _ACEOF
31897
31898 fi
31899
31900 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31901 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31902 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31903   echo $ECHO_N "(cached) $ECHO_C" >&6
31904 else
31905   cat >conftest.$ac_ext <<_ACEOF
31906 /* confdefs.h.  */
31907 _ACEOF
31908 cat confdefs.h >>conftest.$ac_ext
31909 cat >>conftest.$ac_ext <<_ACEOF
31910 /* end confdefs.h.  */
31911 #include <sys/types.h>
31912 #include <sys/wait.h>
31913 #ifndef WEXITSTATUS
31914 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31915 #endif
31916 #ifndef WIFEXITED
31917 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31918 #endif
31919
31920 int
31921 main ()
31922 {
31923   int s;
31924   wait (&s);
31925   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31926   ;
31927   return 0;
31928 }
31929 _ACEOF
31930 rm -f conftest.$ac_objext
31931 if { (ac_try="$ac_compile"
31932 case "(($ac_try" in
31933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934   *) ac_try_echo=$ac_try;;
31935 esac
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937   (eval "$ac_compile") 2>conftest.er1
31938   ac_status=$?
31939   grep -v '^ *+' conftest.er1 >conftest.err
31940   rm -f conftest.er1
31941   cat conftest.err >&5
31942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943   (exit $ac_status); } && {
31944          test -z "$ac_c_werror_flag" ||
31945          test ! -s conftest.err
31946        } && test -s conftest.$ac_objext; then
31947   ac_cv_header_sys_wait_h=yes
31948 else
31949   echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31951
31952         ac_cv_header_sys_wait_h=no
31953 fi
31954
31955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31956 fi
31957 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31958 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31959 if test $ac_cv_header_sys_wait_h = yes; then
31960
31961 cat >>confdefs.h <<\_ACEOF
31962 #define HAVE_SYS_WAIT_H 1
31963 _ACEOF
31964
31965 fi
31966
31967 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31968 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31969 if test "${ac_cv_header_time+set}" = set; then
31970   echo $ECHO_N "(cached) $ECHO_C" >&6
31971 else
31972   cat >conftest.$ac_ext <<_ACEOF
31973 /* confdefs.h.  */
31974 _ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h.  */
31978 #include <sys/types.h>
31979 #include <sys/time.h>
31980 #include <time.h>
31981
31982 int
31983 main ()
31984 {
31985 if ((struct tm *) 0)
31986 return 0;
31987   ;
31988   return 0;
31989 }
31990 _ACEOF
31991 rm -f conftest.$ac_objext
31992 if { (ac_try="$ac_compile"
31993 case "(($ac_try" in
31994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995   *) ac_try_echo=$ac_try;;
31996 esac
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998   (eval "$ac_compile") 2>conftest.er1
31999   ac_status=$?
32000   grep -v '^ *+' conftest.er1 >conftest.err
32001   rm -f conftest.er1
32002   cat conftest.err >&5
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); } && {
32005          test -z "$ac_c_werror_flag" ||
32006          test ! -s conftest.err
32007        } && test -s conftest.$ac_objext; then
32008   ac_cv_header_time=yes
32009 else
32010   echo "$as_me: failed program was:" >&5
32011 sed 's/^/| /' conftest.$ac_ext >&5
32012
32013         ac_cv_header_time=no
32014 fi
32015
32016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32017 fi
32018 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32019 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32020 if test $ac_cv_header_time = yes; then
32021
32022 cat >>confdefs.h <<\_ACEOF
32023 #define TIME_WITH_SYS_TIME 1
32024 _ACEOF
32025
32026 fi
32027
32028 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32029 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32030 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32031   echo $ECHO_N "(cached) $ECHO_C" >&6
32032 else
32033   cat >conftest.$ac_ext <<_ACEOF
32034 /* confdefs.h.  */
32035 _ACEOF
32036 cat confdefs.h >>conftest.$ac_ext
32037 cat >>conftest.$ac_ext <<_ACEOF
32038 /* end confdefs.h.  */
32039 $ac_includes_default
32040 int
32041 main ()
32042 {
32043 static struct stat ac_aggr;
32044 if (ac_aggr.st_blksize)
32045 return 0;
32046   ;
32047   return 0;
32048 }
32049 _ACEOF
32050 rm -f conftest.$ac_objext
32051 if { (ac_try="$ac_compile"
32052 case "(($ac_try" in
32053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054   *) ac_try_echo=$ac_try;;
32055 esac
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057   (eval "$ac_compile") 2>conftest.er1
32058   ac_status=$?
32059   grep -v '^ *+' conftest.er1 >conftest.err
32060   rm -f conftest.er1
32061   cat conftest.err >&5
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); } && {
32064          test -z "$ac_c_werror_flag" ||
32065          test ! -s conftest.err
32066        } && test -s conftest.$ac_objext; then
32067   ac_cv_member_struct_stat_st_blksize=yes
32068 else
32069   echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32071
32072         cat >conftest.$ac_ext <<_ACEOF
32073 /* confdefs.h.  */
32074 _ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h.  */
32078 $ac_includes_default
32079 int
32080 main ()
32081 {
32082 static struct stat ac_aggr;
32083 if (sizeof ac_aggr.st_blksize)
32084 return 0;
32085   ;
32086   return 0;
32087 }
32088 _ACEOF
32089 rm -f conftest.$ac_objext
32090 if { (ac_try="$ac_compile"
32091 case "(($ac_try" in
32092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093   *) ac_try_echo=$ac_try;;
32094 esac
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096   (eval "$ac_compile") 2>conftest.er1
32097   ac_status=$?
32098   grep -v '^ *+' conftest.er1 >conftest.err
32099   rm -f conftest.er1
32100   cat conftest.err >&5
32101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102   (exit $ac_status); } && {
32103          test -z "$ac_c_werror_flag" ||
32104          test ! -s conftest.err
32105        } && test -s conftest.$ac_objext; then
32106   ac_cv_member_struct_stat_st_blksize=yes
32107 else
32108   echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32110
32111         ac_cv_member_struct_stat_st_blksize=no
32112 fi
32113
32114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32115 fi
32116
32117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32118 fi
32119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32120 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32121 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32122
32123 cat >>confdefs.h <<_ACEOF
32124 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32125 _ACEOF
32126
32127
32128 cat >>confdefs.h <<\_ACEOF
32129 #define HAVE_ST_BLKSIZE 1
32130 _ACEOF
32131
32132 fi
32133
32134
32135 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32136 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32137 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32138   echo $ECHO_N "(cached) $ECHO_C" >&6
32139 else
32140   cat >conftest.$ac_ext <<_ACEOF
32141 /* confdefs.h.  */
32142 _ACEOF
32143 cat confdefs.h >>conftest.$ac_ext
32144 cat >>conftest.$ac_ext <<_ACEOF
32145 /* end confdefs.h.  */
32146 $ac_includes_default
32147 int
32148 main ()
32149 {
32150 static struct stat ac_aggr;
32151 if (ac_aggr.st_blocks)
32152 return 0;
32153   ;
32154   return 0;
32155 }
32156 _ACEOF
32157 rm -f conftest.$ac_objext
32158 if { (ac_try="$ac_compile"
32159 case "(($ac_try" in
32160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161   *) ac_try_echo=$ac_try;;
32162 esac
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164   (eval "$ac_compile") 2>conftest.er1
32165   ac_status=$?
32166   grep -v '^ *+' conftest.er1 >conftest.err
32167   rm -f conftest.er1
32168   cat conftest.err >&5
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); } && {
32171          test -z "$ac_c_werror_flag" ||
32172          test ! -s conftest.err
32173        } && test -s conftest.$ac_objext; then
32174   ac_cv_member_struct_stat_st_blocks=yes
32175 else
32176   echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32178
32179         cat >conftest.$ac_ext <<_ACEOF
32180 /* confdefs.h.  */
32181 _ACEOF
32182 cat confdefs.h >>conftest.$ac_ext
32183 cat >>conftest.$ac_ext <<_ACEOF
32184 /* end confdefs.h.  */
32185 $ac_includes_default
32186 int
32187 main ()
32188 {
32189 static struct stat ac_aggr;
32190 if (sizeof ac_aggr.st_blocks)
32191 return 0;
32192   ;
32193   return 0;
32194 }
32195 _ACEOF
32196 rm -f conftest.$ac_objext
32197 if { (ac_try="$ac_compile"
32198 case "(($ac_try" in
32199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32200   *) ac_try_echo=$ac_try;;
32201 esac
32202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32203   (eval "$ac_compile") 2>conftest.er1
32204   ac_status=$?
32205   grep -v '^ *+' conftest.er1 >conftest.err
32206   rm -f conftest.er1
32207   cat conftest.err >&5
32208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209   (exit $ac_status); } && {
32210          test -z "$ac_c_werror_flag" ||
32211          test ! -s conftest.err
32212        } && test -s conftest.$ac_objext; then
32213   ac_cv_member_struct_stat_st_blocks=yes
32214 else
32215   echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32217
32218         ac_cv_member_struct_stat_st_blocks=no
32219 fi
32220
32221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32222 fi
32223
32224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225 fi
32226 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32227 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32228 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32229
32230 cat >>confdefs.h <<_ACEOF
32231 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32232 _ACEOF
32233
32234
32235 cat >>confdefs.h <<\_ACEOF
32236 #define HAVE_ST_BLOCKS 1
32237 _ACEOF
32238
32239 else
32240   case " $LIBOBJS " in
32241   *" fileblocks.$ac_objext "* ) ;;
32242   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32243  ;;
32244 esac
32245
32246 fi
32247
32248
32249 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32250 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32251 if test "${ac_cv_struct_tm+set}" = set; then
32252   echo $ECHO_N "(cached) $ECHO_C" >&6
32253 else
32254   cat >conftest.$ac_ext <<_ACEOF
32255 /* confdefs.h.  */
32256 _ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h.  */
32260 #include <sys/types.h>
32261 #include <time.h>
32262
32263 int
32264 main ()
32265 {
32266 struct tm tm;
32267                                      int *p = &tm.tm_sec;
32268                                      return !p;
32269   ;
32270   return 0;
32271 }
32272 _ACEOF
32273 rm -f conftest.$ac_objext
32274 if { (ac_try="$ac_compile"
32275 case "(($ac_try" in
32276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277   *) ac_try_echo=$ac_try;;
32278 esac
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280   (eval "$ac_compile") 2>conftest.er1
32281   ac_status=$?
32282   grep -v '^ *+' conftest.er1 >conftest.err
32283   rm -f conftest.er1
32284   cat conftest.err >&5
32285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); } && {
32287          test -z "$ac_c_werror_flag" ||
32288          test ! -s conftest.err
32289        } && test -s conftest.$ac_objext; then
32290   ac_cv_struct_tm=time.h
32291 else
32292   echo "$as_me: failed program was:" >&5
32293 sed 's/^/| /' conftest.$ac_ext >&5
32294
32295         ac_cv_struct_tm=sys/time.h
32296 fi
32297
32298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32299 fi
32300 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32301 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32302 if test $ac_cv_struct_tm = sys/time.h; then
32303
32304 cat >>confdefs.h <<\_ACEOF
32305 #define TM_IN_SYS_TIME 1
32306 _ACEOF
32307
32308 fi
32309
32310 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32311 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32312 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32313   echo $ECHO_N "(cached) $ECHO_C" >&6
32314 else
32315   cat >conftest.$ac_ext <<_ACEOF
32316 /* confdefs.h.  */
32317 _ACEOF
32318 cat confdefs.h >>conftest.$ac_ext
32319 cat >>conftest.$ac_ext <<_ACEOF
32320 /* end confdefs.h.  */
32321 #include <sys/types.h>
32322 #include <$ac_cv_struct_tm>
32323
32324
32325 int
32326 main ()
32327 {
32328 static struct tm ac_aggr;
32329 if (ac_aggr.tm_zone)
32330 return 0;
32331   ;
32332   return 0;
32333 }
32334 _ACEOF
32335 rm -f conftest.$ac_objext
32336 if { (ac_try="$ac_compile"
32337 case "(($ac_try" in
32338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339   *) ac_try_echo=$ac_try;;
32340 esac
32341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32342   (eval "$ac_compile") 2>conftest.er1
32343   ac_status=$?
32344   grep -v '^ *+' conftest.er1 >conftest.err
32345   rm -f conftest.er1
32346   cat conftest.err >&5
32347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348   (exit $ac_status); } && {
32349          test -z "$ac_c_werror_flag" ||
32350          test ! -s conftest.err
32351        } && test -s conftest.$ac_objext; then
32352   ac_cv_member_struct_tm_tm_zone=yes
32353 else
32354   echo "$as_me: failed program was:" >&5
32355 sed 's/^/| /' conftest.$ac_ext >&5
32356
32357         cat >conftest.$ac_ext <<_ACEOF
32358 /* confdefs.h.  */
32359 _ACEOF
32360 cat confdefs.h >>conftest.$ac_ext
32361 cat >>conftest.$ac_ext <<_ACEOF
32362 /* end confdefs.h.  */
32363 #include <sys/types.h>
32364 #include <$ac_cv_struct_tm>
32365
32366
32367 int
32368 main ()
32369 {
32370 static struct tm ac_aggr;
32371 if (sizeof ac_aggr.tm_zone)
32372 return 0;
32373   ;
32374   return 0;
32375 }
32376 _ACEOF
32377 rm -f conftest.$ac_objext
32378 if { (ac_try="$ac_compile"
32379 case "(($ac_try" in
32380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381   *) ac_try_echo=$ac_try;;
32382 esac
32383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384   (eval "$ac_compile") 2>conftest.er1
32385   ac_status=$?
32386   grep -v '^ *+' conftest.er1 >conftest.err
32387   rm -f conftest.er1
32388   cat conftest.err >&5
32389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390   (exit $ac_status); } && {
32391          test -z "$ac_c_werror_flag" ||
32392          test ! -s conftest.err
32393        } && test -s conftest.$ac_objext; then
32394   ac_cv_member_struct_tm_tm_zone=yes
32395 else
32396   echo "$as_me: failed program was:" >&5
32397 sed 's/^/| /' conftest.$ac_ext >&5
32398
32399         ac_cv_member_struct_tm_tm_zone=no
32400 fi
32401
32402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32403 fi
32404
32405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406 fi
32407 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32408 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32409 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32410
32411 cat >>confdefs.h <<_ACEOF
32412 #define HAVE_STRUCT_TM_TM_ZONE 1
32413 _ACEOF
32414
32415
32416 fi
32417
32418 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32419
32420 cat >>confdefs.h <<\_ACEOF
32421 #define HAVE_TM_ZONE 1
32422 _ACEOF
32423
32424 else
32425   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32426 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32427 if test "${ac_cv_have_decl_tzname+set}" = set; then
32428   echo $ECHO_N "(cached) $ECHO_C" >&6
32429 else
32430   cat >conftest.$ac_ext <<_ACEOF
32431 /* confdefs.h.  */
32432 _ACEOF
32433 cat confdefs.h >>conftest.$ac_ext
32434 cat >>conftest.$ac_ext <<_ACEOF
32435 /* end confdefs.h.  */
32436 #include <time.h>
32437
32438 int
32439 main ()
32440 {
32441 #ifndef tzname
32442   (void) tzname;
32443 #endif
32444
32445   ;
32446   return 0;
32447 }
32448 _ACEOF
32449 rm -f conftest.$ac_objext
32450 if { (ac_try="$ac_compile"
32451 case "(($ac_try" in
32452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453   *) ac_try_echo=$ac_try;;
32454 esac
32455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456   (eval "$ac_compile") 2>conftest.er1
32457   ac_status=$?
32458   grep -v '^ *+' conftest.er1 >conftest.err
32459   rm -f conftest.er1
32460   cat conftest.err >&5
32461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462   (exit $ac_status); } && {
32463          test -z "$ac_c_werror_flag" ||
32464          test ! -s conftest.err
32465        } && test -s conftest.$ac_objext; then
32466   ac_cv_have_decl_tzname=yes
32467 else
32468   echo "$as_me: failed program was:" >&5
32469 sed 's/^/| /' conftest.$ac_ext >&5
32470
32471         ac_cv_have_decl_tzname=no
32472 fi
32473
32474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32475 fi
32476 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32477 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32478 if test $ac_cv_have_decl_tzname = yes; then
32479
32480 cat >>confdefs.h <<_ACEOF
32481 #define HAVE_DECL_TZNAME 1
32482 _ACEOF
32483
32484
32485 else
32486   cat >>confdefs.h <<_ACEOF
32487 #define HAVE_DECL_TZNAME 0
32488 _ACEOF
32489
32490
32491 fi
32492
32493
32494   { echo "$as_me:$LINENO: checking for tzname" >&5
32495 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32496 if test "${ac_cv_var_tzname+set}" = set; then
32497   echo $ECHO_N "(cached) $ECHO_C" >&6
32498 else
32499   cat >conftest.$ac_ext <<_ACEOF
32500 /* confdefs.h.  */
32501 _ACEOF
32502 cat confdefs.h >>conftest.$ac_ext
32503 cat >>conftest.$ac_ext <<_ACEOF
32504 /* end confdefs.h.  */
32505 #include <time.h>
32506 #if !HAVE_DECL_TZNAME
32507 extern char *tzname[];
32508 #endif
32509
32510 int
32511 main ()
32512 {
32513 return tzname[0][0];
32514   ;
32515   return 0;
32516 }
32517 _ACEOF
32518 rm -f conftest.$ac_objext conftest$ac_exeext
32519 if { (ac_try="$ac_link"
32520 case "(($ac_try" in
32521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522   *) ac_try_echo=$ac_try;;
32523 esac
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525   (eval "$ac_link") 2>conftest.er1
32526   ac_status=$?
32527   grep -v '^ *+' conftest.er1 >conftest.err
32528   rm -f conftest.er1
32529   cat conftest.err >&5
32530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531   (exit $ac_status); } && {
32532          test -z "$ac_c_werror_flag" ||
32533          test ! -s conftest.err
32534        } && test -s conftest$ac_exeext &&
32535        $as_test_x conftest$ac_exeext; then
32536   ac_cv_var_tzname=yes
32537 else
32538   echo "$as_me: failed program was:" >&5
32539 sed 's/^/| /' conftest.$ac_ext >&5
32540
32541         ac_cv_var_tzname=no
32542 fi
32543
32544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32545       conftest$ac_exeext conftest.$ac_ext
32546 fi
32547 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32548 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32549   if test $ac_cv_var_tzname = yes; then
32550
32551 cat >>confdefs.h <<\_ACEOF
32552 #define HAVE_TZNAME 1
32553 _ACEOF
32554
32555   fi
32556 fi
32557
32558
32559 { echo "$as_me:$LINENO: checking for utime.h" >&5
32560 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32561 if test "${ba_cv_header_utime_h+set}" = set; then
32562   echo $ECHO_N "(cached) $ECHO_C" >&6
32563 else
32564
32565        cat >conftest.$ac_ext <<_ACEOF
32566 /* confdefs.h.  */
32567 _ACEOF
32568 cat confdefs.h >>conftest.$ac_ext
32569 cat >>conftest.$ac_ext <<_ACEOF
32570 /* end confdefs.h.  */
32571
32572               #include <sys/types.h>
32573               #include <utime.h>
32574
32575 int
32576 main ()
32577 {
32578
32579               struct utimbuf foo
32580
32581   ;
32582   return 0;
32583 }
32584 _ACEOF
32585 rm -f conftest.$ac_objext
32586 if { (ac_try="$ac_compile"
32587 case "(($ac_try" in
32588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589   *) ac_try_echo=$ac_try;;
32590 esac
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592   (eval "$ac_compile") 2>conftest.er1
32593   ac_status=$?
32594   grep -v '^ *+' conftest.er1 >conftest.err
32595   rm -f conftest.er1
32596   cat conftest.err >&5
32597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598   (exit $ac_status); } && {
32599          test -z "$ac_c_werror_flag" ||
32600          test ! -s conftest.err
32601        } && test -s conftest.$ac_objext; then
32602
32603               ba_cv_header_utime_h=yes
32604
32605 else
32606   echo "$as_me: failed program was:" >&5
32607 sed 's/^/| /' conftest.$ac_ext >&5
32608
32609
32610               ba_cv_header_utime_h=no
32611
32612
32613 fi
32614
32615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32616
32617
32618 fi
32619 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32620 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32621 test $ba_cv_header_utime_h = yes &&
32622 cat >>confdefs.h <<\_ACEOF
32623 #define HAVE_UTIME_H 1
32624 _ACEOF
32625
32626
32627 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32628 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32629 if test "${ba_cv_header_socklen_t+set}" = set; then
32630   echo $ECHO_N "(cached) $ECHO_C" >&6
32631 else
32632
32633        cat >conftest.$ac_ext <<_ACEOF
32634 /* confdefs.h.  */
32635 _ACEOF
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h.  */
32639
32640               #include <sys/types.h>
32641               #include <sys/socket.h>
32642
32643 int
32644 main ()
32645 {
32646
32647               socklen_t x
32648
32649   ;
32650   return 0;
32651 }
32652 _ACEOF
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657   *) ac_try_echo=$ac_try;;
32658 esac
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660   (eval "$ac_compile") 2>conftest.er1
32661   ac_status=$?
32662   grep -v '^ *+' conftest.er1 >conftest.err
32663   rm -f conftest.er1
32664   cat conftest.err >&5
32665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666   (exit $ac_status); } && {
32667          test -z "$ac_c_werror_flag" ||
32668          test ! -s conftest.err
32669        } && test -s conftest.$ac_objext; then
32670
32671              ba_cv_header_socklen_t=yes
32672
32673 else
32674   echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32676
32677
32678              ba_cv_header_socklen_t=no
32679
32680
32681 fi
32682
32683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32684
32685
32686 fi
32687 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32688 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32689 test $ba_cv_header_socklen_t = yes &&
32690 cat >>confdefs.h <<\_ACEOF
32691 #define HAVE_SOCKLEN_T 1
32692 _ACEOF
32693
32694
32695 ac_ext=cpp
32696 ac_cpp='$CXXCPP $CPPFLAGS'
32697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32700
32701 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32702 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32703 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32704   echo $ECHO_N "(cached) $ECHO_C" >&6
32705 else
32706
32707        cat >conftest.$ac_ext <<_ACEOF
32708 /* confdefs.h.  */
32709 _ACEOF
32710 cat confdefs.h >>conftest.$ac_ext
32711 cat >>conftest.$ac_ext <<_ACEOF
32712 /* end confdefs.h.  */
32713
32714               #include <unistd.h>
32715               #include <sys/types.h>
32716               #include <sys/ioctl.h>
32717
32718 int
32719 main ()
32720 {
32721
32722               int (*d_ioctl)(int fd, unsigned long int request, ...);
32723               d_ioctl = ::ioctl;
32724
32725   ;
32726   return 0;
32727 }
32728 _ACEOF
32729 rm -f conftest.$ac_objext
32730 if { (ac_try="$ac_compile"
32731 case "(($ac_try" in
32732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733   *) ac_try_echo=$ac_try;;
32734 esac
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736   (eval "$ac_compile") 2>conftest.er1
32737   ac_status=$?
32738   grep -v '^ *+' conftest.er1 >conftest.err
32739   rm -f conftest.er1
32740   cat conftest.err >&5
32741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742   (exit $ac_status); } && {
32743          test -z "$ac_cxx_werror_flag" ||
32744          test ! -s conftest.err
32745        } && test -s conftest.$ac_objext; then
32746
32747              ba_cv_header_ioctl_req_t=yes
32748
32749 else
32750   echo "$as_me: failed program was:" >&5
32751 sed 's/^/| /' conftest.$ac_ext >&5
32752
32753
32754              ba_cv_header_ioct_req_t_t=no
32755
32756
32757 fi
32758
32759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32760
32761
32762 fi
32763 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32764 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32765 test $ba_cv_header_ioctl_req_t = yes &&
32766 cat >>confdefs.h <<\_ACEOF
32767 #define HAVE_IOCTL_ULINT_REQUEST 1
32768 _ACEOF
32769
32770
32771 ac_ext=c
32772 ac_cpp='$CPP $CPPFLAGS'
32773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32776
32777
32778 ac_ext=cpp
32779 ac_cpp='$CXXCPP $CPPFLAGS'
32780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32783
32784 { echo "$as_me:$LINENO: checking for typeof" >&5
32785 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32786 if test "${ba_cv_have_typeof+set}" = set; then
32787   echo $ECHO_N "(cached) $ECHO_C" >&6
32788 else
32789
32790        if test "$cross_compiling" = yes; then
32791
32792               ba_cv_have_typeof=no
32793
32794
32795 else
32796   cat >conftest.$ac_ext <<_ACEOF
32797 /* confdefs.h.  */
32798 _ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h.  */
32802
32803               main(){char *a = 0; a = (typeof a)a;}
32804
32805 _ACEOF
32806 rm -f conftest$ac_exeext
32807 if { (ac_try="$ac_link"
32808 case "(($ac_try" in
32809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810   *) ac_try_echo=$ac_try;;
32811 esac
32812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32813   (eval "$ac_link") 2>&5
32814   ac_status=$?
32815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32817   { (case "(($ac_try" in
32818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819   *) ac_try_echo=$ac_try;;
32820 esac
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822   (eval "$ac_try") 2>&5
32823   ac_status=$?
32824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825   (exit $ac_status); }; }; then
32826
32827               ba_cv_have_typeof=yes
32828
32829 else
32830   echo "$as_me: program exited with status $ac_status" >&5
32831 echo "$as_me: failed program was:" >&5
32832 sed 's/^/| /' conftest.$ac_ext >&5
32833
32834 ( exit $ac_status )
32835
32836               ba_cv_have_typeof=no
32837
32838 fi
32839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32840 fi
32841
32842
32843
32844
32845 fi
32846 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32847 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32848 test $ba_cv_have_typeof = yes &&
32849 cat >>confdefs.h <<\_ACEOF
32850 #define HAVE_TYPEOF 1
32851 _ACEOF
32852
32853 ac_ext=c
32854 ac_cpp='$CPP $CPPFLAGS'
32855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32858
32859
32860 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32861 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32862 if test "${ac_cv_c_const+set}" = set; then
32863   echo $ECHO_N "(cached) $ECHO_C" >&6
32864 else
32865   cat >conftest.$ac_ext <<_ACEOF
32866 /* confdefs.h.  */
32867 _ACEOF
32868 cat confdefs.h >>conftest.$ac_ext
32869 cat >>conftest.$ac_ext <<_ACEOF
32870 /* end confdefs.h.  */
32871
32872 int
32873 main ()
32874 {
32875 /* FIXME: Include the comments suggested by Paul. */
32876 #ifndef __cplusplus
32877   /* Ultrix mips cc rejects this.  */
32878   typedef int charset[2];
32879   const charset cs;
32880   /* SunOS 4.1.1 cc rejects this.  */
32881   char const *const *pcpcc;
32882   char **ppc;
32883   /* NEC SVR4.0.2 mips cc rejects this.  */
32884   struct point {int x, y;};
32885   static struct point const zero = {0,0};
32886   /* AIX XL C 1.02.0.0 rejects this.
32887      It does not let you subtract one const X* pointer from another in
32888      an arm of an if-expression whose if-part is not a constant
32889      expression */
32890   const char *g = "string";
32891   pcpcc = &g + (g ? g-g : 0);
32892   /* HPUX 7.0 cc rejects these. */
32893   ++pcpcc;
32894   ppc = (char**) pcpcc;
32895   pcpcc = (char const *const *) ppc;
32896   { /* SCO 3.2v4 cc rejects this.  */
32897     char *t;
32898     char const *s = 0 ? (char *) 0 : (char const *) 0;
32899
32900     *t++ = 0;
32901     if (s) return 0;
32902   }
32903   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32904     int x[] = {25, 17};
32905     const int *foo = &x[0];
32906     ++foo;
32907   }
32908   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32909     typedef const int *iptr;
32910     iptr p = 0;
32911     ++p;
32912   }
32913   { /* AIX XL C 1.02.0.0 rejects this saying
32914        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32915     struct s { int j; const int *ap[3]; };
32916     struct s *b; b->j = 5;
32917   }
32918   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32919     const int foo = 10;
32920     if (!foo) return 0;
32921   }
32922   return !cs[0] && !zero.x;
32923 #endif
32924
32925   ;
32926   return 0;
32927 }
32928 _ACEOF
32929 rm -f conftest.$ac_objext
32930 if { (ac_try="$ac_compile"
32931 case "(($ac_try" in
32932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933   *) ac_try_echo=$ac_try;;
32934 esac
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936   (eval "$ac_compile") 2>conftest.er1
32937   ac_status=$?
32938   grep -v '^ *+' conftest.er1 >conftest.err
32939   rm -f conftest.er1
32940   cat conftest.err >&5
32941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942   (exit $ac_status); } && {
32943          test -z "$ac_c_werror_flag" ||
32944          test ! -s conftest.err
32945        } && test -s conftest.$ac_objext; then
32946   ac_cv_c_const=yes
32947 else
32948   echo "$as_me: failed program was:" >&5
32949 sed 's/^/| /' conftest.$ac_ext >&5
32950
32951         ac_cv_c_const=no
32952 fi
32953
32954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32955 fi
32956 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32957 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32958 if test $ac_cv_c_const = no; then
32959
32960 cat >>confdefs.h <<\_ACEOF
32961 #define const
32962 _ACEOF
32963
32964 fi
32965
32966
32967 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32968 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32969 fstype=no
32970 # The order of these tests is important.
32971 cat >conftest.$ac_ext <<_ACEOF
32972 /* confdefs.h.  */
32973 _ACEOF
32974 cat confdefs.h >>conftest.$ac_ext
32975 cat >>conftest.$ac_ext <<_ACEOF
32976 /* end confdefs.h.  */
32977
32978        #include <sys/statvfs.h>
32979        #include <sys/fstyp.h>
32980
32981 _ACEOF
32982 if { (ac_try="$ac_cpp conftest.$ac_ext"
32983 case "(($ac_try" in
32984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985   *) ac_try_echo=$ac_try;;
32986 esac
32987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32989   ac_status=$?
32990   grep -v '^ *+' conftest.er1 >conftest.err
32991   rm -f conftest.er1
32992   cat conftest.err >&5
32993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994   (exit $ac_status); } >/dev/null && {
32995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32996          test ! -s conftest.err
32997        }; then
32998   cat >>confdefs.h <<\_ACEOF
32999 #define FSTYPE_STATVFS 1
33000 _ACEOF
33001  fstype=SVR4
33002
33003 else
33004   echo "$as_me: failed program was:" >&5
33005 sed 's/^/| /' conftest.$ac_ext >&5
33006
33007
33008 fi
33009
33010 rm -f conftest.err conftest.$ac_ext
33011 if test $fstype = no; then
33012    cat >conftest.$ac_ext <<_ACEOF
33013 /* confdefs.h.  */
33014 _ACEOF
33015 cat confdefs.h >>conftest.$ac_ext
33016 cat >>conftest.$ac_ext <<_ACEOF
33017 /* end confdefs.h.  */
33018
33019           #include <sys/statfs.h>
33020           #include <sys/fstyp.h>
33021
33022 _ACEOF
33023 if { (ac_try="$ac_cpp conftest.$ac_ext"
33024 case "(($ac_try" in
33025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33026   *) ac_try_echo=$ac_try;;
33027 esac
33028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33030   ac_status=$?
33031   grep -v '^ *+' conftest.er1 >conftest.err
33032   rm -f conftest.er1
33033   cat conftest.err >&5
33034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035   (exit $ac_status); } >/dev/null && {
33036          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33037          test ! -s conftest.err
33038        }; then
33039   cat >>confdefs.h <<\_ACEOF
33040 #define FSTYPE_USG_STATFS 1
33041 _ACEOF
33042  fstype=SVR3
33043
33044 else
33045   echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33047
33048
33049 fi
33050
33051 rm -f conftest.err conftest.$ac_ext
33052 fi
33053 if test $fstype = no; then
33054    cat >conftest.$ac_ext <<_ACEOF
33055 /* confdefs.h.  */
33056 _ACEOF
33057 cat confdefs.h >>conftest.$ac_ext
33058 cat >>conftest.$ac_ext <<_ACEOF
33059 /* end confdefs.h.  */
33060
33061           #include <sys/statfs.h>
33062           #include <sys/vmount.h>
33063
33064 _ACEOF
33065 if { (ac_try="$ac_cpp conftest.$ac_ext"
33066 case "(($ac_try" in
33067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068   *) ac_try_echo=$ac_try;;
33069 esac
33070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33072   ac_status=$?
33073   grep -v '^ *+' conftest.er1 >conftest.err
33074   rm -f conftest.er1
33075   cat conftest.err >&5
33076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077   (exit $ac_status); } >/dev/null && {
33078          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33079          test ! -s conftest.err
33080        }; then
33081   cat >>confdefs.h <<\_ACEOF
33082 #define FSTYPE_AIX_STATFS 1
33083 _ACEOF
33084  fstype=AIX
33085
33086 else
33087   echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.$ac_ext >&5
33089
33090
33091 fi
33092
33093 rm -f conftest.err conftest.$ac_ext
33094 fi
33095 if test $fstype = no; then
33096    cat >conftest.$ac_ext <<_ACEOF
33097 /* confdefs.h.  */
33098 _ACEOF
33099 cat confdefs.h >>conftest.$ac_ext
33100 cat >>conftest.$ac_ext <<_ACEOF
33101 /* end confdefs.h.  */
33102
33103           #include <mntent.h>
33104
33105 _ACEOF
33106 if { (ac_try="$ac_cpp conftest.$ac_ext"
33107 case "(($ac_try" in
33108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109   *) ac_try_echo=$ac_try;;
33110 esac
33111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33113   ac_status=$?
33114   grep -v '^ *+' conftest.er1 >conftest.err
33115   rm -f conftest.er1
33116   cat conftest.err >&5
33117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118   (exit $ac_status); } >/dev/null && {
33119          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33120          test ! -s conftest.err
33121        }; then
33122   cat >>confdefs.h <<\_ACEOF
33123 #define FSTYPE_MNTENT 1
33124 _ACEOF
33125  fstype=4.3BSD
33126
33127 else
33128   echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33130
33131
33132 fi
33133
33134 rm -f conftest.err conftest.$ac_ext
33135 fi
33136 if test $fstype = no; then
33137    cat >conftest.$ac_ext <<_ACEOF
33138 /* confdefs.h.  */
33139 _ACEOF
33140 cat confdefs.h >>conftest.$ac_ext
33141 cat >>conftest.$ac_ext <<_ACEOF
33142 /* end confdefs.h.  */
33143 #include <sys/mount.h>
33144
33145 _ACEOF
33146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33147   $EGREP "f_type;" >/dev/null 2>&1; then
33148   cat >>confdefs.h <<\_ACEOF
33149 #define FSTYPE_STATFS 1
33150 _ACEOF
33151  fstype=4.4BSD/OSF1
33152 fi
33153 rm -f conftest*
33154
33155 fi
33156 if test $fstype = no; then
33157    cat >conftest.$ac_ext <<_ACEOF
33158 /* confdefs.h.  */
33159 _ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h.  */
33163
33164           #include <sys/mount.h>
33165           #include <sys/fs_types.h>
33166
33167 _ACEOF
33168 if { (ac_try="$ac_cpp conftest.$ac_ext"
33169 case "(($ac_try" in
33170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33171   *) ac_try_echo=$ac_try;;
33172 esac
33173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33175   ac_status=$?
33176   grep -v '^ *+' conftest.er1 >conftest.err
33177   rm -f conftest.er1
33178   cat conftest.err >&5
33179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180   (exit $ac_status); } >/dev/null && {
33181          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33182          test ! -s conftest.err
33183        }; then
33184   cat >>confdefs.h <<\_ACEOF
33185 #define FSTYPE_GETMNT 1
33186 _ACEOF
33187  fstype=Ultrix
33188
33189 else
33190   echo "$as_me: failed program was:" >&5
33191 sed 's/^/| /' conftest.$ac_ext >&5
33192
33193
33194 fi
33195
33196 rm -f conftest.err conftest.$ac_ext
33197 fi
33198 { echo "$as_me:$LINENO: result: $fstype" >&5
33199 echo "${ECHO_T}$fstype" >&6; }
33200
33201 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33202   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33203 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33204 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33205   echo $ECHO_N "(cached) $ECHO_C" >&6
33206 fi
33207 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33208 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33209 else
33210   # Is the header compilable?
33211 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33212 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33213 cat >conftest.$ac_ext <<_ACEOF
33214 /* confdefs.h.  */
33215 _ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h.  */
33219 $ac_includes_default
33220 #include <sys/statvfs.h>
33221 _ACEOF
33222 rm -f conftest.$ac_objext
33223 if { (ac_try="$ac_compile"
33224 case "(($ac_try" in
33225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226   *) ac_try_echo=$ac_try;;
33227 esac
33228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229   (eval "$ac_compile") 2>conftest.er1
33230   ac_status=$?
33231   grep -v '^ *+' conftest.er1 >conftest.err
33232   rm -f conftest.er1
33233   cat conftest.err >&5
33234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235   (exit $ac_status); } && {
33236          test -z "$ac_c_werror_flag" ||
33237          test ! -s conftest.err
33238        } && test -s conftest.$ac_objext; then
33239   ac_header_compiler=yes
33240 else
33241   echo "$as_me: failed program was:" >&5
33242 sed 's/^/| /' conftest.$ac_ext >&5
33243
33244         ac_header_compiler=no
33245 fi
33246
33247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33249 echo "${ECHO_T}$ac_header_compiler" >&6; }
33250
33251 # Is the header present?
33252 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33253 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33254 cat >conftest.$ac_ext <<_ACEOF
33255 /* confdefs.h.  */
33256 _ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h.  */
33260 #include <sys/statvfs.h>
33261 _ACEOF
33262 if { (ac_try="$ac_cpp conftest.$ac_ext"
33263 case "(($ac_try" in
33264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33265   *) ac_try_echo=$ac_try;;
33266 esac
33267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33269   ac_status=$?
33270   grep -v '^ *+' conftest.er1 >conftest.err
33271   rm -f conftest.er1
33272   cat conftest.err >&5
33273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274   (exit $ac_status); } >/dev/null && {
33275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33276          test ! -s conftest.err
33277        }; then
33278   ac_header_preproc=yes
33279 else
33280   echo "$as_me: failed program was:" >&5
33281 sed 's/^/| /' conftest.$ac_ext >&5
33282
33283   ac_header_preproc=no
33284 fi
33285
33286 rm -f conftest.err conftest.$ac_ext
33287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33288 echo "${ECHO_T}$ac_header_preproc" >&6; }
33289
33290 # So?  What about this header?
33291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33292   yes:no: )
33293     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33294 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33295     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33296 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33297     ac_header_preproc=yes
33298     ;;
33299   no:yes:* )
33300     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33301 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33302     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33303 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33304     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33305 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33306     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33307 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33308     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33309 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33310     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33311 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33312
33313     ;;
33314 esac
33315 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33316 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33317 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33318   echo $ECHO_N "(cached) $ECHO_C" >&6
33319 else
33320   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33321 fi
33322 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33323 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33324
33325 fi
33326 if test $ac_cv_header_sys_statvfs_h = yes; then
33327
33328 cat >>confdefs.h <<\_ACEOF
33329 #define HAVE_SYS_STATVFS_H 1
33330 _ACEOF
33331
33332 fi
33333
33334
33335
33336 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33337 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33338 if test "${ac_cv_type_signal+set}" = set; then
33339   echo $ECHO_N "(cached) $ECHO_C" >&6
33340 else
33341   cat >conftest.$ac_ext <<_ACEOF
33342 /* confdefs.h.  */
33343 _ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h.  */
33347 #include <sys/types.h>
33348 #include <signal.h>
33349
33350 int
33351 main ()
33352 {
33353 return *(signal (0, 0)) (0) == 1;
33354   ;
33355   return 0;
33356 }
33357 _ACEOF
33358 rm -f conftest.$ac_objext
33359 if { (ac_try="$ac_compile"
33360 case "(($ac_try" in
33361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362   *) ac_try_echo=$ac_try;;
33363 esac
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365   (eval "$ac_compile") 2>conftest.er1
33366   ac_status=$?
33367   grep -v '^ *+' conftest.er1 >conftest.err
33368   rm -f conftest.er1
33369   cat conftest.err >&5
33370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371   (exit $ac_status); } && {
33372          test -z "$ac_c_werror_flag" ||
33373          test ! -s conftest.err
33374        } && test -s conftest.$ac_objext; then
33375   ac_cv_type_signal=int
33376 else
33377   echo "$as_me: failed program was:" >&5
33378 sed 's/^/| /' conftest.$ac_ext >&5
33379
33380         ac_cv_type_signal=void
33381 fi
33382
33383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33384 fi
33385 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33386 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33387
33388 cat >>confdefs.h <<_ACEOF
33389 #define RETSIGTYPE $ac_cv_type_signal
33390 _ACEOF
33391
33392
33393
33394   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33395 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33396   if test "${bash_cv_signal_vintage+set}" = set; then
33397   echo $ECHO_N "(cached) $ECHO_C" >&6
33398 else
33399
33400     cat >conftest.$ac_ext <<_ACEOF
33401 /* confdefs.h.  */
33402 _ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h.  */
33406 #include <signal.h>
33407 int
33408 main ()
33409 {
33410
33411       sigset_t ss;
33412       struct sigaction sa;
33413       sigemptyset(&ss); sigsuspend(&ss);
33414       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33415       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33416
33417   ;
33418   return 0;
33419 }
33420 _ACEOF
33421 rm -f conftest.$ac_objext conftest$ac_exeext
33422 if { (ac_try="$ac_link"
33423 case "(($ac_try" in
33424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425   *) ac_try_echo=$ac_try;;
33426 esac
33427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428   (eval "$ac_link") 2>conftest.er1
33429   ac_status=$?
33430   grep -v '^ *+' conftest.er1 >conftest.err
33431   rm -f conftest.er1
33432   cat conftest.err >&5
33433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434   (exit $ac_status); } && {
33435          test -z "$ac_c_werror_flag" ||
33436          test ! -s conftest.err
33437        } && test -s conftest$ac_exeext &&
33438        $as_test_x conftest$ac_exeext; then
33439   bash_cv_signal_vintage="posix"
33440 else
33441   echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33443
33444
33445       cat >conftest.$ac_ext <<_ACEOF
33446 /* confdefs.h.  */
33447 _ACEOF
33448 cat confdefs.h >>conftest.$ac_ext
33449 cat >>conftest.$ac_ext <<_ACEOF
33450 /* end confdefs.h.  */
33451 #include <signal.h>
33452 int
33453 main ()
33454 {
33455
33456           int mask = sigmask(SIGINT);
33457           sigsetmask(mask); sigblock(mask); sigpause(mask);
33458
33459   ;
33460   return 0;
33461 }
33462 _ACEOF
33463 rm -f conftest.$ac_objext conftest$ac_exeext
33464 if { (ac_try="$ac_link"
33465 case "(($ac_try" in
33466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33467   *) ac_try_echo=$ac_try;;
33468 esac
33469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33470   (eval "$ac_link") 2>conftest.er1
33471   ac_status=$?
33472   grep -v '^ *+' conftest.er1 >conftest.err
33473   rm -f conftest.er1
33474   cat conftest.err >&5
33475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476   (exit $ac_status); } && {
33477          test -z "$ac_c_werror_flag" ||
33478          test ! -s conftest.err
33479        } && test -s conftest$ac_exeext &&
33480        $as_test_x conftest$ac_exeext; then
33481   bash_cv_signal_vintage="4.2bsd"
33482 else
33483   echo "$as_me: failed program was:" >&5
33484 sed 's/^/| /' conftest.$ac_ext >&5
33485
33486
33487         cat >conftest.$ac_ext <<_ACEOF
33488 /* confdefs.h.  */
33489 _ACEOF
33490 cat confdefs.h >>conftest.$ac_ext
33491 cat >>conftest.$ac_ext <<_ACEOF
33492 /* end confdefs.h.  */
33493
33494           #include <signal.h>
33495           RETSIGTYPE foo() { }
33496 int
33497 main ()
33498 {
33499
33500                   int mask = sigmask(SIGINT);
33501                   sigset(SIGINT, foo); sigrelse(SIGINT);
33502                   sighold(SIGINT); sigpause(SIGINT);
33503
33504   ;
33505   return 0;
33506 }
33507 _ACEOF
33508 rm -f conftest.$ac_objext conftest$ac_exeext
33509 if { (ac_try="$ac_link"
33510 case "(($ac_try" in
33511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33512   *) ac_try_echo=$ac_try;;
33513 esac
33514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33515   (eval "$ac_link") 2>conftest.er1
33516   ac_status=$?
33517   grep -v '^ *+' conftest.er1 >conftest.err
33518   rm -f conftest.er1
33519   cat conftest.err >&5
33520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521   (exit $ac_status); } && {
33522          test -z "$ac_c_werror_flag" ||
33523          test ! -s conftest.err
33524        } && test -s conftest$ac_exeext &&
33525        $as_test_x conftest$ac_exeext; then
33526   bash_cv_signal_vintage="svr3"
33527 else
33528   echo "$as_me: failed program was:" >&5
33529 sed 's/^/| /' conftest.$ac_ext >&5
33530
33531         bash_cv_signal_vintage="v7"
33532
33533 fi
33534
33535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33536       conftest$ac_exeext conftest.$ac_ext
33537
33538 fi
33539
33540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33541       conftest$ac_exeext conftest.$ac_ext
33542
33543 fi
33544
33545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33546       conftest$ac_exeext conftest.$ac_ext
33547
33548 fi
33549
33550   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33551 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33552   if test "$bash_cv_signal_vintage" = "posix"; then
33553     cat >>confdefs.h <<\_ACEOF
33554 #define HAVE_POSIX_SIGNALS 1
33555 _ACEOF
33556
33557   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33558     cat >>confdefs.h <<\_ACEOF
33559 #define HAVE_BSD_SIGNALS 1
33560 _ACEOF
33561
33562   elif test "$bash_cv_signal_vintage" = "svr3"; then
33563     cat >>confdefs.h <<\_ACEOF
33564 #define HAVE_USG_SIGHOLD 1
33565 _ACEOF
33566
33567   fi
33568
33569 { echo "$as_me:$LINENO: checking for mode_t" >&5
33570 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33571 if test "${ac_cv_type_mode_t+set}" = set; then
33572   echo $ECHO_N "(cached) $ECHO_C" >&6
33573 else
33574   cat >conftest.$ac_ext <<_ACEOF
33575 /* confdefs.h.  */
33576 _ACEOF
33577 cat confdefs.h >>conftest.$ac_ext
33578 cat >>conftest.$ac_ext <<_ACEOF
33579 /* end confdefs.h.  */
33580 $ac_includes_default
33581 typedef mode_t ac__type_new_;
33582 int
33583 main ()
33584 {
33585 if ((ac__type_new_ *) 0)
33586   return 0;
33587 if (sizeof (ac__type_new_))
33588   return 0;
33589   ;
33590   return 0;
33591 }
33592 _ACEOF
33593 rm -f conftest.$ac_objext
33594 if { (ac_try="$ac_compile"
33595 case "(($ac_try" in
33596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33597   *) ac_try_echo=$ac_try;;
33598 esac
33599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33600   (eval "$ac_compile") 2>conftest.er1
33601   ac_status=$?
33602   grep -v '^ *+' conftest.er1 >conftest.err
33603   rm -f conftest.er1
33604   cat conftest.err >&5
33605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606   (exit $ac_status); } && {
33607          test -z "$ac_c_werror_flag" ||
33608          test ! -s conftest.err
33609        } && test -s conftest.$ac_objext; then
33610   ac_cv_type_mode_t=yes
33611 else
33612   echo "$as_me: failed program was:" >&5
33613 sed 's/^/| /' conftest.$ac_ext >&5
33614
33615         ac_cv_type_mode_t=no
33616 fi
33617
33618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33619 fi
33620 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33621 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33622 if test $ac_cv_type_mode_t = yes; then
33623   :
33624 else
33625
33626 cat >>confdefs.h <<_ACEOF
33627 #define mode_t int
33628 _ACEOF
33629
33630 fi
33631
33632 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33633 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33634 if test "${ac_cv_type_uid_t+set}" = set; then
33635   echo $ECHO_N "(cached) $ECHO_C" >&6
33636 else
33637   cat >conftest.$ac_ext <<_ACEOF
33638 /* confdefs.h.  */
33639 _ACEOF
33640 cat confdefs.h >>conftest.$ac_ext
33641 cat >>conftest.$ac_ext <<_ACEOF
33642 /* end confdefs.h.  */
33643 #include <sys/types.h>
33644
33645 _ACEOF
33646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33647   $EGREP "uid_t" >/dev/null 2>&1; then
33648   ac_cv_type_uid_t=yes
33649 else
33650   ac_cv_type_uid_t=no
33651 fi
33652 rm -f conftest*
33653
33654 fi
33655 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33656 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33657 if test $ac_cv_type_uid_t = no; then
33658
33659 cat >>confdefs.h <<\_ACEOF
33660 #define uid_t int
33661 _ACEOF
33662
33663
33664 cat >>confdefs.h <<\_ACEOF
33665 #define gid_t int
33666 _ACEOF
33667
33668 fi
33669
33670 { echo "$as_me:$LINENO: checking for size_t" >&5
33671 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33672 if test "${ac_cv_type_size_t+set}" = set; then
33673   echo $ECHO_N "(cached) $ECHO_C" >&6
33674 else
33675   cat >conftest.$ac_ext <<_ACEOF
33676 /* confdefs.h.  */
33677 _ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h.  */
33681 $ac_includes_default
33682 typedef size_t ac__type_new_;
33683 int
33684 main ()
33685 {
33686 if ((ac__type_new_ *) 0)
33687   return 0;
33688 if (sizeof (ac__type_new_))
33689   return 0;
33690   ;
33691   return 0;
33692 }
33693 _ACEOF
33694 rm -f conftest.$ac_objext
33695 if { (ac_try="$ac_compile"
33696 case "(($ac_try" in
33697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698   *) ac_try_echo=$ac_try;;
33699 esac
33700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701   (eval "$ac_compile") 2>conftest.er1
33702   ac_status=$?
33703   grep -v '^ *+' conftest.er1 >conftest.err
33704   rm -f conftest.er1
33705   cat conftest.err >&5
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); } && {
33708          test -z "$ac_c_werror_flag" ||
33709          test ! -s conftest.err
33710        } && test -s conftest.$ac_objext; then
33711   ac_cv_type_size_t=yes
33712 else
33713   echo "$as_me: failed program was:" >&5
33714 sed 's/^/| /' conftest.$ac_ext >&5
33715
33716         ac_cv_type_size_t=no
33717 fi
33718
33719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33720 fi
33721 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33722 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33723 if test $ac_cv_type_size_t = yes; then
33724   :
33725 else
33726
33727 cat >>confdefs.h <<_ACEOF
33728 #define size_t unsigned int
33729 _ACEOF
33730
33731 fi
33732
33733 { echo "$as_me:$LINENO: checking for pid_t" >&5
33734 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33735 if test "${ac_cv_type_pid_t+set}" = set; then
33736   echo $ECHO_N "(cached) $ECHO_C" >&6
33737 else
33738   cat >conftest.$ac_ext <<_ACEOF
33739 /* confdefs.h.  */
33740 _ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h.  */
33744 $ac_includes_default
33745 typedef pid_t ac__type_new_;
33746 int
33747 main ()
33748 {
33749 if ((ac__type_new_ *) 0)
33750   return 0;
33751 if (sizeof (ac__type_new_))
33752   return 0;
33753   ;
33754   return 0;
33755 }
33756 _ACEOF
33757 rm -f conftest.$ac_objext
33758 if { (ac_try="$ac_compile"
33759 case "(($ac_try" in
33760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761   *) ac_try_echo=$ac_try;;
33762 esac
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764   (eval "$ac_compile") 2>conftest.er1
33765   ac_status=$?
33766   grep -v '^ *+' conftest.er1 >conftest.err
33767   rm -f conftest.er1
33768   cat conftest.err >&5
33769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770   (exit $ac_status); } && {
33771          test -z "$ac_c_werror_flag" ||
33772          test ! -s conftest.err
33773        } && test -s conftest.$ac_objext; then
33774   ac_cv_type_pid_t=yes
33775 else
33776   echo "$as_me: failed program was:" >&5
33777 sed 's/^/| /' conftest.$ac_ext >&5
33778
33779         ac_cv_type_pid_t=no
33780 fi
33781
33782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33783 fi
33784 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33785 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33786 if test $ac_cv_type_pid_t = yes; then
33787   :
33788 else
33789
33790 cat >>confdefs.h <<_ACEOF
33791 #define pid_t int
33792 _ACEOF
33793
33794 fi
33795
33796 { echo "$as_me:$LINENO: checking for off_t" >&5
33797 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33798 if test "${ac_cv_type_off_t+set}" = set; then
33799   echo $ECHO_N "(cached) $ECHO_C" >&6
33800 else
33801   cat >conftest.$ac_ext <<_ACEOF
33802 /* confdefs.h.  */
33803 _ACEOF
33804 cat confdefs.h >>conftest.$ac_ext
33805 cat >>conftest.$ac_ext <<_ACEOF
33806 /* end confdefs.h.  */
33807 $ac_includes_default
33808 typedef off_t ac__type_new_;
33809 int
33810 main ()
33811 {
33812 if ((ac__type_new_ *) 0)
33813   return 0;
33814 if (sizeof (ac__type_new_))
33815   return 0;
33816   ;
33817   return 0;
33818 }
33819 _ACEOF
33820 rm -f conftest.$ac_objext
33821 if { (ac_try="$ac_compile"
33822 case "(($ac_try" in
33823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824   *) ac_try_echo=$ac_try;;
33825 esac
33826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33827   (eval "$ac_compile") 2>conftest.er1
33828   ac_status=$?
33829   grep -v '^ *+' conftest.er1 >conftest.err
33830   rm -f conftest.er1
33831   cat conftest.err >&5
33832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833   (exit $ac_status); } && {
33834          test -z "$ac_c_werror_flag" ||
33835          test ! -s conftest.err
33836        } && test -s conftest.$ac_objext; then
33837   ac_cv_type_off_t=yes
33838 else
33839   echo "$as_me: failed program was:" >&5
33840 sed 's/^/| /' conftest.$ac_ext >&5
33841
33842         ac_cv_type_off_t=no
33843 fi
33844
33845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33846 fi
33847 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33848 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33849 if test $ac_cv_type_off_t = yes; then
33850   :
33851 else
33852
33853 cat >>confdefs.h <<_ACEOF
33854 #define off_t long int
33855 _ACEOF
33856
33857 fi
33858
33859
33860   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33861 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33862 if test "${ac_cv_type_intptr_t+set}" = set; then
33863   echo $ECHO_N "(cached) $ECHO_C" >&6
33864 else
33865   cat >conftest.$ac_ext <<_ACEOF
33866 /* confdefs.h.  */
33867 _ACEOF
33868 cat confdefs.h >>conftest.$ac_ext
33869 cat >>conftest.$ac_ext <<_ACEOF
33870 /* end confdefs.h.  */
33871 $ac_includes_default
33872 typedef intptr_t ac__type_new_;
33873 int
33874 main ()
33875 {
33876 if ((ac__type_new_ *) 0)
33877   return 0;
33878 if (sizeof (ac__type_new_))
33879   return 0;
33880   ;
33881   return 0;
33882 }
33883 _ACEOF
33884 rm -f conftest.$ac_objext
33885 if { (ac_try="$ac_compile"
33886 case "(($ac_try" in
33887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33888   *) ac_try_echo=$ac_try;;
33889 esac
33890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33891   (eval "$ac_compile") 2>conftest.er1
33892   ac_status=$?
33893   grep -v '^ *+' conftest.er1 >conftest.err
33894   rm -f conftest.er1
33895   cat conftest.err >&5
33896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897   (exit $ac_status); } && {
33898          test -z "$ac_c_werror_flag" ||
33899          test ! -s conftest.err
33900        } && test -s conftest.$ac_objext; then
33901   ac_cv_type_intptr_t=yes
33902 else
33903   echo "$as_me: failed program was:" >&5
33904 sed 's/^/| /' conftest.$ac_ext >&5
33905
33906         ac_cv_type_intptr_t=no
33907 fi
33908
33909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33910 fi
33911 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33912 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33913 if test $ac_cv_type_intptr_t = yes; then
33914
33915 cat >>confdefs.h <<\_ACEOF
33916 #define HAVE_INTPTR_T 1
33917 _ACEOF
33918
33919 else
33920   for ac_type in 'int' 'long int' 'long long int'; do
33921        cat >conftest.$ac_ext <<_ACEOF
33922 /* confdefs.h.  */
33923 _ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h.  */
33927 $ac_includes_default
33928 int
33929 main ()
33930 {
33931 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33932 test_array [0] = 0
33933
33934   ;
33935   return 0;
33936 }
33937 _ACEOF
33938 rm -f conftest.$ac_objext
33939 if { (ac_try="$ac_compile"
33940 case "(($ac_try" in
33941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33942   *) ac_try_echo=$ac_try;;
33943 esac
33944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33945   (eval "$ac_compile") 2>conftest.er1
33946   ac_status=$?
33947   grep -v '^ *+' conftest.er1 >conftest.err
33948   rm -f conftest.er1
33949   cat conftest.err >&5
33950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951   (exit $ac_status); } && {
33952          test -z "$ac_c_werror_flag" ||
33953          test ! -s conftest.err
33954        } && test -s conftest.$ac_objext; then
33955
33956 cat >>confdefs.h <<_ACEOF
33957 #define intptr_t $ac_type
33958 _ACEOF
33959
33960           ac_type=
33961 else
33962   echo "$as_me: failed program was:" >&5
33963 sed 's/^/| /' conftest.$ac_ext >&5
33964
33965
33966 fi
33967
33968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33969        test -z "$ac_type" && break
33970      done
33971 fi
33972
33973
33974
33975   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33976 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33977 if test "${ac_cv_type_uintptr_t+set}" = set; then
33978   echo $ECHO_N "(cached) $ECHO_C" >&6
33979 else
33980   cat >conftest.$ac_ext <<_ACEOF
33981 /* confdefs.h.  */
33982 _ACEOF
33983 cat confdefs.h >>conftest.$ac_ext
33984 cat >>conftest.$ac_ext <<_ACEOF
33985 /* end confdefs.h.  */
33986 $ac_includes_default
33987 typedef uintptr_t ac__type_new_;
33988 int
33989 main ()
33990 {
33991 if ((ac__type_new_ *) 0)
33992   return 0;
33993 if (sizeof (ac__type_new_))
33994   return 0;
33995   ;
33996   return 0;
33997 }
33998 _ACEOF
33999 rm -f conftest.$ac_objext
34000 if { (ac_try="$ac_compile"
34001 case "(($ac_try" in
34002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34003   *) ac_try_echo=$ac_try;;
34004 esac
34005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34006   (eval "$ac_compile") 2>conftest.er1
34007   ac_status=$?
34008   grep -v '^ *+' conftest.er1 >conftest.err
34009   rm -f conftest.er1
34010   cat conftest.err >&5
34011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012   (exit $ac_status); } && {
34013          test -z "$ac_c_werror_flag" ||
34014          test ! -s conftest.err
34015        } && test -s conftest.$ac_objext; then
34016   ac_cv_type_uintptr_t=yes
34017 else
34018   echo "$as_me: failed program was:" >&5
34019 sed 's/^/| /' conftest.$ac_ext >&5
34020
34021         ac_cv_type_uintptr_t=no
34022 fi
34023
34024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34025 fi
34026 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34027 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34028 if test $ac_cv_type_uintptr_t = yes; then
34029
34030 cat >>confdefs.h <<\_ACEOF
34031 #define HAVE_UINTPTR_T 1
34032 _ACEOF
34033
34034 else
34035   for ac_type in 'unsigned int' 'unsigned long int' \
34036         'unsigned long long int'; do
34037        cat >conftest.$ac_ext <<_ACEOF
34038 /* confdefs.h.  */
34039 _ACEOF
34040 cat confdefs.h >>conftest.$ac_ext
34041 cat >>conftest.$ac_ext <<_ACEOF
34042 /* end confdefs.h.  */
34043 $ac_includes_default
34044 int
34045 main ()
34046 {
34047 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34048 test_array [0] = 0
34049
34050   ;
34051   return 0;
34052 }
34053 _ACEOF
34054 rm -f conftest.$ac_objext
34055 if { (ac_try="$ac_compile"
34056 case "(($ac_try" in
34057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34058   *) ac_try_echo=$ac_try;;
34059 esac
34060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34061   (eval "$ac_compile") 2>conftest.er1
34062   ac_status=$?
34063   grep -v '^ *+' conftest.er1 >conftest.err
34064   rm -f conftest.er1
34065   cat conftest.err >&5
34066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067   (exit $ac_status); } && {
34068          test -z "$ac_c_werror_flag" ||
34069          test ! -s conftest.err
34070        } && test -s conftest.$ac_objext; then
34071
34072 cat >>confdefs.h <<_ACEOF
34073 #define uintptr_t $ac_type
34074 _ACEOF
34075
34076           ac_type=
34077 else
34078   echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34080
34081
34082 fi
34083
34084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34085        test -z "$ac_type" && break
34086      done
34087 fi
34088
34089
34090 { echo "$as_me:$LINENO: checking for ino_t" >&5
34091 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34092 if test "${ac_cv_type_ino_t+set}" = set; then
34093   echo $ECHO_N "(cached) $ECHO_C" >&6
34094 else
34095   cat >conftest.$ac_ext <<_ACEOF
34096 /* confdefs.h.  */
34097 _ACEOF
34098 cat confdefs.h >>conftest.$ac_ext
34099 cat >>conftest.$ac_ext <<_ACEOF
34100 /* end confdefs.h.  */
34101 $ac_includes_default
34102 typedef ino_t ac__type_new_;
34103 int
34104 main ()
34105 {
34106 if ((ac__type_new_ *) 0)
34107   return 0;
34108 if (sizeof (ac__type_new_))
34109   return 0;
34110   ;
34111   return 0;
34112 }
34113 _ACEOF
34114 rm -f conftest.$ac_objext
34115 if { (ac_try="$ac_compile"
34116 case "(($ac_try" in
34117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34118   *) ac_try_echo=$ac_try;;
34119 esac
34120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34121   (eval "$ac_compile") 2>conftest.er1
34122   ac_status=$?
34123   grep -v '^ *+' conftest.er1 >conftest.err
34124   rm -f conftest.er1
34125   cat conftest.err >&5
34126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127   (exit $ac_status); } && {
34128          test -z "$ac_c_werror_flag" ||
34129          test ! -s conftest.err
34130        } && test -s conftest.$ac_objext; then
34131   ac_cv_type_ino_t=yes
34132 else
34133   echo "$as_me: failed program was:" >&5
34134 sed 's/^/| /' conftest.$ac_ext >&5
34135
34136         ac_cv_type_ino_t=no
34137 fi
34138
34139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34140 fi
34141 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34142 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34143 if test $ac_cv_type_ino_t = yes; then
34144   :
34145 else
34146
34147 cat >>confdefs.h <<_ACEOF
34148 #define ino_t unsigned long
34149 _ACEOF
34150
34151 fi
34152
34153 { echo "$as_me:$LINENO: checking for dev_t" >&5
34154 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34155 if test "${ac_cv_type_dev_t+set}" = set; then
34156   echo $ECHO_N "(cached) $ECHO_C" >&6
34157 else
34158   cat >conftest.$ac_ext <<_ACEOF
34159 /* confdefs.h.  */
34160 _ACEOF
34161 cat confdefs.h >>conftest.$ac_ext
34162 cat >>conftest.$ac_ext <<_ACEOF
34163 /* end confdefs.h.  */
34164 $ac_includes_default
34165 typedef dev_t ac__type_new_;
34166 int
34167 main ()
34168 {
34169 if ((ac__type_new_ *) 0)
34170   return 0;
34171 if (sizeof (ac__type_new_))
34172   return 0;
34173   ;
34174   return 0;
34175 }
34176 _ACEOF
34177 rm -f conftest.$ac_objext
34178 if { (ac_try="$ac_compile"
34179 case "(($ac_try" in
34180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181   *) ac_try_echo=$ac_try;;
34182 esac
34183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184   (eval "$ac_compile") 2>conftest.er1
34185   ac_status=$?
34186   grep -v '^ *+' conftest.er1 >conftest.err
34187   rm -f conftest.er1
34188   cat conftest.err >&5
34189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190   (exit $ac_status); } && {
34191          test -z "$ac_c_werror_flag" ||
34192          test ! -s conftest.err
34193        } && test -s conftest.$ac_objext; then
34194   ac_cv_type_dev_t=yes
34195 else
34196   echo "$as_me: failed program was:" >&5
34197 sed 's/^/| /' conftest.$ac_ext >&5
34198
34199         ac_cv_type_dev_t=no
34200 fi
34201
34202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34203 fi
34204 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34205 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34206 if test $ac_cv_type_dev_t = yes; then
34207   :
34208 else
34209
34210 cat >>confdefs.h <<_ACEOF
34211 #define dev_t unsigned long
34212 _ACEOF
34213
34214 fi
34215
34216 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34217 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34218 if test "${ac_cv_type_daddr_t+set}" = set; then
34219   echo $ECHO_N "(cached) $ECHO_C" >&6
34220 else
34221   cat >conftest.$ac_ext <<_ACEOF
34222 /* confdefs.h.  */
34223 _ACEOF
34224 cat confdefs.h >>conftest.$ac_ext
34225 cat >>conftest.$ac_ext <<_ACEOF
34226 /* end confdefs.h.  */
34227 $ac_includes_default
34228 typedef daddr_t ac__type_new_;
34229 int
34230 main ()
34231 {
34232 if ((ac__type_new_ *) 0)
34233   return 0;
34234 if (sizeof (ac__type_new_))
34235   return 0;
34236   ;
34237   return 0;
34238 }
34239 _ACEOF
34240 rm -f conftest.$ac_objext
34241 if { (ac_try="$ac_compile"
34242 case "(($ac_try" in
34243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34244   *) ac_try_echo=$ac_try;;
34245 esac
34246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34247   (eval "$ac_compile") 2>conftest.er1
34248   ac_status=$?
34249   grep -v '^ *+' conftest.er1 >conftest.err
34250   rm -f conftest.er1
34251   cat conftest.err >&5
34252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253   (exit $ac_status); } && {
34254          test -z "$ac_c_werror_flag" ||
34255          test ! -s conftest.err
34256        } && test -s conftest.$ac_objext; then
34257   ac_cv_type_daddr_t=yes
34258 else
34259   echo "$as_me: failed program was:" >&5
34260 sed 's/^/| /' conftest.$ac_ext >&5
34261
34262         ac_cv_type_daddr_t=no
34263 fi
34264
34265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34266 fi
34267 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34268 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34269 if test $ac_cv_type_daddr_t = yes; then
34270   :
34271 else
34272
34273 cat >>confdefs.h <<_ACEOF
34274 #define daddr_t long
34275 _ACEOF
34276
34277 fi
34278
34279 { echo "$as_me:$LINENO: checking for major_t" >&5
34280 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34281 if test "${ac_cv_type_major_t+set}" = set; then
34282   echo $ECHO_N "(cached) $ECHO_C" >&6
34283 else
34284   cat >conftest.$ac_ext <<_ACEOF
34285 /* confdefs.h.  */
34286 _ACEOF
34287 cat confdefs.h >>conftest.$ac_ext
34288 cat >>conftest.$ac_ext <<_ACEOF
34289 /* end confdefs.h.  */
34290 $ac_includes_default
34291 typedef major_t ac__type_new_;
34292 int
34293 main ()
34294 {
34295 if ((ac__type_new_ *) 0)
34296   return 0;
34297 if (sizeof (ac__type_new_))
34298   return 0;
34299   ;
34300   return 0;
34301 }
34302 _ACEOF
34303 rm -f conftest.$ac_objext
34304 if { (ac_try="$ac_compile"
34305 case "(($ac_try" in
34306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34307   *) ac_try_echo=$ac_try;;
34308 esac
34309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34310   (eval "$ac_compile") 2>conftest.er1
34311   ac_status=$?
34312   grep -v '^ *+' conftest.er1 >conftest.err
34313   rm -f conftest.er1
34314   cat conftest.err >&5
34315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316   (exit $ac_status); } && {
34317          test -z "$ac_c_werror_flag" ||
34318          test ! -s conftest.err
34319        } && test -s conftest.$ac_objext; then
34320   ac_cv_type_major_t=yes
34321 else
34322   echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34324
34325         ac_cv_type_major_t=no
34326 fi
34327
34328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34329 fi
34330 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34331 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34332 if test $ac_cv_type_major_t = yes; then
34333   :
34334 else
34335
34336 cat >>confdefs.h <<_ACEOF
34337 #define major_t int
34338 _ACEOF
34339
34340 fi
34341
34342 { echo "$as_me:$LINENO: checking for minor_t" >&5
34343 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34344 if test "${ac_cv_type_minor_t+set}" = set; then
34345   echo $ECHO_N "(cached) $ECHO_C" >&6
34346 else
34347   cat >conftest.$ac_ext <<_ACEOF
34348 /* confdefs.h.  */
34349 _ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h.  */
34353 $ac_includes_default
34354 typedef minor_t ac__type_new_;
34355 int
34356 main ()
34357 {
34358 if ((ac__type_new_ *) 0)
34359   return 0;
34360 if (sizeof (ac__type_new_))
34361   return 0;
34362   ;
34363   return 0;
34364 }
34365 _ACEOF
34366 rm -f conftest.$ac_objext
34367 if { (ac_try="$ac_compile"
34368 case "(($ac_try" in
34369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34370   *) ac_try_echo=$ac_try;;
34371 esac
34372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34373   (eval "$ac_compile") 2>conftest.er1
34374   ac_status=$?
34375   grep -v '^ *+' conftest.er1 >conftest.err
34376   rm -f conftest.er1
34377   cat conftest.err >&5
34378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34379   (exit $ac_status); } && {
34380          test -z "$ac_c_werror_flag" ||
34381          test ! -s conftest.err
34382        } && test -s conftest.$ac_objext; then
34383   ac_cv_type_minor_t=yes
34384 else
34385   echo "$as_me: failed program was:" >&5
34386 sed 's/^/| /' conftest.$ac_ext >&5
34387
34388         ac_cv_type_minor_t=no
34389 fi
34390
34391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34392 fi
34393 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34394 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34395 if test $ac_cv_type_minor_t = yes; then
34396   :
34397 else
34398
34399 cat >>confdefs.h <<_ACEOF
34400 #define minor_t int
34401 _ACEOF
34402
34403 fi
34404
34405 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34406 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34407 if test "${ac_cv_type_ssize_t+set}" = set; then
34408   echo $ECHO_N "(cached) $ECHO_C" >&6
34409 else
34410   cat >conftest.$ac_ext <<_ACEOF
34411 /* confdefs.h.  */
34412 _ACEOF
34413 cat confdefs.h >>conftest.$ac_ext
34414 cat >>conftest.$ac_ext <<_ACEOF
34415 /* end confdefs.h.  */
34416 $ac_includes_default
34417 typedef ssize_t ac__type_new_;
34418 int
34419 main ()
34420 {
34421 if ((ac__type_new_ *) 0)
34422   return 0;
34423 if (sizeof (ac__type_new_))
34424   return 0;
34425   ;
34426   return 0;
34427 }
34428 _ACEOF
34429 rm -f conftest.$ac_objext
34430 if { (ac_try="$ac_compile"
34431 case "(($ac_try" in
34432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34433   *) ac_try_echo=$ac_try;;
34434 esac
34435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34436   (eval "$ac_compile") 2>conftest.er1
34437   ac_status=$?
34438   grep -v '^ *+' conftest.er1 >conftest.err
34439   rm -f conftest.er1
34440   cat conftest.err >&5
34441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442   (exit $ac_status); } && {
34443          test -z "$ac_c_werror_flag" ||
34444          test ! -s conftest.err
34445        } && test -s conftest.$ac_objext; then
34446   ac_cv_type_ssize_t=yes
34447 else
34448   echo "$as_me: failed program was:" >&5
34449 sed 's/^/| /' conftest.$ac_ext >&5
34450
34451         ac_cv_type_ssize_t=no
34452 fi
34453
34454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34455 fi
34456 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34457 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34458 if test $ac_cv_type_ssize_t = yes; then
34459   :
34460 else
34461
34462 cat >>confdefs.h <<_ACEOF
34463 #define ssize_t int
34464 _ACEOF
34465
34466 fi
34467
34468 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34469 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34470 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34471   echo $ECHO_N "(cached) $ECHO_C" >&6
34472 else
34473   cat >conftest.$ac_ext <<_ACEOF
34474 /* confdefs.h.  */
34475 _ACEOF
34476 cat confdefs.h >>conftest.$ac_ext
34477 cat >>conftest.$ac_ext <<_ACEOF
34478 /* end confdefs.h.  */
34479 $ac_includes_default
34480 int
34481 main ()
34482 {
34483 static struct stat ac_aggr;
34484 if (ac_aggr.st_blocks)
34485 return 0;
34486   ;
34487   return 0;
34488 }
34489 _ACEOF
34490 rm -f conftest.$ac_objext
34491 if { (ac_try="$ac_compile"
34492 case "(($ac_try" in
34493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34494   *) ac_try_echo=$ac_try;;
34495 esac
34496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34497   (eval "$ac_compile") 2>conftest.er1
34498   ac_status=$?
34499   grep -v '^ *+' conftest.er1 >conftest.err
34500   rm -f conftest.er1
34501   cat conftest.err >&5
34502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34503   (exit $ac_status); } && {
34504          test -z "$ac_c_werror_flag" ||
34505          test ! -s conftest.err
34506        } && test -s conftest.$ac_objext; then
34507   ac_cv_member_struct_stat_st_blocks=yes
34508 else
34509   echo "$as_me: failed program was:" >&5
34510 sed 's/^/| /' conftest.$ac_ext >&5
34511
34512         cat >conftest.$ac_ext <<_ACEOF
34513 /* confdefs.h.  */
34514 _ACEOF
34515 cat confdefs.h >>conftest.$ac_ext
34516 cat >>conftest.$ac_ext <<_ACEOF
34517 /* end confdefs.h.  */
34518 $ac_includes_default
34519 int
34520 main ()
34521 {
34522 static struct stat ac_aggr;
34523 if (sizeof ac_aggr.st_blocks)
34524 return 0;
34525   ;
34526   return 0;
34527 }
34528 _ACEOF
34529 rm -f conftest.$ac_objext
34530 if { (ac_try="$ac_compile"
34531 case "(($ac_try" in
34532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34533   *) ac_try_echo=$ac_try;;
34534 esac
34535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34536   (eval "$ac_compile") 2>conftest.er1
34537   ac_status=$?
34538   grep -v '^ *+' conftest.er1 >conftest.err
34539   rm -f conftest.er1
34540   cat conftest.err >&5
34541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542   (exit $ac_status); } && {
34543          test -z "$ac_c_werror_flag" ||
34544          test ! -s conftest.err
34545        } && test -s conftest.$ac_objext; then
34546   ac_cv_member_struct_stat_st_blocks=yes
34547 else
34548   echo "$as_me: failed program was:" >&5
34549 sed 's/^/| /' conftest.$ac_ext >&5
34550
34551         ac_cv_member_struct_stat_st_blocks=no
34552 fi
34553
34554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34555 fi
34556
34557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34558 fi
34559 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34560 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34561 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34562
34563 cat >>confdefs.h <<_ACEOF
34564 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34565 _ACEOF
34566
34567
34568 cat >>confdefs.h <<\_ACEOF
34569 #define HAVE_ST_BLOCKS 1
34570 _ACEOF
34571
34572 else
34573   case " $LIBOBJS " in
34574   *" fileblocks.$ac_objext "* ) ;;
34575   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34576  ;;
34577 esac
34578
34579 fi
34580
34581
34582 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34583 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34584 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34585   echo $ECHO_N "(cached) $ECHO_C" >&6
34586 else
34587   cat >conftest.$ac_ext <<_ACEOF
34588 /* confdefs.h.  */
34589 _ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h.  */
34593 $ac_includes_default
34594 int
34595 main ()
34596 {
34597 static struct stat ac_aggr;
34598 if (ac_aggr.st_rdev)
34599 return 0;
34600   ;
34601   return 0;
34602 }
34603 _ACEOF
34604 rm -f conftest.$ac_objext
34605 if { (ac_try="$ac_compile"
34606 case "(($ac_try" in
34607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34608   *) ac_try_echo=$ac_try;;
34609 esac
34610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34611   (eval "$ac_compile") 2>conftest.er1
34612   ac_status=$?
34613   grep -v '^ *+' conftest.er1 >conftest.err
34614   rm -f conftest.er1
34615   cat conftest.err >&5
34616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617   (exit $ac_status); } && {
34618          test -z "$ac_c_werror_flag" ||
34619          test ! -s conftest.err
34620        } && test -s conftest.$ac_objext; then
34621   ac_cv_member_struct_stat_st_rdev=yes
34622 else
34623   echo "$as_me: failed program was:" >&5
34624 sed 's/^/| /' conftest.$ac_ext >&5
34625
34626         cat >conftest.$ac_ext <<_ACEOF
34627 /* confdefs.h.  */
34628 _ACEOF
34629 cat confdefs.h >>conftest.$ac_ext
34630 cat >>conftest.$ac_ext <<_ACEOF
34631 /* end confdefs.h.  */
34632 $ac_includes_default
34633 int
34634 main ()
34635 {
34636 static struct stat ac_aggr;
34637 if (sizeof ac_aggr.st_rdev)
34638 return 0;
34639   ;
34640   return 0;
34641 }
34642 _ACEOF
34643 rm -f conftest.$ac_objext
34644 if { (ac_try="$ac_compile"
34645 case "(($ac_try" in
34646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34647   *) ac_try_echo=$ac_try;;
34648 esac
34649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34650   (eval "$ac_compile") 2>conftest.er1
34651   ac_status=$?
34652   grep -v '^ *+' conftest.er1 >conftest.err
34653   rm -f conftest.er1
34654   cat conftest.err >&5
34655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656   (exit $ac_status); } && {
34657          test -z "$ac_c_werror_flag" ||
34658          test ! -s conftest.err
34659        } && test -s conftest.$ac_objext; then
34660   ac_cv_member_struct_stat_st_rdev=yes
34661 else
34662   echo "$as_me: failed program was:" >&5
34663 sed 's/^/| /' conftest.$ac_ext >&5
34664
34665         ac_cv_member_struct_stat_st_rdev=no
34666 fi
34667
34668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34669 fi
34670
34671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34672 fi
34673 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34674 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34675 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34676
34677 cat >>confdefs.h <<_ACEOF
34678 #define HAVE_STRUCT_STAT_ST_RDEV 1
34679 _ACEOF
34680
34681
34682 cat >>confdefs.h <<\_ACEOF
34683 #define HAVE_ST_RDEV 1
34684 _ACEOF
34685
34686 fi
34687
34688
34689 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34690 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34691 if test "${ac_cv_struct_tm+set}" = set; then
34692   echo $ECHO_N "(cached) $ECHO_C" >&6
34693 else
34694   cat >conftest.$ac_ext <<_ACEOF
34695 /* confdefs.h.  */
34696 _ACEOF
34697 cat confdefs.h >>conftest.$ac_ext
34698 cat >>conftest.$ac_ext <<_ACEOF
34699 /* end confdefs.h.  */
34700 #include <sys/types.h>
34701 #include <time.h>
34702
34703 int
34704 main ()
34705 {
34706 struct tm tm;
34707                                      int *p = &tm.tm_sec;
34708                                      return !p;
34709   ;
34710   return 0;
34711 }
34712 _ACEOF
34713 rm -f conftest.$ac_objext
34714 if { (ac_try="$ac_compile"
34715 case "(($ac_try" in
34716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34717   *) ac_try_echo=$ac_try;;
34718 esac
34719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34720   (eval "$ac_compile") 2>conftest.er1
34721   ac_status=$?
34722   grep -v '^ *+' conftest.er1 >conftest.err
34723   rm -f conftest.er1
34724   cat conftest.err >&5
34725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726   (exit $ac_status); } && {
34727          test -z "$ac_c_werror_flag" ||
34728          test ! -s conftest.err
34729        } && test -s conftest.$ac_objext; then
34730   ac_cv_struct_tm=time.h
34731 else
34732   echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34734
34735         ac_cv_struct_tm=sys/time.h
34736 fi
34737
34738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34739 fi
34740 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34741 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34742 if test $ac_cv_struct_tm = sys/time.h; then
34743
34744 cat >>confdefs.h <<\_ACEOF
34745 #define TM_IN_SYS_TIME 1
34746 _ACEOF
34747
34748 fi
34749
34750 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34751 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34752 if test "${ac_cv_c_const+set}" = set; then
34753   echo $ECHO_N "(cached) $ECHO_C" >&6
34754 else
34755   cat >conftest.$ac_ext <<_ACEOF
34756 /* confdefs.h.  */
34757 _ACEOF
34758 cat confdefs.h >>conftest.$ac_ext
34759 cat >>conftest.$ac_ext <<_ACEOF
34760 /* end confdefs.h.  */
34761
34762 int
34763 main ()
34764 {
34765 /* FIXME: Include the comments suggested by Paul. */
34766 #ifndef __cplusplus
34767   /* Ultrix mips cc rejects this.  */
34768   typedef int charset[2];
34769   const charset cs;
34770   /* SunOS 4.1.1 cc rejects this.  */
34771   char const *const *pcpcc;
34772   char **ppc;
34773   /* NEC SVR4.0.2 mips cc rejects this.  */
34774   struct point {int x, y;};
34775   static struct point const zero = {0,0};
34776   /* AIX XL C 1.02.0.0 rejects this.
34777      It does not let you subtract one const X* pointer from another in
34778      an arm of an if-expression whose if-part is not a constant
34779      expression */
34780   const char *g = "string";
34781   pcpcc = &g + (g ? g-g : 0);
34782   /* HPUX 7.0 cc rejects these. */
34783   ++pcpcc;
34784   ppc = (char**) pcpcc;
34785   pcpcc = (char const *const *) ppc;
34786   { /* SCO 3.2v4 cc rejects this.  */
34787     char *t;
34788     char const *s = 0 ? (char *) 0 : (char const *) 0;
34789
34790     *t++ = 0;
34791     if (s) return 0;
34792   }
34793   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34794     int x[] = {25, 17};
34795     const int *foo = &x[0];
34796     ++foo;
34797   }
34798   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34799     typedef const int *iptr;
34800     iptr p = 0;
34801     ++p;
34802   }
34803   { /* AIX XL C 1.02.0.0 rejects this saying
34804        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34805     struct s { int j; const int *ap[3]; };
34806     struct s *b; b->j = 5;
34807   }
34808   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34809     const int foo = 10;
34810     if (!foo) return 0;
34811   }
34812   return !cs[0] && !zero.x;
34813 #endif
34814
34815   ;
34816   return 0;
34817 }
34818 _ACEOF
34819 rm -f conftest.$ac_objext
34820 if { (ac_try="$ac_compile"
34821 case "(($ac_try" in
34822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34823   *) ac_try_echo=$ac_try;;
34824 esac
34825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34826   (eval "$ac_compile") 2>conftest.er1
34827   ac_status=$?
34828   grep -v '^ *+' conftest.er1 >conftest.err
34829   rm -f conftest.er1
34830   cat conftest.err >&5
34831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832   (exit $ac_status); } && {
34833          test -z "$ac_c_werror_flag" ||
34834          test ! -s conftest.err
34835        } && test -s conftest.$ac_objext; then
34836   ac_cv_c_const=yes
34837 else
34838   echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34840
34841         ac_cv_c_const=no
34842 fi
34843
34844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34845 fi
34846 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34847 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34848 if test $ac_cv_c_const = no; then
34849
34850 cat >>confdefs.h <<\_ACEOF
34851 #define const
34852 _ACEOF
34853
34854 fi
34855
34856
34857 { echo "$as_me:$LINENO: checking for char" >&5
34858 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34859 if test "${ac_cv_type_char+set}" = set; then
34860   echo $ECHO_N "(cached) $ECHO_C" >&6
34861 else
34862   cat >conftest.$ac_ext <<_ACEOF
34863 /* confdefs.h.  */
34864 _ACEOF
34865 cat confdefs.h >>conftest.$ac_ext
34866 cat >>conftest.$ac_ext <<_ACEOF
34867 /* end confdefs.h.  */
34868 $ac_includes_default
34869 typedef char ac__type_new_;
34870 int
34871 main ()
34872 {
34873 if ((ac__type_new_ *) 0)
34874   return 0;
34875 if (sizeof (ac__type_new_))
34876   return 0;
34877   ;
34878   return 0;
34879 }
34880 _ACEOF
34881 rm -f conftest.$ac_objext
34882 if { (ac_try="$ac_compile"
34883 case "(($ac_try" in
34884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34885   *) ac_try_echo=$ac_try;;
34886 esac
34887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34888   (eval "$ac_compile") 2>conftest.er1
34889   ac_status=$?
34890   grep -v '^ *+' conftest.er1 >conftest.err
34891   rm -f conftest.er1
34892   cat conftest.err >&5
34893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894   (exit $ac_status); } && {
34895          test -z "$ac_c_werror_flag" ||
34896          test ! -s conftest.err
34897        } && test -s conftest.$ac_objext; then
34898   ac_cv_type_char=yes
34899 else
34900   echo "$as_me: failed program was:" >&5
34901 sed 's/^/| /' conftest.$ac_ext >&5
34902
34903         ac_cv_type_char=no
34904 fi
34905
34906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34907 fi
34908 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34909 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34910
34911 # The cast to long int works around a bug in the HP C Compiler
34912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34914 # This bug is HP SR number 8606223364.
34915 { echo "$as_me:$LINENO: checking size of char" >&5
34916 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34917 if test "${ac_cv_sizeof_char+set}" = set; then
34918   echo $ECHO_N "(cached) $ECHO_C" >&6
34919 else
34920   if test "$cross_compiling" = yes; then
34921   # Depending upon the size, compute the lo and hi bounds.
34922 cat >conftest.$ac_ext <<_ACEOF
34923 /* confdefs.h.  */
34924 _ACEOF
34925 cat confdefs.h >>conftest.$ac_ext
34926 cat >>conftest.$ac_ext <<_ACEOF
34927 /* end confdefs.h.  */
34928 $ac_includes_default
34929    typedef char ac__type_sizeof_;
34930 int
34931 main ()
34932 {
34933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34934 test_array [0] = 0
34935
34936   ;
34937   return 0;
34938 }
34939 _ACEOF
34940 rm -f conftest.$ac_objext
34941 if { (ac_try="$ac_compile"
34942 case "(($ac_try" in
34943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34944   *) ac_try_echo=$ac_try;;
34945 esac
34946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34947   (eval "$ac_compile") 2>conftest.er1
34948   ac_status=$?
34949   grep -v '^ *+' conftest.er1 >conftest.err
34950   rm -f conftest.er1
34951   cat conftest.err >&5
34952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953   (exit $ac_status); } && {
34954          test -z "$ac_c_werror_flag" ||
34955          test ! -s conftest.err
34956        } && test -s conftest.$ac_objext; then
34957   ac_lo=0 ac_mid=0
34958   while :; do
34959     cat >conftest.$ac_ext <<_ACEOF
34960 /* confdefs.h.  */
34961 _ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h.  */
34965 $ac_includes_default
34966    typedef char ac__type_sizeof_;
34967 int
34968 main ()
34969 {
34970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34971 test_array [0] = 0
34972
34973   ;
34974   return 0;
34975 }
34976 _ACEOF
34977 rm -f conftest.$ac_objext
34978 if { (ac_try="$ac_compile"
34979 case "(($ac_try" in
34980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34981   *) ac_try_echo=$ac_try;;
34982 esac
34983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34984   (eval "$ac_compile") 2>conftest.er1
34985   ac_status=$?
34986   grep -v '^ *+' conftest.er1 >conftest.err
34987   rm -f conftest.er1
34988   cat conftest.err >&5
34989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990   (exit $ac_status); } && {
34991          test -z "$ac_c_werror_flag" ||
34992          test ! -s conftest.err
34993        } && test -s conftest.$ac_objext; then
34994   ac_hi=$ac_mid; break
34995 else
34996   echo "$as_me: failed program was:" >&5
34997 sed 's/^/| /' conftest.$ac_ext >&5
34998
34999         ac_lo=`expr $ac_mid + 1`
35000                         if test $ac_lo -le $ac_mid; then
35001                           ac_lo= ac_hi=
35002                           break
35003                         fi
35004                         ac_mid=`expr 2 '*' $ac_mid + 1`
35005 fi
35006
35007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35008   done
35009 else
35010   echo "$as_me: failed program was:" >&5
35011 sed 's/^/| /' conftest.$ac_ext >&5
35012
35013         cat >conftest.$ac_ext <<_ACEOF
35014 /* confdefs.h.  */
35015 _ACEOF
35016 cat confdefs.h >>conftest.$ac_ext
35017 cat >>conftest.$ac_ext <<_ACEOF
35018 /* end confdefs.h.  */
35019 $ac_includes_default
35020    typedef char ac__type_sizeof_;
35021 int
35022 main ()
35023 {
35024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35025 test_array [0] = 0
35026
35027   ;
35028   return 0;
35029 }
35030 _ACEOF
35031 rm -f conftest.$ac_objext
35032 if { (ac_try="$ac_compile"
35033 case "(($ac_try" in
35034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35035   *) ac_try_echo=$ac_try;;
35036 esac
35037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35038   (eval "$ac_compile") 2>conftest.er1
35039   ac_status=$?
35040   grep -v '^ *+' conftest.er1 >conftest.err
35041   rm -f conftest.er1
35042   cat conftest.err >&5
35043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044   (exit $ac_status); } && {
35045          test -z "$ac_c_werror_flag" ||
35046          test ! -s conftest.err
35047        } && test -s conftest.$ac_objext; then
35048   ac_hi=-1 ac_mid=-1
35049   while :; do
35050     cat >conftest.$ac_ext <<_ACEOF
35051 /* confdefs.h.  */
35052 _ACEOF
35053 cat confdefs.h >>conftest.$ac_ext
35054 cat >>conftest.$ac_ext <<_ACEOF
35055 /* end confdefs.h.  */
35056 $ac_includes_default
35057    typedef char ac__type_sizeof_;
35058 int
35059 main ()
35060 {
35061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35062 test_array [0] = 0
35063
35064   ;
35065   return 0;
35066 }
35067 _ACEOF
35068 rm -f conftest.$ac_objext
35069 if { (ac_try="$ac_compile"
35070 case "(($ac_try" in
35071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35072   *) ac_try_echo=$ac_try;;
35073 esac
35074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35075   (eval "$ac_compile") 2>conftest.er1
35076   ac_status=$?
35077   grep -v '^ *+' conftest.er1 >conftest.err
35078   rm -f conftest.er1
35079   cat conftest.err >&5
35080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081   (exit $ac_status); } && {
35082          test -z "$ac_c_werror_flag" ||
35083          test ! -s conftest.err
35084        } && test -s conftest.$ac_objext; then
35085   ac_lo=$ac_mid; break
35086 else
35087   echo "$as_me: failed program was:" >&5
35088 sed 's/^/| /' conftest.$ac_ext >&5
35089
35090         ac_hi=`expr '(' $ac_mid ')' - 1`
35091                         if test $ac_mid -le $ac_hi; then
35092                           ac_lo= ac_hi=
35093                           break
35094                         fi
35095                         ac_mid=`expr 2 '*' $ac_mid`
35096 fi
35097
35098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35099   done
35100 else
35101   echo "$as_me: failed program was:" >&5
35102 sed 's/^/| /' conftest.$ac_ext >&5
35103
35104         ac_lo= ac_hi=
35105 fi
35106
35107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35108 fi
35109
35110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35111 # Binary search between lo and hi bounds.
35112 while test "x$ac_lo" != "x$ac_hi"; do
35113   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35114   cat >conftest.$ac_ext <<_ACEOF
35115 /* confdefs.h.  */
35116 _ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h.  */
35120 $ac_includes_default
35121    typedef char ac__type_sizeof_;
35122 int
35123 main ()
35124 {
35125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35126 test_array [0] = 0
35127
35128   ;
35129   return 0;
35130 }
35131 _ACEOF
35132 rm -f conftest.$ac_objext
35133 if { (ac_try="$ac_compile"
35134 case "(($ac_try" in
35135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35136   *) ac_try_echo=$ac_try;;
35137 esac
35138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35139   (eval "$ac_compile") 2>conftest.er1
35140   ac_status=$?
35141   grep -v '^ *+' conftest.er1 >conftest.err
35142   rm -f conftest.er1
35143   cat conftest.err >&5
35144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145   (exit $ac_status); } && {
35146          test -z "$ac_c_werror_flag" ||
35147          test ! -s conftest.err
35148        } && test -s conftest.$ac_objext; then
35149   ac_hi=$ac_mid
35150 else
35151   echo "$as_me: failed program was:" >&5
35152 sed 's/^/| /' conftest.$ac_ext >&5
35153
35154         ac_lo=`expr '(' $ac_mid ')' + 1`
35155 fi
35156
35157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35158 done
35159 case $ac_lo in
35160 ?*) ac_cv_sizeof_char=$ac_lo;;
35161 '') if test "$ac_cv_type_char" = yes; then
35162      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35163 See \`config.log' for more details." >&5
35164 echo "$as_me: error: cannot compute sizeof (char)
35165 See \`config.log' for more details." >&2;}
35166    { (exit 77); exit 77; }; }
35167    else
35168      ac_cv_sizeof_char=0
35169    fi ;;
35170 esac
35171 else
35172   cat >conftest.$ac_ext <<_ACEOF
35173 /* confdefs.h.  */
35174 _ACEOF
35175 cat confdefs.h >>conftest.$ac_ext
35176 cat >>conftest.$ac_ext <<_ACEOF
35177 /* end confdefs.h.  */
35178 $ac_includes_default
35179    typedef char ac__type_sizeof_;
35180 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35181 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35182 #include <stdio.h>
35183 #include <stdlib.h>
35184 int
35185 main ()
35186 {
35187
35188   FILE *f = fopen ("conftest.val", "w");
35189   if (! f)
35190     return 1;
35191   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35192     {
35193       long int i = longval ();
35194       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35195         return 1;
35196       fprintf (f, "%ld\n", i);
35197     }
35198   else
35199     {
35200       unsigned long int i = ulongval ();
35201       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35202         return 1;
35203       fprintf (f, "%lu\n", i);
35204     }
35205   return ferror (f) || fclose (f) != 0;
35206
35207   ;
35208   return 0;
35209 }
35210 _ACEOF
35211 rm -f conftest$ac_exeext
35212 if { (ac_try="$ac_link"
35213 case "(($ac_try" in
35214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35215   *) ac_try_echo=$ac_try;;
35216 esac
35217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35218   (eval "$ac_link") 2>&5
35219   ac_status=$?
35220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
35228   ac_status=$?
35229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230   (exit $ac_status); }; }; then
35231   ac_cv_sizeof_char=`cat conftest.val`
35232 else
35233   echo "$as_me: program exited with status $ac_status" >&5
35234 echo "$as_me: failed program was:" >&5
35235 sed 's/^/| /' conftest.$ac_ext >&5
35236
35237 ( exit $ac_status )
35238 if test "$ac_cv_type_char" = yes; then
35239      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35240 See \`config.log' for more details." >&5
35241 echo "$as_me: error: cannot compute sizeof (char)
35242 See \`config.log' for more details." >&2;}
35243    { (exit 77); exit 77; }; }
35244    else
35245      ac_cv_sizeof_char=0
35246    fi
35247 fi
35248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35249 fi
35250 rm -f conftest.val
35251 fi
35252 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35253 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35254
35255
35256
35257 cat >>confdefs.h <<_ACEOF
35258 #define SIZEOF_CHAR $ac_cv_sizeof_char
35259 _ACEOF
35260
35261
35262 { echo "$as_me:$LINENO: checking for short int" >&5
35263 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35264 if test "${ac_cv_type_short_int+set}" = set; then
35265   echo $ECHO_N "(cached) $ECHO_C" >&6
35266 else
35267   cat >conftest.$ac_ext <<_ACEOF
35268 /* confdefs.h.  */
35269 _ACEOF
35270 cat confdefs.h >>conftest.$ac_ext
35271 cat >>conftest.$ac_ext <<_ACEOF
35272 /* end confdefs.h.  */
35273 $ac_includes_default
35274 typedef short int ac__type_new_;
35275 int
35276 main ()
35277 {
35278 if ((ac__type_new_ *) 0)
35279   return 0;
35280 if (sizeof (ac__type_new_))
35281   return 0;
35282   ;
35283   return 0;
35284 }
35285 _ACEOF
35286 rm -f conftest.$ac_objext
35287 if { (ac_try="$ac_compile"
35288 case "(($ac_try" in
35289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35290   *) ac_try_echo=$ac_try;;
35291 esac
35292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35293   (eval "$ac_compile") 2>conftest.er1
35294   ac_status=$?
35295   grep -v '^ *+' conftest.er1 >conftest.err
35296   rm -f conftest.er1
35297   cat conftest.err >&5
35298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35299   (exit $ac_status); } && {
35300          test -z "$ac_c_werror_flag" ||
35301          test ! -s conftest.err
35302        } && test -s conftest.$ac_objext; then
35303   ac_cv_type_short_int=yes
35304 else
35305   echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.$ac_ext >&5
35307
35308         ac_cv_type_short_int=no
35309 fi
35310
35311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35312 fi
35313 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35314 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35315
35316 # The cast to long int works around a bug in the HP C Compiler
35317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35319 # This bug is HP SR number 8606223364.
35320 { echo "$as_me:$LINENO: checking size of short int" >&5
35321 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35322 if test "${ac_cv_sizeof_short_int+set}" = set; then
35323   echo $ECHO_N "(cached) $ECHO_C" >&6
35324 else
35325   if test "$cross_compiling" = yes; then
35326   # Depending upon the size, compute the lo and hi bounds.
35327 cat >conftest.$ac_ext <<_ACEOF
35328 /* confdefs.h.  */
35329 _ACEOF
35330 cat confdefs.h >>conftest.$ac_ext
35331 cat >>conftest.$ac_ext <<_ACEOF
35332 /* end confdefs.h.  */
35333 $ac_includes_default
35334    typedef short int ac__type_sizeof_;
35335 int
35336 main ()
35337 {
35338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35339 test_array [0] = 0
35340
35341   ;
35342   return 0;
35343 }
35344 _ACEOF
35345 rm -f conftest.$ac_objext
35346 if { (ac_try="$ac_compile"
35347 case "(($ac_try" in
35348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35349   *) ac_try_echo=$ac_try;;
35350 esac
35351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35352   (eval "$ac_compile") 2>conftest.er1
35353   ac_status=$?
35354   grep -v '^ *+' conftest.er1 >conftest.err
35355   rm -f conftest.er1
35356   cat conftest.err >&5
35357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358   (exit $ac_status); } && {
35359          test -z "$ac_c_werror_flag" ||
35360          test ! -s conftest.err
35361        } && test -s conftest.$ac_objext; then
35362   ac_lo=0 ac_mid=0
35363   while :; do
35364     cat >conftest.$ac_ext <<_ACEOF
35365 /* confdefs.h.  */
35366 _ACEOF
35367 cat confdefs.h >>conftest.$ac_ext
35368 cat >>conftest.$ac_ext <<_ACEOF
35369 /* end confdefs.h.  */
35370 $ac_includes_default
35371    typedef short int ac__type_sizeof_;
35372 int
35373 main ()
35374 {
35375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35376 test_array [0] = 0
35377
35378   ;
35379   return 0;
35380 }
35381 _ACEOF
35382 rm -f conftest.$ac_objext
35383 if { (ac_try="$ac_compile"
35384 case "(($ac_try" in
35385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35386   *) ac_try_echo=$ac_try;;
35387 esac
35388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35389   (eval "$ac_compile") 2>conftest.er1
35390   ac_status=$?
35391   grep -v '^ *+' conftest.er1 >conftest.err
35392   rm -f conftest.er1
35393   cat conftest.err >&5
35394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395   (exit $ac_status); } && {
35396          test -z "$ac_c_werror_flag" ||
35397          test ! -s conftest.err
35398        } && test -s conftest.$ac_objext; then
35399   ac_hi=$ac_mid; break
35400 else
35401   echo "$as_me: failed program was:" >&5
35402 sed 's/^/| /' conftest.$ac_ext >&5
35403
35404         ac_lo=`expr $ac_mid + 1`
35405                         if test $ac_lo -le $ac_mid; then
35406                           ac_lo= ac_hi=
35407                           break
35408                         fi
35409                         ac_mid=`expr 2 '*' $ac_mid + 1`
35410 fi
35411
35412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35413   done
35414 else
35415   echo "$as_me: failed program was:" >&5
35416 sed 's/^/| /' conftest.$ac_ext >&5
35417
35418         cat >conftest.$ac_ext <<_ACEOF
35419 /* confdefs.h.  */
35420 _ACEOF
35421 cat confdefs.h >>conftest.$ac_ext
35422 cat >>conftest.$ac_ext <<_ACEOF
35423 /* end confdefs.h.  */
35424 $ac_includes_default
35425    typedef short int ac__type_sizeof_;
35426 int
35427 main ()
35428 {
35429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35430 test_array [0] = 0
35431
35432   ;
35433   return 0;
35434 }
35435 _ACEOF
35436 rm -f conftest.$ac_objext
35437 if { (ac_try="$ac_compile"
35438 case "(($ac_try" in
35439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35440   *) ac_try_echo=$ac_try;;
35441 esac
35442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35443   (eval "$ac_compile") 2>conftest.er1
35444   ac_status=$?
35445   grep -v '^ *+' conftest.er1 >conftest.err
35446   rm -f conftest.er1
35447   cat conftest.err >&5
35448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449   (exit $ac_status); } && {
35450          test -z "$ac_c_werror_flag" ||
35451          test ! -s conftest.err
35452        } && test -s conftest.$ac_objext; then
35453   ac_hi=-1 ac_mid=-1
35454   while :; do
35455     cat >conftest.$ac_ext <<_ACEOF
35456 /* confdefs.h.  */
35457 _ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h.  */
35461 $ac_includes_default
35462    typedef short int ac__type_sizeof_;
35463 int
35464 main ()
35465 {
35466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35467 test_array [0] = 0
35468
35469   ;
35470   return 0;
35471 }
35472 _ACEOF
35473 rm -f conftest.$ac_objext
35474 if { (ac_try="$ac_compile"
35475 case "(($ac_try" in
35476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35477   *) ac_try_echo=$ac_try;;
35478 esac
35479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35480   (eval "$ac_compile") 2>conftest.er1
35481   ac_status=$?
35482   grep -v '^ *+' conftest.er1 >conftest.err
35483   rm -f conftest.er1
35484   cat conftest.err >&5
35485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486   (exit $ac_status); } && {
35487          test -z "$ac_c_werror_flag" ||
35488          test ! -s conftest.err
35489        } && test -s conftest.$ac_objext; then
35490   ac_lo=$ac_mid; break
35491 else
35492   echo "$as_me: failed program was:" >&5
35493 sed 's/^/| /' conftest.$ac_ext >&5
35494
35495         ac_hi=`expr '(' $ac_mid ')' - 1`
35496                         if test $ac_mid -le $ac_hi; then
35497                           ac_lo= ac_hi=
35498                           break
35499                         fi
35500                         ac_mid=`expr 2 '*' $ac_mid`
35501 fi
35502
35503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35504   done
35505 else
35506   echo "$as_me: failed program was:" >&5
35507 sed 's/^/| /' conftest.$ac_ext >&5
35508
35509         ac_lo= ac_hi=
35510 fi
35511
35512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35513 fi
35514
35515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35516 # Binary search between lo and hi bounds.
35517 while test "x$ac_lo" != "x$ac_hi"; do
35518   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35519   cat >conftest.$ac_ext <<_ACEOF
35520 /* confdefs.h.  */
35521 _ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h.  */
35525 $ac_includes_default
35526    typedef short int ac__type_sizeof_;
35527 int
35528 main ()
35529 {
35530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35531 test_array [0] = 0
35532
35533   ;
35534   return 0;
35535 }
35536 _ACEOF
35537 rm -f conftest.$ac_objext
35538 if { (ac_try="$ac_compile"
35539 case "(($ac_try" in
35540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35541   *) ac_try_echo=$ac_try;;
35542 esac
35543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35544   (eval "$ac_compile") 2>conftest.er1
35545   ac_status=$?
35546   grep -v '^ *+' conftest.er1 >conftest.err
35547   rm -f conftest.er1
35548   cat conftest.err >&5
35549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550   (exit $ac_status); } && {
35551          test -z "$ac_c_werror_flag" ||
35552          test ! -s conftest.err
35553        } && test -s conftest.$ac_objext; then
35554   ac_hi=$ac_mid
35555 else
35556   echo "$as_me: failed program was:" >&5
35557 sed 's/^/| /' conftest.$ac_ext >&5
35558
35559         ac_lo=`expr '(' $ac_mid ')' + 1`
35560 fi
35561
35562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35563 done
35564 case $ac_lo in
35565 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35566 '') if test "$ac_cv_type_short_int" = yes; then
35567      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35568 See \`config.log' for more details." >&5
35569 echo "$as_me: error: cannot compute sizeof (short int)
35570 See \`config.log' for more details." >&2;}
35571    { (exit 77); exit 77; }; }
35572    else
35573      ac_cv_sizeof_short_int=0
35574    fi ;;
35575 esac
35576 else
35577   cat >conftest.$ac_ext <<_ACEOF
35578 /* confdefs.h.  */
35579 _ACEOF
35580 cat confdefs.h >>conftest.$ac_ext
35581 cat >>conftest.$ac_ext <<_ACEOF
35582 /* end confdefs.h.  */
35583 $ac_includes_default
35584    typedef short int ac__type_sizeof_;
35585 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35586 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35587 #include <stdio.h>
35588 #include <stdlib.h>
35589 int
35590 main ()
35591 {
35592
35593   FILE *f = fopen ("conftest.val", "w");
35594   if (! f)
35595     return 1;
35596   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35597     {
35598       long int i = longval ();
35599       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35600         return 1;
35601       fprintf (f, "%ld\n", i);
35602     }
35603   else
35604     {
35605       unsigned long int i = ulongval ();
35606       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35607         return 1;
35608       fprintf (f, "%lu\n", i);
35609     }
35610   return ferror (f) || fclose (f) != 0;
35611
35612   ;
35613   return 0;
35614 }
35615 _ACEOF
35616 rm -f conftest$ac_exeext
35617 if { (ac_try="$ac_link"
35618 case "(($ac_try" in
35619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35620   *) ac_try_echo=$ac_try;;
35621 esac
35622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35623   (eval "$ac_link") 2>&5
35624   ac_status=$?
35625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
35633   ac_status=$?
35634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635   (exit $ac_status); }; }; then
35636   ac_cv_sizeof_short_int=`cat conftest.val`
35637 else
35638   echo "$as_me: program exited with status $ac_status" >&5
35639 echo "$as_me: failed program was:" >&5
35640 sed 's/^/| /' conftest.$ac_ext >&5
35641
35642 ( exit $ac_status )
35643 if test "$ac_cv_type_short_int" = yes; then
35644      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35645 See \`config.log' for more details." >&5
35646 echo "$as_me: error: cannot compute sizeof (short int)
35647 See \`config.log' for more details." >&2;}
35648    { (exit 77); exit 77; }; }
35649    else
35650      ac_cv_sizeof_short_int=0
35651    fi
35652 fi
35653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35654 fi
35655 rm -f conftest.val
35656 fi
35657 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35658 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35659
35660
35661
35662 cat >>confdefs.h <<_ACEOF
35663 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35664 _ACEOF
35665
35666
35667 { echo "$as_me:$LINENO: checking for int" >&5
35668 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35669 if test "${ac_cv_type_int+set}" = set; then
35670   echo $ECHO_N "(cached) $ECHO_C" >&6
35671 else
35672   cat >conftest.$ac_ext <<_ACEOF
35673 /* confdefs.h.  */
35674 _ACEOF
35675 cat confdefs.h >>conftest.$ac_ext
35676 cat >>conftest.$ac_ext <<_ACEOF
35677 /* end confdefs.h.  */
35678 $ac_includes_default
35679 typedef int ac__type_new_;
35680 int
35681 main ()
35682 {
35683 if ((ac__type_new_ *) 0)
35684   return 0;
35685 if (sizeof (ac__type_new_))
35686   return 0;
35687   ;
35688   return 0;
35689 }
35690 _ACEOF
35691 rm -f conftest.$ac_objext
35692 if { (ac_try="$ac_compile"
35693 case "(($ac_try" in
35694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35695   *) ac_try_echo=$ac_try;;
35696 esac
35697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35698   (eval "$ac_compile") 2>conftest.er1
35699   ac_status=$?
35700   grep -v '^ *+' conftest.er1 >conftest.err
35701   rm -f conftest.er1
35702   cat conftest.err >&5
35703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704   (exit $ac_status); } && {
35705          test -z "$ac_c_werror_flag" ||
35706          test ! -s conftest.err
35707        } && test -s conftest.$ac_objext; then
35708   ac_cv_type_int=yes
35709 else
35710   echo "$as_me: failed program was:" >&5
35711 sed 's/^/| /' conftest.$ac_ext >&5
35712
35713         ac_cv_type_int=no
35714 fi
35715
35716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35717 fi
35718 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35719 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35720
35721 # The cast to long int works around a bug in the HP C Compiler
35722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35724 # This bug is HP SR number 8606223364.
35725 { echo "$as_me:$LINENO: checking size of int" >&5
35726 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35727 if test "${ac_cv_sizeof_int+set}" = set; then
35728   echo $ECHO_N "(cached) $ECHO_C" >&6
35729 else
35730   if test "$cross_compiling" = yes; then
35731   # Depending upon the size, compute the lo and hi bounds.
35732 cat >conftest.$ac_ext <<_ACEOF
35733 /* confdefs.h.  */
35734 _ACEOF
35735 cat confdefs.h >>conftest.$ac_ext
35736 cat >>conftest.$ac_ext <<_ACEOF
35737 /* end confdefs.h.  */
35738 $ac_includes_default
35739    typedef int ac__type_sizeof_;
35740 int
35741 main ()
35742 {
35743 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35744 test_array [0] = 0
35745
35746   ;
35747   return 0;
35748 }
35749 _ACEOF
35750 rm -f conftest.$ac_objext
35751 if { (ac_try="$ac_compile"
35752 case "(($ac_try" in
35753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35754   *) ac_try_echo=$ac_try;;
35755 esac
35756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35757   (eval "$ac_compile") 2>conftest.er1
35758   ac_status=$?
35759   grep -v '^ *+' conftest.er1 >conftest.err
35760   rm -f conftest.er1
35761   cat conftest.err >&5
35762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); } && {
35764          test -z "$ac_c_werror_flag" ||
35765          test ! -s conftest.err
35766        } && test -s conftest.$ac_objext; then
35767   ac_lo=0 ac_mid=0
35768   while :; do
35769     cat >conftest.$ac_ext <<_ACEOF
35770 /* confdefs.h.  */
35771 _ACEOF
35772 cat confdefs.h >>conftest.$ac_ext
35773 cat >>conftest.$ac_ext <<_ACEOF
35774 /* end confdefs.h.  */
35775 $ac_includes_default
35776    typedef int ac__type_sizeof_;
35777 int
35778 main ()
35779 {
35780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35781 test_array [0] = 0
35782
35783   ;
35784   return 0;
35785 }
35786 _ACEOF
35787 rm -f conftest.$ac_objext
35788 if { (ac_try="$ac_compile"
35789 case "(($ac_try" in
35790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35791   *) ac_try_echo=$ac_try;;
35792 esac
35793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35794   (eval "$ac_compile") 2>conftest.er1
35795   ac_status=$?
35796   grep -v '^ *+' conftest.er1 >conftest.err
35797   rm -f conftest.er1
35798   cat conftest.err >&5
35799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800   (exit $ac_status); } && {
35801          test -z "$ac_c_werror_flag" ||
35802          test ! -s conftest.err
35803        } && test -s conftest.$ac_objext; then
35804   ac_hi=$ac_mid; break
35805 else
35806   echo "$as_me: failed program was:" >&5
35807 sed 's/^/| /' conftest.$ac_ext >&5
35808
35809         ac_lo=`expr $ac_mid + 1`
35810                         if test $ac_lo -le $ac_mid; then
35811                           ac_lo= ac_hi=
35812                           break
35813                         fi
35814                         ac_mid=`expr 2 '*' $ac_mid + 1`
35815 fi
35816
35817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35818   done
35819 else
35820   echo "$as_me: failed program was:" >&5
35821 sed 's/^/| /' conftest.$ac_ext >&5
35822
35823         cat >conftest.$ac_ext <<_ACEOF
35824 /* confdefs.h.  */
35825 _ACEOF
35826 cat confdefs.h >>conftest.$ac_ext
35827 cat >>conftest.$ac_ext <<_ACEOF
35828 /* end confdefs.h.  */
35829 $ac_includes_default
35830    typedef int ac__type_sizeof_;
35831 int
35832 main ()
35833 {
35834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35835 test_array [0] = 0
35836
35837   ;
35838   return 0;
35839 }
35840 _ACEOF
35841 rm -f conftest.$ac_objext
35842 if { (ac_try="$ac_compile"
35843 case "(($ac_try" in
35844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35845   *) ac_try_echo=$ac_try;;
35846 esac
35847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35848   (eval "$ac_compile") 2>conftest.er1
35849   ac_status=$?
35850   grep -v '^ *+' conftest.er1 >conftest.err
35851   rm -f conftest.er1
35852   cat conftest.err >&5
35853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854   (exit $ac_status); } && {
35855          test -z "$ac_c_werror_flag" ||
35856          test ! -s conftest.err
35857        } && test -s conftest.$ac_objext; then
35858   ac_hi=-1 ac_mid=-1
35859   while :; do
35860     cat >conftest.$ac_ext <<_ACEOF
35861 /* confdefs.h.  */
35862 _ACEOF
35863 cat confdefs.h >>conftest.$ac_ext
35864 cat >>conftest.$ac_ext <<_ACEOF
35865 /* end confdefs.h.  */
35866 $ac_includes_default
35867    typedef int ac__type_sizeof_;
35868 int
35869 main ()
35870 {
35871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35872 test_array [0] = 0
35873
35874   ;
35875   return 0;
35876 }
35877 _ACEOF
35878 rm -f conftest.$ac_objext
35879 if { (ac_try="$ac_compile"
35880 case "(($ac_try" in
35881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35882   *) ac_try_echo=$ac_try;;
35883 esac
35884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35885   (eval "$ac_compile") 2>conftest.er1
35886   ac_status=$?
35887   grep -v '^ *+' conftest.er1 >conftest.err
35888   rm -f conftest.er1
35889   cat conftest.err >&5
35890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891   (exit $ac_status); } && {
35892          test -z "$ac_c_werror_flag" ||
35893          test ! -s conftest.err
35894        } && test -s conftest.$ac_objext; then
35895   ac_lo=$ac_mid; break
35896 else
35897   echo "$as_me: failed program was:" >&5
35898 sed 's/^/| /' conftest.$ac_ext >&5
35899
35900         ac_hi=`expr '(' $ac_mid ')' - 1`
35901                         if test $ac_mid -le $ac_hi; then
35902                           ac_lo= ac_hi=
35903                           break
35904                         fi
35905                         ac_mid=`expr 2 '*' $ac_mid`
35906 fi
35907
35908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35909   done
35910 else
35911   echo "$as_me: failed program was:" >&5
35912 sed 's/^/| /' conftest.$ac_ext >&5
35913
35914         ac_lo= ac_hi=
35915 fi
35916
35917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35918 fi
35919
35920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35921 # Binary search between lo and hi bounds.
35922 while test "x$ac_lo" != "x$ac_hi"; do
35923   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35924   cat >conftest.$ac_ext <<_ACEOF
35925 /* confdefs.h.  */
35926 _ACEOF
35927 cat confdefs.h >>conftest.$ac_ext
35928 cat >>conftest.$ac_ext <<_ACEOF
35929 /* end confdefs.h.  */
35930 $ac_includes_default
35931    typedef int ac__type_sizeof_;
35932 int
35933 main ()
35934 {
35935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35936 test_array [0] = 0
35937
35938   ;
35939   return 0;
35940 }
35941 _ACEOF
35942 rm -f conftest.$ac_objext
35943 if { (ac_try="$ac_compile"
35944 case "(($ac_try" in
35945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35946   *) ac_try_echo=$ac_try;;
35947 esac
35948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35949   (eval "$ac_compile") 2>conftest.er1
35950   ac_status=$?
35951   grep -v '^ *+' conftest.er1 >conftest.err
35952   rm -f conftest.er1
35953   cat conftest.err >&5
35954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955   (exit $ac_status); } && {
35956          test -z "$ac_c_werror_flag" ||
35957          test ! -s conftest.err
35958        } && test -s conftest.$ac_objext; then
35959   ac_hi=$ac_mid
35960 else
35961   echo "$as_me: failed program was:" >&5
35962 sed 's/^/| /' conftest.$ac_ext >&5
35963
35964         ac_lo=`expr '(' $ac_mid ')' + 1`
35965 fi
35966
35967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35968 done
35969 case $ac_lo in
35970 ?*) ac_cv_sizeof_int=$ac_lo;;
35971 '') if test "$ac_cv_type_int" = yes; then
35972      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35973 See \`config.log' for more details." >&5
35974 echo "$as_me: error: cannot compute sizeof (int)
35975 See \`config.log' for more details." >&2;}
35976    { (exit 77); exit 77; }; }
35977    else
35978      ac_cv_sizeof_int=0
35979    fi ;;
35980 esac
35981 else
35982   cat >conftest.$ac_ext <<_ACEOF
35983 /* confdefs.h.  */
35984 _ACEOF
35985 cat confdefs.h >>conftest.$ac_ext
35986 cat >>conftest.$ac_ext <<_ACEOF
35987 /* end confdefs.h.  */
35988 $ac_includes_default
35989    typedef int ac__type_sizeof_;
35990 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35991 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35992 #include <stdio.h>
35993 #include <stdlib.h>
35994 int
35995 main ()
35996 {
35997
35998   FILE *f = fopen ("conftest.val", "w");
35999   if (! f)
36000     return 1;
36001   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36002     {
36003       long int i = longval ();
36004       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36005         return 1;
36006       fprintf (f, "%ld\n", i);
36007     }
36008   else
36009     {
36010       unsigned long int i = ulongval ();
36011       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36012         return 1;
36013       fprintf (f, "%lu\n", i);
36014     }
36015   return ferror (f) || fclose (f) != 0;
36016
36017   ;
36018   return 0;
36019 }
36020 _ACEOF
36021 rm -f conftest$ac_exeext
36022 if { (ac_try="$ac_link"
36023 case "(($ac_try" in
36024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36025   *) ac_try_echo=$ac_try;;
36026 esac
36027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36028   (eval "$ac_link") 2>&5
36029   ac_status=$?
36030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
36038   ac_status=$?
36039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040   (exit $ac_status); }; }; then
36041   ac_cv_sizeof_int=`cat conftest.val`
36042 else
36043   echo "$as_me: program exited with status $ac_status" >&5
36044 echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36046
36047 ( exit $ac_status )
36048 if test "$ac_cv_type_int" = yes; then
36049      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36050 See \`config.log' for more details." >&5
36051 echo "$as_me: error: cannot compute sizeof (int)
36052 See \`config.log' for more details." >&2;}
36053    { (exit 77); exit 77; }; }
36054    else
36055      ac_cv_sizeof_int=0
36056    fi
36057 fi
36058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36059 fi
36060 rm -f conftest.val
36061 fi
36062 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36063 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36064
36065
36066
36067 cat >>confdefs.h <<_ACEOF
36068 #define SIZEOF_INT $ac_cv_sizeof_int
36069 _ACEOF
36070
36071
36072 { echo "$as_me:$LINENO: checking for long int" >&5
36073 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36074 if test "${ac_cv_type_long_int+set}" = set; then
36075   echo $ECHO_N "(cached) $ECHO_C" >&6
36076 else
36077   cat >conftest.$ac_ext <<_ACEOF
36078 /* confdefs.h.  */
36079 _ACEOF
36080 cat confdefs.h >>conftest.$ac_ext
36081 cat >>conftest.$ac_ext <<_ACEOF
36082 /* end confdefs.h.  */
36083 $ac_includes_default
36084 typedef long int ac__type_new_;
36085 int
36086 main ()
36087 {
36088 if ((ac__type_new_ *) 0)
36089   return 0;
36090 if (sizeof (ac__type_new_))
36091   return 0;
36092   ;
36093   return 0;
36094 }
36095 _ACEOF
36096 rm -f conftest.$ac_objext
36097 if { (ac_try="$ac_compile"
36098 case "(($ac_try" in
36099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36100   *) ac_try_echo=$ac_try;;
36101 esac
36102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36103   (eval "$ac_compile") 2>conftest.er1
36104   ac_status=$?
36105   grep -v '^ *+' conftest.er1 >conftest.err
36106   rm -f conftest.er1
36107   cat conftest.err >&5
36108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109   (exit $ac_status); } && {
36110          test -z "$ac_c_werror_flag" ||
36111          test ! -s conftest.err
36112        } && test -s conftest.$ac_objext; then
36113   ac_cv_type_long_int=yes
36114 else
36115   echo "$as_me: failed program was:" >&5
36116 sed 's/^/| /' conftest.$ac_ext >&5
36117
36118         ac_cv_type_long_int=no
36119 fi
36120
36121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36122 fi
36123 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36124 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36125
36126 # The cast to long int works around a bug in the HP C Compiler
36127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36129 # This bug is HP SR number 8606223364.
36130 { echo "$as_me:$LINENO: checking size of long int" >&5
36131 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36132 if test "${ac_cv_sizeof_long_int+set}" = set; then
36133   echo $ECHO_N "(cached) $ECHO_C" >&6
36134 else
36135   if test "$cross_compiling" = yes; then
36136   # Depending upon the size, compute the lo and hi bounds.
36137 cat >conftest.$ac_ext <<_ACEOF
36138 /* confdefs.h.  */
36139 _ACEOF
36140 cat confdefs.h >>conftest.$ac_ext
36141 cat >>conftest.$ac_ext <<_ACEOF
36142 /* end confdefs.h.  */
36143 $ac_includes_default
36144    typedef long int ac__type_sizeof_;
36145 int
36146 main ()
36147 {
36148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36149 test_array [0] = 0
36150
36151   ;
36152   return 0;
36153 }
36154 _ACEOF
36155 rm -f conftest.$ac_objext
36156 if { (ac_try="$ac_compile"
36157 case "(($ac_try" in
36158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36159   *) ac_try_echo=$ac_try;;
36160 esac
36161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36162   (eval "$ac_compile") 2>conftest.er1
36163   ac_status=$?
36164   grep -v '^ *+' conftest.er1 >conftest.err
36165   rm -f conftest.er1
36166   cat conftest.err >&5
36167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168   (exit $ac_status); } && {
36169          test -z "$ac_c_werror_flag" ||
36170          test ! -s conftest.err
36171        } && test -s conftest.$ac_objext; then
36172   ac_lo=0 ac_mid=0
36173   while :; do
36174     cat >conftest.$ac_ext <<_ACEOF
36175 /* confdefs.h.  */
36176 _ACEOF
36177 cat confdefs.h >>conftest.$ac_ext
36178 cat >>conftest.$ac_ext <<_ACEOF
36179 /* end confdefs.h.  */
36180 $ac_includes_default
36181    typedef long int ac__type_sizeof_;
36182 int
36183 main ()
36184 {
36185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36186 test_array [0] = 0
36187
36188   ;
36189   return 0;
36190 }
36191 _ACEOF
36192 rm -f conftest.$ac_objext
36193 if { (ac_try="$ac_compile"
36194 case "(($ac_try" in
36195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36196   *) ac_try_echo=$ac_try;;
36197 esac
36198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36199   (eval "$ac_compile") 2>conftest.er1
36200   ac_status=$?
36201   grep -v '^ *+' conftest.er1 >conftest.err
36202   rm -f conftest.er1
36203   cat conftest.err >&5
36204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205   (exit $ac_status); } && {
36206          test -z "$ac_c_werror_flag" ||
36207          test ! -s conftest.err
36208        } && test -s conftest.$ac_objext; then
36209   ac_hi=$ac_mid; break
36210 else
36211   echo "$as_me: failed program was:" >&5
36212 sed 's/^/| /' conftest.$ac_ext >&5
36213
36214         ac_lo=`expr $ac_mid + 1`
36215                         if test $ac_lo -le $ac_mid; then
36216                           ac_lo= ac_hi=
36217                           break
36218                         fi
36219                         ac_mid=`expr 2 '*' $ac_mid + 1`
36220 fi
36221
36222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36223   done
36224 else
36225   echo "$as_me: failed program was:" >&5
36226 sed 's/^/| /' conftest.$ac_ext >&5
36227
36228         cat >conftest.$ac_ext <<_ACEOF
36229 /* confdefs.h.  */
36230 _ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h.  */
36234 $ac_includes_default
36235    typedef long int ac__type_sizeof_;
36236 int
36237 main ()
36238 {
36239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36240 test_array [0] = 0
36241
36242   ;
36243   return 0;
36244 }
36245 _ACEOF
36246 rm -f conftest.$ac_objext
36247 if { (ac_try="$ac_compile"
36248 case "(($ac_try" in
36249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36250   *) ac_try_echo=$ac_try;;
36251 esac
36252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36253   (eval "$ac_compile") 2>conftest.er1
36254   ac_status=$?
36255   grep -v '^ *+' conftest.er1 >conftest.err
36256   rm -f conftest.er1
36257   cat conftest.err >&5
36258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259   (exit $ac_status); } && {
36260          test -z "$ac_c_werror_flag" ||
36261          test ! -s conftest.err
36262        } && test -s conftest.$ac_objext; then
36263   ac_hi=-1 ac_mid=-1
36264   while :; do
36265     cat >conftest.$ac_ext <<_ACEOF
36266 /* confdefs.h.  */
36267 _ACEOF
36268 cat confdefs.h >>conftest.$ac_ext
36269 cat >>conftest.$ac_ext <<_ACEOF
36270 /* end confdefs.h.  */
36271 $ac_includes_default
36272    typedef long int ac__type_sizeof_;
36273 int
36274 main ()
36275 {
36276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36277 test_array [0] = 0
36278
36279   ;
36280   return 0;
36281 }
36282 _ACEOF
36283 rm -f conftest.$ac_objext
36284 if { (ac_try="$ac_compile"
36285 case "(($ac_try" in
36286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36287   *) ac_try_echo=$ac_try;;
36288 esac
36289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36290   (eval "$ac_compile") 2>conftest.er1
36291   ac_status=$?
36292   grep -v '^ *+' conftest.er1 >conftest.err
36293   rm -f conftest.er1
36294   cat conftest.err >&5
36295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296   (exit $ac_status); } && {
36297          test -z "$ac_c_werror_flag" ||
36298          test ! -s conftest.err
36299        } && test -s conftest.$ac_objext; then
36300   ac_lo=$ac_mid; break
36301 else
36302   echo "$as_me: failed program was:" >&5
36303 sed 's/^/| /' conftest.$ac_ext >&5
36304
36305         ac_hi=`expr '(' $ac_mid ')' - 1`
36306                         if test $ac_mid -le $ac_hi; then
36307                           ac_lo= ac_hi=
36308                           break
36309                         fi
36310                         ac_mid=`expr 2 '*' $ac_mid`
36311 fi
36312
36313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36314   done
36315 else
36316   echo "$as_me: failed program was:" >&5
36317 sed 's/^/| /' conftest.$ac_ext >&5
36318
36319         ac_lo= ac_hi=
36320 fi
36321
36322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36323 fi
36324
36325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36326 # Binary search between lo and hi bounds.
36327 while test "x$ac_lo" != "x$ac_hi"; do
36328   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36329   cat >conftest.$ac_ext <<_ACEOF
36330 /* confdefs.h.  */
36331 _ACEOF
36332 cat confdefs.h >>conftest.$ac_ext
36333 cat >>conftest.$ac_ext <<_ACEOF
36334 /* end confdefs.h.  */
36335 $ac_includes_default
36336    typedef long int ac__type_sizeof_;
36337 int
36338 main ()
36339 {
36340 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36341 test_array [0] = 0
36342
36343   ;
36344   return 0;
36345 }
36346 _ACEOF
36347 rm -f conftest.$ac_objext
36348 if { (ac_try="$ac_compile"
36349 case "(($ac_try" in
36350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36351   *) ac_try_echo=$ac_try;;
36352 esac
36353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36354   (eval "$ac_compile") 2>conftest.er1
36355   ac_status=$?
36356   grep -v '^ *+' conftest.er1 >conftest.err
36357   rm -f conftest.er1
36358   cat conftest.err >&5
36359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360   (exit $ac_status); } && {
36361          test -z "$ac_c_werror_flag" ||
36362          test ! -s conftest.err
36363        } && test -s conftest.$ac_objext; then
36364   ac_hi=$ac_mid
36365 else
36366   echo "$as_me: failed program was:" >&5
36367 sed 's/^/| /' conftest.$ac_ext >&5
36368
36369         ac_lo=`expr '(' $ac_mid ')' + 1`
36370 fi
36371
36372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36373 done
36374 case $ac_lo in
36375 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36376 '') if test "$ac_cv_type_long_int" = yes; then
36377      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36378 See \`config.log' for more details." >&5
36379 echo "$as_me: error: cannot compute sizeof (long int)
36380 See \`config.log' for more details." >&2;}
36381    { (exit 77); exit 77; }; }
36382    else
36383      ac_cv_sizeof_long_int=0
36384    fi ;;
36385 esac
36386 else
36387   cat >conftest.$ac_ext <<_ACEOF
36388 /* confdefs.h.  */
36389 _ACEOF
36390 cat confdefs.h >>conftest.$ac_ext
36391 cat >>conftest.$ac_ext <<_ACEOF
36392 /* end confdefs.h.  */
36393 $ac_includes_default
36394    typedef long int ac__type_sizeof_;
36395 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36396 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36397 #include <stdio.h>
36398 #include <stdlib.h>
36399 int
36400 main ()
36401 {
36402
36403   FILE *f = fopen ("conftest.val", "w");
36404   if (! f)
36405     return 1;
36406   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36407     {
36408       long int i = longval ();
36409       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36410         return 1;
36411       fprintf (f, "%ld\n", i);
36412     }
36413   else
36414     {
36415       unsigned long int i = ulongval ();
36416       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36417         return 1;
36418       fprintf (f, "%lu\n", i);
36419     }
36420   return ferror (f) || fclose (f) != 0;
36421
36422   ;
36423   return 0;
36424 }
36425 _ACEOF
36426 rm -f conftest$ac_exeext
36427 if { (ac_try="$ac_link"
36428 case "(($ac_try" in
36429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36430   *) ac_try_echo=$ac_try;;
36431 esac
36432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36433   (eval "$ac_link") 2>&5
36434   ac_status=$?
36435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
36443   ac_status=$?
36444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445   (exit $ac_status); }; }; then
36446   ac_cv_sizeof_long_int=`cat conftest.val`
36447 else
36448   echo "$as_me: program exited with status $ac_status" >&5
36449 echo "$as_me: failed program was:" >&5
36450 sed 's/^/| /' conftest.$ac_ext >&5
36451
36452 ( exit $ac_status )
36453 if test "$ac_cv_type_long_int" = yes; then
36454      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36455 See \`config.log' for more details." >&5
36456 echo "$as_me: error: cannot compute sizeof (long int)
36457 See \`config.log' for more details." >&2;}
36458    { (exit 77); exit 77; }; }
36459    else
36460      ac_cv_sizeof_long_int=0
36461    fi
36462 fi
36463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36464 fi
36465 rm -f conftest.val
36466 fi
36467 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36468 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36469
36470
36471
36472 cat >>confdefs.h <<_ACEOF
36473 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36474 _ACEOF
36475
36476
36477 { echo "$as_me:$LINENO: checking for long long int" >&5
36478 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36479 if test "${ac_cv_type_long_long_int+set}" = set; then
36480   echo $ECHO_N "(cached) $ECHO_C" >&6
36481 else
36482   cat >conftest.$ac_ext <<_ACEOF
36483 /* confdefs.h.  */
36484 _ACEOF
36485 cat confdefs.h >>conftest.$ac_ext
36486 cat >>conftest.$ac_ext <<_ACEOF
36487 /* end confdefs.h.  */
36488 $ac_includes_default
36489 typedef long long int ac__type_new_;
36490 int
36491 main ()
36492 {
36493 if ((ac__type_new_ *) 0)
36494   return 0;
36495 if (sizeof (ac__type_new_))
36496   return 0;
36497   ;
36498   return 0;
36499 }
36500 _ACEOF
36501 rm -f conftest.$ac_objext
36502 if { (ac_try="$ac_compile"
36503 case "(($ac_try" in
36504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36505   *) ac_try_echo=$ac_try;;
36506 esac
36507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36508   (eval "$ac_compile") 2>conftest.er1
36509   ac_status=$?
36510   grep -v '^ *+' conftest.er1 >conftest.err
36511   rm -f conftest.er1
36512   cat conftest.err >&5
36513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514   (exit $ac_status); } && {
36515          test -z "$ac_c_werror_flag" ||
36516          test ! -s conftest.err
36517        } && test -s conftest.$ac_objext; then
36518   ac_cv_type_long_long_int=yes
36519 else
36520   echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36522
36523         ac_cv_type_long_long_int=no
36524 fi
36525
36526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36527 fi
36528 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36529 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36530
36531 # The cast to long int works around a bug in the HP C Compiler
36532 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36533 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36534 # This bug is HP SR number 8606223364.
36535 { echo "$as_me:$LINENO: checking size of long long int" >&5
36536 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36537 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36538   echo $ECHO_N "(cached) $ECHO_C" >&6
36539 else
36540   if test "$cross_compiling" = yes; then
36541   # Depending upon the size, compute the lo and hi bounds.
36542 cat >conftest.$ac_ext <<_ACEOF
36543 /* confdefs.h.  */
36544 _ACEOF
36545 cat confdefs.h >>conftest.$ac_ext
36546 cat >>conftest.$ac_ext <<_ACEOF
36547 /* end confdefs.h.  */
36548 $ac_includes_default
36549    typedef long long int ac__type_sizeof_;
36550 int
36551 main ()
36552 {
36553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36554 test_array [0] = 0
36555
36556   ;
36557   return 0;
36558 }
36559 _ACEOF
36560 rm -f conftest.$ac_objext
36561 if { (ac_try="$ac_compile"
36562 case "(($ac_try" in
36563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36564   *) ac_try_echo=$ac_try;;
36565 esac
36566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36567   (eval "$ac_compile") 2>conftest.er1
36568   ac_status=$?
36569   grep -v '^ *+' conftest.er1 >conftest.err
36570   rm -f conftest.er1
36571   cat conftest.err >&5
36572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573   (exit $ac_status); } && {
36574          test -z "$ac_c_werror_flag" ||
36575          test ! -s conftest.err
36576        } && test -s conftest.$ac_objext; then
36577   ac_lo=0 ac_mid=0
36578   while :; do
36579     cat >conftest.$ac_ext <<_ACEOF
36580 /* confdefs.h.  */
36581 _ACEOF
36582 cat confdefs.h >>conftest.$ac_ext
36583 cat >>conftest.$ac_ext <<_ACEOF
36584 /* end confdefs.h.  */
36585 $ac_includes_default
36586    typedef long long int ac__type_sizeof_;
36587 int
36588 main ()
36589 {
36590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36591 test_array [0] = 0
36592
36593   ;
36594   return 0;
36595 }
36596 _ACEOF
36597 rm -f conftest.$ac_objext
36598 if { (ac_try="$ac_compile"
36599 case "(($ac_try" in
36600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36601   *) ac_try_echo=$ac_try;;
36602 esac
36603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36604   (eval "$ac_compile") 2>conftest.er1
36605   ac_status=$?
36606   grep -v '^ *+' conftest.er1 >conftest.err
36607   rm -f conftest.er1
36608   cat conftest.err >&5
36609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610   (exit $ac_status); } && {
36611          test -z "$ac_c_werror_flag" ||
36612          test ! -s conftest.err
36613        } && test -s conftest.$ac_objext; then
36614   ac_hi=$ac_mid; break
36615 else
36616   echo "$as_me: failed program was:" >&5
36617 sed 's/^/| /' conftest.$ac_ext >&5
36618
36619         ac_lo=`expr $ac_mid + 1`
36620                         if test $ac_lo -le $ac_mid; then
36621                           ac_lo= ac_hi=
36622                           break
36623                         fi
36624                         ac_mid=`expr 2 '*' $ac_mid + 1`
36625 fi
36626
36627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36628   done
36629 else
36630   echo "$as_me: failed program was:" >&5
36631 sed 's/^/| /' conftest.$ac_ext >&5
36632
36633         cat >conftest.$ac_ext <<_ACEOF
36634 /* confdefs.h.  */
36635 _ACEOF
36636 cat confdefs.h >>conftest.$ac_ext
36637 cat >>conftest.$ac_ext <<_ACEOF
36638 /* end confdefs.h.  */
36639 $ac_includes_default
36640    typedef long long int ac__type_sizeof_;
36641 int
36642 main ()
36643 {
36644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36645 test_array [0] = 0
36646
36647   ;
36648   return 0;
36649 }
36650 _ACEOF
36651 rm -f conftest.$ac_objext
36652 if { (ac_try="$ac_compile"
36653 case "(($ac_try" in
36654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36655   *) ac_try_echo=$ac_try;;
36656 esac
36657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36658   (eval "$ac_compile") 2>conftest.er1
36659   ac_status=$?
36660   grep -v '^ *+' conftest.er1 >conftest.err
36661   rm -f conftest.er1
36662   cat conftest.err >&5
36663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664   (exit $ac_status); } && {
36665          test -z "$ac_c_werror_flag" ||
36666          test ! -s conftest.err
36667        } && test -s conftest.$ac_objext; then
36668   ac_hi=-1 ac_mid=-1
36669   while :; do
36670     cat >conftest.$ac_ext <<_ACEOF
36671 /* confdefs.h.  */
36672 _ACEOF
36673 cat confdefs.h >>conftest.$ac_ext
36674 cat >>conftest.$ac_ext <<_ACEOF
36675 /* end confdefs.h.  */
36676 $ac_includes_default
36677    typedef long long int ac__type_sizeof_;
36678 int
36679 main ()
36680 {
36681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36682 test_array [0] = 0
36683
36684   ;
36685   return 0;
36686 }
36687 _ACEOF
36688 rm -f conftest.$ac_objext
36689 if { (ac_try="$ac_compile"
36690 case "(($ac_try" in
36691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36692   *) ac_try_echo=$ac_try;;
36693 esac
36694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36695   (eval "$ac_compile") 2>conftest.er1
36696   ac_status=$?
36697   grep -v '^ *+' conftest.er1 >conftest.err
36698   rm -f conftest.er1
36699   cat conftest.err >&5
36700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701   (exit $ac_status); } && {
36702          test -z "$ac_c_werror_flag" ||
36703          test ! -s conftest.err
36704        } && test -s conftest.$ac_objext; then
36705   ac_lo=$ac_mid; break
36706 else
36707   echo "$as_me: failed program was:" >&5
36708 sed 's/^/| /' conftest.$ac_ext >&5
36709
36710         ac_hi=`expr '(' $ac_mid ')' - 1`
36711                         if test $ac_mid -le $ac_hi; then
36712                           ac_lo= ac_hi=
36713                           break
36714                         fi
36715                         ac_mid=`expr 2 '*' $ac_mid`
36716 fi
36717
36718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36719   done
36720 else
36721   echo "$as_me: failed program was:" >&5
36722 sed 's/^/| /' conftest.$ac_ext >&5
36723
36724         ac_lo= ac_hi=
36725 fi
36726
36727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36728 fi
36729
36730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36731 # Binary search between lo and hi bounds.
36732 while test "x$ac_lo" != "x$ac_hi"; do
36733   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36734   cat >conftest.$ac_ext <<_ACEOF
36735 /* confdefs.h.  */
36736 _ACEOF
36737 cat confdefs.h >>conftest.$ac_ext
36738 cat >>conftest.$ac_ext <<_ACEOF
36739 /* end confdefs.h.  */
36740 $ac_includes_default
36741    typedef long long int ac__type_sizeof_;
36742 int
36743 main ()
36744 {
36745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36746 test_array [0] = 0
36747
36748   ;
36749   return 0;
36750 }
36751 _ACEOF
36752 rm -f conftest.$ac_objext
36753 if { (ac_try="$ac_compile"
36754 case "(($ac_try" in
36755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36756   *) ac_try_echo=$ac_try;;
36757 esac
36758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36759   (eval "$ac_compile") 2>conftest.er1
36760   ac_status=$?
36761   grep -v '^ *+' conftest.er1 >conftest.err
36762   rm -f conftest.er1
36763   cat conftest.err >&5
36764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765   (exit $ac_status); } && {
36766          test -z "$ac_c_werror_flag" ||
36767          test ! -s conftest.err
36768        } && test -s conftest.$ac_objext; then
36769   ac_hi=$ac_mid
36770 else
36771   echo "$as_me: failed program was:" >&5
36772 sed 's/^/| /' conftest.$ac_ext >&5
36773
36774         ac_lo=`expr '(' $ac_mid ')' + 1`
36775 fi
36776
36777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36778 done
36779 case $ac_lo in
36780 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36781 '') if test "$ac_cv_type_long_long_int" = yes; then
36782      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36783 See \`config.log' for more details." >&5
36784 echo "$as_me: error: cannot compute sizeof (long long int)
36785 See \`config.log' for more details." >&2;}
36786    { (exit 77); exit 77; }; }
36787    else
36788      ac_cv_sizeof_long_long_int=0
36789    fi ;;
36790 esac
36791 else
36792   cat >conftest.$ac_ext <<_ACEOF
36793 /* confdefs.h.  */
36794 _ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h.  */
36798 $ac_includes_default
36799    typedef long long int ac__type_sizeof_;
36800 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36801 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36802 #include <stdio.h>
36803 #include <stdlib.h>
36804 int
36805 main ()
36806 {
36807
36808   FILE *f = fopen ("conftest.val", "w");
36809   if (! f)
36810     return 1;
36811   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36812     {
36813       long int i = longval ();
36814       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36815         return 1;
36816       fprintf (f, "%ld\n", i);
36817     }
36818   else
36819     {
36820       unsigned long int i = ulongval ();
36821       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36822         return 1;
36823       fprintf (f, "%lu\n", i);
36824     }
36825   return ferror (f) || fclose (f) != 0;
36826
36827   ;
36828   return 0;
36829 }
36830 _ACEOF
36831 rm -f conftest$ac_exeext
36832 if { (ac_try="$ac_link"
36833 case "(($ac_try" in
36834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36835   *) ac_try_echo=$ac_try;;
36836 esac
36837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36838   (eval "$ac_link") 2>&5
36839   ac_status=$?
36840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36842   { (case "(($ac_try" in
36843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36844   *) ac_try_echo=$ac_try;;
36845 esac
36846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36847   (eval "$ac_try") 2>&5
36848   ac_status=$?
36849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850   (exit $ac_status); }; }; then
36851   ac_cv_sizeof_long_long_int=`cat conftest.val`
36852 else
36853   echo "$as_me: program exited with status $ac_status" >&5
36854 echo "$as_me: failed program was:" >&5
36855 sed 's/^/| /' conftest.$ac_ext >&5
36856
36857 ( exit $ac_status )
36858 if test "$ac_cv_type_long_long_int" = yes; then
36859      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36860 See \`config.log' for more details." >&5
36861 echo "$as_me: error: cannot compute sizeof (long long int)
36862 See \`config.log' for more details." >&2;}
36863    { (exit 77); exit 77; }; }
36864    else
36865      ac_cv_sizeof_long_long_int=0
36866    fi
36867 fi
36868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36869 fi
36870 rm -f conftest.val
36871 fi
36872 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36873 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36874
36875
36876
36877 cat >>confdefs.h <<_ACEOF
36878 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36879 _ACEOF
36880
36881
36882 { echo "$as_me:$LINENO: checking for int *" >&5
36883 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36884 if test "${ac_cv_type_int_p+set}" = set; then
36885   echo $ECHO_N "(cached) $ECHO_C" >&6
36886 else
36887   cat >conftest.$ac_ext <<_ACEOF
36888 /* confdefs.h.  */
36889 _ACEOF
36890 cat confdefs.h >>conftest.$ac_ext
36891 cat >>conftest.$ac_ext <<_ACEOF
36892 /* end confdefs.h.  */
36893 $ac_includes_default
36894 typedef int * ac__type_new_;
36895 int
36896 main ()
36897 {
36898 if ((ac__type_new_ *) 0)
36899   return 0;
36900 if (sizeof (ac__type_new_))
36901   return 0;
36902   ;
36903   return 0;
36904 }
36905 _ACEOF
36906 rm -f conftest.$ac_objext
36907 if { (ac_try="$ac_compile"
36908 case "(($ac_try" in
36909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36910   *) ac_try_echo=$ac_try;;
36911 esac
36912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36913   (eval "$ac_compile") 2>conftest.er1
36914   ac_status=$?
36915   grep -v '^ *+' conftest.er1 >conftest.err
36916   rm -f conftest.er1
36917   cat conftest.err >&5
36918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919   (exit $ac_status); } && {
36920          test -z "$ac_c_werror_flag" ||
36921          test ! -s conftest.err
36922        } && test -s conftest.$ac_objext; then
36923   ac_cv_type_int_p=yes
36924 else
36925   echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36927
36928         ac_cv_type_int_p=no
36929 fi
36930
36931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36932 fi
36933 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36934 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36935
36936 # The cast to long int works around a bug in the HP C Compiler
36937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36939 # This bug is HP SR number 8606223364.
36940 { echo "$as_me:$LINENO: checking size of int *" >&5
36941 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36942 if test "${ac_cv_sizeof_int_p+set}" = set; then
36943   echo $ECHO_N "(cached) $ECHO_C" >&6
36944 else
36945   if test "$cross_compiling" = yes; then
36946   # Depending upon the size, compute the lo and hi bounds.
36947 cat >conftest.$ac_ext <<_ACEOF
36948 /* confdefs.h.  */
36949 _ACEOF
36950 cat confdefs.h >>conftest.$ac_ext
36951 cat >>conftest.$ac_ext <<_ACEOF
36952 /* end confdefs.h.  */
36953 $ac_includes_default
36954    typedef int * ac__type_sizeof_;
36955 int
36956 main ()
36957 {
36958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36959 test_array [0] = 0
36960
36961   ;
36962   return 0;
36963 }
36964 _ACEOF
36965 rm -f conftest.$ac_objext
36966 if { (ac_try="$ac_compile"
36967 case "(($ac_try" in
36968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36969   *) ac_try_echo=$ac_try;;
36970 esac
36971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36972   (eval "$ac_compile") 2>conftest.er1
36973   ac_status=$?
36974   grep -v '^ *+' conftest.er1 >conftest.err
36975   rm -f conftest.er1
36976   cat conftest.err >&5
36977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36978   (exit $ac_status); } && {
36979          test -z "$ac_c_werror_flag" ||
36980          test ! -s conftest.err
36981        } && test -s conftest.$ac_objext; then
36982   ac_lo=0 ac_mid=0
36983   while :; do
36984     cat >conftest.$ac_ext <<_ACEOF
36985 /* confdefs.h.  */
36986 _ACEOF
36987 cat confdefs.h >>conftest.$ac_ext
36988 cat >>conftest.$ac_ext <<_ACEOF
36989 /* end confdefs.h.  */
36990 $ac_includes_default
36991    typedef int * ac__type_sizeof_;
36992 int
36993 main ()
36994 {
36995 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36996 test_array [0] = 0
36997
36998   ;
36999   return 0;
37000 }
37001 _ACEOF
37002 rm -f conftest.$ac_objext
37003 if { (ac_try="$ac_compile"
37004 case "(($ac_try" in
37005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37006   *) ac_try_echo=$ac_try;;
37007 esac
37008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37009   (eval "$ac_compile") 2>conftest.er1
37010   ac_status=$?
37011   grep -v '^ *+' conftest.er1 >conftest.err
37012   rm -f conftest.er1
37013   cat conftest.err >&5
37014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37015   (exit $ac_status); } && {
37016          test -z "$ac_c_werror_flag" ||
37017          test ! -s conftest.err
37018        } && test -s conftest.$ac_objext; then
37019   ac_hi=$ac_mid; break
37020 else
37021   echo "$as_me: failed program was:" >&5
37022 sed 's/^/| /' conftest.$ac_ext >&5
37023
37024         ac_lo=`expr $ac_mid + 1`
37025                         if test $ac_lo -le $ac_mid; then
37026                           ac_lo= ac_hi=
37027                           break
37028                         fi
37029                         ac_mid=`expr 2 '*' $ac_mid + 1`
37030 fi
37031
37032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37033   done
37034 else
37035   echo "$as_me: failed program was:" >&5
37036 sed 's/^/| /' conftest.$ac_ext >&5
37037
37038         cat >conftest.$ac_ext <<_ACEOF
37039 /* confdefs.h.  */
37040 _ACEOF
37041 cat confdefs.h >>conftest.$ac_ext
37042 cat >>conftest.$ac_ext <<_ACEOF
37043 /* end confdefs.h.  */
37044 $ac_includes_default
37045    typedef int * ac__type_sizeof_;
37046 int
37047 main ()
37048 {
37049 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37050 test_array [0] = 0
37051
37052   ;
37053   return 0;
37054 }
37055 _ACEOF
37056 rm -f conftest.$ac_objext
37057 if { (ac_try="$ac_compile"
37058 case "(($ac_try" in
37059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37060   *) ac_try_echo=$ac_try;;
37061 esac
37062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37063   (eval "$ac_compile") 2>conftest.er1
37064   ac_status=$?
37065   grep -v '^ *+' conftest.er1 >conftest.err
37066   rm -f conftest.er1
37067   cat conftest.err >&5
37068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069   (exit $ac_status); } && {
37070          test -z "$ac_c_werror_flag" ||
37071          test ! -s conftest.err
37072        } && test -s conftest.$ac_objext; then
37073   ac_hi=-1 ac_mid=-1
37074   while :; do
37075     cat >conftest.$ac_ext <<_ACEOF
37076 /* confdefs.h.  */
37077 _ACEOF
37078 cat confdefs.h >>conftest.$ac_ext
37079 cat >>conftest.$ac_ext <<_ACEOF
37080 /* end confdefs.h.  */
37081 $ac_includes_default
37082    typedef int * ac__type_sizeof_;
37083 int
37084 main ()
37085 {
37086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37087 test_array [0] = 0
37088
37089   ;
37090   return 0;
37091 }
37092 _ACEOF
37093 rm -f conftest.$ac_objext
37094 if { (ac_try="$ac_compile"
37095 case "(($ac_try" in
37096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37097   *) ac_try_echo=$ac_try;;
37098 esac
37099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37100   (eval "$ac_compile") 2>conftest.er1
37101   ac_status=$?
37102   grep -v '^ *+' conftest.er1 >conftest.err
37103   rm -f conftest.er1
37104   cat conftest.err >&5
37105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106   (exit $ac_status); } && {
37107          test -z "$ac_c_werror_flag" ||
37108          test ! -s conftest.err
37109        } && test -s conftest.$ac_objext; then
37110   ac_lo=$ac_mid; break
37111 else
37112   echo "$as_me: failed program was:" >&5
37113 sed 's/^/| /' conftest.$ac_ext >&5
37114
37115         ac_hi=`expr '(' $ac_mid ')' - 1`
37116                         if test $ac_mid -le $ac_hi; then
37117                           ac_lo= ac_hi=
37118                           break
37119                         fi
37120                         ac_mid=`expr 2 '*' $ac_mid`
37121 fi
37122
37123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37124   done
37125 else
37126   echo "$as_me: failed program was:" >&5
37127 sed 's/^/| /' conftest.$ac_ext >&5
37128
37129         ac_lo= ac_hi=
37130 fi
37131
37132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37133 fi
37134
37135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37136 # Binary search between lo and hi bounds.
37137 while test "x$ac_lo" != "x$ac_hi"; do
37138   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37139   cat >conftest.$ac_ext <<_ACEOF
37140 /* confdefs.h.  */
37141 _ACEOF
37142 cat confdefs.h >>conftest.$ac_ext
37143 cat >>conftest.$ac_ext <<_ACEOF
37144 /* end confdefs.h.  */
37145 $ac_includes_default
37146    typedef int * ac__type_sizeof_;
37147 int
37148 main ()
37149 {
37150 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37151 test_array [0] = 0
37152
37153   ;
37154   return 0;
37155 }
37156 _ACEOF
37157 rm -f conftest.$ac_objext
37158 if { (ac_try="$ac_compile"
37159 case "(($ac_try" in
37160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37161   *) ac_try_echo=$ac_try;;
37162 esac
37163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37164   (eval "$ac_compile") 2>conftest.er1
37165   ac_status=$?
37166   grep -v '^ *+' conftest.er1 >conftest.err
37167   rm -f conftest.er1
37168   cat conftest.err >&5
37169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170   (exit $ac_status); } && {
37171          test -z "$ac_c_werror_flag" ||
37172          test ! -s conftest.err
37173        } && test -s conftest.$ac_objext; then
37174   ac_hi=$ac_mid
37175 else
37176   echo "$as_me: failed program was:" >&5
37177 sed 's/^/| /' conftest.$ac_ext >&5
37178
37179         ac_lo=`expr '(' $ac_mid ')' + 1`
37180 fi
37181
37182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37183 done
37184 case $ac_lo in
37185 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37186 '') if test "$ac_cv_type_int_p" = yes; then
37187      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37188 See \`config.log' for more details." >&5
37189 echo "$as_me: error: cannot compute sizeof (int *)
37190 See \`config.log' for more details." >&2;}
37191    { (exit 77); exit 77; }; }
37192    else
37193      ac_cv_sizeof_int_p=0
37194    fi ;;
37195 esac
37196 else
37197   cat >conftest.$ac_ext <<_ACEOF
37198 /* confdefs.h.  */
37199 _ACEOF
37200 cat confdefs.h >>conftest.$ac_ext
37201 cat >>conftest.$ac_ext <<_ACEOF
37202 /* end confdefs.h.  */
37203 $ac_includes_default
37204    typedef int * ac__type_sizeof_;
37205 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37206 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37207 #include <stdio.h>
37208 #include <stdlib.h>
37209 int
37210 main ()
37211 {
37212
37213   FILE *f = fopen ("conftest.val", "w");
37214   if (! f)
37215     return 1;
37216   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37217     {
37218       long int i = longval ();
37219       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37220         return 1;
37221       fprintf (f, "%ld\n", i);
37222     }
37223   else
37224     {
37225       unsigned long int i = ulongval ();
37226       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37227         return 1;
37228       fprintf (f, "%lu\n", i);
37229     }
37230   return ferror (f) || fclose (f) != 0;
37231
37232   ;
37233   return 0;
37234 }
37235 _ACEOF
37236 rm -f conftest$ac_exeext
37237 if { (ac_try="$ac_link"
37238 case "(($ac_try" in
37239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37240   *) ac_try_echo=$ac_try;;
37241 esac
37242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37243   (eval "$ac_link") 2>&5
37244   ac_status=$?
37245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37247   { (case "(($ac_try" in
37248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37249   *) ac_try_echo=$ac_try;;
37250 esac
37251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37252   (eval "$ac_try") 2>&5
37253   ac_status=$?
37254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255   (exit $ac_status); }; }; then
37256   ac_cv_sizeof_int_p=`cat conftest.val`
37257 else
37258   echo "$as_me: program exited with status $ac_status" >&5
37259 echo "$as_me: failed program was:" >&5
37260 sed 's/^/| /' conftest.$ac_ext >&5
37261
37262 ( exit $ac_status )
37263 if test "$ac_cv_type_int_p" = yes; then
37264      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37265 See \`config.log' for more details." >&5
37266 echo "$as_me: error: cannot compute sizeof (int *)
37267 See \`config.log' for more details." >&2;}
37268    { (exit 77); exit 77; }; }
37269    else
37270      ac_cv_sizeof_int_p=0
37271    fi
37272 fi
37273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37274 fi
37275 rm -f conftest.val
37276 fi
37277 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37278 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37279
37280
37281
37282 cat >>confdefs.h <<_ACEOF
37283 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37284 _ACEOF
37285
37286
37287
37288 { echo "$as_me:$LINENO: checking for u_int type" >&5
37289 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37290 if test "${ac_cv_have_u_int+set}" = set; then
37291   echo $ECHO_N "(cached) $ECHO_C" >&6
37292 else
37293
37294        cat >conftest.$ac_ext <<_ACEOF
37295 /* confdefs.h.  */
37296 _ACEOF
37297 cat confdefs.h >>conftest.$ac_ext
37298 cat >>conftest.$ac_ext <<_ACEOF
37299 /* end confdefs.h.  */
37300
37301               #include <sys/types.h>
37302
37303 int
37304 main ()
37305 {
37306
37307               u_int a; a = 1;
37308
37309   ;
37310   return 0;
37311 }
37312 _ACEOF
37313 rm -f conftest.$ac_objext
37314 if { (ac_try="$ac_compile"
37315 case "(($ac_try" in
37316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37317   *) ac_try_echo=$ac_try;;
37318 esac
37319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37320   (eval "$ac_compile") 2>conftest.er1
37321   ac_status=$?
37322   grep -v '^ *+' conftest.er1 >conftest.err
37323   rm -f conftest.er1
37324   cat conftest.err >&5
37325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326   (exit $ac_status); } && {
37327          test -z "$ac_c_werror_flag" ||
37328          test ! -s conftest.err
37329        } && test -s conftest.$ac_objext; then
37330
37331               ac_cv_have_u_int="yes"
37332
37333 else
37334   echo "$as_me: failed program was:" >&5
37335 sed 's/^/| /' conftest.$ac_ext >&5
37336
37337
37338               ac_cv_have_u_int="no"
37339
37340
37341 fi
37342
37343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37344
37345
37346 fi
37347 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37348 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37349 if test "x$ac_cv_have_u_int" = "xyes" ; then
37350    cat >>confdefs.h <<\_ACEOF
37351 #define HAVE_U_INT 1
37352 _ACEOF
37353
37354    have_u_int=1
37355 fi
37356
37357 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37358 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37359 if test "${ac_cv_have_intmax_t+set}" = set; then
37360   echo $ECHO_N "(cached) $ECHO_C" >&6
37361 else
37362
37363        cat >conftest.$ac_ext <<_ACEOF
37364 /* confdefs.h.  */
37365 _ACEOF
37366 cat confdefs.h >>conftest.$ac_ext
37367 cat >>conftest.$ac_ext <<_ACEOF
37368 /* end confdefs.h.  */
37369
37370               #include <sys/types.h>
37371
37372 int
37373 main ()
37374 {
37375
37376               intmax_t a; a = 1;
37377
37378   ;
37379   return 0;
37380 }
37381 _ACEOF
37382 rm -f conftest.$ac_objext
37383 if { (ac_try="$ac_compile"
37384 case "(($ac_try" in
37385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37386   *) ac_try_echo=$ac_try;;
37387 esac
37388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37389   (eval "$ac_compile") 2>conftest.er1
37390   ac_status=$?
37391   grep -v '^ *+' conftest.er1 >conftest.err
37392   rm -f conftest.er1
37393   cat conftest.err >&5
37394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395   (exit $ac_status); } && {
37396          test -z "$ac_c_werror_flag" ||
37397          test ! -s conftest.err
37398        } && test -s conftest.$ac_objext; then
37399
37400               ac_cv_have_intmax_t="yes"
37401
37402 else
37403   echo "$as_me: failed program was:" >&5
37404 sed 's/^/| /' conftest.$ac_ext >&5
37405
37406
37407               cat >conftest.$ac_ext <<_ACEOF
37408 /* confdefs.h.  */
37409 _ACEOF
37410 cat confdefs.h >>conftest.$ac_ext
37411 cat >>conftest.$ac_ext <<_ACEOF
37412 /* end confdefs.h.  */
37413
37414                      #include <stdint.h>
37415
37416 int
37417 main ()
37418 {
37419
37420                      intmax_t a; a = 1;
37421
37422   ;
37423   return 0;
37424 }
37425 _ACEOF
37426 rm -f conftest.$ac_objext
37427 if { (ac_try="$ac_compile"
37428 case "(($ac_try" in
37429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37430   *) ac_try_echo=$ac_try;;
37431 esac
37432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37433   (eval "$ac_compile") 2>conftest.er1
37434   ac_status=$?
37435   grep -v '^ *+' conftest.er1 >conftest.err
37436   rm -f conftest.er1
37437   cat conftest.err >&5
37438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439   (exit $ac_status); } && {
37440          test -z "$ac_c_werror_flag" ||
37441          test ! -s conftest.err
37442        } && test -s conftest.$ac_objext; then
37443
37444                      ac_cv_have_intmax_t="yes"
37445
37446 else
37447   echo "$as_me: failed program was:" >&5
37448 sed 's/^/| /' conftest.$ac_ext >&5
37449
37450
37451                      ac_cv_have_intmax_t="no"
37452
37453
37454 fi
37455
37456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37457
37458
37459 fi
37460
37461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37462
37463
37464 fi
37465 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37466 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37467 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37468    cat >>confdefs.h <<\_ACEOF
37469 #define HAVE_INTMAX_T 1
37470 _ACEOF
37471
37472    have_intmax_t=1
37473 fi
37474
37475 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37476 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37477 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37478   echo $ECHO_N "(cached) $ECHO_C" >&6
37479 else
37480
37481        cat >conftest.$ac_ext <<_ACEOF
37482 /* confdefs.h.  */
37483 _ACEOF
37484 cat confdefs.h >>conftest.$ac_ext
37485 cat >>conftest.$ac_ext <<_ACEOF
37486 /* end confdefs.h.  */
37487
37488               #include <sys/types.h>
37489
37490 int
37491 main ()
37492 {
37493
37494               u_intmax_t a; a = 1;
37495
37496   ;
37497   return 0;
37498 }
37499 _ACEOF
37500 rm -f conftest.$ac_objext
37501 if { (ac_try="$ac_compile"
37502 case "(($ac_try" in
37503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37504   *) ac_try_echo=$ac_try;;
37505 esac
37506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37507   (eval "$ac_compile") 2>conftest.er1
37508   ac_status=$?
37509   grep -v '^ *+' conftest.er1 >conftest.err
37510   rm -f conftest.er1
37511   cat conftest.err >&5
37512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513   (exit $ac_status); } && {
37514          test -z "$ac_c_werror_flag" ||
37515          test ! -s conftest.err
37516        } && test -s conftest.$ac_objext; then
37517
37518               ac_cv_have_u_intmax_t="yes"
37519
37520 else
37521   echo "$as_me: failed program was:" >&5
37522 sed 's/^/| /' conftest.$ac_ext >&5
37523
37524
37525               cat >conftest.$ac_ext <<_ACEOF
37526 /* confdefs.h.  */
37527 _ACEOF
37528 cat confdefs.h >>conftest.$ac_ext
37529 cat >>conftest.$ac_ext <<_ACEOF
37530 /* end confdefs.h.  */
37531
37532                      #include <stdint.h>
37533
37534 int
37535 main ()
37536 {
37537
37538                     u_intmax_t a; a = 1;
37539
37540   ;
37541   return 0;
37542 }
37543 _ACEOF
37544 rm -f conftest.$ac_objext
37545 if { (ac_try="$ac_compile"
37546 case "(($ac_try" in
37547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37548   *) ac_try_echo=$ac_try;;
37549 esac
37550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37551   (eval "$ac_compile") 2>conftest.er1
37552   ac_status=$?
37553   grep -v '^ *+' conftest.er1 >conftest.err
37554   rm -f conftest.er1
37555   cat conftest.err >&5
37556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557   (exit $ac_status); } && {
37558          test -z "$ac_c_werror_flag" ||
37559          test ! -s conftest.err
37560        } && test -s conftest.$ac_objext; then
37561
37562                     ac_cv_have_u_intmax_t="yes"
37563
37564 else
37565   echo "$as_me: failed program was:" >&5
37566 sed 's/^/| /' conftest.$ac_ext >&5
37567
37568
37569                     ac_cv_have_u_intmax_t="no"
37570
37571
37572 fi
37573
37574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37575
37576
37577 fi
37578
37579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37580
37581
37582 fi
37583 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37584 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37585 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37586    cat >>confdefs.h <<\_ACEOF
37587 #define HAVE_U_INTMAX_T 1
37588 _ACEOF
37589
37590    have_u_intmax_t=1
37591 fi
37592
37593 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37594 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37595 if test "${ac_cv_have_intxx_t+set}" = set; then
37596   echo $ECHO_N "(cached) $ECHO_C" >&6
37597 else
37598
37599        cat >conftest.$ac_ext <<_ACEOF
37600 /* confdefs.h.  */
37601 _ACEOF
37602 cat confdefs.h >>conftest.$ac_ext
37603 cat >>conftest.$ac_ext <<_ACEOF
37604 /* end confdefs.h.  */
37605
37606               #include <sys/types.h>
37607
37608 int
37609 main ()
37610 {
37611
37612               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37613
37614   ;
37615   return 0;
37616 }
37617 _ACEOF
37618 rm -f conftest.$ac_objext
37619 if { (ac_try="$ac_compile"
37620 case "(($ac_try" in
37621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37622   *) ac_try_echo=$ac_try;;
37623 esac
37624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37625   (eval "$ac_compile") 2>conftest.er1
37626   ac_status=$?
37627   grep -v '^ *+' conftest.er1 >conftest.err
37628   rm -f conftest.er1
37629   cat conftest.err >&5
37630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37631   (exit $ac_status); } && {
37632          test -z "$ac_c_werror_flag" ||
37633          test ! -s conftest.err
37634        } && test -s conftest.$ac_objext; then
37635
37636               ac_cv_have_intxx_t="yes"
37637
37638 else
37639   echo "$as_me: failed program was:" >&5
37640 sed 's/^/| /' conftest.$ac_ext >&5
37641
37642
37643               ac_cv_have_intxx_t="no"
37644
37645
37646 fi
37647
37648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37649
37650
37651 fi
37652 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37653 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37654 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37655    cat >>confdefs.h <<\_ACEOF
37656 #define HAVE_INTXX_T 1
37657 _ACEOF
37658
37659    have_intxx_t=1
37660 fi
37661
37662 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37663 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37664 if test "${ac_cv_have_int64_t+set}" = set; then
37665   echo $ECHO_N "(cached) $ECHO_C" >&6
37666 else
37667
37668        cat >conftest.$ac_ext <<_ACEOF
37669 /* confdefs.h.  */
37670 _ACEOF
37671 cat confdefs.h >>conftest.$ac_ext
37672 cat >>conftest.$ac_ext <<_ACEOF
37673 /* end confdefs.h.  */
37674
37675               #include <sys/types.h>
37676
37677 int
37678 main ()
37679 {
37680
37681               int64_t a; a = 1;
37682
37683   ;
37684   return 0;
37685 }
37686 _ACEOF
37687 rm -f conftest.$ac_objext
37688 if { (ac_try="$ac_compile"
37689 case "(($ac_try" in
37690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37691   *) ac_try_echo=$ac_try;;
37692 esac
37693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37694   (eval "$ac_compile") 2>conftest.er1
37695   ac_status=$?
37696   grep -v '^ *+' conftest.er1 >conftest.err
37697   rm -f conftest.er1
37698   cat conftest.err >&5
37699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37700   (exit $ac_status); } && {
37701          test -z "$ac_c_werror_flag" ||
37702          test ! -s conftest.err
37703        } && test -s conftest.$ac_objext; then
37704
37705               ac_cv_have_int64_t="yes"
37706
37707 else
37708   echo "$as_me: failed program was:" >&5
37709 sed 's/^/| /' conftest.$ac_ext >&5
37710
37711
37712               ac_cv_have_int64_t="no"
37713
37714
37715 fi
37716
37717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37718
37719
37720 fi
37721 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37722 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37723 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37724    cat >>confdefs.h <<\_ACEOF
37725 #define HAVE_INT64_T 1
37726 _ACEOF
37727
37728    have_int64_t=1
37729 fi
37730
37731 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37732 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37733 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37734   echo $ECHO_N "(cached) $ECHO_C" >&6
37735 else
37736
37737        cat >conftest.$ac_ext <<_ACEOF
37738 /* confdefs.h.  */
37739 _ACEOF
37740 cat confdefs.h >>conftest.$ac_ext
37741 cat >>conftest.$ac_ext <<_ACEOF
37742 /* end confdefs.h.  */
37743
37744               #include <sys/types.h>
37745
37746 int
37747 main ()
37748 {
37749
37750               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37751
37752   ;
37753   return 0;
37754 }
37755 _ACEOF
37756 rm -f conftest.$ac_objext
37757 if { (ac_try="$ac_compile"
37758 case "(($ac_try" in
37759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37760   *) ac_try_echo=$ac_try;;
37761 esac
37762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37763   (eval "$ac_compile") 2>conftest.er1
37764   ac_status=$?
37765   grep -v '^ *+' conftest.er1 >conftest.err
37766   rm -f conftest.er1
37767   cat conftest.err >&5
37768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769   (exit $ac_status); } && {
37770          test -z "$ac_c_werror_flag" ||
37771          test ! -s conftest.err
37772        } && test -s conftest.$ac_objext; then
37773
37774              ac_cv_have_u_intxx_t="yes"
37775
37776 else
37777   echo "$as_me: failed program was:" >&5
37778 sed 's/^/| /' conftest.$ac_ext >&5
37779
37780
37781              ac_cv_have_u_intxx_t="no"
37782
37783
37784 fi
37785
37786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37787
37788
37789 fi
37790 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37791 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37792 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37793    cat >>confdefs.h <<\_ACEOF
37794 #define HAVE_U_INTXX_T 1
37795 _ACEOF
37796
37797    have_u_intxx_t=1
37798 fi
37799
37800 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37801 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37802 if test "${ac_cv_have_u_int64_t+set}" = set; then
37803   echo $ECHO_N "(cached) $ECHO_C" >&6
37804 else
37805
37806        cat >conftest.$ac_ext <<_ACEOF
37807 /* confdefs.h.  */
37808 _ACEOF
37809 cat confdefs.h >>conftest.$ac_ext
37810 cat >>conftest.$ac_ext <<_ACEOF
37811 /* end confdefs.h.  */
37812
37813               #include <sys/types.h>
37814
37815 int
37816 main ()
37817 {
37818
37819               u_int64_t a; a = 1;
37820
37821   ;
37822   return 0;
37823 }
37824 _ACEOF
37825 rm -f conftest.$ac_objext
37826 if { (ac_try="$ac_compile"
37827 case "(($ac_try" in
37828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37829   *) ac_try_echo=$ac_try;;
37830 esac
37831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37832   (eval "$ac_compile") 2>conftest.er1
37833   ac_status=$?
37834   grep -v '^ *+' conftest.er1 >conftest.err
37835   rm -f conftest.er1
37836   cat conftest.err >&5
37837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838   (exit $ac_status); } && {
37839          test -z "$ac_c_werror_flag" ||
37840          test ! -s conftest.err
37841        } && test -s conftest.$ac_objext; then
37842
37843              ac_cv_have_u_int64_t="yes"
37844
37845 else
37846   echo "$as_me: failed program was:" >&5
37847 sed 's/^/| /' conftest.$ac_ext >&5
37848
37849
37850              ac_cv_have_u_int64_t="no"
37851
37852
37853 fi
37854
37855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37856
37857
37858 fi
37859 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37860 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37861 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37862    cat >>confdefs.h <<\_ACEOF
37863 #define HAVE_U_INT64_T 1
37864 _ACEOF
37865
37866    have_u_int64_t=1
37867 fi
37868
37869 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37870     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37871 then
37872    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37873 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37874    cat >conftest.$ac_ext <<_ACEOF
37875 /* confdefs.h.  */
37876 _ACEOF
37877 cat confdefs.h >>conftest.$ac_ext
37878 cat >>conftest.$ac_ext <<_ACEOF
37879 /* end confdefs.h.  */
37880
37881           #include <sys/bitypes.h>
37882
37883 int
37884 main ()
37885 {
37886
37887           int8_t a; int16_t b; int32_t c;
37888           u_int8_t e; u_int16_t f; u_int32_t g;
37889           a = b = c = e = f = g = 1;
37890
37891   ;
37892   return 0;
37893 }
37894 _ACEOF
37895 rm -f conftest.$ac_objext
37896 if { (ac_try="$ac_compile"
37897 case "(($ac_try" in
37898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37899   *) ac_try_echo=$ac_try;;
37900 esac
37901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37902   (eval "$ac_compile") 2>conftest.er1
37903   ac_status=$?
37904   grep -v '^ *+' conftest.er1 >conftest.err
37905   rm -f conftest.er1
37906   cat conftest.err >&5
37907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37908   (exit $ac_status); } && {
37909          test -z "$ac_c_werror_flag" ||
37910          test ! -s conftest.err
37911        } && test -s conftest.$ac_objext; then
37912
37913           cat >>confdefs.h <<\_ACEOF
37914 #define HAVE_U_INTXX_T 1
37915 _ACEOF
37916
37917           cat >>confdefs.h <<\_ACEOF
37918 #define HAVE_INTXX_T 1
37919 _ACEOF
37920
37921           cat >>confdefs.h <<\_ACEOF
37922 #define HAVE_SYS_BITYPES_H 1
37923 _ACEOF
37924
37925           { echo "$as_me:$LINENO: result: yes" >&5
37926 echo "${ECHO_T}yes" >&6; }
37927
37928 else
37929   echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37931
37932
37933           { echo "$as_me:$LINENO: result: no" >&5
37934 echo "${ECHO_T}no" >&6; }
37935
37936
37937 fi
37938
37939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37940 fi
37941
37942 if test -z "$have_u_intxx_t" ; then
37943    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37944 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37945 if test "${ac_cv_have_uintxx_t+set}" = set; then
37946   echo $ECHO_N "(cached) $ECHO_C" >&6
37947 else
37948
37949           cat >conftest.$ac_ext <<_ACEOF
37950 /* confdefs.h.  */
37951 _ACEOF
37952 cat confdefs.h >>conftest.$ac_ext
37953 cat >>conftest.$ac_ext <<_ACEOF
37954 /* end confdefs.h.  */
37955
37956                  #include <sys/types.h>
37957
37958 int
37959 main ()
37960 {
37961
37962                  uint8_t a; uint16_t b;
37963                  uint32_t c; a = b = c = 1;
37964
37965   ;
37966   return 0;
37967 }
37968 _ACEOF
37969 rm -f conftest.$ac_objext
37970 if { (ac_try="$ac_compile"
37971 case "(($ac_try" in
37972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37973   *) ac_try_echo=$ac_try;;
37974 esac
37975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37976   (eval "$ac_compile") 2>conftest.er1
37977   ac_status=$?
37978   grep -v '^ *+' conftest.er1 >conftest.err
37979   rm -f conftest.er1
37980   cat conftest.err >&5
37981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982   (exit $ac_status); } && {
37983          test -z "$ac_c_werror_flag" ||
37984          test ! -s conftest.err
37985        } && test -s conftest.$ac_objext; then
37986
37987                 ac_cv_have_uintxx_t="yes"
37988
37989 else
37990   echo "$as_me: failed program was:" >&5
37991 sed 's/^/| /' conftest.$ac_ext >&5
37992
37993
37994                 ac_cv_have_uintxx_t="no"
37995
37996
37997 fi
37998
37999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38000
38001
38002 fi
38003 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38004 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38005    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38006       cat >>confdefs.h <<\_ACEOF
38007 #define HAVE_UINTXX_T 1
38008 _ACEOF
38009
38010    fi
38011 fi
38012
38013 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38014     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38015 then
38016    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38017 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38018    cat >conftest.$ac_ext <<_ACEOF
38019 /* confdefs.h.  */
38020 _ACEOF
38021 cat confdefs.h >>conftest.$ac_ext
38022 cat >>conftest.$ac_ext <<_ACEOF
38023 /* end confdefs.h.  */
38024
38025           #include <sys/bitypes.h>
38026
38027 int
38028 main ()
38029 {
38030
38031           int64_t a; u_int64_t b;
38032           a = b = 1;
38033
38034   ;
38035   return 0;
38036 }
38037 _ACEOF
38038 rm -f conftest.$ac_objext
38039 if { (ac_try="$ac_compile"
38040 case "(($ac_try" in
38041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38042   *) ac_try_echo=$ac_try;;
38043 esac
38044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38045   (eval "$ac_compile") 2>conftest.er1
38046   ac_status=$?
38047   grep -v '^ *+' conftest.er1 >conftest.err
38048   rm -f conftest.er1
38049   cat conftest.err >&5
38050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38051   (exit $ac_status); } && {
38052          test -z "$ac_c_werror_flag" ||
38053          test ! -s conftest.err
38054        } && test -s conftest.$ac_objext; then
38055
38056           cat >>confdefs.h <<\_ACEOF
38057 #define HAVE_U_INT64_T 1
38058 _ACEOF
38059
38060           cat >>confdefs.h <<\_ACEOF
38061 #define HAVE_INT64_T 1
38062 _ACEOF
38063
38064           { echo "$as_me:$LINENO: result: yes" >&5
38065 echo "${ECHO_T}yes" >&6; }
38066
38067 else
38068   echo "$as_me: failed program was:" >&5
38069 sed 's/^/| /' conftest.$ac_ext >&5
38070
38071
38072           { echo "$as_me:$LINENO: result: no" >&5
38073 echo "${ECHO_T}no" >&6; }
38074
38075
38076 fi
38077
38078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38079 fi
38080
38081 if (test -z "$have_uintxx_t" && \
38082     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38083 then
38084    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38085 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38086    cat >conftest.$ac_ext <<_ACEOF
38087 /* confdefs.h.  */
38088 _ACEOF
38089 cat confdefs.h >>conftest.$ac_ext
38090 cat >>conftest.$ac_ext <<_ACEOF
38091 /* end confdefs.h.  */
38092
38093           #include <sys/bitypes.h>
38094
38095 int
38096 main ()
38097 {
38098
38099           uint8_t a; uint16_t b;
38100           uint32_t c; a = b = c = 1;
38101
38102   ;
38103   return 0;
38104 }
38105 _ACEOF
38106 rm -f conftest.$ac_objext
38107 if { (ac_try="$ac_compile"
38108 case "(($ac_try" in
38109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38110   *) ac_try_echo=$ac_try;;
38111 esac
38112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38113   (eval "$ac_compile") 2>conftest.er1
38114   ac_status=$?
38115   grep -v '^ *+' conftest.er1 >conftest.err
38116   rm -f conftest.er1
38117   cat conftest.err >&5
38118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119   (exit $ac_status); } && {
38120          test -z "$ac_c_werror_flag" ||
38121          test ! -s conftest.err
38122        } && test -s conftest.$ac_objext; then
38123
38124           cat >>confdefs.h <<\_ACEOF
38125 #define HAVE_UINTXX_T 1
38126 _ACEOF
38127
38128           { echo "$as_me:$LINENO: result: yes" >&5
38129 echo "${ECHO_T}yes" >&6; }
38130
38131 else
38132   echo "$as_me: failed program was:" >&5
38133 sed 's/^/| /' conftest.$ac_ext >&5
38134
38135
38136           { echo "$as_me:$LINENO: result: no" >&5
38137 echo "${ECHO_T}no" >&6; }
38138
38139
38140 fi
38141
38142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38143 fi
38144
38145
38146
38147
38148
38149
38150
38151
38152
38153
38154
38155
38156
38157
38158 for ac_func in \
38159    fork \
38160    getcwd \
38161    gethostname \
38162    getpid \
38163    gettimeofday \
38164    setpgid \
38165    setpgrp \
38166    setsid \
38167    signal \
38168    strerror \
38169    strncmp \
38170    strncpy \
38171    vfprintf \
38172
38173 do
38174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38178   echo $ECHO_N "(cached) $ECHO_C" >&6
38179 else
38180   cat >conftest.$ac_ext <<_ACEOF
38181 /* confdefs.h.  */
38182 _ACEOF
38183 cat confdefs.h >>conftest.$ac_ext
38184 cat >>conftest.$ac_ext <<_ACEOF
38185 /* end confdefs.h.  */
38186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38188 #define $ac_func innocuous_$ac_func
38189
38190 /* System header to define __stub macros and hopefully few prototypes,
38191     which can conflict with char $ac_func (); below.
38192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38193     <limits.h> exists even on freestanding compilers.  */
38194
38195 #ifdef __STDC__
38196 # include <limits.h>
38197 #else
38198 # include <assert.h>
38199 #endif
38200
38201 #undef $ac_func
38202
38203 /* Override any GCC internal prototype to avoid an error.
38204    Use char because int might match the return type of a GCC
38205    builtin and then its argument prototype would still apply.  */
38206 #ifdef __cplusplus
38207 extern "C"
38208 #endif
38209 char $ac_func ();
38210 /* The GNU C library defines this for functions which it implements
38211     to always fail with ENOSYS.  Some functions are actually named
38212     something starting with __ and the normal name is an alias.  */
38213 #if defined __stub_$ac_func || defined __stub___$ac_func
38214 choke me
38215 #endif
38216
38217 int
38218 main ()
38219 {
38220 return $ac_func ();
38221   ;
38222   return 0;
38223 }
38224 _ACEOF
38225 rm -f conftest.$ac_objext conftest$ac_exeext
38226 if { (ac_try="$ac_link"
38227 case "(($ac_try" in
38228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38229   *) ac_try_echo=$ac_try;;
38230 esac
38231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38232   (eval "$ac_link") 2>conftest.er1
38233   ac_status=$?
38234   grep -v '^ *+' conftest.er1 >conftest.err
38235   rm -f conftest.er1
38236   cat conftest.err >&5
38237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238   (exit $ac_status); } && {
38239          test -z "$ac_c_werror_flag" ||
38240          test ! -s conftest.err
38241        } && test -s conftest$ac_exeext &&
38242        $as_test_x conftest$ac_exeext; then
38243   eval "$as_ac_var=yes"
38244 else
38245   echo "$as_me: failed program was:" >&5
38246 sed 's/^/| /' conftest.$ac_ext >&5
38247
38248         eval "$as_ac_var=no"
38249 fi
38250
38251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38252       conftest$ac_exeext conftest.$ac_ext
38253 fi
38254 ac_res=`eval echo '${'$as_ac_var'}'`
38255                { echo "$as_me:$LINENO: result: $ac_res" >&5
38256 echo "${ECHO_T}$ac_res" >&6; }
38257 if test `eval echo '${'$as_ac_var'}'` = yes; then
38258   cat >>confdefs.h <<_ACEOF
38259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38260 _ACEOF
38261
38262 else
38263   echo 'configure: cannot find needed function.'; exit 1
38264
38265 fi
38266 done
38267
38268
38269
38270 for ac_func in fchdir
38271 do
38272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38276   echo $ECHO_N "(cached) $ECHO_C" >&6
38277 else
38278   cat >conftest.$ac_ext <<_ACEOF
38279 /* confdefs.h.  */
38280 _ACEOF
38281 cat confdefs.h >>conftest.$ac_ext
38282 cat >>conftest.$ac_ext <<_ACEOF
38283 /* end confdefs.h.  */
38284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38286 #define $ac_func innocuous_$ac_func
38287
38288 /* System header to define __stub macros and hopefully few prototypes,
38289     which can conflict with char $ac_func (); below.
38290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38291     <limits.h> exists even on freestanding compilers.  */
38292
38293 #ifdef __STDC__
38294 # include <limits.h>
38295 #else
38296 # include <assert.h>
38297 #endif
38298
38299 #undef $ac_func
38300
38301 /* Override any GCC internal prototype to avoid an error.
38302    Use char because int might match the return type of a GCC
38303    builtin and then its argument prototype would still apply.  */
38304 #ifdef __cplusplus
38305 extern "C"
38306 #endif
38307 char $ac_func ();
38308 /* The GNU C library defines this for functions which it implements
38309     to always fail with ENOSYS.  Some functions are actually named
38310     something starting with __ and the normal name is an alias.  */
38311 #if defined __stub_$ac_func || defined __stub___$ac_func
38312 choke me
38313 #endif
38314
38315 int
38316 main ()
38317 {
38318 return $ac_func ();
38319   ;
38320   return 0;
38321 }
38322 _ACEOF
38323 rm -f conftest.$ac_objext conftest$ac_exeext
38324 if { (ac_try="$ac_link"
38325 case "(($ac_try" in
38326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38327   *) ac_try_echo=$ac_try;;
38328 esac
38329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38330   (eval "$ac_link") 2>conftest.er1
38331   ac_status=$?
38332   grep -v '^ *+' conftest.er1 >conftest.err
38333   rm -f conftest.er1
38334   cat conftest.err >&5
38335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336   (exit $ac_status); } && {
38337          test -z "$ac_c_werror_flag" ||
38338          test ! -s conftest.err
38339        } && test -s conftest$ac_exeext &&
38340        $as_test_x conftest$ac_exeext; then
38341   eval "$as_ac_var=yes"
38342 else
38343   echo "$as_me: failed program was:" >&5
38344 sed 's/^/| /' conftest.$ac_ext >&5
38345
38346         eval "$as_ac_var=no"
38347 fi
38348
38349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38350       conftest$ac_exeext conftest.$ac_ext
38351 fi
38352 ac_res=`eval echo '${'$as_ac_var'}'`
38353                { echo "$as_me:$LINENO: result: $ac_res" >&5
38354 echo "${ECHO_T}$ac_res" >&6; }
38355 if test `eval echo '${'$as_ac_var'}'` = yes; then
38356   cat >>confdefs.h <<_ACEOF
38357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38358 _ACEOF
38359  cat >>confdefs.h <<\_ACEOF
38360 #define HAVE_FCHDIR 1
38361 _ACEOF
38362
38363 fi
38364 done
38365
38366
38367 for ac_func in strtoll
38368 do
38369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38373   echo $ECHO_N "(cached) $ECHO_C" >&6
38374 else
38375   cat >conftest.$ac_ext <<_ACEOF
38376 /* confdefs.h.  */
38377 _ACEOF
38378 cat confdefs.h >>conftest.$ac_ext
38379 cat >>conftest.$ac_ext <<_ACEOF
38380 /* end confdefs.h.  */
38381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38383 #define $ac_func innocuous_$ac_func
38384
38385 /* System header to define __stub macros and hopefully few prototypes,
38386     which can conflict with char $ac_func (); below.
38387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38388     <limits.h> exists even on freestanding compilers.  */
38389
38390 #ifdef __STDC__
38391 # include <limits.h>
38392 #else
38393 # include <assert.h>
38394 #endif
38395
38396 #undef $ac_func
38397
38398 /* Override any GCC internal prototype to avoid an error.
38399    Use char because int might match the return type of a GCC
38400    builtin and then its argument prototype would still apply.  */
38401 #ifdef __cplusplus
38402 extern "C"
38403 #endif
38404 char $ac_func ();
38405 /* The GNU C library defines this for functions which it implements
38406     to always fail with ENOSYS.  Some functions are actually named
38407     something starting with __ and the normal name is an alias.  */
38408 #if defined __stub_$ac_func || defined __stub___$ac_func
38409 choke me
38410 #endif
38411
38412 int
38413 main ()
38414 {
38415 return $ac_func ();
38416   ;
38417   return 0;
38418 }
38419 _ACEOF
38420 rm -f conftest.$ac_objext conftest$ac_exeext
38421 if { (ac_try="$ac_link"
38422 case "(($ac_try" in
38423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38424   *) ac_try_echo=$ac_try;;
38425 esac
38426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38427   (eval "$ac_link") 2>conftest.er1
38428   ac_status=$?
38429   grep -v '^ *+' conftest.er1 >conftest.err
38430   rm -f conftest.er1
38431   cat conftest.err >&5
38432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433   (exit $ac_status); } && {
38434          test -z "$ac_c_werror_flag" ||
38435          test ! -s conftest.err
38436        } && test -s conftest$ac_exeext &&
38437        $as_test_x conftest$ac_exeext; then
38438   eval "$as_ac_var=yes"
38439 else
38440   echo "$as_me: failed program was:" >&5
38441 sed 's/^/| /' conftest.$ac_ext >&5
38442
38443         eval "$as_ac_var=no"
38444 fi
38445
38446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38447       conftest$ac_exeext conftest.$ac_ext
38448 fi
38449 ac_res=`eval echo '${'$as_ac_var'}'`
38450                { echo "$as_me:$LINENO: result: $ac_res" >&5
38451 echo "${ECHO_T}$ac_res" >&6; }
38452 if test `eval echo '${'$as_ac_var'}'` = yes; then
38453   cat >>confdefs.h <<_ACEOF
38454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38455 _ACEOF
38456  cat >>confdefs.h <<\_ACEOF
38457 #define HAVE_STRTOLL 1
38458 _ACEOF
38459
38460 fi
38461 done
38462
38463
38464 for ac_func in posix_fadvise
38465 do
38466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38470   echo $ECHO_N "(cached) $ECHO_C" >&6
38471 else
38472   cat >conftest.$ac_ext <<_ACEOF
38473 /* confdefs.h.  */
38474 _ACEOF
38475 cat confdefs.h >>conftest.$ac_ext
38476 cat >>conftest.$ac_ext <<_ACEOF
38477 /* end confdefs.h.  */
38478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38480 #define $ac_func innocuous_$ac_func
38481
38482 /* System header to define __stub macros and hopefully few prototypes,
38483     which can conflict with char $ac_func (); below.
38484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38485     <limits.h> exists even on freestanding compilers.  */
38486
38487 #ifdef __STDC__
38488 # include <limits.h>
38489 #else
38490 # include <assert.h>
38491 #endif
38492
38493 #undef $ac_func
38494
38495 /* Override any GCC internal prototype to avoid an error.
38496    Use char because int might match the return type of a GCC
38497    builtin and then its argument prototype would still apply.  */
38498 #ifdef __cplusplus
38499 extern "C"
38500 #endif
38501 char $ac_func ();
38502 /* The GNU C library defines this for functions which it implements
38503     to always fail with ENOSYS.  Some functions are actually named
38504     something starting with __ and the normal name is an alias.  */
38505 #if defined __stub_$ac_func || defined __stub___$ac_func
38506 choke me
38507 #endif
38508
38509 int
38510 main ()
38511 {
38512 return $ac_func ();
38513   ;
38514   return 0;
38515 }
38516 _ACEOF
38517 rm -f conftest.$ac_objext conftest$ac_exeext
38518 if { (ac_try="$ac_link"
38519 case "(($ac_try" in
38520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38521   *) ac_try_echo=$ac_try;;
38522 esac
38523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38524   (eval "$ac_link") 2>conftest.er1
38525   ac_status=$?
38526   grep -v '^ *+' conftest.er1 >conftest.err
38527   rm -f conftest.er1
38528   cat conftest.err >&5
38529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530   (exit $ac_status); } && {
38531          test -z "$ac_c_werror_flag" ||
38532          test ! -s conftest.err
38533        } && test -s conftest$ac_exeext &&
38534        $as_test_x conftest$ac_exeext; then
38535   eval "$as_ac_var=yes"
38536 else
38537   echo "$as_me: failed program was:" >&5
38538 sed 's/^/| /' conftest.$ac_ext >&5
38539
38540         eval "$as_ac_var=no"
38541 fi
38542
38543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38544       conftest$ac_exeext conftest.$ac_ext
38545 fi
38546 ac_res=`eval echo '${'$as_ac_var'}'`
38547                { echo "$as_me:$LINENO: result: $ac_res" >&5
38548 echo "${ECHO_T}$ac_res" >&6; }
38549 if test `eval echo '${'$as_ac_var'}'` = yes; then
38550   cat >>confdefs.h <<_ACEOF
38551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38552 _ACEOF
38553
38554 fi
38555 done
38556
38557
38558 for ac_func in fdatasync
38559 do
38560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38564   echo $ECHO_N "(cached) $ECHO_C" >&6
38565 else
38566   cat >conftest.$ac_ext <<_ACEOF
38567 /* confdefs.h.  */
38568 _ACEOF
38569 cat confdefs.h >>conftest.$ac_ext
38570 cat >>conftest.$ac_ext <<_ACEOF
38571 /* end confdefs.h.  */
38572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38574 #define $ac_func innocuous_$ac_func
38575
38576 /* System header to define __stub macros and hopefully few prototypes,
38577     which can conflict with char $ac_func (); below.
38578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38579     <limits.h> exists even on freestanding compilers.  */
38580
38581 #ifdef __STDC__
38582 # include <limits.h>
38583 #else
38584 # include <assert.h>
38585 #endif
38586
38587 #undef $ac_func
38588
38589 /* Override any GCC internal prototype to avoid an error.
38590    Use char because int might match the return type of a GCC
38591    builtin and then its argument prototype would still apply.  */
38592 #ifdef __cplusplus
38593 extern "C"
38594 #endif
38595 char $ac_func ();
38596 /* The GNU C library defines this for functions which it implements
38597     to always fail with ENOSYS.  Some functions are actually named
38598     something starting with __ and the normal name is an alias.  */
38599 #if defined __stub_$ac_func || defined __stub___$ac_func
38600 choke me
38601 #endif
38602
38603 int
38604 main ()
38605 {
38606 return $ac_func ();
38607   ;
38608   return 0;
38609 }
38610 _ACEOF
38611 rm -f conftest.$ac_objext conftest$ac_exeext
38612 if { (ac_try="$ac_link"
38613 case "(($ac_try" in
38614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38615   *) ac_try_echo=$ac_try;;
38616 esac
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618   (eval "$ac_link") 2>conftest.er1
38619   ac_status=$?
38620   grep -v '^ *+' conftest.er1 >conftest.err
38621   rm -f conftest.er1
38622   cat conftest.err >&5
38623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624   (exit $ac_status); } && {
38625          test -z "$ac_c_werror_flag" ||
38626          test ! -s conftest.err
38627        } && test -s conftest$ac_exeext &&
38628        $as_test_x conftest$ac_exeext; then
38629   eval "$as_ac_var=yes"
38630 else
38631   echo "$as_me: failed program was:" >&5
38632 sed 's/^/| /' conftest.$ac_ext >&5
38633
38634         eval "$as_ac_var=no"
38635 fi
38636
38637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38638       conftest$ac_exeext conftest.$ac_ext
38639 fi
38640 ac_res=`eval echo '${'$as_ac_var'}'`
38641                { echo "$as_me:$LINENO: result: $ac_res" >&5
38642 echo "${ECHO_T}$ac_res" >&6; }
38643 if test `eval echo '${'$as_ac_var'}'` = yes; then
38644   cat >>confdefs.h <<_ACEOF
38645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38646 _ACEOF
38647
38648 fi
38649 done
38650
38651
38652
38653 for ac_func in chflags
38654 do
38655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38659   echo $ECHO_N "(cached) $ECHO_C" >&6
38660 else
38661   cat >conftest.$ac_ext <<_ACEOF
38662 /* confdefs.h.  */
38663 _ACEOF
38664 cat confdefs.h >>conftest.$ac_ext
38665 cat >>conftest.$ac_ext <<_ACEOF
38666 /* end confdefs.h.  */
38667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38669 #define $ac_func innocuous_$ac_func
38670
38671 /* System header to define __stub macros and hopefully few prototypes,
38672     which can conflict with char $ac_func (); below.
38673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38674     <limits.h> exists even on freestanding compilers.  */
38675
38676 #ifdef __STDC__
38677 # include <limits.h>
38678 #else
38679 # include <assert.h>
38680 #endif
38681
38682 #undef $ac_func
38683
38684 /* Override any GCC internal prototype to avoid an error.
38685    Use char because int might match the return type of a GCC
38686    builtin and then its argument prototype would still apply.  */
38687 #ifdef __cplusplus
38688 extern "C"
38689 #endif
38690 char $ac_func ();
38691 /* The GNU C library defines this for functions which it implements
38692     to always fail with ENOSYS.  Some functions are actually named
38693     something starting with __ and the normal name is an alias.  */
38694 #if defined __stub_$ac_func || defined __stub___$ac_func
38695 choke me
38696 #endif
38697
38698 int
38699 main ()
38700 {
38701 return $ac_func ();
38702   ;
38703   return 0;
38704 }
38705 _ACEOF
38706 rm -f conftest.$ac_objext conftest$ac_exeext
38707 if { (ac_try="$ac_link"
38708 case "(($ac_try" in
38709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38710   *) ac_try_echo=$ac_try;;
38711 esac
38712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38713   (eval "$ac_link") 2>conftest.er1
38714   ac_status=$?
38715   grep -v '^ *+' conftest.er1 >conftest.err
38716   rm -f conftest.er1
38717   cat conftest.err >&5
38718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38719   (exit $ac_status); } && {
38720          test -z "$ac_c_werror_flag" ||
38721          test ! -s conftest.err
38722        } && test -s conftest$ac_exeext &&
38723        $as_test_x conftest$ac_exeext; then
38724   eval "$as_ac_var=yes"
38725 else
38726   echo "$as_me: failed program was:" >&5
38727 sed 's/^/| /' conftest.$ac_ext >&5
38728
38729         eval "$as_ac_var=no"
38730 fi
38731
38732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38733       conftest$ac_exeext conftest.$ac_ext
38734 fi
38735 ac_res=`eval echo '${'$as_ac_var'}'`
38736                { echo "$as_me:$LINENO: result: $ac_res" >&5
38737 echo "${ECHO_T}$ac_res" >&6; }
38738 if test `eval echo '${'$as_ac_var'}'` = yes; then
38739   cat >>confdefs.h <<_ACEOF
38740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38741 _ACEOF
38742
38743 fi
38744 done
38745
38746
38747
38748
38749
38750
38751 for ac_func in snprintf vsnprintf gethostid fseeko
38752 do
38753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38757   echo $ECHO_N "(cached) $ECHO_C" >&6
38758 else
38759   cat >conftest.$ac_ext <<_ACEOF
38760 /* confdefs.h.  */
38761 _ACEOF
38762 cat confdefs.h >>conftest.$ac_ext
38763 cat >>conftest.$ac_ext <<_ACEOF
38764 /* end confdefs.h.  */
38765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38767 #define $ac_func innocuous_$ac_func
38768
38769 /* System header to define __stub macros and hopefully few prototypes,
38770     which can conflict with char $ac_func (); below.
38771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38772     <limits.h> exists even on freestanding compilers.  */
38773
38774 #ifdef __STDC__
38775 # include <limits.h>
38776 #else
38777 # include <assert.h>
38778 #endif
38779
38780 #undef $ac_func
38781
38782 /* Override any GCC internal prototype to avoid an error.
38783    Use char because int might match the return type of a GCC
38784    builtin and then its argument prototype would still apply.  */
38785 #ifdef __cplusplus
38786 extern "C"
38787 #endif
38788 char $ac_func ();
38789 /* The GNU C library defines this for functions which it implements
38790     to always fail with ENOSYS.  Some functions are actually named
38791     something starting with __ and the normal name is an alias.  */
38792 #if defined __stub_$ac_func || defined __stub___$ac_func
38793 choke me
38794 #endif
38795
38796 int
38797 main ()
38798 {
38799 return $ac_func ();
38800   ;
38801   return 0;
38802 }
38803 _ACEOF
38804 rm -f conftest.$ac_objext conftest$ac_exeext
38805 if { (ac_try="$ac_link"
38806 case "(($ac_try" in
38807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38808   *) ac_try_echo=$ac_try;;
38809 esac
38810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38811   (eval "$ac_link") 2>conftest.er1
38812   ac_status=$?
38813   grep -v '^ *+' conftest.er1 >conftest.err
38814   rm -f conftest.er1
38815   cat conftest.err >&5
38816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817   (exit $ac_status); } && {
38818          test -z "$ac_c_werror_flag" ||
38819          test ! -s conftest.err
38820        } && test -s conftest$ac_exeext &&
38821        $as_test_x conftest$ac_exeext; then
38822   eval "$as_ac_var=yes"
38823 else
38824   echo "$as_me: failed program was:" >&5
38825 sed 's/^/| /' conftest.$ac_ext >&5
38826
38827         eval "$as_ac_var=no"
38828 fi
38829
38830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38831       conftest$ac_exeext conftest.$ac_ext
38832 fi
38833 ac_res=`eval echo '${'$as_ac_var'}'`
38834                { echo "$as_me:$LINENO: result: $ac_res" >&5
38835 echo "${ECHO_T}$ac_res" >&6; }
38836 if test `eval echo '${'$as_ac_var'}'` = yes; then
38837   cat >>confdefs.h <<_ACEOF
38838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38839 _ACEOF
38840
38841 fi
38842 done
38843
38844
38845 { echo "$as_me:$LINENO: checking for va_copy" >&5
38846 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38847 if test "${ba_cv_va_copy+set}" = set; then
38848   echo $ECHO_N "(cached) $ECHO_C" >&6
38849 else
38850
38851        cat >conftest.$ac_ext <<_ACEOF
38852 /* confdefs.h.  */
38853 _ACEOF
38854 cat confdefs.h >>conftest.$ac_ext
38855 cat >>conftest.$ac_ext <<_ACEOF
38856 /* end confdefs.h.  */
38857
38858               #include <stdarg.h>
38859               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38860               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38861
38862 int
38863 main ()
38864 {
38865
38866               call_use_va_copy(1,2,3)
38867
38868   ;
38869   return 0;
38870 }
38871 _ACEOF
38872 rm -f conftest.$ac_objext conftest$ac_exeext
38873 if { (ac_try="$ac_link"
38874 case "(($ac_try" in
38875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38876   *) ac_try_echo=$ac_try;;
38877 esac
38878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38879   (eval "$ac_link") 2>conftest.er1
38880   ac_status=$?
38881   grep -v '^ *+' conftest.er1 >conftest.err
38882   rm -f conftest.er1
38883   cat conftest.err >&5
38884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885   (exit $ac_status); } && {
38886          test -z "$ac_c_werror_flag" ||
38887          test ! -s conftest.err
38888        } && test -s conftest$ac_exeext &&
38889        $as_test_x conftest$ac_exeext; then
38890
38891               ba_cv_va_copy=yes,
38892
38893 else
38894   echo "$as_me: failed program was:" >&5
38895 sed 's/^/| /' conftest.$ac_ext >&5
38896
38897
38898               ba_cv_va_copy=no
38899
38900
38901 fi
38902
38903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38904       conftest$ac_exeext conftest.$ac_ext
38905
38906
38907 fi
38908 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38909 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38910 test $ba_cv_va_copy = yes &&
38911 cat >>confdefs.h <<\_ACEOF
38912 #define HAVE_VA_COPY 1
38913 _ACEOF
38914
38915
38916
38917
38918
38919
38920 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38921 do
38922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38926   echo $ECHO_N "(cached) $ECHO_C" >&6
38927 else
38928   cat >conftest.$ac_ext <<_ACEOF
38929 /* confdefs.h.  */
38930 _ACEOF
38931 cat confdefs.h >>conftest.$ac_ext
38932 cat >>conftest.$ac_ext <<_ACEOF
38933 /* end confdefs.h.  */
38934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38936 #define $ac_func innocuous_$ac_func
38937
38938 /* System header to define __stub macros and hopefully few prototypes,
38939     which can conflict with char $ac_func (); below.
38940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38941     <limits.h> exists even on freestanding compilers.  */
38942
38943 #ifdef __STDC__
38944 # include <limits.h>
38945 #else
38946 # include <assert.h>
38947 #endif
38948
38949 #undef $ac_func
38950
38951 /* Override any GCC internal prototype to avoid an error.
38952    Use char because int might match the return type of a GCC
38953    builtin and then its argument prototype would still apply.  */
38954 #ifdef __cplusplus
38955 extern "C"
38956 #endif
38957 char $ac_func ();
38958 /* The GNU C library defines this for functions which it implements
38959     to always fail with ENOSYS.  Some functions are actually named
38960     something starting with __ and the normal name is an alias.  */
38961 #if defined __stub_$ac_func || defined __stub___$ac_func
38962 choke me
38963 #endif
38964
38965 int
38966 main ()
38967 {
38968 return $ac_func ();
38969   ;
38970   return 0;
38971 }
38972 _ACEOF
38973 rm -f conftest.$ac_objext conftest$ac_exeext
38974 if { (ac_try="$ac_link"
38975 case "(($ac_try" in
38976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38977   *) ac_try_echo=$ac_try;;
38978 esac
38979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38980   (eval "$ac_link") 2>conftest.er1
38981   ac_status=$?
38982   grep -v '^ *+' conftest.er1 >conftest.err
38983   rm -f conftest.er1
38984   cat conftest.err >&5
38985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38986   (exit $ac_status); } && {
38987          test -z "$ac_c_werror_flag" ||
38988          test ! -s conftest.err
38989        } && test -s conftest$ac_exeext &&
38990        $as_test_x conftest$ac_exeext; then
38991   eval "$as_ac_var=yes"
38992 else
38993   echo "$as_me: failed program was:" >&5
38994 sed 's/^/| /' conftest.$ac_ext >&5
38995
38996         eval "$as_ac_var=no"
38997 fi
38998
38999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39000       conftest$ac_exeext conftest.$ac_ext
39001 fi
39002 ac_res=`eval echo '${'$as_ac_var'}'`
39003                { echo "$as_me:$LINENO: result: $ac_res" >&5
39004 echo "${ECHO_T}$ac_res" >&6; }
39005 if test `eval echo '${'$as_ac_var'}'` = yes; then
39006   cat >>confdefs.h <<_ACEOF
39007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39008 _ACEOF
39009
39010 fi
39011 done
39012
39013
39014 # If resolver functions are not in libc check for -lnsl or -lresolv.
39015 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39016 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39017 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39018   echo $ECHO_N "(cached) $ECHO_C" >&6
39019 else
39020   cat >conftest.$ac_ext <<_ACEOF
39021 /* confdefs.h.  */
39022 _ACEOF
39023 cat confdefs.h >>conftest.$ac_ext
39024 cat >>conftest.$ac_ext <<_ACEOF
39025 /* end confdefs.h.  */
39026 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39028 #define gethostbyname_r innocuous_gethostbyname_r
39029
39030 /* System header to define __stub macros and hopefully few prototypes,
39031     which can conflict with char gethostbyname_r (); below.
39032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39033     <limits.h> exists even on freestanding compilers.  */
39034
39035 #ifdef __STDC__
39036 # include <limits.h>
39037 #else
39038 # include <assert.h>
39039 #endif
39040
39041 #undef gethostbyname_r
39042
39043 /* Override any GCC internal prototype to avoid an error.
39044    Use char because int might match the return type of a GCC
39045    builtin and then its argument prototype would still apply.  */
39046 #ifdef __cplusplus
39047 extern "C"
39048 #endif
39049 char gethostbyname_r ();
39050 /* The GNU C library defines this for functions which it implements
39051     to always fail with ENOSYS.  Some functions are actually named
39052     something starting with __ and the normal name is an alias.  */
39053 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39054 choke me
39055 #endif
39056
39057 int
39058 main ()
39059 {
39060 return gethostbyname_r ();
39061   ;
39062   return 0;
39063 }
39064 _ACEOF
39065 rm -f conftest.$ac_objext conftest$ac_exeext
39066 if { (ac_try="$ac_link"
39067 case "(($ac_try" in
39068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39069   *) ac_try_echo=$ac_try;;
39070 esac
39071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39072   (eval "$ac_link") 2>conftest.er1
39073   ac_status=$?
39074   grep -v '^ *+' conftest.er1 >conftest.err
39075   rm -f conftest.er1
39076   cat conftest.err >&5
39077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078   (exit $ac_status); } && {
39079          test -z "$ac_c_werror_flag" ||
39080          test ! -s conftest.err
39081        } && test -s conftest$ac_exeext &&
39082        $as_test_x conftest$ac_exeext; then
39083   ac_cv_func_gethostbyname_r=yes
39084 else
39085   echo "$as_me: failed program was:" >&5
39086 sed 's/^/| /' conftest.$ac_ext >&5
39087
39088         ac_cv_func_gethostbyname_r=no
39089 fi
39090
39091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39092       conftest$ac_exeext conftest.$ac_ext
39093 fi
39094 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39095 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39096 if test $ac_cv_func_gethostbyname_r = yes; then
39097   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39098 echo "${ECHO_T}using libc's resolver" >&6; }
39099 else
39100
39101 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39102 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39103 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39104   echo $ECHO_N "(cached) $ECHO_C" >&6
39105 else
39106   ac_check_lib_save_LIBS=$LIBS
39107 LIBS="-lnsl  $LIBS"
39108 cat >conftest.$ac_ext <<_ACEOF
39109 /* confdefs.h.  */
39110 _ACEOF
39111 cat confdefs.h >>conftest.$ac_ext
39112 cat >>conftest.$ac_ext <<_ACEOF
39113 /* end confdefs.h.  */
39114
39115 /* Override any GCC internal prototype to avoid an error.
39116    Use char because int might match the return type of a GCC
39117    builtin and then its argument prototype would still apply.  */
39118 #ifdef __cplusplus
39119 extern "C"
39120 #endif
39121 char gethostbyname_r ();
39122 int
39123 main ()
39124 {
39125 return gethostbyname_r ();
39126   ;
39127   return 0;
39128 }
39129 _ACEOF
39130 rm -f conftest.$ac_objext conftest$ac_exeext
39131 if { (ac_try="$ac_link"
39132 case "(($ac_try" in
39133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39134   *) ac_try_echo=$ac_try;;
39135 esac
39136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39137   (eval "$ac_link") 2>conftest.er1
39138   ac_status=$?
39139   grep -v '^ *+' conftest.er1 >conftest.err
39140   rm -f conftest.er1
39141   cat conftest.err >&5
39142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39143   (exit $ac_status); } && {
39144          test -z "$ac_c_werror_flag" ||
39145          test ! -s conftest.err
39146        } && test -s conftest$ac_exeext &&
39147        $as_test_x conftest$ac_exeext; then
39148   ac_cv_lib_nsl_gethostbyname_r=yes
39149 else
39150   echo "$as_me: failed program was:" >&5
39151 sed 's/^/| /' conftest.$ac_ext >&5
39152
39153         ac_cv_lib_nsl_gethostbyname_r=no
39154 fi
39155
39156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39157       conftest$ac_exeext conftest.$ac_ext
39158 LIBS=$ac_check_lib_save_LIBS
39159 fi
39160 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39161 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39162 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39163   cat >>confdefs.h <<_ACEOF
39164 #define HAVE_LIBNSL 1
39165 _ACEOF
39166
39167   LIBS="-lnsl $LIBS"
39168
39169 fi
39170
39171
39172 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39173 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39174 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39175   echo $ECHO_N "(cached) $ECHO_C" >&6
39176 else
39177   ac_check_lib_save_LIBS=$LIBS
39178 LIBS="-lresolv  $LIBS"
39179 cat >conftest.$ac_ext <<_ACEOF
39180 /* confdefs.h.  */
39181 _ACEOF
39182 cat confdefs.h >>conftest.$ac_ext
39183 cat >>conftest.$ac_ext <<_ACEOF
39184 /* end confdefs.h.  */
39185
39186 /* Override any GCC internal prototype to avoid an error.
39187    Use char because int might match the return type of a GCC
39188    builtin and then its argument prototype would still apply.  */
39189 #ifdef __cplusplus
39190 extern "C"
39191 #endif
39192 char gethostbyname_r ();
39193 int
39194 main ()
39195 {
39196 return gethostbyname_r ();
39197   ;
39198   return 0;
39199 }
39200 _ACEOF
39201 rm -f conftest.$ac_objext conftest$ac_exeext
39202 if { (ac_try="$ac_link"
39203 case "(($ac_try" in
39204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39205   *) ac_try_echo=$ac_try;;
39206 esac
39207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39208   (eval "$ac_link") 2>conftest.er1
39209   ac_status=$?
39210   grep -v '^ *+' conftest.er1 >conftest.err
39211   rm -f conftest.er1
39212   cat conftest.err >&5
39213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214   (exit $ac_status); } && {
39215          test -z "$ac_c_werror_flag" ||
39216          test ! -s conftest.err
39217        } && test -s conftest$ac_exeext &&
39218        $as_test_x conftest$ac_exeext; then
39219   ac_cv_lib_resolv_gethostbyname_r=yes
39220 else
39221   echo "$as_me: failed program was:" >&5
39222 sed 's/^/| /' conftest.$ac_ext >&5
39223
39224         ac_cv_lib_resolv_gethostbyname_r=no
39225 fi
39226
39227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39228       conftest$ac_exeext conftest.$ac_ext
39229 LIBS=$ac_check_lib_save_LIBS
39230 fi
39231 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39232 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39233 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39234   cat >>confdefs.h <<_ACEOF
39235 #define HAVE_LIBRESOLV 1
39236 _ACEOF
39237
39238   LIBS="-lresolv $LIBS"
39239
39240 fi
39241
39242 fi
39243
39244
39245
39246 for ac_func in inet_pton
39247 do
39248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39252   echo $ECHO_N "(cached) $ECHO_C" >&6
39253 else
39254   cat >conftest.$ac_ext <<_ACEOF
39255 /* confdefs.h.  */
39256 _ACEOF
39257 cat confdefs.h >>conftest.$ac_ext
39258 cat >>conftest.$ac_ext <<_ACEOF
39259 /* end confdefs.h.  */
39260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39262 #define $ac_func innocuous_$ac_func
39263
39264 /* System header to define __stub macros and hopefully few prototypes,
39265     which can conflict with char $ac_func (); below.
39266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39267     <limits.h> exists even on freestanding compilers.  */
39268
39269 #ifdef __STDC__
39270 # include <limits.h>
39271 #else
39272 # include <assert.h>
39273 #endif
39274
39275 #undef $ac_func
39276
39277 /* Override any GCC internal prototype to avoid an error.
39278    Use char because int might match the return type of a GCC
39279    builtin and then its argument prototype would still apply.  */
39280 #ifdef __cplusplus
39281 extern "C"
39282 #endif
39283 char $ac_func ();
39284 /* The GNU C library defines this for functions which it implements
39285     to always fail with ENOSYS.  Some functions are actually named
39286     something starting with __ and the normal name is an alias.  */
39287 #if defined __stub_$ac_func || defined __stub___$ac_func
39288 choke me
39289 #endif
39290
39291 int
39292 main ()
39293 {
39294 return $ac_func ();
39295   ;
39296   return 0;
39297 }
39298 _ACEOF
39299 rm -f conftest.$ac_objext conftest$ac_exeext
39300 if { (ac_try="$ac_link"
39301 case "(($ac_try" in
39302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39303   *) ac_try_echo=$ac_try;;
39304 esac
39305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39306   (eval "$ac_link") 2>conftest.er1
39307   ac_status=$?
39308   grep -v '^ *+' conftest.er1 >conftest.err
39309   rm -f conftest.er1
39310   cat conftest.err >&5
39311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312   (exit $ac_status); } && {
39313          test -z "$ac_c_werror_flag" ||
39314          test ! -s conftest.err
39315        } && test -s conftest$ac_exeext &&
39316        $as_test_x conftest$ac_exeext; then
39317   eval "$as_ac_var=yes"
39318 else
39319   echo "$as_me: failed program was:" >&5
39320 sed 's/^/| /' conftest.$ac_ext >&5
39321
39322         eval "$as_ac_var=no"
39323 fi
39324
39325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39326       conftest$ac_exeext conftest.$ac_ext
39327 fi
39328 ac_res=`eval echo '${'$as_ac_var'}'`
39329                { echo "$as_me:$LINENO: result: $ac_res" >&5
39330 echo "${ECHO_T}$ac_res" >&6; }
39331 if test `eval echo '${'$as_ac_var'}'` = yes; then
39332   cat >>confdefs.h <<_ACEOF
39333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39334 _ACEOF
39335  cat >>confdefs.h <<\_ACEOF
39336 #define HAVE_INET_PTON 1
39337 _ACEOF
39338
39339 fi
39340 done
39341
39342
39343 for ac_func in inet_ntop
39344 do
39345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39349   echo $ECHO_N "(cached) $ECHO_C" >&6
39350 else
39351   cat >conftest.$ac_ext <<_ACEOF
39352 /* confdefs.h.  */
39353 _ACEOF
39354 cat confdefs.h >>conftest.$ac_ext
39355 cat >>conftest.$ac_ext <<_ACEOF
39356 /* end confdefs.h.  */
39357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39359 #define $ac_func innocuous_$ac_func
39360
39361 /* System header to define __stub macros and hopefully few prototypes,
39362     which can conflict with char $ac_func (); below.
39363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39364     <limits.h> exists even on freestanding compilers.  */
39365
39366 #ifdef __STDC__
39367 # include <limits.h>
39368 #else
39369 # include <assert.h>
39370 #endif
39371
39372 #undef $ac_func
39373
39374 /* Override any GCC internal prototype to avoid an error.
39375    Use char because int might match the return type of a GCC
39376    builtin and then its argument prototype would still apply.  */
39377 #ifdef __cplusplus
39378 extern "C"
39379 #endif
39380 char $ac_func ();
39381 /* The GNU C library defines this for functions which it implements
39382     to always fail with ENOSYS.  Some functions are actually named
39383     something starting with __ and the normal name is an alias.  */
39384 #if defined __stub_$ac_func || defined __stub___$ac_func
39385 choke me
39386 #endif
39387
39388 int
39389 main ()
39390 {
39391 return $ac_func ();
39392   ;
39393   return 0;
39394 }
39395 _ACEOF
39396 rm -f conftest.$ac_objext conftest$ac_exeext
39397 if { (ac_try="$ac_link"
39398 case "(($ac_try" in
39399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39400   *) ac_try_echo=$ac_try;;
39401 esac
39402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39403   (eval "$ac_link") 2>conftest.er1
39404   ac_status=$?
39405   grep -v '^ *+' conftest.er1 >conftest.err
39406   rm -f conftest.er1
39407   cat conftest.err >&5
39408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409   (exit $ac_status); } && {
39410          test -z "$ac_c_werror_flag" ||
39411          test ! -s conftest.err
39412        } && test -s conftest$ac_exeext &&
39413        $as_test_x conftest$ac_exeext; then
39414   eval "$as_ac_var=yes"
39415 else
39416   echo "$as_me: failed program was:" >&5
39417 sed 's/^/| /' conftest.$ac_ext >&5
39418
39419         eval "$as_ac_var=no"
39420 fi
39421
39422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39423       conftest$ac_exeext conftest.$ac_ext
39424 fi
39425 ac_res=`eval echo '${'$as_ac_var'}'`
39426                { echo "$as_me:$LINENO: result: $ac_res" >&5
39427 echo "${ECHO_T}$ac_res" >&6; }
39428 if test `eval echo '${'$as_ac_var'}'` = yes; then
39429   cat >>confdefs.h <<_ACEOF
39430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39431 _ACEOF
39432  cat >>confdefs.h <<\_ACEOF
39433 #define HAVE_INET_NTOP 1
39434 _ACEOF
39435
39436 fi
39437 done
39438
39439
39440 for ac_func in gethostbyname2
39441 do
39442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39446   echo $ECHO_N "(cached) $ECHO_C" >&6
39447 else
39448   cat >conftest.$ac_ext <<_ACEOF
39449 /* confdefs.h.  */
39450 _ACEOF
39451 cat confdefs.h >>conftest.$ac_ext
39452 cat >>conftest.$ac_ext <<_ACEOF
39453 /* end confdefs.h.  */
39454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39456 #define $ac_func innocuous_$ac_func
39457
39458 /* System header to define __stub macros and hopefully few prototypes,
39459     which can conflict with char $ac_func (); below.
39460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39461     <limits.h> exists even on freestanding compilers.  */
39462
39463 #ifdef __STDC__
39464 # include <limits.h>
39465 #else
39466 # include <assert.h>
39467 #endif
39468
39469 #undef $ac_func
39470
39471 /* Override any GCC internal prototype to avoid an error.
39472    Use char because int might match the return type of a GCC
39473    builtin and then its argument prototype would still apply.  */
39474 #ifdef __cplusplus
39475 extern "C"
39476 #endif
39477 char $ac_func ();
39478 /* The GNU C library defines this for functions which it implements
39479     to always fail with ENOSYS.  Some functions are actually named
39480     something starting with __ and the normal name is an alias.  */
39481 #if defined __stub_$ac_func || defined __stub___$ac_func
39482 choke me
39483 #endif
39484
39485 int
39486 main ()
39487 {
39488 return $ac_func ();
39489   ;
39490   return 0;
39491 }
39492 _ACEOF
39493 rm -f conftest.$ac_objext conftest$ac_exeext
39494 if { (ac_try="$ac_link"
39495 case "(($ac_try" in
39496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39497   *) ac_try_echo=$ac_try;;
39498 esac
39499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39500   (eval "$ac_link") 2>conftest.er1
39501   ac_status=$?
39502   grep -v '^ *+' conftest.er1 >conftest.err
39503   rm -f conftest.er1
39504   cat conftest.err >&5
39505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506   (exit $ac_status); } && {
39507          test -z "$ac_c_werror_flag" ||
39508          test ! -s conftest.err
39509        } && test -s conftest$ac_exeext &&
39510        $as_test_x conftest$ac_exeext; then
39511   eval "$as_ac_var=yes"
39512 else
39513   echo "$as_me: failed program was:" >&5
39514 sed 's/^/| /' conftest.$ac_ext >&5
39515
39516         eval "$as_ac_var=no"
39517 fi
39518
39519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39520       conftest$ac_exeext conftest.$ac_ext
39521 fi
39522 ac_res=`eval echo '${'$as_ac_var'}'`
39523                { echo "$as_me:$LINENO: result: $ac_res" >&5
39524 echo "${ECHO_T}$ac_res" >&6; }
39525 if test `eval echo '${'$as_ac_var'}'` = yes; then
39526   cat >>confdefs.h <<_ACEOF
39527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39528 _ACEOF
39529  cat >>confdefs.h <<\_ACEOF
39530 #define HAVE_GETHOSTBYNAME2 1
39531 _ACEOF
39532
39533 fi
39534 done
39535
39536
39537 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39538 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39539 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39540   echo $ECHO_N "(cached) $ECHO_C" >&6
39541 else
39542
39543        cat >conftest.$ac_ext <<_ACEOF
39544 /* confdefs.h.  */
39545 _ACEOF
39546 cat confdefs.h >>conftest.$ac_ext
39547 cat >>conftest.$ac_ext <<_ACEOF
39548 /* end confdefs.h.  */
39549
39550               #include <sys/socket.h>
39551
39552 int
39553 main ()
39554 {
39555
39556               struct sockaddr s; s.sa_len;
39557
39558   ;
39559   return 0;
39560 }
39561 _ACEOF
39562 rm -f conftest.$ac_objext
39563 if { (ac_try="$ac_compile"
39564 case "(($ac_try" in
39565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39566   *) ac_try_echo=$ac_try;;
39567 esac
39568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39569   (eval "$ac_compile") 2>conftest.er1
39570   ac_status=$?
39571   grep -v '^ *+' conftest.er1 >conftest.err
39572   rm -f conftest.er1
39573   cat conftest.err >&5
39574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39575   (exit $ac_status); } && {
39576          test -z "$ac_c_werror_flag" ||
39577          test ! -s conftest.err
39578        } && test -s conftest.$ac_objext; then
39579
39580              ac_cv_struct_sockaddr_sa_len=yes
39581
39582 else
39583   echo "$as_me: failed program was:" >&5
39584 sed 's/^/| /' conftest.$ac_ext >&5
39585
39586         ac_cv_struct_sockaddr_sa_len=no
39587
39588
39589 fi
39590
39591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39592
39593
39594 fi
39595 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39596 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39597
39598 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39599
39600 cat >>confdefs.h <<\_ACEOF
39601 #define HAVE_SA_LEN 1
39602 _ACEOF
39603
39604 fi
39605
39606
39607 for ac_func in strftime
39608 do
39609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39613   echo $ECHO_N "(cached) $ECHO_C" >&6
39614 else
39615   cat >conftest.$ac_ext <<_ACEOF
39616 /* confdefs.h.  */
39617 _ACEOF
39618 cat confdefs.h >>conftest.$ac_ext
39619 cat >>conftest.$ac_ext <<_ACEOF
39620 /* end confdefs.h.  */
39621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39623 #define $ac_func innocuous_$ac_func
39624
39625 /* System header to define __stub macros and hopefully few prototypes,
39626     which can conflict with char $ac_func (); below.
39627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39628     <limits.h> exists even on freestanding compilers.  */
39629
39630 #ifdef __STDC__
39631 # include <limits.h>
39632 #else
39633 # include <assert.h>
39634 #endif
39635
39636 #undef $ac_func
39637
39638 /* Override any GCC internal prototype to avoid an error.
39639    Use char because int might match the return type of a GCC
39640    builtin and then its argument prototype would still apply.  */
39641 #ifdef __cplusplus
39642 extern "C"
39643 #endif
39644 char $ac_func ();
39645 /* The GNU C library defines this for functions which it implements
39646     to always fail with ENOSYS.  Some functions are actually named
39647     something starting with __ and the normal name is an alias.  */
39648 #if defined __stub_$ac_func || defined __stub___$ac_func
39649 choke me
39650 #endif
39651
39652 int
39653 main ()
39654 {
39655 return $ac_func ();
39656   ;
39657   return 0;
39658 }
39659 _ACEOF
39660 rm -f conftest.$ac_objext conftest$ac_exeext
39661 if { (ac_try="$ac_link"
39662 case "(($ac_try" in
39663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39664   *) ac_try_echo=$ac_try;;
39665 esac
39666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39667   (eval "$ac_link") 2>conftest.er1
39668   ac_status=$?
39669   grep -v '^ *+' conftest.er1 >conftest.err
39670   rm -f conftest.er1
39671   cat conftest.err >&5
39672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673   (exit $ac_status); } && {
39674          test -z "$ac_c_werror_flag" ||
39675          test ! -s conftest.err
39676        } && test -s conftest$ac_exeext &&
39677        $as_test_x conftest$ac_exeext; then
39678   eval "$as_ac_var=yes"
39679 else
39680   echo "$as_me: failed program was:" >&5
39681 sed 's/^/| /' conftest.$ac_ext >&5
39682
39683         eval "$as_ac_var=no"
39684 fi
39685
39686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39687       conftest$ac_exeext conftest.$ac_ext
39688 fi
39689 ac_res=`eval echo '${'$as_ac_var'}'`
39690                { echo "$as_me:$LINENO: result: $ac_res" >&5
39691 echo "${ECHO_T}$ac_res" >&6; }
39692 if test `eval echo '${'$as_ac_var'}'` = yes; then
39693   cat >>confdefs.h <<_ACEOF
39694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39695 _ACEOF
39696
39697 else
39698   # strftime is in -lintl on SCO UNIX.
39699 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39700 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39701 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39702   echo $ECHO_N "(cached) $ECHO_C" >&6
39703 else
39704   ac_check_lib_save_LIBS=$LIBS
39705 LIBS="-lintl  $LIBS"
39706 cat >conftest.$ac_ext <<_ACEOF
39707 /* confdefs.h.  */
39708 _ACEOF
39709 cat confdefs.h >>conftest.$ac_ext
39710 cat >>conftest.$ac_ext <<_ACEOF
39711 /* end confdefs.h.  */
39712
39713 /* Override any GCC internal prototype to avoid an error.
39714    Use char because int might match the return type of a GCC
39715    builtin and then its argument prototype would still apply.  */
39716 #ifdef __cplusplus
39717 extern "C"
39718 #endif
39719 char strftime ();
39720 int
39721 main ()
39722 {
39723 return strftime ();
39724   ;
39725   return 0;
39726 }
39727 _ACEOF
39728 rm -f conftest.$ac_objext conftest$ac_exeext
39729 if { (ac_try="$ac_link"
39730 case "(($ac_try" in
39731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39732   *) ac_try_echo=$ac_try;;
39733 esac
39734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39735   (eval "$ac_link") 2>conftest.er1
39736   ac_status=$?
39737   grep -v '^ *+' conftest.er1 >conftest.err
39738   rm -f conftest.er1
39739   cat conftest.err >&5
39740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741   (exit $ac_status); } && {
39742          test -z "$ac_c_werror_flag" ||
39743          test ! -s conftest.err
39744        } && test -s conftest$ac_exeext &&
39745        $as_test_x conftest$ac_exeext; then
39746   ac_cv_lib_intl_strftime=yes
39747 else
39748   echo "$as_me: failed program was:" >&5
39749 sed 's/^/| /' conftest.$ac_ext >&5
39750
39751         ac_cv_lib_intl_strftime=no
39752 fi
39753
39754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39755       conftest$ac_exeext conftest.$ac_ext
39756 LIBS=$ac_check_lib_save_LIBS
39757 fi
39758 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39759 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39760 if test $ac_cv_lib_intl_strftime = yes; then
39761   cat >>confdefs.h <<\_ACEOF
39762 #define HAVE_STRFTIME 1
39763 _ACEOF
39764
39765 LIBS="-lintl $LIBS"
39766 fi
39767
39768 fi
39769 done
39770
39771
39772 for ac_func in vprintf
39773 do
39774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39778   echo $ECHO_N "(cached) $ECHO_C" >&6
39779 else
39780   cat >conftest.$ac_ext <<_ACEOF
39781 /* confdefs.h.  */
39782 _ACEOF
39783 cat confdefs.h >>conftest.$ac_ext
39784 cat >>conftest.$ac_ext <<_ACEOF
39785 /* end confdefs.h.  */
39786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39788 #define $ac_func innocuous_$ac_func
39789
39790 /* System header to define __stub macros and hopefully few prototypes,
39791     which can conflict with char $ac_func (); below.
39792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39793     <limits.h> exists even on freestanding compilers.  */
39794
39795 #ifdef __STDC__
39796 # include <limits.h>
39797 #else
39798 # include <assert.h>
39799 #endif
39800
39801 #undef $ac_func
39802
39803 /* Override any GCC internal prototype to avoid an error.
39804    Use char because int might match the return type of a GCC
39805    builtin and then its argument prototype would still apply.  */
39806 #ifdef __cplusplus
39807 extern "C"
39808 #endif
39809 char $ac_func ();
39810 /* The GNU C library defines this for functions which it implements
39811     to always fail with ENOSYS.  Some functions are actually named
39812     something starting with __ and the normal name is an alias.  */
39813 #if defined __stub_$ac_func || defined __stub___$ac_func
39814 choke me
39815 #endif
39816
39817 int
39818 main ()
39819 {
39820 return $ac_func ();
39821   ;
39822   return 0;
39823 }
39824 _ACEOF
39825 rm -f conftest.$ac_objext conftest$ac_exeext
39826 if { (ac_try="$ac_link"
39827 case "(($ac_try" in
39828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39829   *) ac_try_echo=$ac_try;;
39830 esac
39831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39832   (eval "$ac_link") 2>conftest.er1
39833   ac_status=$?
39834   grep -v '^ *+' conftest.er1 >conftest.err
39835   rm -f conftest.er1
39836   cat conftest.err >&5
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); } && {
39839          test -z "$ac_c_werror_flag" ||
39840          test ! -s conftest.err
39841        } && test -s conftest$ac_exeext &&
39842        $as_test_x conftest$ac_exeext; then
39843   eval "$as_ac_var=yes"
39844 else
39845   echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39847
39848         eval "$as_ac_var=no"
39849 fi
39850
39851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39852       conftest$ac_exeext conftest.$ac_ext
39853 fi
39854 ac_res=`eval echo '${'$as_ac_var'}'`
39855                { echo "$as_me:$LINENO: result: $ac_res" >&5
39856 echo "${ECHO_T}$ac_res" >&6; }
39857 if test `eval echo '${'$as_ac_var'}'` = yes; then
39858   cat >>confdefs.h <<_ACEOF
39859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39860 _ACEOF
39861
39862 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39863 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39864 if test "${ac_cv_func__doprnt+set}" = set; then
39865   echo $ECHO_N "(cached) $ECHO_C" >&6
39866 else
39867   cat >conftest.$ac_ext <<_ACEOF
39868 /* confdefs.h.  */
39869 _ACEOF
39870 cat confdefs.h >>conftest.$ac_ext
39871 cat >>conftest.$ac_ext <<_ACEOF
39872 /* end confdefs.h.  */
39873 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39875 #define _doprnt innocuous__doprnt
39876
39877 /* System header to define __stub macros and hopefully few prototypes,
39878     which can conflict with char _doprnt (); below.
39879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39880     <limits.h> exists even on freestanding compilers.  */
39881
39882 #ifdef __STDC__
39883 # include <limits.h>
39884 #else
39885 # include <assert.h>
39886 #endif
39887
39888 #undef _doprnt
39889
39890 /* Override any GCC internal prototype to avoid an error.
39891    Use char because int might match the return type of a GCC
39892    builtin and then its argument prototype would still apply.  */
39893 #ifdef __cplusplus
39894 extern "C"
39895 #endif
39896 char _doprnt ();
39897 /* The GNU C library defines this for functions which it implements
39898     to always fail with ENOSYS.  Some functions are actually named
39899     something starting with __ and the normal name is an alias.  */
39900 #if defined __stub__doprnt || defined __stub____doprnt
39901 choke me
39902 #endif
39903
39904 int
39905 main ()
39906 {
39907 return _doprnt ();
39908   ;
39909   return 0;
39910 }
39911 _ACEOF
39912 rm -f conftest.$ac_objext conftest$ac_exeext
39913 if { (ac_try="$ac_link"
39914 case "(($ac_try" in
39915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39916   *) ac_try_echo=$ac_try;;
39917 esac
39918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39919   (eval "$ac_link") 2>conftest.er1
39920   ac_status=$?
39921   grep -v '^ *+' conftest.er1 >conftest.err
39922   rm -f conftest.er1
39923   cat conftest.err >&5
39924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925   (exit $ac_status); } && {
39926          test -z "$ac_c_werror_flag" ||
39927          test ! -s conftest.err
39928        } && test -s conftest$ac_exeext &&
39929        $as_test_x conftest$ac_exeext; then
39930   ac_cv_func__doprnt=yes
39931 else
39932   echo "$as_me: failed program was:" >&5
39933 sed 's/^/| /' conftest.$ac_ext >&5
39934
39935         ac_cv_func__doprnt=no
39936 fi
39937
39938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39939       conftest$ac_exeext conftest.$ac_ext
39940 fi
39941 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39942 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39943 if test $ac_cv_func__doprnt = yes; then
39944
39945 cat >>confdefs.h <<\_ACEOF
39946 #define HAVE_DOPRNT 1
39947 _ACEOF
39948
39949 fi
39950
39951 fi
39952 done
39953
39954
39955 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39956 # for constant arguments.  Useless!
39957 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39958 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39959 if test "${ac_cv_working_alloca_h+set}" = set; then
39960   echo $ECHO_N "(cached) $ECHO_C" >&6
39961 else
39962   cat >conftest.$ac_ext <<_ACEOF
39963 /* confdefs.h.  */
39964 _ACEOF
39965 cat confdefs.h >>conftest.$ac_ext
39966 cat >>conftest.$ac_ext <<_ACEOF
39967 /* end confdefs.h.  */
39968 #include <alloca.h>
39969 int
39970 main ()
39971 {
39972 char *p = (char *) alloca (2 * sizeof (int));
39973                           if (p) return 0;
39974   ;
39975   return 0;
39976 }
39977 _ACEOF
39978 rm -f conftest.$ac_objext conftest$ac_exeext
39979 if { (ac_try="$ac_link"
39980 case "(($ac_try" in
39981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39982   *) ac_try_echo=$ac_try;;
39983 esac
39984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39985   (eval "$ac_link") 2>conftest.er1
39986   ac_status=$?
39987   grep -v '^ *+' conftest.er1 >conftest.err
39988   rm -f conftest.er1
39989   cat conftest.err >&5
39990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991   (exit $ac_status); } && {
39992          test -z "$ac_c_werror_flag" ||
39993          test ! -s conftest.err
39994        } && test -s conftest$ac_exeext &&
39995        $as_test_x conftest$ac_exeext; then
39996   ac_cv_working_alloca_h=yes
39997 else
39998   echo "$as_me: failed program was:" >&5
39999 sed 's/^/| /' conftest.$ac_ext >&5
40000
40001         ac_cv_working_alloca_h=no
40002 fi
40003
40004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40005       conftest$ac_exeext conftest.$ac_ext
40006 fi
40007 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40008 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40009 if test $ac_cv_working_alloca_h = yes; then
40010
40011 cat >>confdefs.h <<\_ACEOF
40012 #define HAVE_ALLOCA_H 1
40013 _ACEOF
40014
40015 fi
40016
40017 { echo "$as_me:$LINENO: checking for alloca" >&5
40018 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40019 if test "${ac_cv_func_alloca_works+set}" = set; then
40020   echo $ECHO_N "(cached) $ECHO_C" >&6
40021 else
40022   cat >conftest.$ac_ext <<_ACEOF
40023 /* confdefs.h.  */
40024 _ACEOF
40025 cat confdefs.h >>conftest.$ac_ext
40026 cat >>conftest.$ac_ext <<_ACEOF
40027 /* end confdefs.h.  */
40028 #ifdef __GNUC__
40029 # define alloca __builtin_alloca
40030 #else
40031 # ifdef _MSC_VER
40032 #  include <malloc.h>
40033 #  define alloca _alloca
40034 # else
40035 #  ifdef HAVE_ALLOCA_H
40036 #   include <alloca.h>
40037 #  else
40038 #   ifdef _AIX
40039  #pragma alloca
40040 #   else
40041 #    ifndef alloca /* predefined by HP cc +Olibcalls */
40042 char *alloca ();
40043 #    endif
40044 #   endif
40045 #  endif
40046 # endif
40047 #endif
40048
40049 int
40050 main ()
40051 {
40052 char *p = (char *) alloca (1);
40053                                     if (p) return 0;
40054   ;
40055   return 0;
40056 }
40057 _ACEOF
40058 rm -f conftest.$ac_objext conftest$ac_exeext
40059 if { (ac_try="$ac_link"
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_link") 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_exeext &&
40075        $as_test_x conftest$ac_exeext; then
40076   ac_cv_func_alloca_works=yes
40077 else
40078   echo "$as_me: failed program was:" >&5
40079 sed 's/^/| /' conftest.$ac_ext >&5
40080
40081         ac_cv_func_alloca_works=no
40082 fi
40083
40084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40085       conftest$ac_exeext conftest.$ac_ext
40086 fi
40087 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40088 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40089
40090 if test $ac_cv_func_alloca_works = yes; then
40091
40092 cat >>confdefs.h <<\_ACEOF
40093 #define HAVE_ALLOCA 1
40094 _ACEOF
40095
40096 else
40097   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40098 # that cause trouble.  Some versions do not even contain alloca or
40099 # contain a buggy version.  If you still want to use their alloca,
40100 # use ar to extract alloca.o from them instead of compiling alloca.c.
40101
40102 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40103
40104 cat >>confdefs.h <<\_ACEOF
40105 #define C_ALLOCA 1
40106 _ACEOF
40107
40108
40109 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40110 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40111 if test "${ac_cv_os_cray+set}" = set; then
40112   echo $ECHO_N "(cached) $ECHO_C" >&6
40113 else
40114   cat >conftest.$ac_ext <<_ACEOF
40115 /* confdefs.h.  */
40116 _ACEOF
40117 cat confdefs.h >>conftest.$ac_ext
40118 cat >>conftest.$ac_ext <<_ACEOF
40119 /* end confdefs.h.  */
40120 #if defined CRAY && ! defined CRAY2
40121 webecray
40122 #else
40123 wenotbecray
40124 #endif
40125
40126 _ACEOF
40127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40128   $EGREP "webecray" >/dev/null 2>&1; then
40129   ac_cv_os_cray=yes
40130 else
40131   ac_cv_os_cray=no
40132 fi
40133 rm -f conftest*
40134
40135 fi
40136 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40137 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40138 if test $ac_cv_os_cray = yes; then
40139   for ac_func in _getb67 GETB67 getb67; do
40140     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40144   echo $ECHO_N "(cached) $ECHO_C" >&6
40145 else
40146   cat >conftest.$ac_ext <<_ACEOF
40147 /* confdefs.h.  */
40148 _ACEOF
40149 cat confdefs.h >>conftest.$ac_ext
40150 cat >>conftest.$ac_ext <<_ACEOF
40151 /* end confdefs.h.  */
40152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40154 #define $ac_func innocuous_$ac_func
40155
40156 /* System header to define __stub macros and hopefully few prototypes,
40157     which can conflict with char $ac_func (); below.
40158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40159     <limits.h> exists even on freestanding compilers.  */
40160
40161 #ifdef __STDC__
40162 # include <limits.h>
40163 #else
40164 # include <assert.h>
40165 #endif
40166
40167 #undef $ac_func
40168
40169 /* Override any GCC internal prototype to avoid an error.
40170    Use char because int might match the return type of a GCC
40171    builtin and then its argument prototype would still apply.  */
40172 #ifdef __cplusplus
40173 extern "C"
40174 #endif
40175 char $ac_func ();
40176 /* The GNU C library defines this for functions which it implements
40177     to always fail with ENOSYS.  Some functions are actually named
40178     something starting with __ and the normal name is an alias.  */
40179 #if defined __stub_$ac_func || defined __stub___$ac_func
40180 choke me
40181 #endif
40182
40183 int
40184 main ()
40185 {
40186 return $ac_func ();
40187   ;
40188   return 0;
40189 }
40190 _ACEOF
40191 rm -f conftest.$ac_objext conftest$ac_exeext
40192 if { (ac_try="$ac_link"
40193 case "(($ac_try" in
40194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40195   *) ac_try_echo=$ac_try;;
40196 esac
40197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40198   (eval "$ac_link") 2>conftest.er1
40199   ac_status=$?
40200   grep -v '^ *+' conftest.er1 >conftest.err
40201   rm -f conftest.er1
40202   cat conftest.err >&5
40203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204   (exit $ac_status); } && {
40205          test -z "$ac_c_werror_flag" ||
40206          test ! -s conftest.err
40207        } && test -s conftest$ac_exeext &&
40208        $as_test_x conftest$ac_exeext; then
40209   eval "$as_ac_var=yes"
40210 else
40211   echo "$as_me: failed program was:" >&5
40212 sed 's/^/| /' conftest.$ac_ext >&5
40213
40214         eval "$as_ac_var=no"
40215 fi
40216
40217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40218       conftest$ac_exeext conftest.$ac_ext
40219 fi
40220 ac_res=`eval echo '${'$as_ac_var'}'`
40221                { echo "$as_me:$LINENO: result: $ac_res" >&5
40222 echo "${ECHO_T}$ac_res" >&6; }
40223 if test `eval echo '${'$as_ac_var'}'` = yes; then
40224
40225 cat >>confdefs.h <<_ACEOF
40226 #define CRAY_STACKSEG_END $ac_func
40227 _ACEOF
40228
40229     break
40230 fi
40231
40232   done
40233 fi
40234
40235 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40236 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40237 if test "${ac_cv_c_stack_direction+set}" = set; then
40238   echo $ECHO_N "(cached) $ECHO_C" >&6
40239 else
40240   if test "$cross_compiling" = yes; then
40241   ac_cv_c_stack_direction=0
40242 else
40243   cat >conftest.$ac_ext <<_ACEOF
40244 /* confdefs.h.  */
40245 _ACEOF
40246 cat confdefs.h >>conftest.$ac_ext
40247 cat >>conftest.$ac_ext <<_ACEOF
40248 /* end confdefs.h.  */
40249 $ac_includes_default
40250 int
40251 find_stack_direction ()
40252 {
40253   static char *addr = 0;
40254   auto char dummy;
40255   if (addr == 0)
40256     {
40257       addr = &dummy;
40258       return find_stack_direction ();
40259     }
40260   else
40261     return (&dummy > addr) ? 1 : -1;
40262 }
40263
40264 int
40265 main ()
40266 {
40267   return find_stack_direction () < 0;
40268 }
40269 _ACEOF
40270 rm -f conftest$ac_exeext
40271 if { (ac_try="$ac_link"
40272 case "(($ac_try" in
40273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40274   *) ac_try_echo=$ac_try;;
40275 esac
40276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40277   (eval "$ac_link") 2>&5
40278   ac_status=$?
40279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40281   { (case "(($ac_try" in
40282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40283   *) ac_try_echo=$ac_try;;
40284 esac
40285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40286   (eval "$ac_try") 2>&5
40287   ac_status=$?
40288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289   (exit $ac_status); }; }; then
40290   ac_cv_c_stack_direction=1
40291 else
40292   echo "$as_me: program exited with status $ac_status" >&5
40293 echo "$as_me: failed program was:" >&5
40294 sed 's/^/| /' conftest.$ac_ext >&5
40295
40296 ( exit $ac_status )
40297 ac_cv_c_stack_direction=-1
40298 fi
40299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40300 fi
40301
40302
40303 fi
40304 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40305 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40306
40307 cat >>confdefs.h <<_ACEOF
40308 #define STACK_DIRECTION $ac_cv_c_stack_direction
40309 _ACEOF
40310
40311
40312 fi
40313
40314 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40315 # -lseq on Dynix/PTX, -lgen on Unixware.
40316 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40317 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40318 if test "${ac_cv_search_getmntent+set}" = set; then
40319   echo $ECHO_N "(cached) $ECHO_C" >&6
40320 else
40321   ac_func_search_save_LIBS=$LIBS
40322 cat >conftest.$ac_ext <<_ACEOF
40323 /* confdefs.h.  */
40324 _ACEOF
40325 cat confdefs.h >>conftest.$ac_ext
40326 cat >>conftest.$ac_ext <<_ACEOF
40327 /* end confdefs.h.  */
40328
40329 /* Override any GCC internal prototype to avoid an error.
40330    Use char because int might match the return type of a GCC
40331    builtin and then its argument prototype would still apply.  */
40332 #ifdef __cplusplus
40333 extern "C"
40334 #endif
40335 char getmntent ();
40336 int
40337 main ()
40338 {
40339 return getmntent ();
40340   ;
40341   return 0;
40342 }
40343 _ACEOF
40344 for ac_lib in '' sun seq gen; do
40345   if test -z "$ac_lib"; then
40346     ac_res="none required"
40347   else
40348     ac_res=-l$ac_lib
40349     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40350   fi
40351   rm -f conftest.$ac_objext conftest$ac_exeext
40352 if { (ac_try="$ac_link"
40353 case "(($ac_try" in
40354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40355   *) ac_try_echo=$ac_try;;
40356 esac
40357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40358   (eval "$ac_link") 2>conftest.er1
40359   ac_status=$?
40360   grep -v '^ *+' conftest.er1 >conftest.err
40361   rm -f conftest.er1
40362   cat conftest.err >&5
40363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364   (exit $ac_status); } && {
40365          test -z "$ac_c_werror_flag" ||
40366          test ! -s conftest.err
40367        } && test -s conftest$ac_exeext &&
40368        $as_test_x conftest$ac_exeext; then
40369   ac_cv_search_getmntent=$ac_res
40370 else
40371   echo "$as_me: failed program was:" >&5
40372 sed 's/^/| /' conftest.$ac_ext >&5
40373
40374
40375 fi
40376
40377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40378       conftest$ac_exeext
40379   if test "${ac_cv_search_getmntent+set}" = set; then
40380   break
40381 fi
40382 done
40383 if test "${ac_cv_search_getmntent+set}" = set; then
40384   :
40385 else
40386   ac_cv_search_getmntent=no
40387 fi
40388 rm conftest.$ac_ext
40389 LIBS=$ac_func_search_save_LIBS
40390 fi
40391 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40392 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40393 ac_res=$ac_cv_search_getmntent
40394 if test "$ac_res" != no; then
40395   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40396   ac_cv_func_getmntent=yes
40397
40398 cat >>confdefs.h <<\_ACEOF
40399 #define HAVE_GETMNTENT 1
40400 _ACEOF
40401
40402 else
40403   ac_cv_func_getmntent=no
40404 fi
40405
40406
40407 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40408 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40409 if test "${ac_cv_func_closedir_void+set}" = set; then
40410   echo $ECHO_N "(cached) $ECHO_C" >&6
40411 else
40412   if test "$cross_compiling" = yes; then
40413   ac_cv_func_closedir_void=yes
40414 else
40415   cat >conftest.$ac_ext <<_ACEOF
40416 /* confdefs.h.  */
40417 _ACEOF
40418 cat confdefs.h >>conftest.$ac_ext
40419 cat >>conftest.$ac_ext <<_ACEOF
40420 /* end confdefs.h.  */
40421 $ac_includes_default
40422 #include <$ac_header_dirent>
40423 #ifndef __cplusplus
40424 int closedir ();
40425 #endif
40426
40427 int
40428 main ()
40429 {
40430 return closedir (opendir (".")) != 0;
40431   ;
40432   return 0;
40433 }
40434 _ACEOF
40435 rm -f conftest$ac_exeext
40436 if { (ac_try="$ac_link"
40437 case "(($ac_try" in
40438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40439   *) ac_try_echo=$ac_try;;
40440 esac
40441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40442   (eval "$ac_link") 2>&5
40443   ac_status=$?
40444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40446   { (case "(($ac_try" in
40447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40448   *) ac_try_echo=$ac_try;;
40449 esac
40450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40451   (eval "$ac_try") 2>&5
40452   ac_status=$?
40453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40454   (exit $ac_status); }; }; then
40455   ac_cv_func_closedir_void=no
40456 else
40457   echo "$as_me: program exited with status $ac_status" >&5
40458 echo "$as_me: failed program was:" >&5
40459 sed 's/^/| /' conftest.$ac_ext >&5
40460
40461 ( exit $ac_status )
40462 ac_cv_func_closedir_void=yes
40463 fi
40464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40465 fi
40466
40467
40468 fi
40469 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40470 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40471 if test $ac_cv_func_closedir_void = yes; then
40472
40473 cat >>confdefs.h <<\_ACEOF
40474 #define CLOSEDIR_VOID 1
40475 _ACEOF
40476
40477 fi
40478
40479 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40480 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40481 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40482   echo $ECHO_N "(cached) $ECHO_C" >&6
40483 else
40484   if test "$cross_compiling" = yes; then
40485   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40486 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40487    { (exit 1); exit 1; }; }
40488 else
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 $ac_includes_default
40496 int
40497 main ()
40498 {
40499 /* If this system has a BSD-style setpgrp which takes arguments,
40500   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40501   exit successfully. */
40502   return setpgrp (1,1) != -1;
40503   ;
40504   return 0;
40505 }
40506 _ACEOF
40507 rm -f conftest$ac_exeext
40508 if { (ac_try="$ac_link"
40509 case "(($ac_try" in
40510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40511   *) ac_try_echo=$ac_try;;
40512 esac
40513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40514   (eval "$ac_link") 2>&5
40515   ac_status=$?
40516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40518   { (case "(($ac_try" in
40519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40520   *) ac_try_echo=$ac_try;;
40521 esac
40522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40523   (eval "$ac_try") 2>&5
40524   ac_status=$?
40525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526   (exit $ac_status); }; }; then
40527   ac_cv_func_setpgrp_void=no
40528 else
40529   echo "$as_me: program exited with status $ac_status" >&5
40530 echo "$as_me: failed program was:" >&5
40531 sed 's/^/| /' conftest.$ac_ext >&5
40532
40533 ( exit $ac_status )
40534 ac_cv_func_setpgrp_void=yes
40535 fi
40536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40537 fi
40538
40539
40540 fi
40541 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40542 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40543 if test $ac_cv_func_setpgrp_void = yes; then
40544
40545 cat >>confdefs.h <<\_ACEOF
40546 #define SETPGRP_VOID 1
40547 _ACEOF
40548
40549 fi
40550             # AC_FUNC_FNMATCH    dnl use local version
40551
40552 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40553 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40554 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40555   echo $ECHO_N "(cached) $ECHO_C" >&6
40556 else
40557   ac_check_lib_save_LIBS=$LIBS
40558 LIBS="-lintl  $LIBS"
40559 cat >conftest.$ac_ext <<_ACEOF
40560 /* confdefs.h.  */
40561 _ACEOF
40562 cat confdefs.h >>conftest.$ac_ext
40563 cat >>conftest.$ac_ext <<_ACEOF
40564 /* end confdefs.h.  */
40565
40566 /* Override any GCC internal prototype to avoid an error.
40567    Use char because int might match the return type of a GCC
40568    builtin and then its argument prototype would still apply.  */
40569 #ifdef __cplusplus
40570 extern "C"
40571 #endif
40572 char gettext ();
40573 int
40574 main ()
40575 {
40576 return gettext ();
40577   ;
40578   return 0;
40579 }
40580 _ACEOF
40581 rm -f conftest.$ac_objext conftest$ac_exeext
40582 if { (ac_try="$ac_link"
40583 case "(($ac_try" in
40584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40585   *) ac_try_echo=$ac_try;;
40586 esac
40587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40588   (eval "$ac_link") 2>conftest.er1
40589   ac_status=$?
40590   grep -v '^ *+' conftest.er1 >conftest.err
40591   rm -f conftest.er1
40592   cat conftest.err >&5
40593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594   (exit $ac_status); } && {
40595          test -z "$ac_c_werror_flag" ||
40596          test ! -s conftest.err
40597        } && test -s conftest$ac_exeext &&
40598        $as_test_x conftest$ac_exeext; then
40599   ac_cv_lib_intl_gettext=yes
40600 else
40601   echo "$as_me: failed program was:" >&5
40602 sed 's/^/| /' conftest.$ac_ext >&5
40603
40604         ac_cv_lib_intl_gettext=no
40605 fi
40606
40607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40608       conftest$ac_exeext conftest.$ac_ext
40609 LIBS=$ac_check_lib_save_LIBS
40610 fi
40611 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40612 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40613 if test $ac_cv_lib_intl_gettext = yes; then
40614   LIBS="$LIBS -lintl"
40615 fi
40616
40617
40618
40619 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40620 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40621 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40622   echo $ECHO_N "(cached) $ECHO_C" >&6
40623 else
40624   ac_check_lib_save_LIBS=$LIBS
40625 LIBS="-lsun  $LIBS"
40626 cat >conftest.$ac_ext <<_ACEOF
40627 /* confdefs.h.  */
40628 _ACEOF
40629 cat confdefs.h >>conftest.$ac_ext
40630 cat >>conftest.$ac_ext <<_ACEOF
40631 /* end confdefs.h.  */
40632
40633 /* Override any GCC internal prototype to avoid an error.
40634    Use char because int might match the return type of a GCC
40635    builtin and then its argument prototype would still apply.  */
40636 #ifdef __cplusplus
40637 extern "C"
40638 #endif
40639 char getpwnam ();
40640 int
40641 main ()
40642 {
40643 return getpwnam ();
40644   ;
40645   return 0;
40646 }
40647 _ACEOF
40648 rm -f conftest.$ac_objext conftest$ac_exeext
40649 if { (ac_try="$ac_link"
40650 case "(($ac_try" in
40651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40652   *) ac_try_echo=$ac_try;;
40653 esac
40654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40655   (eval "$ac_link") 2>conftest.er1
40656   ac_status=$?
40657   grep -v '^ *+' conftest.er1 >conftest.err
40658   rm -f conftest.er1
40659   cat conftest.err >&5
40660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40661   (exit $ac_status); } && {
40662          test -z "$ac_c_werror_flag" ||
40663          test ! -s conftest.err
40664        } && test -s conftest$ac_exeext &&
40665        $as_test_x conftest$ac_exeext; then
40666   ac_cv_lib_sun_getpwnam=yes
40667 else
40668   echo "$as_me: failed program was:" >&5
40669 sed 's/^/| /' conftest.$ac_ext >&5
40670
40671         ac_cv_lib_sun_getpwnam=no
40672 fi
40673
40674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40675       conftest$ac_exeext conftest.$ac_ext
40676 LIBS=$ac_check_lib_save_LIBS
40677 fi
40678 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40679 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40680 if test $ac_cv_lib_sun_getpwnam = yes; then
40681   cat >>confdefs.h <<_ACEOF
40682 #define HAVE_LIBSUN 1
40683 _ACEOF
40684
40685   LIBS="-lsun $LIBS"
40686
40687 fi
40688
40689
40690
40691 for ac_header in zlib.h
40692 do
40693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40695   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40698   echo $ECHO_N "(cached) $ECHO_C" >&6
40699 fi
40700 ac_res=`eval echo '${'$as_ac_Header'}'`
40701                { echo "$as_me:$LINENO: result: $ac_res" >&5
40702 echo "${ECHO_T}$ac_res" >&6; }
40703 else
40704   # Is the header compilable?
40705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40707 cat >conftest.$ac_ext <<_ACEOF
40708 /* confdefs.h.  */
40709 _ACEOF
40710 cat confdefs.h >>conftest.$ac_ext
40711 cat >>conftest.$ac_ext <<_ACEOF
40712 /* end confdefs.h.  */
40713 $ac_includes_default
40714 #include <$ac_header>
40715 _ACEOF
40716 rm -f conftest.$ac_objext
40717 if { (ac_try="$ac_compile"
40718 case "(($ac_try" in
40719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40720   *) ac_try_echo=$ac_try;;
40721 esac
40722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40723   (eval "$ac_compile") 2>conftest.er1
40724   ac_status=$?
40725   grep -v '^ *+' conftest.er1 >conftest.err
40726   rm -f conftest.er1
40727   cat conftest.err >&5
40728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40729   (exit $ac_status); } && {
40730          test -z "$ac_c_werror_flag" ||
40731          test ! -s conftest.err
40732        } && test -s conftest.$ac_objext; then
40733   ac_header_compiler=yes
40734 else
40735   echo "$as_me: failed program was:" >&5
40736 sed 's/^/| /' conftest.$ac_ext >&5
40737
40738         ac_header_compiler=no
40739 fi
40740
40741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40743 echo "${ECHO_T}$ac_header_compiler" >&6; }
40744
40745 # Is the header present?
40746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40748 cat >conftest.$ac_ext <<_ACEOF
40749 /* confdefs.h.  */
40750 _ACEOF
40751 cat confdefs.h >>conftest.$ac_ext
40752 cat >>conftest.$ac_ext <<_ACEOF
40753 /* end confdefs.h.  */
40754 #include <$ac_header>
40755 _ACEOF
40756 if { (ac_try="$ac_cpp conftest.$ac_ext"
40757 case "(($ac_try" in
40758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40759   *) ac_try_echo=$ac_try;;
40760 esac
40761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40763   ac_status=$?
40764   grep -v '^ *+' conftest.er1 >conftest.err
40765   rm -f conftest.er1
40766   cat conftest.err >&5
40767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40768   (exit $ac_status); } >/dev/null && {
40769          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40770          test ! -s conftest.err
40771        }; then
40772   ac_header_preproc=yes
40773 else
40774   echo "$as_me: failed program was:" >&5
40775 sed 's/^/| /' conftest.$ac_ext >&5
40776
40777   ac_header_preproc=no
40778 fi
40779
40780 rm -f conftest.err conftest.$ac_ext
40781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40782 echo "${ECHO_T}$ac_header_preproc" >&6; }
40783
40784 # So?  What about this header?
40785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40786   yes:no: )
40787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40791     ac_header_preproc=yes
40792     ;;
40793   no:yes:* )
40794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40806
40807     ;;
40808 esac
40809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40812   echo $ECHO_N "(cached) $ECHO_C" >&6
40813 else
40814   eval "$as_ac_Header=\$ac_header_preproc"
40815 fi
40816 ac_res=`eval echo '${'$as_ac_Header'}'`
40817                { echo "$as_me:$LINENO: result: $ac_res" >&5
40818 echo "${ECHO_T}$ac_res" >&6; }
40819
40820 fi
40821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40822   cat >>confdefs.h <<_ACEOF
40823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40824 _ACEOF
40825
40826 fi
40827
40828 done
40829
40830 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40831 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40832 if test "${ac_cv_lib_z_deflate+set}" = set; then
40833   echo $ECHO_N "(cached) $ECHO_C" >&6
40834 else
40835   ac_check_lib_save_LIBS=$LIBS
40836 LIBS="-lz  $LIBS"
40837 cat >conftest.$ac_ext <<_ACEOF
40838 /* confdefs.h.  */
40839 _ACEOF
40840 cat confdefs.h >>conftest.$ac_ext
40841 cat >>conftest.$ac_ext <<_ACEOF
40842 /* end confdefs.h.  */
40843
40844 /* Override any GCC internal prototype to avoid an error.
40845    Use char because int might match the return type of a GCC
40846    builtin and then its argument prototype would still apply.  */
40847 #ifdef __cplusplus
40848 extern "C"
40849 #endif
40850 char deflate ();
40851 int
40852 main ()
40853 {
40854 return deflate ();
40855   ;
40856   return 0;
40857 }
40858 _ACEOF
40859 rm -f conftest.$ac_objext conftest$ac_exeext
40860 if { (ac_try="$ac_link"
40861 case "(($ac_try" in
40862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40863   *) ac_try_echo=$ac_try;;
40864 esac
40865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40866   (eval "$ac_link") 2>conftest.er1
40867   ac_status=$?
40868   grep -v '^ *+' conftest.er1 >conftest.err
40869   rm -f conftest.er1
40870   cat conftest.err >&5
40871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872   (exit $ac_status); } && {
40873          test -z "$ac_c_werror_flag" ||
40874          test ! -s conftest.err
40875        } && test -s conftest$ac_exeext &&
40876        $as_test_x conftest$ac_exeext; then
40877   ac_cv_lib_z_deflate=yes
40878 else
40879   echo "$as_me: failed program was:" >&5
40880 sed 's/^/| /' conftest.$ac_ext >&5
40881
40882         ac_cv_lib_z_deflate=no
40883 fi
40884
40885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40886       conftest$ac_exeext conftest.$ac_ext
40887 LIBS=$ac_check_lib_save_LIBS
40888 fi
40889 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40890 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40891 if test $ac_cv_lib_z_deflate = yes; then
40892   FDLIBS="-lz"
40893 fi
40894
40895 have_zlib=no
40896 if test x$FDLIBS = x-lz; then
40897    cat >>confdefs.h <<\_ACEOF
40898 #define HAVE_LIBZ 1
40899 _ACEOF
40900
40901    have_zlib=yes
40902 fi
40903
40904 support_acl=auto
40905 # Check whether --enable-acl was given.
40906 if test "${enable_acl+set}" = set; then
40907   enableval=$enable_acl;
40908        if test x$enableval = xyes; then
40909           support_acl=yes
40910        elif test x$enableval = xno; then
40911           support_acl=no
40912        fi
40913
40914
40915 fi
40916
40917
40918 have_acl=no
40919 have_extended_acl=no
40920 if test x$support_acl = xyes -o x$support_acl = xauto; then
40921    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40922   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40923 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40924 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40925   echo $ECHO_N "(cached) $ECHO_C" >&6
40926 fi
40927 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40928 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40929 else
40930   # Is the header compilable?
40931 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40932 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40933 cat >conftest.$ac_ext <<_ACEOF
40934 /* confdefs.h.  */
40935 _ACEOF
40936 cat confdefs.h >>conftest.$ac_ext
40937 cat >>conftest.$ac_ext <<_ACEOF
40938 /* end confdefs.h.  */
40939 $ac_includes_default
40940 #include <sys/acl.h>
40941 _ACEOF
40942 rm -f conftest.$ac_objext
40943 if { (ac_try="$ac_compile"
40944 case "(($ac_try" in
40945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40946   *) ac_try_echo=$ac_try;;
40947 esac
40948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40949   (eval "$ac_compile") 2>conftest.er1
40950   ac_status=$?
40951   grep -v '^ *+' conftest.er1 >conftest.err
40952   rm -f conftest.er1
40953   cat conftest.err >&5
40954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40955   (exit $ac_status); } && {
40956          test -z "$ac_c_werror_flag" ||
40957          test ! -s conftest.err
40958        } && test -s conftest.$ac_objext; then
40959   ac_header_compiler=yes
40960 else
40961   echo "$as_me: failed program was:" >&5
40962 sed 's/^/| /' conftest.$ac_ext >&5
40963
40964         ac_header_compiler=no
40965 fi
40966
40967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40969 echo "${ECHO_T}$ac_header_compiler" >&6; }
40970
40971 # Is the header present?
40972 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40973 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40974 cat >conftest.$ac_ext <<_ACEOF
40975 /* confdefs.h.  */
40976 _ACEOF
40977 cat confdefs.h >>conftest.$ac_ext
40978 cat >>conftest.$ac_ext <<_ACEOF
40979 /* end confdefs.h.  */
40980 #include <sys/acl.h>
40981 _ACEOF
40982 if { (ac_try="$ac_cpp conftest.$ac_ext"
40983 case "(($ac_try" in
40984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40985   *) ac_try_echo=$ac_try;;
40986 esac
40987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40989   ac_status=$?
40990   grep -v '^ *+' conftest.er1 >conftest.err
40991   rm -f conftest.er1
40992   cat conftest.err >&5
40993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40994   (exit $ac_status); } >/dev/null && {
40995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40996          test ! -s conftest.err
40997        }; then
40998   ac_header_preproc=yes
40999 else
41000   echo "$as_me: failed program was:" >&5
41001 sed 's/^/| /' conftest.$ac_ext >&5
41002
41003   ac_header_preproc=no
41004 fi
41005
41006 rm -f conftest.err conftest.$ac_ext
41007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41008 echo "${ECHO_T}$ac_header_preproc" >&6; }
41009
41010 # So?  What about this header?
41011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41012   yes:no: )
41013     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41014 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41015     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41016 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41017     ac_header_preproc=yes
41018     ;;
41019   no:yes:* )
41020     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41021 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41022     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
41023 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
41024     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41025 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41026     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
41027 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41028     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41029 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41030     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41031 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41032
41033     ;;
41034 esac
41035 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41036 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41037 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41038   echo $ECHO_N "(cached) $ECHO_C" >&6
41039 else
41040   ac_cv_header_sys_acl_h=$ac_header_preproc
41041 fi
41042 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41043 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41044
41045 fi
41046 if test $ac_cv_header_sys_acl_h = yes; then
41047
41048 cat >>confdefs.h <<\_ACEOF
41049 #define HAVE_SYS_ACL_H 1
41050 _ACEOF
41051
41052 fi
41053
41054
41055    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41056 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41057 if test "${ac_cv_func_acl_get_file+set}" = set; then
41058   echo $ECHO_N "(cached) $ECHO_C" >&6
41059 else
41060   cat >conftest.$ac_ext <<_ACEOF
41061 /* confdefs.h.  */
41062 _ACEOF
41063 cat confdefs.h >>conftest.$ac_ext
41064 cat >>conftest.$ac_ext <<_ACEOF
41065 /* end confdefs.h.  */
41066 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41068 #define acl_get_file innocuous_acl_get_file
41069
41070 /* System header to define __stub macros and hopefully few prototypes,
41071     which can conflict with char acl_get_file (); below.
41072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41073     <limits.h> exists even on freestanding compilers.  */
41074
41075 #ifdef __STDC__
41076 # include <limits.h>
41077 #else
41078 # include <assert.h>
41079 #endif
41080
41081 #undef acl_get_file
41082
41083 /* Override any GCC internal prototype to avoid an error.
41084    Use char because int might match the return type of a GCC
41085    builtin and then its argument prototype would still apply.  */
41086 #ifdef __cplusplus
41087 extern "C"
41088 #endif
41089 char acl_get_file ();
41090 /* The GNU C library defines this for functions which it implements
41091     to always fail with ENOSYS.  Some functions are actually named
41092     something starting with __ and the normal name is an alias.  */
41093 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41094 choke me
41095 #endif
41096
41097 int
41098 main ()
41099 {
41100 return acl_get_file ();
41101   ;
41102   return 0;
41103 }
41104 _ACEOF
41105 rm -f conftest.$ac_objext conftest$ac_exeext
41106 if { (ac_try="$ac_link"
41107 case "(($ac_try" in
41108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41109   *) ac_try_echo=$ac_try;;
41110 esac
41111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41112   (eval "$ac_link") 2>conftest.er1
41113   ac_status=$?
41114   grep -v '^ *+' conftest.er1 >conftest.err
41115   rm -f conftest.er1
41116   cat conftest.err >&5
41117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118   (exit $ac_status); } && {
41119          test -z "$ac_c_werror_flag" ||
41120          test ! -s conftest.err
41121        } && test -s conftest$ac_exeext &&
41122        $as_test_x conftest$ac_exeext; then
41123   ac_cv_func_acl_get_file=yes
41124 else
41125   echo "$as_me: failed program was:" >&5
41126 sed 's/^/| /' conftest.$ac_ext >&5
41127
41128         ac_cv_func_acl_get_file=no
41129 fi
41130
41131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41132       conftest$ac_exeext conftest.$ac_ext
41133 fi
41134 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41135 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41136 if test $ac_cv_func_acl_get_file = yes; then
41137
41138           have_acl=yes
41139
41140 else
41141
41142           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41143 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41144 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41145   echo $ECHO_N "(cached) $ECHO_C" >&6
41146 else
41147   ac_check_lib_save_LIBS=$LIBS
41148 LIBS="-lacl  $LIBS"
41149 cat >conftest.$ac_ext <<_ACEOF
41150 /* confdefs.h.  */
41151 _ACEOF
41152 cat confdefs.h >>conftest.$ac_ext
41153 cat >>conftest.$ac_ext <<_ACEOF
41154 /* end confdefs.h.  */
41155
41156 /* Override any GCC internal prototype to avoid an error.
41157    Use char because int might match the return type of a GCC
41158    builtin and then its argument prototype would still apply.  */
41159 #ifdef __cplusplus
41160 extern "C"
41161 #endif
41162 char acl_get_file ();
41163 int
41164 main ()
41165 {
41166 return acl_get_file ();
41167   ;
41168   return 0;
41169 }
41170 _ACEOF
41171 rm -f conftest.$ac_objext conftest$ac_exeext
41172 if { (ac_try="$ac_link"
41173 case "(($ac_try" in
41174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41175   *) ac_try_echo=$ac_try;;
41176 esac
41177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41178   (eval "$ac_link") 2>conftest.er1
41179   ac_status=$?
41180   grep -v '^ *+' conftest.er1 >conftest.err
41181   rm -f conftest.er1
41182   cat conftest.err >&5
41183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41184   (exit $ac_status); } && {
41185          test -z "$ac_c_werror_flag" ||
41186          test ! -s conftest.err
41187        } && test -s conftest$ac_exeext &&
41188        $as_test_x conftest$ac_exeext; then
41189   ac_cv_lib_acl_acl_get_file=yes
41190 else
41191   echo "$as_me: failed program was:" >&5
41192 sed 's/^/| /' conftest.$ac_ext >&5
41193
41194         ac_cv_lib_acl_acl_get_file=no
41195 fi
41196
41197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41198       conftest$ac_exeext conftest.$ac_ext
41199 LIBS=$ac_check_lib_save_LIBS
41200 fi
41201 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41202 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41203 if test $ac_cv_lib_acl_acl_get_file = yes; then
41204
41205                  have_acl=yes;
41206                  FDLIBS="-lacl $FDLIBS"
41207
41208 else
41209
41210                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41211 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41212 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41213   echo $ECHO_N "(cached) $ECHO_C" >&6
41214 else
41215   ac_check_lib_save_LIBS=$LIBS
41216 LIBS="-lpacl  $LIBS"
41217 cat >conftest.$ac_ext <<_ACEOF
41218 /* confdefs.h.  */
41219 _ACEOF
41220 cat confdefs.h >>conftest.$ac_ext
41221 cat >>conftest.$ac_ext <<_ACEOF
41222 /* end confdefs.h.  */
41223
41224 /* Override any GCC internal prototype to avoid an error.
41225    Use char because int might match the return type of a GCC
41226    builtin and then its argument prototype would still apply.  */
41227 #ifdef __cplusplus
41228 extern "C"
41229 #endif
41230 char acl_get_file ();
41231 int
41232 main ()
41233 {
41234 return acl_get_file ();
41235   ;
41236   return 0;
41237 }
41238 _ACEOF
41239 rm -f conftest.$ac_objext conftest$ac_exeext
41240 if { (ac_try="$ac_link"
41241 case "(($ac_try" in
41242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41243   *) ac_try_echo=$ac_try;;
41244 esac
41245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41246   (eval "$ac_link") 2>conftest.er1
41247   ac_status=$?
41248   grep -v '^ *+' conftest.er1 >conftest.err
41249   rm -f conftest.er1
41250   cat conftest.err >&5
41251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252   (exit $ac_status); } && {
41253          test -z "$ac_c_werror_flag" ||
41254          test ! -s conftest.err
41255        } && test -s conftest$ac_exeext &&
41256        $as_test_x conftest$ac_exeext; then
41257   ac_cv_lib_pacl_acl_get_file=yes
41258 else
41259   echo "$as_me: failed program was:" >&5
41260 sed 's/^/| /' conftest.$ac_ext >&5
41261
41262         ac_cv_lib_pacl_acl_get_file=no
41263 fi
41264
41265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41266       conftest$ac_exeext conftest.$ac_ext
41267 LIBS=$ac_check_lib_save_LIBS
41268 fi
41269 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41270 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41271 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41272
41273                         have_acl=yes;
41274                         FDLIBS="-lpacl $FDLIBS"
41275
41276 else
41277
41278                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41279 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41280 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41281   echo $ECHO_N "(cached) $ECHO_C" >&6
41282 else
41283   ac_check_lib_save_LIBS=$LIBS
41284 LIBS="-lsec  $LIBS"
41285 cat >conftest.$ac_ext <<_ACEOF
41286 /* confdefs.h.  */
41287 _ACEOF
41288 cat confdefs.h >>conftest.$ac_ext
41289 cat >>conftest.$ac_ext <<_ACEOF
41290 /* end confdefs.h.  */
41291
41292 /* Override any GCC internal prototype to avoid an error.
41293    Use char because int might match the return type of a GCC
41294    builtin and then its argument prototype would still apply.  */
41295 #ifdef __cplusplus
41296 extern "C"
41297 #endif
41298 char acltotext ();
41299 int
41300 main ()
41301 {
41302 return acltotext ();
41303   ;
41304   return 0;
41305 }
41306 _ACEOF
41307 rm -f conftest.$ac_objext conftest$ac_exeext
41308 if { (ac_try="$ac_link"
41309 case "(($ac_try" in
41310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41311   *) ac_try_echo=$ac_try;;
41312 esac
41313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41314   (eval "$ac_link") 2>conftest.er1
41315   ac_status=$?
41316   grep -v '^ *+' conftest.er1 >conftest.err
41317   rm -f conftest.er1
41318   cat conftest.err >&5
41319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41320   (exit $ac_status); } && {
41321          test -z "$ac_c_werror_flag" ||
41322          test ! -s conftest.err
41323        } && test -s conftest$ac_exeext &&
41324        $as_test_x conftest$ac_exeext; then
41325   ac_cv_lib_sec_acltotext=yes
41326 else
41327   echo "$as_me: failed program was:" >&5
41328 sed 's/^/| /' conftest.$ac_ext >&5
41329
41330         ac_cv_lib_sec_acltotext=no
41331 fi
41332
41333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41334       conftest$ac_exeext conftest.$ac_ext
41335 LIBS=$ac_check_lib_save_LIBS
41336 fi
41337 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41338 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41339 if test $ac_cv_lib_sec_acltotext = yes; then
41340
41341                                have_acl=yes;
41342                                FDLIBS="-lsec $FDLIBS"
41343
41344                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41345 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41346 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41347   echo $ECHO_N "(cached) $ECHO_C" >&6
41348 else
41349   ac_check_lib_save_LIBS=$LIBS
41350 LIBS="-lsec  $LIBS"
41351 cat >conftest.$ac_ext <<_ACEOF
41352 /* confdefs.h.  */
41353 _ACEOF
41354 cat confdefs.h >>conftest.$ac_ext
41355 cat >>conftest.$ac_ext <<_ACEOF
41356 /* end confdefs.h.  */
41357
41358 /* Override any GCC internal prototype to avoid an error.
41359    Use char because int might match the return type of a GCC
41360    builtin and then its argument prototype would still apply.  */
41361 #ifdef __cplusplus
41362 extern "C"
41363 #endif
41364 char acl_totext ();
41365 int
41366 main ()
41367 {
41368 return acl_totext ();
41369   ;
41370   return 0;
41371 }
41372 _ACEOF
41373 rm -f conftest.$ac_objext conftest$ac_exeext
41374 if { (ac_try="$ac_link"
41375 case "(($ac_try" in
41376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41377   *) ac_try_echo=$ac_try;;
41378 esac
41379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41380   (eval "$ac_link") 2>conftest.er1
41381   ac_status=$?
41382   grep -v '^ *+' conftest.er1 >conftest.err
41383   rm -f conftest.er1
41384   cat conftest.err >&5
41385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386   (exit $ac_status); } && {
41387          test -z "$ac_c_werror_flag" ||
41388          test ! -s conftest.err
41389        } && test -s conftest$ac_exeext &&
41390        $as_test_x conftest$ac_exeext; then
41391   ac_cv_lib_sec_acl_totext=yes
41392 else
41393   echo "$as_me: failed program was:" >&5
41394 sed 's/^/| /' conftest.$ac_ext >&5
41395
41396         ac_cv_lib_sec_acl_totext=no
41397 fi
41398
41399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41400       conftest$ac_exeext conftest.$ac_ext
41401 LIBS=$ac_check_lib_save_LIBS
41402 fi
41403 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41404 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41405 if test $ac_cv_lib_sec_acl_totext = yes; then
41406
41407                                       have_extended_acl=yes
41408
41409
41410 fi
41411
41412
41413
41414 fi
41415
41416
41417
41418 fi
41419
41420
41421
41422 fi
41423
41424
41425
41426 fi
41427
41428
41429    if test x$support_acl = xyes -a $have_acl != yes; then
41430       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41431   please either load the acl libraries or rerun configure without --enable-acl" >&5
41432 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41433   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41434    { (exit 1); exit 1; }; }
41435    else
41436       if test $have_acl = yes; then
41437
41438 cat >>confdefs.h <<\_ACEOF
41439 #define HAVE_ACL 1
41440 _ACEOF
41441
41442       fi
41443
41444       if test $have_extended_acl = yes; then
41445
41446 cat >>confdefs.h <<\_ACEOF
41447 #define HAVE_EXTENDED_ACL 1
41448 _ACEOF
41449
41450       fi
41451    fi
41452 fi
41453
41454 support_xattr=auto
41455 # Check whether --enable-xattr was given.
41456 if test "${enable_xattr+set}" = set; then
41457   enableval=$enable_xattr;
41458        if test x$enableval = xyes; then
41459           support_xattr=yes
41460        elif test x$enableval = xno; then
41461           support_xattr=no
41462        fi
41463
41464
41465 fi
41466
41467
41468 have_xattr=no
41469 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41470             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41471   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41472 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41473 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41474   echo $ECHO_N "(cached) $ECHO_C" >&6
41475 fi
41476 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41477 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41478 else
41479   # Is the header compilable?
41480 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41481 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41482 cat >conftest.$ac_ext <<_ACEOF
41483 /* confdefs.h.  */
41484 _ACEOF
41485 cat confdefs.h >>conftest.$ac_ext
41486 cat >>conftest.$ac_ext <<_ACEOF
41487 /* end confdefs.h.  */
41488 $ac_includes_default
41489 #include <sys/extattr.h>
41490 _ACEOF
41491 rm -f conftest.$ac_objext
41492 if { (ac_try="$ac_compile"
41493 case "(($ac_try" in
41494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41495   *) ac_try_echo=$ac_try;;
41496 esac
41497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41498   (eval "$ac_compile") 2>conftest.er1
41499   ac_status=$?
41500   grep -v '^ *+' conftest.er1 >conftest.err
41501   rm -f conftest.er1
41502   cat conftest.err >&5
41503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504   (exit $ac_status); } && {
41505          test -z "$ac_c_werror_flag" ||
41506          test ! -s conftest.err
41507        } && test -s conftest.$ac_objext; then
41508   ac_header_compiler=yes
41509 else
41510   echo "$as_me: failed program was:" >&5
41511 sed 's/^/| /' conftest.$ac_ext >&5
41512
41513         ac_header_compiler=no
41514 fi
41515
41516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41518 echo "${ECHO_T}$ac_header_compiler" >&6; }
41519
41520 # Is the header present?
41521 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41522 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41523 cat >conftest.$ac_ext <<_ACEOF
41524 /* confdefs.h.  */
41525 _ACEOF
41526 cat confdefs.h >>conftest.$ac_ext
41527 cat >>conftest.$ac_ext <<_ACEOF
41528 /* end confdefs.h.  */
41529 #include <sys/extattr.h>
41530 _ACEOF
41531 if { (ac_try="$ac_cpp conftest.$ac_ext"
41532 case "(($ac_try" in
41533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41534   *) ac_try_echo=$ac_try;;
41535 esac
41536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41538   ac_status=$?
41539   grep -v '^ *+' conftest.er1 >conftest.err
41540   rm -f conftest.er1
41541   cat conftest.err >&5
41542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543   (exit $ac_status); } >/dev/null && {
41544          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41545          test ! -s conftest.err
41546        }; then
41547   ac_header_preproc=yes
41548 else
41549   echo "$as_me: failed program was:" >&5
41550 sed 's/^/| /' conftest.$ac_ext >&5
41551
41552   ac_header_preproc=no
41553 fi
41554
41555 rm -f conftest.err conftest.$ac_ext
41556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41557 echo "${ECHO_T}$ac_header_preproc" >&6; }
41558
41559 # So?  What about this header?
41560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41561   yes:no: )
41562     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41563 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41564     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41565 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41566     ac_header_preproc=yes
41567     ;;
41568   no:yes:* )
41569     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41570 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41571     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41572 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41573     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41574 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41575     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41576 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41577     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41578 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41579     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41580 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41581
41582     ;;
41583 esac
41584 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41585 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41586 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41587   echo $ECHO_N "(cached) $ECHO_C" >&6
41588 else
41589   ac_cv_header_sys_extattr_h=$ac_header_preproc
41590 fi
41591 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41592 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41593
41594 fi
41595 if test $ac_cv_header_sys_extattr_h = yes; then
41596
41597 cat >>confdefs.h <<\_ACEOF
41598 #define HAVE_SYS_EXTATTR_H 1
41599 _ACEOF
41600
41601 fi
41602
41603
41604    if test "${ac_cv_header_libutil_h+set}" = set; then
41605   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41606 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41607 if test "${ac_cv_header_libutil_h+set}" = set; then
41608   echo $ECHO_N "(cached) $ECHO_C" >&6
41609 fi
41610 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41611 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41612 else
41613   # Is the header compilable?
41614 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41615 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41616 cat >conftest.$ac_ext <<_ACEOF
41617 /* confdefs.h.  */
41618 _ACEOF
41619 cat confdefs.h >>conftest.$ac_ext
41620 cat >>conftest.$ac_ext <<_ACEOF
41621 /* end confdefs.h.  */
41622 $ac_includes_default
41623 #include <libutil.h>
41624 _ACEOF
41625 rm -f conftest.$ac_objext
41626 if { (ac_try="$ac_compile"
41627 case "(($ac_try" in
41628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41629   *) ac_try_echo=$ac_try;;
41630 esac
41631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41632   (eval "$ac_compile") 2>conftest.er1
41633   ac_status=$?
41634   grep -v '^ *+' conftest.er1 >conftest.err
41635   rm -f conftest.er1
41636   cat conftest.err >&5
41637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638   (exit $ac_status); } && {
41639          test -z "$ac_c_werror_flag" ||
41640          test ! -s conftest.err
41641        } && test -s conftest.$ac_objext; then
41642   ac_header_compiler=yes
41643 else
41644   echo "$as_me: failed program was:" >&5
41645 sed 's/^/| /' conftest.$ac_ext >&5
41646
41647         ac_header_compiler=no
41648 fi
41649
41650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41652 echo "${ECHO_T}$ac_header_compiler" >&6; }
41653
41654 # Is the header present?
41655 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41656 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41657 cat >conftest.$ac_ext <<_ACEOF
41658 /* confdefs.h.  */
41659 _ACEOF
41660 cat confdefs.h >>conftest.$ac_ext
41661 cat >>conftest.$ac_ext <<_ACEOF
41662 /* end confdefs.h.  */
41663 #include <libutil.h>
41664 _ACEOF
41665 if { (ac_try="$ac_cpp conftest.$ac_ext"
41666 case "(($ac_try" in
41667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41668   *) ac_try_echo=$ac_try;;
41669 esac
41670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41672   ac_status=$?
41673   grep -v '^ *+' conftest.er1 >conftest.err
41674   rm -f conftest.er1
41675   cat conftest.err >&5
41676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677   (exit $ac_status); } >/dev/null && {
41678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41679          test ! -s conftest.err
41680        }; then
41681   ac_header_preproc=yes
41682 else
41683   echo "$as_me: failed program was:" >&5
41684 sed 's/^/| /' conftest.$ac_ext >&5
41685
41686   ac_header_preproc=no
41687 fi
41688
41689 rm -f conftest.err conftest.$ac_ext
41690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41691 echo "${ECHO_T}$ac_header_preproc" >&6; }
41692
41693 # So?  What about this header?
41694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41695   yes:no: )
41696     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41697 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41698     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41699 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41700     ac_header_preproc=yes
41701     ;;
41702   no:yes:* )
41703     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41704 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41705     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41706 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41707     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41708 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41709     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41710 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41711     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41712 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41713     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41714 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41715
41716     ;;
41717 esac
41718 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41719 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41720 if test "${ac_cv_header_libutil_h+set}" = set; then
41721   echo $ECHO_N "(cached) $ECHO_C" >&6
41722 else
41723   ac_cv_header_libutil_h=$ac_header_preproc
41724 fi
41725 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41726 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41727
41728 fi
41729 if test $ac_cv_header_libutil_h = yes; then
41730
41731 cat >>confdefs.h <<\_ACEOF
41732 #define HAVE_LIBUTIL_H 1
41733 _ACEOF
41734
41735 fi
41736
41737
41738
41739
41740
41741 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41742 do
41743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41747   echo $ECHO_N "(cached) $ECHO_C" >&6
41748 else
41749   cat >conftest.$ac_ext <<_ACEOF
41750 /* confdefs.h.  */
41751 _ACEOF
41752 cat confdefs.h >>conftest.$ac_ext
41753 cat >>conftest.$ac_ext <<_ACEOF
41754 /* end confdefs.h.  */
41755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41757 #define $ac_func innocuous_$ac_func
41758
41759 /* System header to define __stub macros and hopefully few prototypes,
41760     which can conflict with char $ac_func (); below.
41761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41762     <limits.h> exists even on freestanding compilers.  */
41763
41764 #ifdef __STDC__
41765 # include <limits.h>
41766 #else
41767 # include <assert.h>
41768 #endif
41769
41770 #undef $ac_func
41771
41772 /* Override any GCC internal prototype to avoid an error.
41773    Use char because int might match the return type of a GCC
41774    builtin and then its argument prototype would still apply.  */
41775 #ifdef __cplusplus
41776 extern "C"
41777 #endif
41778 char $ac_func ();
41779 /* The GNU C library defines this for functions which it implements
41780     to always fail with ENOSYS.  Some functions are actually named
41781     something starting with __ and the normal name is an alias.  */
41782 #if defined __stub_$ac_func || defined __stub___$ac_func
41783 choke me
41784 #endif
41785
41786 int
41787 main ()
41788 {
41789 return $ac_func ();
41790   ;
41791   return 0;
41792 }
41793 _ACEOF
41794 rm -f conftest.$ac_objext conftest$ac_exeext
41795 if { (ac_try="$ac_link"
41796 case "(($ac_try" in
41797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41798   *) ac_try_echo=$ac_try;;
41799 esac
41800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41801   (eval "$ac_link") 2>conftest.er1
41802   ac_status=$?
41803   grep -v '^ *+' conftest.er1 >conftest.err
41804   rm -f conftest.er1
41805   cat conftest.err >&5
41806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41807   (exit $ac_status); } && {
41808          test -z "$ac_c_werror_flag" ||
41809          test ! -s conftest.err
41810        } && test -s conftest$ac_exeext &&
41811        $as_test_x conftest$ac_exeext; then
41812   eval "$as_ac_var=yes"
41813 else
41814   echo "$as_me: failed program was:" >&5
41815 sed 's/^/| /' conftest.$ac_ext >&5
41816
41817         eval "$as_ac_var=no"
41818 fi
41819
41820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41821       conftest$ac_exeext conftest.$ac_ext
41822 fi
41823 ac_res=`eval echo '${'$as_ac_var'}'`
41824                { echo "$as_me:$LINENO: result: $ac_res" >&5
41825 echo "${ECHO_T}$ac_res" >&6; }
41826 if test `eval echo '${'$as_ac_var'}'` = yes; then
41827   cat >>confdefs.h <<_ACEOF
41828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41829 _ACEOF
41830
41831           have_xattr=yes
41832
41833 cat >>confdefs.h <<\_ACEOF
41834 #define HAVE_EXTATTR_GET_LINK 1
41835 _ACEOF
41836
41837
41838 cat >>confdefs.h <<\_ACEOF
41839 #define HAVE_EXTATTR_SET_LINK 1
41840 _ACEOF
41841
41842
41843 cat >>confdefs.h <<\_ACEOF
41844 #define HAVE_EXTATTR_LIST_LINK 1
41845 _ACEOF
41846
41847
41848
41849 fi
41850 done
41851
41852
41853    if test $have_xattr = no; then
41854
41855
41856
41857 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41858 do
41859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41863   echo $ECHO_N "(cached) $ECHO_C" >&6
41864 else
41865   cat >conftest.$ac_ext <<_ACEOF
41866 /* confdefs.h.  */
41867 _ACEOF
41868 cat confdefs.h >>conftest.$ac_ext
41869 cat >>conftest.$ac_ext <<_ACEOF
41870 /* end confdefs.h.  */
41871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41873 #define $ac_func innocuous_$ac_func
41874
41875 /* System header to define __stub macros and hopefully few prototypes,
41876     which can conflict with char $ac_func (); below.
41877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41878     <limits.h> exists even on freestanding compilers.  */
41879
41880 #ifdef __STDC__
41881 # include <limits.h>
41882 #else
41883 # include <assert.h>
41884 #endif
41885
41886 #undef $ac_func
41887
41888 /* Override any GCC internal prototype to avoid an error.
41889    Use char because int might match the return type of a GCC
41890    builtin and then its argument prototype would still apply.  */
41891 #ifdef __cplusplus
41892 extern "C"
41893 #endif
41894 char $ac_func ();
41895 /* The GNU C library defines this for functions which it implements
41896     to always fail with ENOSYS.  Some functions are actually named
41897     something starting with __ and the normal name is an alias.  */
41898 #if defined __stub_$ac_func || defined __stub___$ac_func
41899 choke me
41900 #endif
41901
41902 int
41903 main ()
41904 {
41905 return $ac_func ();
41906   ;
41907   return 0;
41908 }
41909 _ACEOF
41910 rm -f conftest.$ac_objext conftest$ac_exeext
41911 if { (ac_try="$ac_link"
41912 case "(($ac_try" in
41913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41914   *) ac_try_echo=$ac_try;;
41915 esac
41916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41917   (eval "$ac_link") 2>conftest.er1
41918   ac_status=$?
41919   grep -v '^ *+' conftest.er1 >conftest.err
41920   rm -f conftest.er1
41921   cat conftest.err >&5
41922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923   (exit $ac_status); } && {
41924          test -z "$ac_c_werror_flag" ||
41925          test ! -s conftest.err
41926        } && test -s conftest$ac_exeext &&
41927        $as_test_x conftest$ac_exeext; then
41928   eval "$as_ac_var=yes"
41929 else
41930   echo "$as_me: failed program was:" >&5
41931 sed 's/^/| /' conftest.$ac_ext >&5
41932
41933         eval "$as_ac_var=no"
41934 fi
41935
41936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41937       conftest$ac_exeext conftest.$ac_ext
41938 fi
41939 ac_res=`eval echo '${'$as_ac_var'}'`
41940                { echo "$as_me:$LINENO: result: $ac_res" >&5
41941 echo "${ECHO_T}$ac_res" >&6; }
41942 if test `eval echo '${'$as_ac_var'}'` = yes; then
41943   cat >>confdefs.h <<_ACEOF
41944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41945 _ACEOF
41946
41947              have_xattr=yes
41948
41949 cat >>confdefs.h <<\_ACEOF
41950 #define HAVE_EXTATTR_GET_FILE 1
41951 _ACEOF
41952
41953
41954 cat >>confdefs.h <<\_ACEOF
41955 #define HAVE_EXTATTR_SET_FILE 1
41956 _ACEOF
41957
41958
41959 cat >>confdefs.h <<\_ACEOF
41960 #define HAVE_EXTATTR_LIST_FILE 1
41961 _ACEOF
41962
41963
41964
41965 fi
41966 done
41967
41968    fi
41969
41970    if test $have_xattr = yes; then
41971       have_extattr_string_in_libc=no
41972
41973
41974 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41975 do
41976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41980   echo $ECHO_N "(cached) $ECHO_C" >&6
41981 else
41982   cat >conftest.$ac_ext <<_ACEOF
41983 /* confdefs.h.  */
41984 _ACEOF
41985 cat confdefs.h >>conftest.$ac_ext
41986 cat >>conftest.$ac_ext <<_ACEOF
41987 /* end confdefs.h.  */
41988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41990 #define $ac_func innocuous_$ac_func
41991
41992 /* System header to define __stub macros and hopefully few prototypes,
41993     which can conflict with char $ac_func (); below.
41994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41995     <limits.h> exists even on freestanding compilers.  */
41996
41997 #ifdef __STDC__
41998 # include <limits.h>
41999 #else
42000 # include <assert.h>
42001 #endif
42002
42003 #undef $ac_func
42004
42005 /* Override any GCC internal prototype to avoid an error.
42006    Use char because int might match the return type of a GCC
42007    builtin and then its argument prototype would still apply.  */
42008 #ifdef __cplusplus
42009 extern "C"
42010 #endif
42011 char $ac_func ();
42012 /* The GNU C library defines this for functions which it implements
42013     to always fail with ENOSYS.  Some functions are actually named
42014     something starting with __ and the normal name is an alias.  */
42015 #if defined __stub_$ac_func || defined __stub___$ac_func
42016 choke me
42017 #endif
42018
42019 int
42020 main ()
42021 {
42022 return $ac_func ();
42023   ;
42024   return 0;
42025 }
42026 _ACEOF
42027 rm -f conftest.$ac_objext conftest$ac_exeext
42028 if { (ac_try="$ac_link"
42029 case "(($ac_try" in
42030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42031   *) ac_try_echo=$ac_try;;
42032 esac
42033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42034   (eval "$ac_link") 2>conftest.er1
42035   ac_status=$?
42036   grep -v '^ *+' conftest.er1 >conftest.err
42037   rm -f conftest.er1
42038   cat conftest.err >&5
42039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42040   (exit $ac_status); } && {
42041          test -z "$ac_c_werror_flag" ||
42042          test ! -s conftest.err
42043        } && test -s conftest$ac_exeext &&
42044        $as_test_x conftest$ac_exeext; then
42045   eval "$as_ac_var=yes"
42046 else
42047   echo "$as_me: failed program was:" >&5
42048 sed 's/^/| /' conftest.$ac_ext >&5
42049
42050         eval "$as_ac_var=no"
42051 fi
42052
42053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42054       conftest$ac_exeext conftest.$ac_ext
42055 fi
42056 ac_res=`eval echo '${'$as_ac_var'}'`
42057                { echo "$as_me:$LINENO: result: $ac_res" >&5
42058 echo "${ECHO_T}$ac_res" >&6; }
42059 if test `eval echo '${'$as_ac_var'}'` = yes; then
42060   cat >>confdefs.h <<_ACEOF
42061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42062 _ACEOF
42063
42064              have_extattr_string_in_libc=yes
42065
42066 cat >>confdefs.h <<\_ACEOF
42067 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42068 _ACEOF
42069
42070
42071 cat >>confdefs.h <<\_ACEOF
42072 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42073 _ACEOF
42074
42075
42076
42077 fi
42078 done
42079
42080
42081                         if test $have_extattr_string_in_libc = no; then
42082          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42083 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42084 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42085   echo $ECHO_N "(cached) $ECHO_C" >&6
42086 else
42087   ac_check_lib_save_LIBS=$LIBS
42088 LIBS="-lutil  $LIBS"
42089 cat >conftest.$ac_ext <<_ACEOF
42090 /* confdefs.h.  */
42091 _ACEOF
42092 cat confdefs.h >>conftest.$ac_ext
42093 cat >>conftest.$ac_ext <<_ACEOF
42094 /* end confdefs.h.  */
42095
42096 /* Override any GCC internal prototype to avoid an error.
42097    Use char because int might match the return type of a GCC
42098    builtin and then its argument prototype would still apply.  */
42099 #ifdef __cplusplus
42100 extern "C"
42101 #endif
42102 char extattr_namespace_to_string extattr_string_to_namespace ();
42103 int
42104 main ()
42105 {
42106 return extattr_namespace_to_string extattr_string_to_namespace ();
42107   ;
42108   return 0;
42109 }
42110 _ACEOF
42111 rm -f conftest.$ac_objext conftest$ac_exeext
42112 if { (ac_try="$ac_link"
42113 case "(($ac_try" in
42114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42115   *) ac_try_echo=$ac_try;;
42116 esac
42117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42118   (eval "$ac_link") 2>conftest.er1
42119   ac_status=$?
42120   grep -v '^ *+' conftest.er1 >conftest.err
42121   rm -f conftest.er1
42122   cat conftest.err >&5
42123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42124   (exit $ac_status); } && {
42125          test -z "$ac_c_werror_flag" ||
42126          test ! -s conftest.err
42127        } && test -s conftest$ac_exeext &&
42128        $as_test_x conftest$ac_exeext; then
42129   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42130 else
42131   echo "$as_me: failed program was:" >&5
42132 sed 's/^/| /' conftest.$ac_ext >&5
42133
42134         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42135 fi
42136
42137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42138       conftest$ac_exeext conftest.$ac_ext
42139 LIBS=$ac_check_lib_save_LIBS
42140 fi
42141 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42142 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42143 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42144
42145
42146 cat >>confdefs.h <<\_ACEOF
42147 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42148 _ACEOF
42149
42150
42151 cat >>confdefs.h <<\_ACEOF
42152 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42153 _ACEOF
42154
42155                 FDLIBS="-lutil $FDLIBS"
42156
42157
42158 fi
42159
42160       fi
42161    fi
42162
42163             if test $have_xattr = no; then
42164       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42165   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42166 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42167 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42168   echo $ECHO_N "(cached) $ECHO_C" >&6
42169 fi
42170 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42171 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42172 else
42173   # Is the header compilable?
42174 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42175 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42176 cat >conftest.$ac_ext <<_ACEOF
42177 /* confdefs.h.  */
42178 _ACEOF
42179 cat confdefs.h >>conftest.$ac_ext
42180 cat >>conftest.$ac_ext <<_ACEOF
42181 /* end confdefs.h.  */
42182 $ac_includes_default
42183 #include <sys/xattr.h>
42184 _ACEOF
42185 rm -f conftest.$ac_objext
42186 if { (ac_try="$ac_compile"
42187 case "(($ac_try" in
42188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42189   *) ac_try_echo=$ac_try;;
42190 esac
42191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42192   (eval "$ac_compile") 2>conftest.er1
42193   ac_status=$?
42194   grep -v '^ *+' conftest.er1 >conftest.err
42195   rm -f conftest.er1
42196   cat conftest.err >&5
42197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198   (exit $ac_status); } && {
42199          test -z "$ac_c_werror_flag" ||
42200          test ! -s conftest.err
42201        } && test -s conftest.$ac_objext; then
42202   ac_header_compiler=yes
42203 else
42204   echo "$as_me: failed program was:" >&5
42205 sed 's/^/| /' conftest.$ac_ext >&5
42206
42207         ac_header_compiler=no
42208 fi
42209
42210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42212 echo "${ECHO_T}$ac_header_compiler" >&6; }
42213
42214 # Is the header present?
42215 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42216 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42217 cat >conftest.$ac_ext <<_ACEOF
42218 /* confdefs.h.  */
42219 _ACEOF
42220 cat confdefs.h >>conftest.$ac_ext
42221 cat >>conftest.$ac_ext <<_ACEOF
42222 /* end confdefs.h.  */
42223 #include <sys/xattr.h>
42224 _ACEOF
42225 if { (ac_try="$ac_cpp conftest.$ac_ext"
42226 case "(($ac_try" in
42227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42228   *) ac_try_echo=$ac_try;;
42229 esac
42230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42232   ac_status=$?
42233   grep -v '^ *+' conftest.er1 >conftest.err
42234   rm -f conftest.er1
42235   cat conftest.err >&5
42236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42237   (exit $ac_status); } >/dev/null && {
42238          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42239          test ! -s conftest.err
42240        }; then
42241   ac_header_preproc=yes
42242 else
42243   echo "$as_me: failed program was:" >&5
42244 sed 's/^/| /' conftest.$ac_ext >&5
42245
42246   ac_header_preproc=no
42247 fi
42248
42249 rm -f conftest.err conftest.$ac_ext
42250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42251 echo "${ECHO_T}$ac_header_preproc" >&6; }
42252
42253 # So?  What about this header?
42254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42255   yes:no: )
42256     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42257 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42258     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42259 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42260     ac_header_preproc=yes
42261     ;;
42262   no:yes:* )
42263     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42264 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42265     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
42266 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
42267     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42268 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42269     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42270 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42271     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42272 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42273     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42274 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42275
42276     ;;
42277 esac
42278 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42279 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42280 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42281   echo $ECHO_N "(cached) $ECHO_C" >&6
42282 else
42283   ac_cv_header_sys_xattr_h=$ac_header_preproc
42284 fi
42285 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42286 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42287
42288 fi
42289 if test $ac_cv_header_sys_xattr_h = yes; then
42290
42291 cat >>confdefs.h <<\_ACEOF
42292 #define HAVE_SYS_XATTR_H 1
42293 _ACEOF
42294
42295 fi
42296
42297
42298
42299
42300
42301 for ac_func in llistxattr lgetxattr lsetxattr
42302 do
42303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42307   echo $ECHO_N "(cached) $ECHO_C" >&6
42308 else
42309   cat >conftest.$ac_ext <<_ACEOF
42310 /* confdefs.h.  */
42311 _ACEOF
42312 cat confdefs.h >>conftest.$ac_ext
42313 cat >>conftest.$ac_ext <<_ACEOF
42314 /* end confdefs.h.  */
42315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42317 #define $ac_func innocuous_$ac_func
42318
42319 /* System header to define __stub macros and hopefully few prototypes,
42320     which can conflict with char $ac_func (); below.
42321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42322     <limits.h> exists even on freestanding compilers.  */
42323
42324 #ifdef __STDC__
42325 # include <limits.h>
42326 #else
42327 # include <assert.h>
42328 #endif
42329
42330 #undef $ac_func
42331
42332 /* Override any GCC internal prototype to avoid an error.
42333    Use char because int might match the return type of a GCC
42334    builtin and then its argument prototype would still apply.  */
42335 #ifdef __cplusplus
42336 extern "C"
42337 #endif
42338 char $ac_func ();
42339 /* The GNU C library defines this for functions which it implements
42340     to always fail with ENOSYS.  Some functions are actually named
42341     something starting with __ and the normal name is an alias.  */
42342 #if defined __stub_$ac_func || defined __stub___$ac_func
42343 choke me
42344 #endif
42345
42346 int
42347 main ()
42348 {
42349 return $ac_func ();
42350   ;
42351   return 0;
42352 }
42353 _ACEOF
42354 rm -f conftest.$ac_objext conftest$ac_exeext
42355 if { (ac_try="$ac_link"
42356 case "(($ac_try" in
42357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42358   *) ac_try_echo=$ac_try;;
42359 esac
42360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42361   (eval "$ac_link") 2>conftest.er1
42362   ac_status=$?
42363   grep -v '^ *+' conftest.er1 >conftest.err
42364   rm -f conftest.er1
42365   cat conftest.err >&5
42366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367   (exit $ac_status); } && {
42368          test -z "$ac_c_werror_flag" ||
42369          test ! -s conftest.err
42370        } && test -s conftest$ac_exeext &&
42371        $as_test_x conftest$ac_exeext; then
42372   eval "$as_ac_var=yes"
42373 else
42374   echo "$as_me: failed program was:" >&5
42375 sed 's/^/| /' conftest.$ac_ext >&5
42376
42377         eval "$as_ac_var=no"
42378 fi
42379
42380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42381       conftest$ac_exeext conftest.$ac_ext
42382 fi
42383 ac_res=`eval echo '${'$as_ac_var'}'`
42384                { echo "$as_me:$LINENO: result: $ac_res" >&5
42385 echo "${ECHO_T}$ac_res" >&6; }
42386 if test `eval echo '${'$as_ac_var'}'` = yes; then
42387   cat >>confdefs.h <<_ACEOF
42388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42389 _ACEOF
42390
42391              have_xattr=yes
42392
42393 cat >>confdefs.h <<\_ACEOF
42394 #define HAVE_LLISTXATTR 1
42395 _ACEOF
42396
42397
42398 cat >>confdefs.h <<\_ACEOF
42399 #define HAVE_LGETXATTR 1
42400 _ACEOF
42401
42402
42403 cat >>confdefs.h <<\_ACEOF
42404 #define HAVE_LSETXATTR 1
42405 _ACEOF
42406
42407
42408
42409 fi
42410 done
42411
42412
42413       if test $have_xattr = no; then
42414
42415
42416
42417 for ac_func in listxattr getxattr setxattr
42418 do
42419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42423   echo $ECHO_N "(cached) $ECHO_C" >&6
42424 else
42425   cat >conftest.$ac_ext <<_ACEOF
42426 /* confdefs.h.  */
42427 _ACEOF
42428 cat confdefs.h >>conftest.$ac_ext
42429 cat >>conftest.$ac_ext <<_ACEOF
42430 /* end confdefs.h.  */
42431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42433 #define $ac_func innocuous_$ac_func
42434
42435 /* System header to define __stub macros and hopefully few prototypes,
42436     which can conflict with char $ac_func (); below.
42437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42438     <limits.h> exists even on freestanding compilers.  */
42439
42440 #ifdef __STDC__
42441 # include <limits.h>
42442 #else
42443 # include <assert.h>
42444 #endif
42445
42446 #undef $ac_func
42447
42448 /* Override any GCC internal prototype to avoid an error.
42449    Use char because int might match the return type of a GCC
42450    builtin and then its argument prototype would still apply.  */
42451 #ifdef __cplusplus
42452 extern "C"
42453 #endif
42454 char $ac_func ();
42455 /* The GNU C library defines this for functions which it implements
42456     to always fail with ENOSYS.  Some functions are actually named
42457     something starting with __ and the normal name is an alias.  */
42458 #if defined __stub_$ac_func || defined __stub___$ac_func
42459 choke me
42460 #endif
42461
42462 int
42463 main ()
42464 {
42465 return $ac_func ();
42466   ;
42467   return 0;
42468 }
42469 _ACEOF
42470 rm -f conftest.$ac_objext conftest$ac_exeext
42471 if { (ac_try="$ac_link"
42472 case "(($ac_try" in
42473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42474   *) ac_try_echo=$ac_try;;
42475 esac
42476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42477   (eval "$ac_link") 2>conftest.er1
42478   ac_status=$?
42479   grep -v '^ *+' conftest.er1 >conftest.err
42480   rm -f conftest.er1
42481   cat conftest.err >&5
42482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483   (exit $ac_status); } && {
42484          test -z "$ac_c_werror_flag" ||
42485          test ! -s conftest.err
42486        } && test -s conftest$ac_exeext &&
42487        $as_test_x conftest$ac_exeext; then
42488   eval "$as_ac_var=yes"
42489 else
42490   echo "$as_me: failed program was:" >&5
42491 sed 's/^/| /' conftest.$ac_ext >&5
42492
42493         eval "$as_ac_var=no"
42494 fi
42495
42496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42497       conftest$ac_exeext conftest.$ac_ext
42498 fi
42499 ac_res=`eval echo '${'$as_ac_var'}'`
42500                { echo "$as_me:$LINENO: result: $ac_res" >&5
42501 echo "${ECHO_T}$ac_res" >&6; }
42502 if test `eval echo '${'$as_ac_var'}'` = yes; then
42503   cat >>confdefs.h <<_ACEOF
42504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42505 _ACEOF
42506
42507                 have_xattr=yes
42508
42509 cat >>confdefs.h <<\_ACEOF
42510 #define HAVE_LISTXATTR 1
42511 _ACEOF
42512
42513
42514 cat >>confdefs.h <<\_ACEOF
42515 #define HAVE_GETXATTR 1
42516 _ACEOF
42517
42518
42519 cat >>confdefs.h <<\_ACEOF
42520 #define HAVE_SETXATTR 1
42521 _ACEOF
42522
42523
42524
42525 fi
42526 done
42527
42528       fi
42529    fi
42530
42531             if test $have_xattr = no; then
42532       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42533   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42534 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42535 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42536   echo $ECHO_N "(cached) $ECHO_C" >&6
42537 fi
42538 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42539 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42540 else
42541   # Is the header compilable?
42542 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42543 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42544 cat >conftest.$ac_ext <<_ACEOF
42545 /* confdefs.h.  */
42546 _ACEOF
42547 cat confdefs.h >>conftest.$ac_ext
42548 cat >>conftest.$ac_ext <<_ACEOF
42549 /* end confdefs.h.  */
42550 $ac_includes_default
42551 #include <sys/attr.h>
42552 _ACEOF
42553 rm -f conftest.$ac_objext
42554 if { (ac_try="$ac_compile"
42555 case "(($ac_try" in
42556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42557   *) ac_try_echo=$ac_try;;
42558 esac
42559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42560   (eval "$ac_compile") 2>conftest.er1
42561   ac_status=$?
42562   grep -v '^ *+' conftest.er1 >conftest.err
42563   rm -f conftest.er1
42564   cat conftest.err >&5
42565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42566   (exit $ac_status); } && {
42567          test -z "$ac_c_werror_flag" ||
42568          test ! -s conftest.err
42569        } && test -s conftest.$ac_objext; then
42570   ac_header_compiler=yes
42571 else
42572   echo "$as_me: failed program was:" >&5
42573 sed 's/^/| /' conftest.$ac_ext >&5
42574
42575         ac_header_compiler=no
42576 fi
42577
42578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42580 echo "${ECHO_T}$ac_header_compiler" >&6; }
42581
42582 # Is the header present?
42583 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42584 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42585 cat >conftest.$ac_ext <<_ACEOF
42586 /* confdefs.h.  */
42587 _ACEOF
42588 cat confdefs.h >>conftest.$ac_ext
42589 cat >>conftest.$ac_ext <<_ACEOF
42590 /* end confdefs.h.  */
42591 #include <sys/attr.h>
42592 _ACEOF
42593 if { (ac_try="$ac_cpp conftest.$ac_ext"
42594 case "(($ac_try" in
42595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42596   *) ac_try_echo=$ac_try;;
42597 esac
42598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42600   ac_status=$?
42601   grep -v '^ *+' conftest.er1 >conftest.err
42602   rm -f conftest.er1
42603   cat conftest.err >&5
42604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42605   (exit $ac_status); } >/dev/null && {
42606          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42607          test ! -s conftest.err
42608        }; then
42609   ac_header_preproc=yes
42610 else
42611   echo "$as_me: failed program was:" >&5
42612 sed 's/^/| /' conftest.$ac_ext >&5
42613
42614   ac_header_preproc=no
42615 fi
42616
42617 rm -f conftest.err conftest.$ac_ext
42618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42619 echo "${ECHO_T}$ac_header_preproc" >&6; }
42620
42621 # So?  What about this header?
42622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42623   yes:no: )
42624     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42625 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42626     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42627 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42628     ac_header_preproc=yes
42629     ;;
42630   no:yes:* )
42631     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42632 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42633     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42634 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42635     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42636 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42637     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42638 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42639     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42640 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42641     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42642 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42643
42644     ;;
42645 esac
42646 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42647 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42648 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42649   echo $ECHO_N "(cached) $ECHO_C" >&6
42650 else
42651   ac_cv_header_sys_attr_h=$ac_header_preproc
42652 fi
42653 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42654 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42655
42656 fi
42657 if test $ac_cv_header_sys_attr_h = yes; then
42658
42659 cat >>confdefs.h <<\_ACEOF
42660 #define HAVE_SYS_ATTR_H 1
42661 _ACEOF
42662
42663 fi
42664
42665
42666       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42667   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42668 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42669 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42670   echo $ECHO_N "(cached) $ECHO_C" >&6
42671 fi
42672 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42673 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42674 else
42675   # Is the header compilable?
42676 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42677 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42678 cat >conftest.$ac_ext <<_ACEOF
42679 /* confdefs.h.  */
42680 _ACEOF
42681 cat confdefs.h >>conftest.$ac_ext
42682 cat >>conftest.$ac_ext <<_ACEOF
42683 /* end confdefs.h.  */
42684 $ac_includes_default
42685 #include <sys/nvpair.h>
42686 _ACEOF
42687 rm -f conftest.$ac_objext
42688 if { (ac_try="$ac_compile"
42689 case "(($ac_try" in
42690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42691   *) ac_try_echo=$ac_try;;
42692 esac
42693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42694   (eval "$ac_compile") 2>conftest.er1
42695   ac_status=$?
42696   grep -v '^ *+' conftest.er1 >conftest.err
42697   rm -f conftest.er1
42698   cat conftest.err >&5
42699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42700   (exit $ac_status); } && {
42701          test -z "$ac_c_werror_flag" ||
42702          test ! -s conftest.err
42703        } && test -s conftest.$ac_objext; then
42704   ac_header_compiler=yes
42705 else
42706   echo "$as_me: failed program was:" >&5
42707 sed 's/^/| /' conftest.$ac_ext >&5
42708
42709         ac_header_compiler=no
42710 fi
42711
42712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42714 echo "${ECHO_T}$ac_header_compiler" >&6; }
42715
42716 # Is the header present?
42717 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42718 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42719 cat >conftest.$ac_ext <<_ACEOF
42720 /* confdefs.h.  */
42721 _ACEOF
42722 cat confdefs.h >>conftest.$ac_ext
42723 cat >>conftest.$ac_ext <<_ACEOF
42724 /* end confdefs.h.  */
42725 #include <sys/nvpair.h>
42726 _ACEOF
42727 if { (ac_try="$ac_cpp conftest.$ac_ext"
42728 case "(($ac_try" in
42729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42730   *) ac_try_echo=$ac_try;;
42731 esac
42732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42734   ac_status=$?
42735   grep -v '^ *+' conftest.er1 >conftest.err
42736   rm -f conftest.er1
42737   cat conftest.err >&5
42738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739   (exit $ac_status); } >/dev/null && {
42740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42741          test ! -s conftest.err
42742        }; then
42743   ac_header_preproc=yes
42744 else
42745   echo "$as_me: failed program was:" >&5
42746 sed 's/^/| /' conftest.$ac_ext >&5
42747
42748   ac_header_preproc=no
42749 fi
42750
42751 rm -f conftest.err conftest.$ac_ext
42752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42753 echo "${ECHO_T}$ac_header_preproc" >&6; }
42754
42755 # So?  What about this header?
42756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42757   yes:no: )
42758     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42759 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42760     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42761 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42762     ac_header_preproc=yes
42763     ;;
42764   no:yes:* )
42765     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42766 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42767     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42768 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42769     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42770 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42771     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42772 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42773     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42774 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42775     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42776 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42777
42778     ;;
42779 esac
42780 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42781 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42782 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42783   echo $ECHO_N "(cached) $ECHO_C" >&6
42784 else
42785   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42786 fi
42787 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42788 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42789
42790 fi
42791 if test $ac_cv_header_sys_nvpair_h = yes; then
42792
42793 cat >>confdefs.h <<\_ACEOF
42794 #define HAVE_SYS_NVPAIR_H 1
42795 _ACEOF
42796
42797 fi
42798
42799
42800       if test "${ac_cv_header_attr_h+set}" = set; then
42801   { echo "$as_me:$LINENO: checking for attr.h" >&5
42802 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42803 if test "${ac_cv_header_attr_h+set}" = set; then
42804   echo $ECHO_N "(cached) $ECHO_C" >&6
42805 fi
42806 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42807 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42808 else
42809   # Is the header compilable?
42810 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42811 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42812 cat >conftest.$ac_ext <<_ACEOF
42813 /* confdefs.h.  */
42814 _ACEOF
42815 cat confdefs.h >>conftest.$ac_ext
42816 cat >>conftest.$ac_ext <<_ACEOF
42817 /* end confdefs.h.  */
42818 $ac_includes_default
42819 #include <attr.h>
42820 _ACEOF
42821 rm -f conftest.$ac_objext
42822 if { (ac_try="$ac_compile"
42823 case "(($ac_try" in
42824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42825   *) ac_try_echo=$ac_try;;
42826 esac
42827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42828   (eval "$ac_compile") 2>conftest.er1
42829   ac_status=$?
42830   grep -v '^ *+' conftest.er1 >conftest.err
42831   rm -f conftest.er1
42832   cat conftest.err >&5
42833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42834   (exit $ac_status); } && {
42835          test -z "$ac_c_werror_flag" ||
42836          test ! -s conftest.err
42837        } && test -s conftest.$ac_objext; then
42838   ac_header_compiler=yes
42839 else
42840   echo "$as_me: failed program was:" >&5
42841 sed 's/^/| /' conftest.$ac_ext >&5
42842
42843         ac_header_compiler=no
42844 fi
42845
42846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42848 echo "${ECHO_T}$ac_header_compiler" >&6; }
42849
42850 # Is the header present?
42851 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42852 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42853 cat >conftest.$ac_ext <<_ACEOF
42854 /* confdefs.h.  */
42855 _ACEOF
42856 cat confdefs.h >>conftest.$ac_ext
42857 cat >>conftest.$ac_ext <<_ACEOF
42858 /* end confdefs.h.  */
42859 #include <attr.h>
42860 _ACEOF
42861 if { (ac_try="$ac_cpp conftest.$ac_ext"
42862 case "(($ac_try" in
42863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42864   *) ac_try_echo=$ac_try;;
42865 esac
42866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42868   ac_status=$?
42869   grep -v '^ *+' conftest.er1 >conftest.err
42870   rm -f conftest.er1
42871   cat conftest.err >&5
42872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42873   (exit $ac_status); } >/dev/null && {
42874          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42875          test ! -s conftest.err
42876        }; then
42877   ac_header_preproc=yes
42878 else
42879   echo "$as_me: failed program was:" >&5
42880 sed 's/^/| /' conftest.$ac_ext >&5
42881
42882   ac_header_preproc=no
42883 fi
42884
42885 rm -f conftest.err conftest.$ac_ext
42886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42887 echo "${ECHO_T}$ac_header_preproc" >&6; }
42888
42889 # So?  What about this header?
42890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42891   yes:no: )
42892     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42893 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42894     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42895 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42896     ac_header_preproc=yes
42897     ;;
42898   no:yes:* )
42899     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42900 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42901     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
42902 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
42903     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42904 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42905     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42906 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42907     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42908 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42909     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42910 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42911
42912     ;;
42913 esac
42914 { echo "$as_me:$LINENO: checking for attr.h" >&5
42915 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42916 if test "${ac_cv_header_attr_h+set}" = set; then
42917   echo $ECHO_N "(cached) $ECHO_C" >&6
42918 else
42919   ac_cv_header_attr_h=$ac_header_preproc
42920 fi
42921 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42922 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42923
42924 fi
42925 if test $ac_cv_header_attr_h = yes; then
42926
42927 cat >>confdefs.h <<\_ACEOF
42928 #define HAVE_ATTR_H 1
42929 _ACEOF
42930
42931 fi
42932
42933
42934
42935
42936
42937
42938
42939
42940 for ac_func in openat fstatat unlinkat fchownat futimesat
42941 do
42942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42946   echo $ECHO_N "(cached) $ECHO_C" >&6
42947 else
42948   cat >conftest.$ac_ext <<_ACEOF
42949 /* confdefs.h.  */
42950 _ACEOF
42951 cat confdefs.h >>conftest.$ac_ext
42952 cat >>conftest.$ac_ext <<_ACEOF
42953 /* end confdefs.h.  */
42954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42956 #define $ac_func innocuous_$ac_func
42957
42958 /* System header to define __stub macros and hopefully few prototypes,
42959     which can conflict with char $ac_func (); below.
42960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42961     <limits.h> exists even on freestanding compilers.  */
42962
42963 #ifdef __STDC__
42964 # include <limits.h>
42965 #else
42966 # include <assert.h>
42967 #endif
42968
42969 #undef $ac_func
42970
42971 /* Override any GCC internal prototype to avoid an error.
42972    Use char because int might match the return type of a GCC
42973    builtin and then its argument prototype would still apply.  */
42974 #ifdef __cplusplus
42975 extern "C"
42976 #endif
42977 char $ac_func ();
42978 /* The GNU C library defines this for functions which it implements
42979     to always fail with ENOSYS.  Some functions are actually named
42980     something starting with __ and the normal name is an alias.  */
42981 #if defined __stub_$ac_func || defined __stub___$ac_func
42982 choke me
42983 #endif
42984
42985 int
42986 main ()
42987 {
42988 return $ac_func ();
42989   ;
42990   return 0;
42991 }
42992 _ACEOF
42993 rm -f conftest.$ac_objext conftest$ac_exeext
42994 if { (ac_try="$ac_link"
42995 case "(($ac_try" in
42996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42997   *) ac_try_echo=$ac_try;;
42998 esac
42999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43000   (eval "$ac_link") 2>conftest.er1
43001   ac_status=$?
43002   grep -v '^ *+' conftest.er1 >conftest.err
43003   rm -f conftest.er1
43004   cat conftest.err >&5
43005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43006   (exit $ac_status); } && {
43007          test -z "$ac_c_werror_flag" ||
43008          test ! -s conftest.err
43009        } && test -s conftest$ac_exeext &&
43010        $as_test_x conftest$ac_exeext; then
43011   eval "$as_ac_var=yes"
43012 else
43013   echo "$as_me: failed program was:" >&5
43014 sed 's/^/| /' conftest.$ac_ext >&5
43015
43016         eval "$as_ac_var=no"
43017 fi
43018
43019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43020       conftest$ac_exeext conftest.$ac_ext
43021 fi
43022 ac_res=`eval echo '${'$as_ac_var'}'`
43023                { echo "$as_me:$LINENO: result: $ac_res" >&5
43024 echo "${ECHO_T}$ac_res" >&6; }
43025 if test `eval echo '${'$as_ac_var'}'` = yes; then
43026   cat >>confdefs.h <<_ACEOF
43027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43028 _ACEOF
43029
43030              have_xattr=yes
43031
43032 cat >>confdefs.h <<\_ACEOF
43033 #define HAVE_OPENAT 1
43034 _ACEOF
43035
43036
43037 cat >>confdefs.h <<\_ACEOF
43038 #define HAVE_FSTATAT 1
43039 _ACEOF
43040
43041
43042 cat >>confdefs.h <<\_ACEOF
43043 #define HAVE_UNLINKAT 1
43044 _ACEOF
43045
43046
43047 cat >>confdefs.h <<\_ACEOF
43048 #define HAVE_FCHOWNAT 1
43049 _ACEOF
43050
43051
43052 cat >>confdefs.h <<\_ACEOF
43053 #define HAVE_FUTIMESAT 1
43054 _ACEOF
43055
43056
43057
43058 fi
43059 done
43060
43061
43062       if test $have_xattr = yes; then
43063          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43064 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43065 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43066   echo $ECHO_N "(cached) $ECHO_C" >&6
43067 else
43068   ac_check_lib_save_LIBS=$LIBS
43069 LIBS="-lnvpair  $LIBS"
43070 cat >conftest.$ac_ext <<_ACEOF
43071 /* confdefs.h.  */
43072 _ACEOF
43073 cat confdefs.h >>conftest.$ac_ext
43074 cat >>conftest.$ac_ext <<_ACEOF
43075 /* end confdefs.h.  */
43076
43077 /* Override any GCC internal prototype to avoid an error.
43078    Use char because int might match the return type of a GCC
43079    builtin and then its argument prototype would still apply.  */
43080 #ifdef __cplusplus
43081 extern "C"
43082 #endif
43083 char nvlist_next_nvpair ();
43084 int
43085 main ()
43086 {
43087 return nvlist_next_nvpair ();
43088   ;
43089   return 0;
43090 }
43091 _ACEOF
43092 rm -f conftest.$ac_objext conftest$ac_exeext
43093 if { (ac_try="$ac_link"
43094 case "(($ac_try" in
43095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43096   *) ac_try_echo=$ac_try;;
43097 esac
43098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43099   (eval "$ac_link") 2>conftest.er1
43100   ac_status=$?
43101   grep -v '^ *+' conftest.er1 >conftest.err
43102   rm -f conftest.er1
43103   cat conftest.err >&5
43104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105   (exit $ac_status); } && {
43106          test -z "$ac_c_werror_flag" ||
43107          test ! -s conftest.err
43108        } && test -s conftest$ac_exeext &&
43109        $as_test_x conftest$ac_exeext; then
43110   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43111 else
43112   echo "$as_me: failed program was:" >&5
43113 sed 's/^/| /' conftest.$ac_ext >&5
43114
43115         ac_cv_lib_nvpair_nvlist_next_nvpair=no
43116 fi
43117
43118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43119       conftest$ac_exeext conftest.$ac_ext
43120 LIBS=$ac_check_lib_save_LIBS
43121 fi
43122 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43123 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43124 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43125
43126
43127 cat >>confdefs.h <<\_ACEOF
43128 #define HAVE_NVLIST_NEXT_NVPAIR 1
43129 _ACEOF
43130
43131                 FDLIBS="-lnvpair $FDLIBS"
43132
43133
43134 fi
43135
43136       fi
43137    fi
43138
43139    if test x$support_xattr = xyes -a $have_xattr != yes; then
43140       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43141   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43142 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43143   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43144    { (exit 1); exit 1; }; }
43145    else
43146       if test $have_xattr = yes; then
43147
43148 cat >>confdefs.h <<\_ACEOF
43149 #define HAVE_XATTR 1
43150 _ACEOF
43151
43152       fi
43153    fi
43154 fi
43155
43156 PTHREAD_LIB=""
43157 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43158 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43159 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43160   echo $ECHO_N "(cached) $ECHO_C" >&6
43161 else
43162   ac_check_lib_save_LIBS=$LIBS
43163 LIBS="-lpthread  $LIBS"
43164 cat >conftest.$ac_ext <<_ACEOF
43165 /* confdefs.h.  */
43166 _ACEOF
43167 cat confdefs.h >>conftest.$ac_ext
43168 cat >>conftest.$ac_ext <<_ACEOF
43169 /* end confdefs.h.  */
43170
43171 /* Override any GCC internal prototype to avoid an error.
43172    Use char because int might match the return type of a GCC
43173    builtin and then its argument prototype would still apply.  */
43174 #ifdef __cplusplus
43175 extern "C"
43176 #endif
43177 char pthread_create ();
43178 int
43179 main ()
43180 {
43181 return pthread_create ();
43182   ;
43183   return 0;
43184 }
43185 _ACEOF
43186 rm -f conftest.$ac_objext conftest$ac_exeext
43187 if { (ac_try="$ac_link"
43188 case "(($ac_try" in
43189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43190   *) ac_try_echo=$ac_try;;
43191 esac
43192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43193   (eval "$ac_link") 2>conftest.er1
43194   ac_status=$?
43195   grep -v '^ *+' conftest.er1 >conftest.err
43196   rm -f conftest.er1
43197   cat conftest.err >&5
43198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43199   (exit $ac_status); } && {
43200          test -z "$ac_c_werror_flag" ||
43201          test ! -s conftest.err
43202        } && test -s conftest$ac_exeext &&
43203        $as_test_x conftest$ac_exeext; then
43204   ac_cv_lib_pthread_pthread_create=yes
43205 else
43206   echo "$as_me: failed program was:" >&5
43207 sed 's/^/| /' conftest.$ac_ext >&5
43208
43209         ac_cv_lib_pthread_pthread_create=no
43210 fi
43211
43212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43213       conftest$ac_exeext conftest.$ac_ext
43214 LIBS=$ac_check_lib_save_LIBS
43215 fi
43216 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43217 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43218 if test $ac_cv_lib_pthread_pthread_create = yes; then
43219   PTHREAD_LIB="-lpthread"
43220 else
43221
43222        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43223 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43224 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43225   echo $ECHO_N "(cached) $ECHO_C" >&6
43226 else
43227   ac_check_lib_save_LIBS=$LIBS
43228 LIBS="-lpthreads  $LIBS"
43229 cat >conftest.$ac_ext <<_ACEOF
43230 /* confdefs.h.  */
43231 _ACEOF
43232 cat confdefs.h >>conftest.$ac_ext
43233 cat >>conftest.$ac_ext <<_ACEOF
43234 /* end confdefs.h.  */
43235
43236 /* Override any GCC internal prototype to avoid an error.
43237    Use char because int might match the return type of a GCC
43238    builtin and then its argument prototype would still apply.  */
43239 #ifdef __cplusplus
43240 extern "C"
43241 #endif
43242 char pthread_create ();
43243 int
43244 main ()
43245 {
43246 return pthread_create ();
43247   ;
43248   return 0;
43249 }
43250 _ACEOF
43251 rm -f conftest.$ac_objext conftest$ac_exeext
43252 if { (ac_try="$ac_link"
43253 case "(($ac_try" in
43254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43255   *) ac_try_echo=$ac_try;;
43256 esac
43257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43258   (eval "$ac_link") 2>conftest.er1
43259   ac_status=$?
43260   grep -v '^ *+' conftest.er1 >conftest.err
43261   rm -f conftest.er1
43262   cat conftest.err >&5
43263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264   (exit $ac_status); } && {
43265          test -z "$ac_c_werror_flag" ||
43266          test ! -s conftest.err
43267        } && test -s conftest$ac_exeext &&
43268        $as_test_x conftest$ac_exeext; then
43269   ac_cv_lib_pthreads_pthread_create=yes
43270 else
43271   echo "$as_me: failed program was:" >&5
43272 sed 's/^/| /' conftest.$ac_ext >&5
43273
43274         ac_cv_lib_pthreads_pthread_create=no
43275 fi
43276
43277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43278       conftest$ac_exeext conftest.$ac_ext
43279 LIBS=$ac_check_lib_save_LIBS
43280 fi
43281 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43282 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43283 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43284   PTHREAD_LIB="-lpthreads"
43285 else
43286
43287               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43288 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43289 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43290   echo $ECHO_N "(cached) $ECHO_C" >&6
43291 else
43292   ac_check_lib_save_LIBS=$LIBS
43293 LIBS="-lc_r  $LIBS"
43294 cat >conftest.$ac_ext <<_ACEOF
43295 /* confdefs.h.  */
43296 _ACEOF
43297 cat confdefs.h >>conftest.$ac_ext
43298 cat >>conftest.$ac_ext <<_ACEOF
43299 /* end confdefs.h.  */
43300
43301 /* Override any GCC internal prototype to avoid an error.
43302    Use char because int might match the return type of a GCC
43303    builtin and then its argument prototype would still apply.  */
43304 #ifdef __cplusplus
43305 extern "C"
43306 #endif
43307 char pthread_create ();
43308 int
43309 main ()
43310 {
43311 return pthread_create ();
43312   ;
43313   return 0;
43314 }
43315 _ACEOF
43316 rm -f conftest.$ac_objext conftest$ac_exeext
43317 if { (ac_try="$ac_link"
43318 case "(($ac_try" in
43319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43320   *) ac_try_echo=$ac_try;;
43321 esac
43322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43323   (eval "$ac_link") 2>conftest.er1
43324   ac_status=$?
43325   grep -v '^ *+' conftest.er1 >conftest.err
43326   rm -f conftest.er1
43327   cat conftest.err >&5
43328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43329   (exit $ac_status); } && {
43330          test -z "$ac_c_werror_flag" ||
43331          test ! -s conftest.err
43332        } && test -s conftest$ac_exeext &&
43333        $as_test_x conftest$ac_exeext; then
43334   ac_cv_lib_c_r_pthread_create=yes
43335 else
43336   echo "$as_me: failed program was:" >&5
43337 sed 's/^/| /' conftest.$ac_ext >&5
43338
43339         ac_cv_lib_c_r_pthread_create=no
43340 fi
43341
43342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43343       conftest$ac_exeext conftest.$ac_ext
43344 LIBS=$ac_check_lib_save_LIBS
43345 fi
43346 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43347 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43348 if test $ac_cv_lib_c_r_pthread_create = yes; then
43349   PTHREAD_LIB="-lc_r"
43350 else
43351
43352                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43353 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43354 if test "${ac_cv_func_pthread_create+set}" = set; then
43355   echo $ECHO_N "(cached) $ECHO_C" >&6
43356 else
43357   cat >conftest.$ac_ext <<_ACEOF
43358 /* confdefs.h.  */
43359 _ACEOF
43360 cat confdefs.h >>conftest.$ac_ext
43361 cat >>conftest.$ac_ext <<_ACEOF
43362 /* end confdefs.h.  */
43363 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43365 #define pthread_create innocuous_pthread_create
43366
43367 /* System header to define __stub macros and hopefully few prototypes,
43368     which can conflict with char pthread_create (); below.
43369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43370     <limits.h> exists even on freestanding compilers.  */
43371
43372 #ifdef __STDC__
43373 # include <limits.h>
43374 #else
43375 # include <assert.h>
43376 #endif
43377
43378 #undef pthread_create
43379
43380 /* Override any GCC internal prototype to avoid an error.
43381    Use char because int might match the return type of a GCC
43382    builtin and then its argument prototype would still apply.  */
43383 #ifdef __cplusplus
43384 extern "C"
43385 #endif
43386 char pthread_create ();
43387 /* The GNU C library defines this for functions which it implements
43388     to always fail with ENOSYS.  Some functions are actually named
43389     something starting with __ and the normal name is an alias.  */
43390 #if defined __stub_pthread_create || defined __stub___pthread_create
43391 choke me
43392 #endif
43393
43394 int
43395 main ()
43396 {
43397 return pthread_create ();
43398   ;
43399   return 0;
43400 }
43401 _ACEOF
43402 rm -f conftest.$ac_objext conftest$ac_exeext
43403 if { (ac_try="$ac_link"
43404 case "(($ac_try" in
43405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43406   *) ac_try_echo=$ac_try;;
43407 esac
43408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43409   (eval "$ac_link") 2>conftest.er1
43410   ac_status=$?
43411   grep -v '^ *+' conftest.er1 >conftest.err
43412   rm -f conftest.er1
43413   cat conftest.err >&5
43414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43415   (exit $ac_status); } && {
43416          test -z "$ac_c_werror_flag" ||
43417          test ! -s conftest.err
43418        } && test -s conftest$ac_exeext &&
43419        $as_test_x conftest$ac_exeext; then
43420   ac_cv_func_pthread_create=yes
43421 else
43422   echo "$as_me: failed program was:" >&5
43423 sed 's/^/| /' conftest.$ac_ext >&5
43424
43425         ac_cv_func_pthread_create=no
43426 fi
43427
43428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43429       conftest$ac_exeext conftest.$ac_ext
43430 fi
43431 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43432 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43433
43434
43435
43436 fi
43437
43438
43439
43440 fi
43441
43442
43443
43444 fi
43445
43446
43447
43448
43449 for ac_header in sys/prctl.h sys/capability.h
43450 do
43451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43453   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43456   echo $ECHO_N "(cached) $ECHO_C" >&6
43457 fi
43458 ac_res=`eval echo '${'$as_ac_Header'}'`
43459                { echo "$as_me:$LINENO: result: $ac_res" >&5
43460 echo "${ECHO_T}$ac_res" >&6; }
43461 else
43462   # Is the header compilable?
43463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43465 cat >conftest.$ac_ext <<_ACEOF
43466 /* confdefs.h.  */
43467 _ACEOF
43468 cat confdefs.h >>conftest.$ac_ext
43469 cat >>conftest.$ac_ext <<_ACEOF
43470 /* end confdefs.h.  */
43471 $ac_includes_default
43472 #include <$ac_header>
43473 _ACEOF
43474 rm -f conftest.$ac_objext
43475 if { (ac_try="$ac_compile"
43476 case "(($ac_try" in
43477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43478   *) ac_try_echo=$ac_try;;
43479 esac
43480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43481   (eval "$ac_compile") 2>conftest.er1
43482   ac_status=$?
43483   grep -v '^ *+' conftest.er1 >conftest.err
43484   rm -f conftest.er1
43485   cat conftest.err >&5
43486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43487   (exit $ac_status); } && {
43488          test -z "$ac_c_werror_flag" ||
43489          test ! -s conftest.err
43490        } && test -s conftest.$ac_objext; then
43491   ac_header_compiler=yes
43492 else
43493   echo "$as_me: failed program was:" >&5
43494 sed 's/^/| /' conftest.$ac_ext >&5
43495
43496         ac_header_compiler=no
43497 fi
43498
43499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43501 echo "${ECHO_T}$ac_header_compiler" >&6; }
43502
43503 # Is the header present?
43504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43506 cat >conftest.$ac_ext <<_ACEOF
43507 /* confdefs.h.  */
43508 _ACEOF
43509 cat confdefs.h >>conftest.$ac_ext
43510 cat >>conftest.$ac_ext <<_ACEOF
43511 /* end confdefs.h.  */
43512 #include <$ac_header>
43513 _ACEOF
43514 if { (ac_try="$ac_cpp conftest.$ac_ext"
43515 case "(($ac_try" in
43516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43517   *) ac_try_echo=$ac_try;;
43518 esac
43519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43521   ac_status=$?
43522   grep -v '^ *+' conftest.er1 >conftest.err
43523   rm -f conftest.er1
43524   cat conftest.err >&5
43525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526   (exit $ac_status); } >/dev/null && {
43527          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43528          test ! -s conftest.err
43529        }; then
43530   ac_header_preproc=yes
43531 else
43532   echo "$as_me: failed program was:" >&5
43533 sed 's/^/| /' conftest.$ac_ext >&5
43534
43535   ac_header_preproc=no
43536 fi
43537
43538 rm -f conftest.err conftest.$ac_ext
43539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43540 echo "${ECHO_T}$ac_header_preproc" >&6; }
43541
43542 # So?  What about this header?
43543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43544   yes:no: )
43545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43549     ac_header_preproc=yes
43550     ;;
43551   no:yes:* )
43552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43554     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43555 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43556     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43558     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43559 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43562     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43564
43565     ;;
43566 esac
43567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43570   echo $ECHO_N "(cached) $ECHO_C" >&6
43571 else
43572   eval "$as_ac_Header=\$ac_header_preproc"
43573 fi
43574 ac_res=`eval echo '${'$as_ac_Header'}'`
43575                { echo "$as_me:$LINENO: result: $ac_res" >&5
43576 echo "${ECHO_T}$ac_res" >&6; }
43577
43578 fi
43579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43580   cat >>confdefs.h <<_ACEOF
43581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43582 _ACEOF
43583
43584 fi
43585
43586 done
43587
43588
43589
43590 for ac_func in prctl setreuid
43591 do
43592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43596   echo $ECHO_N "(cached) $ECHO_C" >&6
43597 else
43598   cat >conftest.$ac_ext <<_ACEOF
43599 /* confdefs.h.  */
43600 _ACEOF
43601 cat confdefs.h >>conftest.$ac_ext
43602 cat >>conftest.$ac_ext <<_ACEOF
43603 /* end confdefs.h.  */
43604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43606 #define $ac_func innocuous_$ac_func
43607
43608 /* System header to define __stub macros and hopefully few prototypes,
43609     which can conflict with char $ac_func (); below.
43610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43611     <limits.h> exists even on freestanding compilers.  */
43612
43613 #ifdef __STDC__
43614 # include <limits.h>
43615 #else
43616 # include <assert.h>
43617 #endif
43618
43619 #undef $ac_func
43620
43621 /* Override any GCC internal prototype to avoid an error.
43622    Use char because int might match the return type of a GCC
43623    builtin and then its argument prototype would still apply.  */
43624 #ifdef __cplusplus
43625 extern "C"
43626 #endif
43627 char $ac_func ();
43628 /* The GNU C library defines this for functions which it implements
43629     to always fail with ENOSYS.  Some functions are actually named
43630     something starting with __ and the normal name is an alias.  */
43631 #if defined __stub_$ac_func || defined __stub___$ac_func
43632 choke me
43633 #endif
43634
43635 int
43636 main ()
43637 {
43638 return $ac_func ();
43639   ;
43640   return 0;
43641 }
43642 _ACEOF
43643 rm -f conftest.$ac_objext conftest$ac_exeext
43644 if { (ac_try="$ac_link"
43645 case "(($ac_try" in
43646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43647   *) ac_try_echo=$ac_try;;
43648 esac
43649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43650   (eval "$ac_link") 2>conftest.er1
43651   ac_status=$?
43652   grep -v '^ *+' conftest.er1 >conftest.err
43653   rm -f conftest.er1
43654   cat conftest.err >&5
43655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43656   (exit $ac_status); } && {
43657          test -z "$ac_c_werror_flag" ||
43658          test ! -s conftest.err
43659        } && test -s conftest$ac_exeext &&
43660        $as_test_x conftest$ac_exeext; then
43661   eval "$as_ac_var=yes"
43662 else
43663   echo "$as_me: failed program was:" >&5
43664 sed 's/^/| /' conftest.$ac_ext >&5
43665
43666         eval "$as_ac_var=no"
43667 fi
43668
43669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43670       conftest$ac_exeext conftest.$ac_ext
43671 fi
43672 ac_res=`eval echo '${'$as_ac_var'}'`
43673                { echo "$as_me:$LINENO: result: $ac_res" >&5
43674 echo "${ECHO_T}$ac_res" >&6; }
43675 if test `eval echo '${'$as_ac_var'}'` = yes; then
43676   cat >>confdefs.h <<_ACEOF
43677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43678 _ACEOF
43679
43680 fi
43681 done
43682
43683 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43684 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43685 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43686   echo $ECHO_N "(cached) $ECHO_C" >&6
43687 else
43688   ac_check_lib_save_LIBS=$LIBS
43689 LIBS="-lcap  $LIBS"
43690 cat >conftest.$ac_ext <<_ACEOF
43691 /* confdefs.h.  */
43692 _ACEOF
43693 cat confdefs.h >>conftest.$ac_ext
43694 cat >>conftest.$ac_ext <<_ACEOF
43695 /* end confdefs.h.  */
43696
43697 /* Override any GCC internal prototype to avoid an error.
43698    Use char because int might match the return type of a GCC
43699    builtin and then its argument prototype would still apply.  */
43700 #ifdef __cplusplus
43701 extern "C"
43702 #endif
43703 char cap_set_proc ();
43704 int
43705 main ()
43706 {
43707 return cap_set_proc ();
43708   ;
43709   return 0;
43710 }
43711 _ACEOF
43712 rm -f conftest.$ac_objext conftest$ac_exeext
43713 if { (ac_try="$ac_link"
43714 case "(($ac_try" in
43715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43716   *) ac_try_echo=$ac_try;;
43717 esac
43718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43719   (eval "$ac_link") 2>conftest.er1
43720   ac_status=$?
43721   grep -v '^ *+' conftest.er1 >conftest.err
43722   rm -f conftest.er1
43723   cat conftest.err >&5
43724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43725   (exit $ac_status); } && {
43726          test -z "$ac_c_werror_flag" ||
43727          test ! -s conftest.err
43728        } && test -s conftest$ac_exeext &&
43729        $as_test_x conftest$ac_exeext; then
43730   ac_cv_lib_cap_cap_set_proc=yes
43731 else
43732   echo "$as_me: failed program was:" >&5
43733 sed 's/^/| /' conftest.$ac_ext >&5
43734
43735         ac_cv_lib_cap_cap_set_proc=no
43736 fi
43737
43738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43739       conftest$ac_exeext conftest.$ac_ext
43740 LIBS=$ac_check_lib_save_LIBS
43741 fi
43742 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43743 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43744 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43745   CAP_LIBS="-lcap"
43746 else
43747   CAP_LIBS=
43748 fi
43749
43750 if test x$CAP_LIBS = x-lcap; then
43751
43752 cat >>confdefs.h <<\_ACEOF
43753 #define HAVE_LIBCAP 1
43754 _ACEOF
43755
43756 fi
43757
43758
43759
43760 cat >>confdefs.h <<\_ACEOF
43761 #define FDLIBS 1
43762 _ACEOF
43763
43764
43765 CFLAGS=${CFLAGS--O}
43766
43767 if test x$have_gcc = xyes ; then
43768    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43769    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43770 fi
43771 LDFLAGS=${LDFLAGS--O}
43772 DB_LIBS="${SQL_LFLAGS}"
43773 CPPFLAGS="$CPPFLAGS"
43774 CFLAGS="$CFLAGS"
43775
43776
43777
43778
43779
43780
43781
43782
43783
43784
43785
43786
43787
43788
43789
43790
43791 OBJLIST=
43792
43793
43794 lld="lld"
43795 llu="llu"
43796
43797 WCFLAGS=
43798 WLDFLAGS=
43799
43800 PFILES="platforms/Makefile"
43801 PSCMD="ps -e"
43802 WIN32=
43803 MACOSX=
43804
43805 hostname=`uname -n | cut -d '.' -f 1`
43806 if test x${hostname} = x ; then
43807    hostname="localhost"
43808 fi
43809 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43810 if test ! $? = 0; then
43811   hostname="localhost"
43812 fi
43813
43814 case "$DISTNAME" in
43815 aix)
43816    DISTVER=`uname -r`
43817    PSCMD="ps -e -o pid,comm"
43818    PFILES="${PFILES} \
43819       platforms/aix/Makefile"
43820    TAPEDRIVE="/dev/rmt0.1"
43821   ;;
43822 alpha)
43823    DISTVER=`uname -r`
43824    PTHREAD_LIB="-lpthread -lexc"
43825    if test "${CC}" = "gcc" ; then
43826       lld="lld"
43827       llu="llu"
43828    else
43829       lld="ld"
43830       llu="lu"
43831    fi
43832    TAPEDRIVE="/dev/nrmt0"
43833   ;;
43834 bsdi)
43835    DISTVER=`uname -a |awk '{print $3}'`
43836    TAPEDRIVE="/dev/nrmt0"
43837    PTHREAD_LIB="-pthread"
43838    CFLAGS="${CFLAGS} -pthread"
43839    PSCMD="ps -ax -o pid,command"
43840    lld="qd"
43841    llu="qu"
43842    PFILES="${PFILES} \
43843        platforms/bsdi/Makefile \
43844        platforms/bsdi/bacula-fd \
43845        platforms/bsdi/bacula-sd \
43846        platforms/bsdi/bacula-dir"
43847    largefile_support="yes"
43848   ;;
43849 cygwin)
43850    DISTVER=`uname -a |awk '{print $3}'`
43851    TAPEDRIVE="/dev/nrst0"
43852    WIN32=win32
43853    WCFLAGS="-mwindows"
43854    WLDFLAGS="-mwindows"
43855   ;;
43856 darwin)
43857    DISTVER=`uname -r`
43858    TAPEDRIVE="/dev/nst0"
43859    PSCMD="ps -e -o pid,command"
43860    MACOSX=macosx
43861    PFILES="${PFILES} \
43862       platforms/darwin/Makefile"
43863   ;;
43864 osx)
43865    DISTVER=`uname -r`
43866    TAPEDRIVE="/dev/nst0"
43867    PSCMD="ps -e -o pid,command"
43868    MACOSX=macosx
43869    PFILES="${PFILES} \
43870       platforms/osx/Makefile"
43871   ;;
43872 debian)
43873    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43874       DISTNAME="ubuntu"
43875    fi
43876    DISTVER=`cat /etc/debian_version`
43877    if test -f /etc/lsb-release ; then
43878       . /etc/lsb-release
43879       if test "x$DISTRIB_ID" != "x" ; then
43880          DISTNAME=$DISTRIB_ID
43881       fi
43882       if test "x$DISTRIB_RELEASE" != "x" ; then
43883          DISTVER=$DISTRIB_RELEASE
43884       fi
43885    fi
43886    if test "$DISTNAME" = "Ubuntu" ; then
43887       DISTNAME="ubuntu"
43888    fi
43889    TAPEDRIVE="/dev/nst0"
43890    PSCMD="ps -e -o pid,command"
43891    if test "$DISTNAME" = "ubuntu" ; then
43892       PFILES="${PFILES} \
43893          platforms/ubuntu/Makefile \
43894          platforms/ubuntu/bacula-fd \
43895          platforms/ubuntu/bacula-sd \
43896          platforms/ubuntu/bacula-dir"
43897    else
43898       PFILES="${PFILES} \
43899          platforms/debian/Makefile \
43900          platforms/debian/bacula-fd \
43901          platforms/debian/bacula-sd \
43902          platforms/debian/bacula-dir"
43903    fi
43904   ;;
43905 freebsd)
43906    DISTVER=`uname -a |awk '{print $3}'`
43907    VER=`echo $DISTVER | cut -c 1`
43908    if test x$VER = x4 ; then
43909       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43910       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43911    fi
43912    lld="qd"
43913    llu="qu"
43914    TAPEDRIVE="/dev/nrsa0"
43915    PSCMD="ps -ax -o pid,command"
43916    PFILES="${PFILES} \
43917        platforms/freebsd/Makefile \
43918        platforms/freebsd/bacula-fd \
43919        platforms/freebsd/bacula-sd \
43920        platforms/freebsd/bacula-dir"
43921    largefile_support="yes"
43922   ;;
43923 hpux)
43924    PSCMD="UNIX95=1; ps -e -o pid,comm"
43925    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43926    DISTVER=`uname -r`
43927    TAPEDRIVE="/dev/rmt/0hnb"
43928    PTHREAD_LIB="-lpthread"
43929    cat >>confdefs.h <<\_ACEOF
43930 #define _INCLUDE_LONGLONG 1
43931 _ACEOF
43932
43933   ;;
43934 irix)
43935    DISTVER=`uname -r`
43936    TAPEDRIVE="/dev/rmt/0cbn"
43937    PSCMD="ps -e -o pid,comm"
43938    PFILES="${PFILES} \
43939        platforms/irix/Makefile \
43940        platforms/irix/bacula-fd \
43941        platforms/irix/bacula-sd \
43942        platforms/irix/bacula-dir"
43943   ;;
43944 netbsd)
43945    DISTVER=`uname -a |awk '{print $3}'`
43946    lld="qd"
43947    llu="qu"
43948    TAPEDRIVE="/dev/nrst0"
43949    PSCMD="ps -ax -o pid,command"
43950    PTHREAD_LIB="-pthread"
43951    CFLAGS="${CFLAGS} -pthread"
43952   ;;
43953 openbsd)
43954    DISTVER=`uname -a |awk '{print $3}'`
43955    lld="qd"
43956    llu="qu"
43957    TAPEDRIVE="/dev/nrst0"
43958    PSCMD="ps -ax -o pid,command"
43959    PTHREAD_LIB="-pthread"
43960    CFLAGS="${CFLAGS} -pthread"
43961    PFILES="${PFILES} \
43962        platforms/openbsd/Makefile \
43963        platforms/openbsd/bacula-fd \
43964        platforms/openbsd/bacula-sd \
43965        platforms/openbsd/bacula-dir"
43966   ;;
43967 redhat)
43968    if test -f /etc/whitebox-release ; then
43969       f=/etc/whitebox-release
43970    else
43971       f=/etc/redhat-release
43972    fi
43973    if test `cat $f | grep release |\
43974          cut -f 3 -d ' '`x = "Enterprise"x ; then
43975       DISTVER="Enterprise "`cat $f | grep release |\
43976           cut -f 6 -d ' '`
43977    else
43978        DISTVER=`cat /etc/redhat-release | grep release |\
43979            cut -f 5 -d ' '`
43980    fi
43981    TAPEDRIVE="/dev/nst0"
43982    PSCMD="ps -e -o pid,command"
43983    PFILES="${PFILES} \
43984        platforms/redhat/Makefile \
43985        platforms/redhat/bacula-fd \
43986        platforms/redhat/bacula-sd \
43987        platforms/redhat/bacula-dir
43988        "
43989   ;;
43990 mandrake)
43991    DISTVER=`cat /etc/mandrake-release | grep release |\
43992       cut -f 5 -d ' '`
43993    TAPEDRIVE="/dev/nst0"
43994    PSCMD="ps -e -o pid,command"
43995    PFILES="${PFILES} \
43996        platforms/mandrake/Makefile \
43997        platforms/mandrake/bacula-fd \
43998        platforms/mandrake/bacula-sd \
43999        platforms/mandrake/bacula-dir \
44000        platforms/mandrake/bacula.spec \
44001        "
44002   ;;
44003 gentoo)
44004    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44005    TAPEDRIVE="/dev/nst0"
44006    PSCMD="ps -e -o pid,command"
44007    PFILES="${PFILES} \
44008        platforms/gentoo/Makefile \
44009     platforms/gentoo/bacula-init \
44010        platforms/gentoo/bacula-fd \
44011        platforms/gentoo/bacula-sd \
44012        platforms/gentoo/bacula-dir"
44013   ;;
44014 slackware)
44015    DISTVER=`cat /etc/slackware-version`
44016    TAPEDRIVE="/dev/nst0"
44017    PSCMD="ps -e -o pid,command"
44018    PFILES="${PFILES} \
44019        platforms/slackware/Makefile \
44020        platforms/slackware/rc.bacula-fd \
44021        platforms/slackware/rc.bacula-sd \
44022        platforms/slackware/rc.bacula-dir\
44023        platforms/slackware/functions.bacula"
44024   ;;
44025 solaris)
44026    DISTVER=`uname -r`
44027    TAPEDRIVE="/dev/rmt/0cbn"
44028    PSCMD="ps -e -o pid,comm"
44029    PFILES="${PFILES} \
44030        platforms/solaris/Makefile \
44031        platforms/solaris/bacula-fd \
44032        platforms/solaris/bacula-sd \
44033        platforms/solaris/bacula-dir"
44034    if test x$DISTVER = x5.6 ; then
44035        cat >>confdefs.h <<\_ACEOF
44036 #define HAVE_OLD_SOCKOPT 1
44037 _ACEOF
44038
44039    fi
44040    LIBS="$LIBS -lresolv"
44041   ;;
44042 suse)
44043    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44044        cut -f 3 -d ' '`
44045    TAPEDRIVE="/dev/nst0"
44046    PSCMD="ps -e -o pid,command"
44047    PFILES="${PFILES} \
44048        platforms/suse/Makefile \
44049        platforms/suse/bacula-fd \
44050        platforms/suse/bacula-sd \
44051        platforms/suse/bacula-dir \
44052        platforms/suse/bacula \
44053        platforms/suse/bacula.spec"
44054   ;;
44055 suse5)
44056    DISTNAME=suse
44057    DISTVER=5.x
44058    TAPEDRIVE="/dev/nst0"
44059    PSCMD="ps -e -o pid,command"
44060    PFILES="${PFILES} \
44061        platforms/suse/Makefile \
44062        platforms/suse/bacula-fd \
44063        platforms/suse/bacula-sd \
44064        platforms/suse/bacula-dir"
44065   ;;
44066 unknown)
44067    DISTVER=unknown
44068    TAPEDRIVE="/dev/nst0"
44069   ;;
44070 *)
44071   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44072   ;;
44073 esac
44074
44075
44076
44077 LIBS="$PTHREAD_LIB $LIBS"
44078
44079 cat >>confdefs.h <<_ACEOF
44080 #define lld "$lld"
44081 _ACEOF
44082
44083 cat >>confdefs.h <<_ACEOF
44084 #define llu "$llu"
44085 _ACEOF
44086
44087
44088
44089
44090
44091
44092
44093
44094 MCOMMON=./autoconf/Make.common
44095
44096
44097 if test "x${subsysdir}" = "x${sbindir}" ; then
44098    echo " "
44099    echo " "
44100    echo "You have set both --sbindir and --with-subsys-dir"
44101    echo "  equal to: ${subsysdir} "
44102    echo "This is not permitted. Please reconfigure."
44103    echo " "
44104    echo "Aborting configuration ..."
44105    echo " "
44106    echo " "
44107    exit 1
44108 fi
44109
44110 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 scripts/make_catalog_backup.pl src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44111
44112 ac_config_commands="$ac_config_commands default"
44113
44114 cat >confcache <<\_ACEOF
44115 # This file is a shell script that caches the results of configure
44116 # tests run on this system so they can be shared between configure
44117 # scripts and configure runs, see configure's option --config-cache.
44118 # It is not useful on other systems.  If it contains results you don't
44119 # want to keep, you may remove or edit it.
44120 #
44121 # config.status only pays attention to the cache file if you give it
44122 # the --recheck option to rerun configure.
44123 #
44124 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44126 # following values.
44127
44128 _ACEOF
44129
44130 # The following way of writing the cache mishandles newlines in values,
44131 # but we know of no workaround that is simple, portable, and efficient.
44132 # So, we kill variables containing newlines.
44133 # Ultrix sh set writes to stderr and can't be redirected directly,
44134 # and sets the high bit in the cache file unless we assign to the vars.
44135 (
44136   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44137     eval ac_val=\$$ac_var
44138     case $ac_val in #(
44139     *${as_nl}*)
44140       case $ac_var in #(
44141       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44142 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44143       esac
44144       case $ac_var in #(
44145       _ | IFS | as_nl) ;; #(
44146       *) $as_unset $ac_var ;;
44147       esac ;;
44148     esac
44149   done
44150
44151   (set) 2>&1 |
44152     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44153     *${as_nl}ac_space=\ *)
44154       # `set' does not quote correctly, so add quotes (double-quote
44155       # substitution turns \\\\ into \\, and sed turns \\ into \).
44156       sed -n \
44157         "s/'/'\\\\''/g;
44158           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44159       ;; #(
44160     *)
44161       # `set' quotes correctly as required by POSIX, so do not add quotes.
44162       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44163       ;;
44164     esac |
44165     sort
44166 ) |
44167   sed '
44168      /^ac_cv_env_/b end
44169      t clear
44170      :clear
44171      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44172      t end
44173      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44174      :end' >>confcache
44175 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44176   if test -w "$cache_file"; then
44177     test "x$cache_file" != "x/dev/null" &&
44178       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44179 echo "$as_me: updating cache $cache_file" >&6;}
44180     cat confcache >$cache_file
44181   else
44182     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44183 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44184   fi
44185 fi
44186 rm -f confcache
44187
44188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44189 # Let make expand exec_prefix.
44190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44191
44192 DEFS=-DHAVE_CONFIG_H
44193
44194 ac_libobjs=
44195 ac_ltlibobjs=
44196 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44197   # 1. Remove the extension, and $U if already installed.
44198   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44199   ac_i=`echo "$ac_i" | sed "$ac_script"`
44200   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44201   #    will be set to the directory where LIBOBJS objects are built.
44202   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44203   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44204 done
44205 LIBOBJS=$ac_libobjs
44206
44207 LTLIBOBJS=$ac_ltlibobjs
44208
44209
44210
44211 : ${CONFIG_STATUS=./config.status}
44212 ac_clean_files_save=$ac_clean_files
44213 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44214 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44215 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44216 cat >$CONFIG_STATUS <<_ACEOF
44217 #! $SHELL
44218 # Generated by $as_me.
44219 # Run this file to recreate the current configuration.
44220 # Compiler output produced by configure, useful for debugging
44221 # configure, is in config.log if it exists.
44222
44223 debug=false
44224 ac_cs_recheck=false
44225 ac_cs_silent=false
44226 SHELL=\${CONFIG_SHELL-$SHELL}
44227 _ACEOF
44228
44229 cat >>$CONFIG_STATUS <<\_ACEOF
44230 ## --------------------- ##
44231 ## M4sh Initialization.  ##
44232 ## --------------------- ##
44233
44234 # Be more Bourne compatible
44235 DUALCASE=1; export DUALCASE # for MKS sh
44236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44237   emulate sh
44238   NULLCMD=:
44239   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44240   # is contrary to our usage.  Disable this feature.
44241   alias -g '${1+"$@"}'='"$@"'
44242   setopt NO_GLOB_SUBST
44243 else
44244   case `(set -o) 2>/dev/null` in
44245   *posix*) set -o posix ;;
44246 esac
44247
44248 fi
44249
44250
44251
44252
44253 # PATH needs CR
44254 # Avoid depending upon Character Ranges.
44255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44258 as_cr_digits='0123456789'
44259 as_cr_alnum=$as_cr_Letters$as_cr_digits
44260
44261 # The user is always right.
44262 if test "${PATH_SEPARATOR+set}" != set; then
44263   echo "#! /bin/sh" >conf$$.sh
44264   echo  "exit 0"   >>conf$$.sh
44265   chmod +x conf$$.sh
44266   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44267     PATH_SEPARATOR=';'
44268   else
44269     PATH_SEPARATOR=:
44270   fi
44271   rm -f conf$$.sh
44272 fi
44273
44274 # Support unset when possible.
44275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44276   as_unset=unset
44277 else
44278   as_unset=false
44279 fi
44280
44281
44282 # IFS
44283 # We need space, tab and new line, in precisely that order.  Quoting is
44284 # there to prevent editors from complaining about space-tab.
44285 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44286 # splitting by setting IFS to empty value.)
44287 as_nl='
44288 '
44289 IFS=" ""        $as_nl"
44290
44291 # Find who we are.  Look in the path if we contain no directory separator.
44292 case $0 in
44293   *[\\/]* ) as_myself=$0 ;;
44294   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44295 for as_dir in $PATH
44296 do
44297   IFS=$as_save_IFS
44298   test -z "$as_dir" && as_dir=.
44299   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44300 done
44301 IFS=$as_save_IFS
44302
44303      ;;
44304 esac
44305 # We did not find ourselves, most probably we were run as `sh COMMAND'
44306 # in which case we are not to be found in the path.
44307 if test "x$as_myself" = x; then
44308   as_myself=$0
44309 fi
44310 if test ! -f "$as_myself"; then
44311   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44312   { (exit 1); exit 1; }
44313 fi
44314
44315 # Work around bugs in pre-3.0 UWIN ksh.
44316 for as_var in ENV MAIL MAILPATH
44317 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44318 done
44319 PS1='$ '
44320 PS2='> '
44321 PS4='+ '
44322
44323 # NLS nuisances.
44324 for as_var in \
44325   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44326   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44327   LC_TELEPHONE LC_TIME
44328 do
44329   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44330     eval $as_var=C; export $as_var
44331   else
44332     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44333   fi
44334 done
44335
44336 # Required to use basename.
44337 if expr a : '\(a\)' >/dev/null 2>&1 &&
44338    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44339   as_expr=expr
44340 else
44341   as_expr=false
44342 fi
44343
44344 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44345   as_basename=basename
44346 else
44347   as_basename=false
44348 fi
44349
44350
44351 # Name of the executable.
44352 as_me=`$as_basename -- "$0" ||
44353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44354          X"$0" : 'X\(//\)$' \| \
44355          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44356 echo X/"$0" |
44357     sed '/^.*\/\([^/][^/]*\)\/*$/{
44358             s//\1/
44359             q
44360           }
44361           /^X\/\(\/\/\)$/{
44362             s//\1/
44363             q
44364           }
44365           /^X\/\(\/\).*/{
44366             s//\1/
44367             q
44368           }
44369           s/.*/./; q'`
44370
44371 # CDPATH.
44372 $as_unset CDPATH
44373
44374
44375
44376   as_lineno_1=$LINENO
44377   as_lineno_2=$LINENO
44378   test "x$as_lineno_1" != "x$as_lineno_2" &&
44379   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44380
44381   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44382   # uniformly replaced by the line number.  The first 'sed' inserts a
44383   # line-number line after each line using $LINENO; the second 'sed'
44384   # does the real work.  The second script uses 'N' to pair each
44385   # line-number line with the line containing $LINENO, and appends
44386   # trailing '-' during substitution so that $LINENO is not a special
44387   # case at line end.
44388   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44389   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44390   # E. McMahon (1931-1989) for sed's syntax.  :-)
44391   sed -n '
44392     p
44393     /[$]LINENO/=
44394   ' <$as_myself |
44395     sed '
44396       s/[$]LINENO.*/&-/
44397       t lineno
44398       b
44399       :lineno
44400       N
44401       :loop
44402       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44403       t loop
44404       s/-\n.*//
44405     ' >$as_me.lineno &&
44406   chmod +x "$as_me.lineno" ||
44407     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44408    { (exit 1); exit 1; }; }
44409
44410   # Don't try to exec as it changes $[0], causing all sort of problems
44411   # (the dirname of $[0] is not the place where we might find the
44412   # original and so on.  Autoconf is especially sensitive to this).
44413   . "./$as_me.lineno"
44414   # Exit status is that of the last command.
44415   exit
44416 }
44417
44418
44419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44420   as_dirname=dirname
44421 else
44422   as_dirname=false
44423 fi
44424
44425 ECHO_C= ECHO_N= ECHO_T=
44426 case `echo -n x` in
44427 -n*)
44428   case `echo 'x\c'` in
44429   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44430   *)   ECHO_C='\c';;
44431   esac;;
44432 *)
44433   ECHO_N='-n';;
44434 esac
44435
44436 if expr a : '\(a\)' >/dev/null 2>&1 &&
44437    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44438   as_expr=expr
44439 else
44440   as_expr=false
44441 fi
44442
44443 rm -f conf$$ conf$$.exe conf$$.file
44444 if test -d conf$$.dir; then
44445   rm -f conf$$.dir/conf$$.file
44446 else
44447   rm -f conf$$.dir
44448   mkdir conf$$.dir
44449 fi
44450 echo >conf$$.file
44451 if ln -s conf$$.file conf$$ 2>/dev/null; then
44452   as_ln_s='ln -s'
44453   # ... but there are two gotchas:
44454   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44455   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44456   # In both cases, we have to default to `cp -p'.
44457   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44458     as_ln_s='cp -p'
44459 elif ln conf$$.file conf$$ 2>/dev/null; then
44460   as_ln_s=ln
44461 else
44462   as_ln_s='cp -p'
44463 fi
44464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44465 rmdir conf$$.dir 2>/dev/null
44466
44467 if mkdir -p . 2>/dev/null; then
44468   as_mkdir_p=:
44469 else
44470   test -d ./-p && rmdir ./-p
44471   as_mkdir_p=false
44472 fi
44473
44474 if test -x / >/dev/null 2>&1; then
44475   as_test_x='test -x'
44476 else
44477   if ls -dL / >/dev/null 2>&1; then
44478     as_ls_L_option=L
44479   else
44480     as_ls_L_option=
44481   fi
44482   as_test_x='
44483     eval sh -c '\''
44484       if test -d "$1"; then
44485         test -d "$1/.";
44486       else
44487         case $1 in
44488         -*)set "./$1";;
44489         esac;
44490         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44491         ???[sx]*):;;*)false;;esac;fi
44492     '\'' sh
44493   '
44494 fi
44495 as_executable_p=$as_test_x
44496
44497 # Sed expression to map a string onto a valid CPP name.
44498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44499
44500 # Sed expression to map a string onto a valid variable name.
44501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44502
44503
44504 exec 6>&1
44505
44506 # Save the log message, to keep $[0] and so on meaningful, and to
44507 # report actual input values of CONFIG_FILES etc. instead of their
44508 # values after options handling.
44509 ac_log="
44510 This file was extended by $as_me, which was
44511 generated by GNU Autoconf 2.61.  Invocation command line was
44512
44513   CONFIG_FILES    = $CONFIG_FILES
44514   CONFIG_HEADERS  = $CONFIG_HEADERS
44515   CONFIG_LINKS    = $CONFIG_LINKS
44516   CONFIG_COMMANDS = $CONFIG_COMMANDS
44517   $ $0 $@
44518
44519 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44520 "
44521
44522 _ACEOF
44523
44524 cat >>$CONFIG_STATUS <<_ACEOF
44525 # Files that config.status was made for.
44526 config_files="$ac_config_files"
44527 config_headers="$ac_config_headers"
44528 config_commands="$ac_config_commands"
44529
44530 _ACEOF
44531
44532 cat >>$CONFIG_STATUS <<\_ACEOF
44533 ac_cs_usage="\
44534 \`$as_me' instantiates files from templates according to the
44535 current configuration.
44536
44537 Usage: $0 [OPTIONS] [FILE]...
44538
44539   -h, --help       print this help, then exit
44540   -V, --version    print version number and configuration settings, then exit
44541   -q, --quiet      do not print progress messages
44542   -d, --debug      don't remove temporary files
44543       --recheck    update $as_me by reconfiguring in the same conditions
44544   --file=FILE[:TEMPLATE]
44545                    instantiate the configuration file FILE
44546   --header=FILE[:TEMPLATE]
44547                    instantiate the configuration header FILE
44548
44549 Configuration files:
44550 $config_files
44551
44552 Configuration headers:
44553 $config_headers
44554
44555 Configuration commands:
44556 $config_commands
44557
44558 Report bugs to <bug-autoconf@gnu.org>."
44559
44560 _ACEOF
44561 cat >>$CONFIG_STATUS <<_ACEOF
44562 ac_cs_version="\\
44563 config.status
44564 configured by $0, generated by GNU Autoconf 2.61,
44565   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44566
44567 Copyright (C) 2006 Free Software Foundation, Inc.
44568 This config.status script is free software; the Free Software Foundation
44569 gives unlimited permission to copy, distribute and modify it."
44570
44571 ac_pwd='$ac_pwd'
44572 srcdir='$srcdir'
44573 INSTALL='$INSTALL'
44574 _ACEOF
44575
44576 cat >>$CONFIG_STATUS <<\_ACEOF
44577 # If no file are specified by the user, then we need to provide default
44578 # value.  By we need to know if files were specified by the user.
44579 ac_need_defaults=:
44580 while test $# != 0
44581 do
44582   case $1 in
44583   --*=*)
44584     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44585     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44586     ac_shift=:
44587     ;;
44588   *)
44589     ac_option=$1
44590     ac_optarg=$2
44591     ac_shift=shift
44592     ;;
44593   esac
44594
44595   case $ac_option in
44596   # Handling of the options.
44597   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44598     ac_cs_recheck=: ;;
44599   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44600     echo "$ac_cs_version"; exit ;;
44601   --debug | --debu | --deb | --de | --d | -d )
44602     debug=: ;;
44603   --file | --fil | --fi | --f )
44604     $ac_shift
44605     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44606     ac_need_defaults=false;;
44607   --header | --heade | --head | --hea )
44608     $ac_shift
44609     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44610     ac_need_defaults=false;;
44611   --he | --h)
44612     # Conflict between --help and --header
44613     { echo "$as_me: error: ambiguous option: $1
44614 Try \`$0 --help' for more information." >&2
44615    { (exit 1); exit 1; }; };;
44616   --help | --hel | -h )
44617     echo "$ac_cs_usage"; exit ;;
44618   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44619   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44620     ac_cs_silent=: ;;
44621
44622   # This is an error.
44623   -*) { echo "$as_me: error: unrecognized option: $1
44624 Try \`$0 --help' for more information." >&2
44625    { (exit 1); exit 1; }; } ;;
44626
44627   *) ac_config_targets="$ac_config_targets $1"
44628      ac_need_defaults=false ;;
44629
44630   esac
44631   shift
44632 done
44633
44634 ac_configure_extra_args=
44635
44636 if $ac_cs_silent; then
44637   exec 6>/dev/null
44638   ac_configure_extra_args="$ac_configure_extra_args --silent"
44639 fi
44640
44641 _ACEOF
44642 cat >>$CONFIG_STATUS <<_ACEOF
44643 if \$ac_cs_recheck; then
44644   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44645   CONFIG_SHELL=$SHELL
44646   export CONFIG_SHELL
44647   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44648 fi
44649
44650 _ACEOF
44651 cat >>$CONFIG_STATUS <<\_ACEOF
44652 exec 5>>config.log
44653 {
44654   echo
44655   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44656 ## Running $as_me. ##
44657 _ASBOX
44658   echo "$ac_log"
44659 } >&5
44660
44661 _ACEOF
44662 cat >>$CONFIG_STATUS <<_ACEOF
44663 #
44664 # INIT-COMMANDS
44665 #
44666
44667
44668 # The HP-UX ksh and POSIX shell print the target directory to stdout
44669 # if CDPATH is set.
44670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44671
44672 sed_quote_subst='$sed_quote_subst'
44673 double_quote_subst='$double_quote_subst'
44674 delay_variable_subst='$delay_variable_subst'
44675 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44676 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44677 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44678 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44679 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44680 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44681 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44682 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44683 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44684 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44685 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44686 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44687 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44688 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44689 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44690 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44691 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44692 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44693 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44694 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44695 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44696 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44697 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44698 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44699 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44700 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44701 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44702 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44703 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44704 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44705 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44706 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44707 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44708 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44709 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44710 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44711 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44712 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44713 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44714 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44715 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44716 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44717 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44718 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44719 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"`'
44720 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"`'
44721 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44722 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44723 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44724 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44725 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44726 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44727 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44728 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44729 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44730 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44731 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44732 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44733 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44734 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44735 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44736 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44737 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44738 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44739 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44740 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44741 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44742 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44743 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44744 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44745 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44746 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44747 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44748 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44749 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44750 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44751 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44752 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44753 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44754 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44755 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44756 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44757 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44758 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44759 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44760 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44761 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44762 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44763 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44764 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44765 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44766 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44767 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44768 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44769 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44770 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44771 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44772 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44773 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44774 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44775 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44776 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44777 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44778 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44779 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44780 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44781 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44782 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44783 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44784 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44785 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44786 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44787 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44788 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44789 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44790 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44791 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44792 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44793 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44794 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44795 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44796 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44797 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44798 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44799 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44801 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44802 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44803 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44804 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44805 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44806 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44807 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44808 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44809 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44810 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44811 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44812 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44813 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44814 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44815 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44816 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44817 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44818 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44819 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44820 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44821 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44822 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44823 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44824 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44825 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44826 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44827 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44828 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44829 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44830 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44831 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44832 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44833 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44834 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44835 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44836 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44837 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44838 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44839 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44840 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44841 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44842 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44843 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44844 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44845 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44846
44847 LTCC='$LTCC'
44848 LTCFLAGS='$LTCFLAGS'
44849 compiler='$compiler_DEFAULT'
44850
44851 # Quote evaled strings.
44852 for var in SED \
44853 GREP \
44854 EGREP \
44855 FGREP \
44856 LD \
44857 NM \
44858 LN_S \
44859 lt_SP2NL \
44860 lt_NL2SP \
44861 reload_flag \
44862 OBJDUMP \
44863 deplibs_check_method \
44864 file_magic_cmd \
44865 AR \
44866 AR_FLAGS \
44867 STRIP \
44868 RANLIB \
44869 CC \
44870 CFLAGS \
44871 compiler \
44872 lt_cv_sys_global_symbol_pipe \
44873 lt_cv_sys_global_symbol_to_cdecl \
44874 lt_cv_sys_global_symbol_to_c_name_address \
44875 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44876 SHELL \
44877 ECHO \
44878 lt_prog_compiler_no_builtin_flag \
44879 lt_prog_compiler_wl \
44880 lt_prog_compiler_pic \
44881 lt_prog_compiler_static \
44882 lt_cv_prog_compiler_c_o \
44883 need_locks \
44884 DSYMUTIL \
44885 NMEDIT \
44886 LIPO \
44887 OTOOL \
44888 OTOOL64 \
44889 shrext_cmds \
44890 export_dynamic_flag_spec \
44891 whole_archive_flag_spec \
44892 compiler_needs_object \
44893 with_gnu_ld \
44894 allow_undefined_flag \
44895 no_undefined_flag \
44896 hardcode_libdir_flag_spec \
44897 hardcode_libdir_flag_spec_ld \
44898 hardcode_libdir_separator \
44899 fix_srcfile_path \
44900 exclude_expsyms \
44901 include_expsyms \
44902 file_list_spec \
44903 variables_saved_for_relink \
44904 libname_spec \
44905 library_names_spec \
44906 soname_spec \
44907 finish_eval \
44908 old_striplib \
44909 striplib \
44910 compiler_lib_search_dirs \
44911 predep_objects \
44912 postdep_objects \
44913 predeps \
44914 postdeps \
44915 compiler_lib_search_path \
44916 LD_CXX \
44917 compiler_CXX \
44918 lt_prog_compiler_no_builtin_flag_CXX \
44919 lt_prog_compiler_wl_CXX \
44920 lt_prog_compiler_pic_CXX \
44921 lt_prog_compiler_static_CXX \
44922 lt_cv_prog_compiler_c_o_CXX \
44923 export_dynamic_flag_spec_CXX \
44924 whole_archive_flag_spec_CXX \
44925 compiler_needs_object_CXX \
44926 with_gnu_ld_CXX \
44927 allow_undefined_flag_CXX \
44928 no_undefined_flag_CXX \
44929 hardcode_libdir_flag_spec_CXX \
44930 hardcode_libdir_flag_spec_ld_CXX \
44931 hardcode_libdir_separator_CXX \
44932 fix_srcfile_path_CXX \
44933 exclude_expsyms_CXX \
44934 include_expsyms_CXX \
44935 file_list_spec_CXX \
44936 compiler_lib_search_dirs_CXX \
44937 predep_objects_CXX \
44938 postdep_objects_CXX \
44939 predeps_CXX \
44940 postdeps_CXX \
44941 compiler_lib_search_path_CXX; do
44942     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44943     *[\\\\\\\`\\"\\\$]*)
44944       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44945       ;;
44946     *)
44947       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44948       ;;
44949     esac
44950 done
44951
44952 # Double-quote double-evaled strings.
44953 for var in reload_cmds \
44954 old_postinstall_cmds \
44955 old_postuninstall_cmds \
44956 old_archive_cmds \
44957 extract_expsyms_cmds \
44958 old_archive_from_new_cmds \
44959 old_archive_from_expsyms_cmds \
44960 archive_cmds \
44961 archive_expsym_cmds \
44962 module_cmds \
44963 module_expsym_cmds \
44964 export_symbols_cmds \
44965 prelink_cmds \
44966 postinstall_cmds \
44967 postuninstall_cmds \
44968 finish_cmds \
44969 sys_lib_search_path_spec \
44970 sys_lib_dlsearch_path_spec \
44971 old_archive_cmds_CXX \
44972 old_archive_from_new_cmds_CXX \
44973 old_archive_from_expsyms_cmds_CXX \
44974 archive_cmds_CXX \
44975 archive_expsym_cmds_CXX \
44976 module_cmds_CXX \
44977 module_expsym_cmds_CXX \
44978 export_symbols_cmds_CXX \
44979 prelink_cmds_CXX; do
44980     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44981     *[\\\\\\\`\\"\\\$]*)
44982       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44983       ;;
44984     *)
44985       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44986       ;;
44987     esac
44988 done
44989
44990 # Fix-up fallback echo if it was mangled by the above quoting rules.
44991 case \$lt_ECHO in
44992 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44993   ;;
44994 esac
44995
44996 ac_aux_dir='$ac_aux_dir'
44997 xsi_shell='$xsi_shell'
44998 lt_shell_append='$lt_shell_append'
44999
45000 # See if we are running on zsh, and set the options which allow our
45001 # commands through without removal of \ escapes INIT.
45002 if test -n "\${ZSH_VERSION+set}" ; then
45003    setopt NO_GLOB_SUBST
45004 fi
45005
45006
45007     PACKAGE='$PACKAGE'
45008     VERSION='$VERSION'
45009     TIMESTAMP='$TIMESTAMP'
45010     RM='$RM'
45011     ofile='$ofile'
45012
45013
45014
45015
45016
45017 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45018     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45019     # from automake.
45020     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45021     # Capture the value of LINGUAS because we need it to compute CATALOGS.
45022     LINGUAS="${LINGUAS-%UNSET%}"
45023
45024
45025 _ACEOF
45026
45027 cat >>$CONFIG_STATUS <<\_ACEOF
45028
45029 # Handling of arguments.
45030 for ac_config_target in $ac_config_targets
45031 do
45032   case $ac_config_target in
45033     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45034     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45035     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45036     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45037     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45038     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45039     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45040     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45041     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45042     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45043     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45044     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45045     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45046     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45047     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45048     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45049     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45050     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45051     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45052     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45053     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45054     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45055     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45056     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45057     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45058     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45059     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45060     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45061     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45062     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45063     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45064     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45065     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45066     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45067     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45068     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45069     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45070     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45071     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45072     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45073     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45074     "scripts/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES scripts/make_catalog_backup.pl" ;;
45075     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45076     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45077     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45078     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45079     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45080     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45081     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45082     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45083     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45084     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45085     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45086     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45087     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45088     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45089     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45090     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45091     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45092     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45093     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45094     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45095     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45096     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45097     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45098     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45099     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45100     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45101     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45102     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45103     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45104     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45105     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45106     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45107     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45108     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45109     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45110     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45111     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45112     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45113     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45114     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45115     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45116     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45117     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45118     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45119     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45120     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45121     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45122     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45123     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45124     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45125     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45126     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45127     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45128     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45129     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45130     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45131     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45132     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45133     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45134     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45135     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45136     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45137     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45138     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45139     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45140     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45141     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45142     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45143     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45144     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45145     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45146     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45147     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45148     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45149     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45150     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45151
45152   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45153 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45154    { (exit 1); exit 1; }; };;
45155   esac
45156 done
45157
45158
45159 # If the user did not use the arguments to specify the items to instantiate,
45160 # then the envvar interface is used.  Set only those that are not.
45161 # We use the long form for the default assignment because of an extremely
45162 # bizarre bug on SunOS 4.1.3.
45163 if $ac_need_defaults; then
45164   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45165   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45166   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45167 fi
45168
45169 # Have a temporary directory for convenience.  Make it in the build tree
45170 # simply because there is no reason against having it here, and in addition,
45171 # creating and moving files from /tmp can sometimes cause problems.
45172 # Hook for its removal unless debugging.
45173 # Note that there is a small window in which the directory will not be cleaned:
45174 # after its creation but before its name has been assigned to `$tmp'.
45175 $debug ||
45176 {
45177   tmp=
45178   trap 'exit_status=$?
45179   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45180 ' 0
45181   trap '{ (exit 1); exit 1; }' 1 2 13 15
45182 }
45183 # Create a (secure) tmp directory for tmp files.
45184
45185 {
45186   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45187   test -n "$tmp" && test -d "$tmp"
45188 }  ||
45189 {
45190   tmp=./conf$$-$RANDOM
45191   (umask 077 && mkdir "$tmp")
45192 } ||
45193 {
45194    echo "$me: cannot create a temporary directory in ." >&2
45195    { (exit 1); exit 1; }
45196 }
45197
45198 #
45199 # Set up the sed scripts for CONFIG_FILES section.
45200 #
45201
45202 # No need to generate the scripts if there are no CONFIG_FILES.
45203 # This happens for instance when ./config.status config.h
45204 if test -n "$CONFIG_FILES"; then
45205
45206 _ACEOF
45207
45208 # Create sed commands to just substitute file output variables.
45209
45210 # Remaining file output variables are in a fragment that also has non-file
45211 # output varibles.
45212
45213
45214
45215 ac_delim='%!_!# '
45216 for ac_last_try in false false false false false :; do
45217   cat >conf$$subs.sed <<_ACEOF
45218 SHELL!$SHELL$ac_delim
45219 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45220 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45221 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45222 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45223 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45224 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45225 exec_prefix!$exec_prefix$ac_delim
45226 prefix!$prefix$ac_delim
45227 program_transform_name!$program_transform_name$ac_delim
45228 bindir!$bindir$ac_delim
45229 sbindir!$sbindir$ac_delim
45230 libexecdir!$libexecdir$ac_delim
45231 datarootdir!$datarootdir$ac_delim
45232 datadir!$datadir$ac_delim
45233 sysconfdir!$sysconfdir$ac_delim
45234 sharedstatedir!$sharedstatedir$ac_delim
45235 localstatedir!$localstatedir$ac_delim
45236 includedir!$includedir$ac_delim
45237 oldincludedir!$oldincludedir$ac_delim
45238 docdir!$docdir$ac_delim
45239 infodir!$infodir$ac_delim
45240 htmldir!$htmldir$ac_delim
45241 dvidir!$dvidir$ac_delim
45242 pdfdir!$pdfdir$ac_delim
45243 psdir!$psdir$ac_delim
45244 libdir!$libdir$ac_delim
45245 localedir!$localedir$ac_delim
45246 mandir!$mandir$ac_delim
45247 DEFS!$DEFS$ac_delim
45248 ECHO_C!$ECHO_C$ac_delim
45249 ECHO_N!$ECHO_N$ac_delim
45250 ECHO_T!$ECHO_T$ac_delim
45251 LIBS!$LIBS$ac_delim
45252 build_alias!$build_alias$ac_delim
45253 host_alias!$host_alias$ac_delim
45254 target_alias!$target_alias$ac_delim
45255 BUILD_DIR!$BUILD_DIR$ac_delim
45256 TOP_DIR!$TOP_DIR$ac_delim
45257 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45258 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45259 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45260 TRUEPRG!$TRUEPRG$ac_delim
45261 FALSEPRG!$FALSEPRG$ac_delim
45262 VERSION!$VERSION$ac_delim
45263 DATE!$DATE$ac_delim
45264 LSMDATE!$LSMDATE$ac_delim
45265 BACULA!$BACULA$ac_delim
45266 post_host!$post_host$ac_delim
45267 CC!$CC$ac_delim
45268 CFLAGS!$CFLAGS$ac_delim
45269 LDFLAGS!$LDFLAGS$ac_delim
45270 CPPFLAGS!$CPPFLAGS$ac_delim
45271 ac_ct_CC!$ac_ct_CC$ac_delim
45272 EXEEXT!$EXEEXT$ac_delim
45273 OBJEXT!$OBJEXT$ac_delim
45274 CXX!$CXX$ac_delim
45275 CXXFLAGS!$CXXFLAGS$ac_delim
45276 ac_ct_CXX!$ac_ct_CXX$ac_delim
45277 CPP!$CPP$ac_delim
45278 GREP!$GREP$ac_delim
45279 EGREP!$EGREP$ac_delim
45280 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45281 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45282 INSTALL_DATA!$INSTALL_DATA$ac_delim
45283 MV!$MV$ac_delim
45284 REMOVE!$REMOVE$ac_delim
45285 CP!$CP$ac_delim
45286 SED!$SED$ac_delim
45287 ECHO!$ECHO$ac_delim
45288 CMP!$CMP$ac_delim
45289 TBL!$TBL$ac_delim
45290 AR!$AR$ac_delim
45291 OPENSSL!$OPENSSL$ac_delim
45292 MTX!$MTX$ac_delim
45293 DD!$DD$ac_delim
45294 MKISOFS!$MKISOFS$ac_delim
45295 PYTHON!$PYTHON$ac_delim
45296 GROWISOFS!$GROWISOFS$ac_delim
45297 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45298 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45299 PKGCONFIG!$PKGCONFIG$ac_delim
45300 QMAKE!$QMAKE$ac_delim
45301 QMAKEQT4!$QMAKEQT4$ac_delim
45302 GMAKE!$GMAKE$ac_delim
45303 WXCONFIG!$WXCONFIG$ac_delim
45304 WXFLAGS!$WXFLAGS$ac_delim
45305 CDRECORD!$CDRECORD$ac_delim
45306 PIDOF!$PIDOF$ac_delim
45307 AWK!$AWK$ac_delim
45308 ARFLAGS!$ARFLAGS$ac_delim
45309 MAKE_SHELL!$MAKE_SHELL$ac_delim
45310 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45311 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45312 _ACEOF
45313
45314   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45315     break
45316   elif $ac_last_try; then
45317     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45319    { (exit 1); exit 1; }; }
45320   else
45321     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45322   fi
45323 done
45324
45325 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45326 if test -n "$ac_eof"; then
45327   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45328   ac_eof=`expr $ac_eof + 1`
45329 fi
45330
45331 cat >>$CONFIG_STATUS <<_ACEOF
45332 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45334 /^[      ]*@MCOMMON@[    ]*$/{
45335 r $MCOMMON
45336 d
45337 }
45338 _ACEOF
45339 sed '
45340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45341 s/^/s,@/; s/!/@,|#_!!_#|/
45342 :n
45343 t n
45344 s/'"$ac_delim"'$/,g/; t
45345 s/$/\\/; p
45346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45347 ' >>$CONFIG_STATUS <conf$$subs.sed
45348 rm -f conf$$subs.sed
45349 cat >>$CONFIG_STATUS <<_ACEOF
45350 CEOF$ac_eof
45351 _ACEOF
45352
45353
45354 ac_delim='%!_!# '
45355 for ac_last_try in false false false false false :; do
45356   cat >conf$$subs.sed <<_ACEOF
45357 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45358 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45359 LIBTOOL!$LIBTOOL$ac_delim
45360 build!$build$ac_delim
45361 build_cpu!$build_cpu$ac_delim
45362 build_vendor!$build_vendor$ac_delim
45363 build_os!$build_os$ac_delim
45364 host!$host$ac_delim
45365 host_cpu!$host_cpu$ac_delim
45366 host_vendor!$host_vendor$ac_delim
45367 host_os!$host_os$ac_delim
45368 FGREP!$FGREP$ac_delim
45369 LD!$LD$ac_delim
45370 DUMPBIN!$DUMPBIN$ac_delim
45371 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45372 NM!$NM$ac_delim
45373 LN_S!$LN_S$ac_delim
45374 OBJDUMP!$OBJDUMP$ac_delim
45375 STRIP!$STRIP$ac_delim
45376 RANLIB!$RANLIB$ac_delim
45377 lt_ECHO!$lt_ECHO$ac_delim
45378 DSYMUTIL!$DSYMUTIL$ac_delim
45379 NMEDIT!$NMEDIT$ac_delim
45380 LIPO!$LIPO$ac_delim
45381 OTOOL!$OTOOL$ac_delim
45382 OTOOL64!$OTOOL64$ac_delim
45383 CXXCPP!$CXXCPP$ac_delim
45384 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45385 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45386 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45387 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45388 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45389 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45390 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45391 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45392 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45393 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45394 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45395 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45396 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45397 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45398 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45399 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45400 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45401 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45402 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45403 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45404 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45405 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45406 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45407 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45408 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45409 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45410 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45411 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45412 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45413 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45414 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45415 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45416 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45417 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45418 SET_MAKE!$SET_MAKE$ac_delim
45419 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45420 USE_NLS!$USE_NLS$ac_delim
45421 MSGFMT!$MSGFMT$ac_delim
45422 GMSGFMT!$GMSGFMT$ac_delim
45423 XGETTEXT!$XGETTEXT$ac_delim
45424 MSGMERGE!$MSGMERGE$ac_delim
45425 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45426 LIBICONV!$LIBICONV$ac_delim
45427 LTLIBICONV!$LTLIBICONV$ac_delim
45428 INTLLIBS!$INTLLIBS$ac_delim
45429 LIBINTL!$LIBINTL$ac_delim
45430 LTLIBINTL!$LTLIBINTL$ac_delim
45431 POSUB!$POSUB$ac_delim
45432 GLIBC2!$GLIBC2$ac_delim
45433 ALLOCA!$ALLOCA$ac_delim
45434 GLIBC21!$GLIBC21$ac_delim
45435 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45436 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45437 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45438 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45439 INTLBISON!$INTLBISON$ac_delim
45440 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45441 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45442 CATOBJEXT!$CATOBJEXT$ac_delim
45443 DATADIRNAME!$DATADIRNAME$ac_delim
45444 INSTOBJEXT!$INSTOBJEXT$ac_delim
45445 GENCAT!$GENCAT$ac_delim
45446 INTLOBJS!$INTLOBJS$ac_delim
45447 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45448 BAT_DIR!$BAT_DIR$ac_delim
45449 QWT_INC!$QWT_INC$ac_delim
45450 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45451 QWT_LIB!$QWT_LIB$ac_delim
45452 QWT!$QWT$ac_delim
45453 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45454 _ACEOF
45455
45456   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45457     break
45458   elif $ac_last_try; then
45459     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45460 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45461    { (exit 1); exit 1; }; }
45462   else
45463     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45464   fi
45465 done
45466
45467 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45468 if test -n "$ac_eof"; then
45469   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45470   ac_eof=`expr $ac_eof + 1`
45471 fi
45472
45473 cat >>$CONFIG_STATUS <<_ACEOF
45474 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45476 _ACEOF
45477 sed '
45478 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45479 s/^/s,@/; s/!/@,|#_!!_#|/
45480 :n
45481 t n
45482 s/'"$ac_delim"'$/,g/; t
45483 s/$/\\/; p
45484 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45485 ' >>$CONFIG_STATUS <conf$$subs.sed
45486 rm -f conf$$subs.sed
45487 cat >>$CONFIG_STATUS <<_ACEOF
45488 CEOF$ac_eof
45489 _ACEOF
45490
45491
45492 ac_delim='%!_!# '
45493 for ac_last_try in false false false false false :; do
45494   cat >conf$$subs.sed <<_ACEOF
45495 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45496 WX_DIR!$WX_DIR$ac_delim
45497 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45498 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45499 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45500 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45501 STATIC_FD!$STATIC_FD$ac_delim
45502 STATIC_SD!$STATIC_SD$ac_delim
45503 STATIC_DIR!$STATIC_DIR$ac_delim
45504 STATIC_CONS!$STATIC_CONS$ac_delim
45505 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45506 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45507 ALL_DIRS!$ALL_DIRS$ac_delim
45508 DIRD_DIR!$DIRD_DIR$ac_delim
45509 DIR_TOOLS!$DIR_TOOLS$ac_delim
45510 STORED_DIR!$STORED_DIR$ac_delim
45511 CONS_INC!$CONS_INC$ac_delim
45512 CONS_OBJ!$CONS_OBJ$ac_delim
45513 CONS_SRC!$CONS_SRC$ac_delim
45514 CONS_LIBS!$CONS_LIBS$ac_delim
45515 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45516 READLINE_SRC!$READLINE_SRC$ac_delim
45517 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45518 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45519 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45520 OPENSSL_INC!$OPENSSL_INC$ac_delim
45521 working_dir!$working_dir$ac_delim
45522 archivedir!$archivedir$ac_delim
45523 basename!$basename$ac_delim
45524 hostname!$hostname$ac_delim
45525 scriptdir!$scriptdir$ac_delim
45526 bsrdir!$bsrdir$ac_delim
45527 logdir!$logdir$ac_delim
45528 plugindir!$plugindir$ac_delim
45529 dump_email!$dump_email$ac_delim
45530 job_email!$job_email$ac_delim
45531 smtp_host!$smtp_host$ac_delim
45532 piddir!$piddir$ac_delim
45533 subsysdir!$subsysdir$ac_delim
45534 baseport!$baseport$ac_delim
45535 dir_port!$dir_port$ac_delim
45536 fd_port!$fd_port$ac_delim
45537 sd_port!$sd_port$ac_delim
45538 dir_password!$dir_password$ac_delim
45539 fd_password!$fd_password$ac_delim
45540 sd_password!$sd_password$ac_delim
45541 mon_dir_password!$mon_dir_password$ac_delim
45542 mon_fd_password!$mon_fd_password$ac_delim
45543 mon_sd_password!$mon_sd_password$ac_delim
45544 db_name!$db_name$ac_delim
45545 db_user!$db_user$ac_delim
45546 db_password!$db_password$ac_delim
45547 db_port!$db_port$ac_delim
45548 dir_user!$dir_user$ac_delim
45549 dir_group!$dir_group$ac_delim
45550 sd_user!$sd_user$ac_delim
45551 sd_group!$sd_group$ac_delim
45552 fd_user!$fd_user$ac_delim
45553 fd_group!$fd_group$ac_delim
45554 SBINPERM!$SBINPERM$ac_delim
45555 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45556 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45557 SQL_BINDIR!$SQL_BINDIR$ac_delim
45558 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45559 uncomment_dbi!$uncomment_dbi$ac_delim
45560 DB_PROG!$DB_PROG$ac_delim
45561 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45562 cats!$cats$ac_delim
45563 DB_TYPE!$DB_TYPE$ac_delim
45564 GETCONF!$GETCONF$ac_delim
45565 XMKMF!$XMKMF$ac_delim
45566 X_CFLAGS!$X_CFLAGS$ac_delim
45567 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45568 X_LIBS!$X_LIBS$ac_delim
45569 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45570 LIBOBJS!$LIBOBJS$ac_delim
45571 CAP_LIBS!$CAP_LIBS$ac_delim
45572 FDLIBS!$FDLIBS$ac_delim
45573 DEBUG!$DEBUG$ac_delim
45574 DINCLUDE!$DINCLUDE$ac_delim
45575 DLIB!$DLIB$ac_delim
45576 DB_LIBS!$DB_LIBS$ac_delim
45577 WCFLAGS!$WCFLAGS$ac_delim
45578 WLDFLAGS!$WLDFLAGS$ac_delim
45579 WRAPLIBS!$WRAPLIBS$ac_delim
45580 OBJLIST!$OBJLIST$ac_delim
45581 TAPEDRIVE!$TAPEDRIVE$ac_delim
45582 PSCMD!$PSCMD$ac_delim
45583 WIN32!$WIN32$ac_delim
45584 MACOSX!$MACOSX$ac_delim
45585 DISTNAME!$DISTNAME$ac_delim
45586 DISTVER!$DISTVER$ac_delim
45587 LTLIBOBJS!$LTLIBOBJS$ac_delim
45588 _ACEOF
45589
45590   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
45591     break
45592   elif $ac_last_try; then
45593     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45594 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45595    { (exit 1); exit 1; }; }
45596   else
45597     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45598   fi
45599 done
45600
45601 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45602 if test -n "$ac_eof"; then
45603   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45604   ac_eof=`expr $ac_eof + 1`
45605 fi
45606
45607 cat >>$CONFIG_STATUS <<_ACEOF
45608 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45610 _ACEOF
45611 sed '
45612 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45613 s/^/s,@/; s/!/@,|#_!!_#|/
45614 :n
45615 t n
45616 s/'"$ac_delim"'$/,g/; t
45617 s/$/\\/; p
45618 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45619 ' >>$CONFIG_STATUS <conf$$subs.sed
45620 rm -f conf$$subs.sed
45621 cat >>$CONFIG_STATUS <<_ACEOF
45622 :end
45623 s/|#_!!_#|//g
45624 CEOF$ac_eof
45625 _ACEOF
45626
45627
45628 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45629 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45630 # trailing colons and then remove the whole line if VPATH becomes empty
45631 # (actually we leave an empty line to preserve line numbers).
45632 if test "x$srcdir" = x.; then
45633   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45634 s/:*\$(srcdir):*/:/
45635 s/:*\${srcdir}:*/:/
45636 s/:*@srcdir@:*/:/
45637 s/^\([^=]*=[     ]*\):*/\1/
45638 s/:*$//
45639 s/^[^=]*=[       ]*$//
45640 }'
45641 fi
45642
45643 cat >>$CONFIG_STATUS <<\_ACEOF
45644 fi # test -n "$CONFIG_FILES"
45645
45646
45647 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45648 do
45649   case $ac_tag in
45650   :[FHLC]) ac_mode=$ac_tag; continue;;
45651   esac
45652   case $ac_mode$ac_tag in
45653   :[FHL]*:*);;
45654   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45655 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45656    { (exit 1); exit 1; }; };;
45657   :[FH]-) ac_tag=-:-;;
45658   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45659   esac
45660   ac_save_IFS=$IFS
45661   IFS=:
45662   set x $ac_tag
45663   IFS=$ac_save_IFS
45664   shift
45665   ac_file=$1
45666   shift
45667
45668   case $ac_mode in
45669   :L) ac_source=$1;;
45670   :[FH])
45671     ac_file_inputs=
45672     for ac_f
45673     do
45674       case $ac_f in
45675       -) ac_f="$tmp/stdin";;
45676       *) # Look for the file first in the build tree, then in the source tree
45677          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45678          # because $ac_f cannot contain `:'.
45679          test -f "$ac_f" ||
45680            case $ac_f in
45681            [\\/$]*) false;;
45682            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45683            esac ||
45684            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45685 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45686    { (exit 1); exit 1; }; };;
45687       esac
45688       ac_file_inputs="$ac_file_inputs $ac_f"
45689     done
45690
45691     # Let's still pretend it is `configure' which instantiates (i.e., don't
45692     # use $as_me), people would be surprised to read:
45693     #    /* config.h.  Generated by config.status.  */
45694     configure_input="Generated from "`IFS=:
45695           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45696     if test x"$ac_file" != x-; then
45697       configure_input="$ac_file.  $configure_input"
45698       { echo "$as_me:$LINENO: creating $ac_file" >&5
45699 echo "$as_me: creating $ac_file" >&6;}
45700     fi
45701
45702     case $ac_tag in
45703     *:-:* | *:-) cat >"$tmp/stdin";;
45704     esac
45705     ;;
45706   esac
45707
45708   ac_dir=`$as_dirname -- "$ac_file" ||
45709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45710          X"$ac_file" : 'X\(//\)[^/]' \| \
45711          X"$ac_file" : 'X\(//\)$' \| \
45712          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45713 echo X"$ac_file" |
45714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45715             s//\1/
45716             q
45717           }
45718           /^X\(\/\/\)[^/].*/{
45719             s//\1/
45720             q
45721           }
45722           /^X\(\/\/\)$/{
45723             s//\1/
45724             q
45725           }
45726           /^X\(\/\).*/{
45727             s//\1/
45728             q
45729           }
45730           s/.*/./; q'`
45731   { as_dir="$ac_dir"
45732   case $as_dir in #(
45733   -*) as_dir=./$as_dir;;
45734   esac
45735   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45736     as_dirs=
45737     while :; do
45738       case $as_dir in #(
45739       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45740       *) as_qdir=$as_dir;;
45741       esac
45742       as_dirs="'$as_qdir' $as_dirs"
45743       as_dir=`$as_dirname -- "$as_dir" ||
45744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45745          X"$as_dir" : 'X\(//\)[^/]' \| \
45746          X"$as_dir" : 'X\(//\)$' \| \
45747          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45748 echo X"$as_dir" |
45749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45750             s//\1/
45751             q
45752           }
45753           /^X\(\/\/\)[^/].*/{
45754             s//\1/
45755             q
45756           }
45757           /^X\(\/\/\)$/{
45758             s//\1/
45759             q
45760           }
45761           /^X\(\/\).*/{
45762             s//\1/
45763             q
45764           }
45765           s/.*/./; q'`
45766       test -d "$as_dir" && break
45767     done
45768     test -z "$as_dirs" || eval "mkdir $as_dirs"
45769   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45770 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45771    { (exit 1); exit 1; }; }; }
45772   ac_builddir=.
45773
45774 case "$ac_dir" in
45775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45776 *)
45777   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45778   # A ".." for each directory in $ac_dir_suffix.
45779   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45780   case $ac_top_builddir_sub in
45781   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45782   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45783   esac ;;
45784 esac
45785 ac_abs_top_builddir=$ac_pwd
45786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45787 # for backward compatibility:
45788 ac_top_builddir=$ac_top_build_prefix
45789
45790 case $srcdir in
45791   .)  # We are building in place.
45792     ac_srcdir=.
45793     ac_top_srcdir=$ac_top_builddir_sub
45794     ac_abs_top_srcdir=$ac_pwd ;;
45795   [\\/]* | ?:[\\/]* )  # Absolute name.
45796     ac_srcdir=$srcdir$ac_dir_suffix;
45797     ac_top_srcdir=$srcdir
45798     ac_abs_top_srcdir=$srcdir ;;
45799   *) # Relative name.
45800     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45801     ac_top_srcdir=$ac_top_build_prefix$srcdir
45802     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45803 esac
45804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45805
45806
45807   case $ac_mode in
45808   :F)
45809   #
45810   # CONFIG_FILE
45811   #
45812
45813   case $INSTALL in
45814   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45815   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45816   esac
45817 _ACEOF
45818
45819 cat >>$CONFIG_STATUS <<\_ACEOF
45820 # If the template does not know about datarootdir, expand it.
45821 # FIXME: This hack should be removed a few years after 2.60.
45822 ac_datarootdir_hack=; ac_datarootdir_seen=
45823
45824 case `sed -n '/datarootdir/ {
45825   p
45826   q
45827 }
45828 /@datadir@/p
45829 /@docdir@/p
45830 /@infodir@/p
45831 /@localedir@/p
45832 /@mandir@/p
45833 ' $ac_file_inputs` in
45834 *datarootdir*) ac_datarootdir_seen=yes;;
45835 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45836   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45837 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45838 _ACEOF
45839 cat >>$CONFIG_STATUS <<_ACEOF
45840   ac_datarootdir_hack='
45841   s&@datadir@&$datadir&g
45842   s&@docdir@&$docdir&g
45843   s&@infodir@&$infodir&g
45844   s&@localedir@&$localedir&g
45845   s&@mandir@&$mandir&g
45846     s&\\\${datarootdir}&$datarootdir&g' ;;
45847 esac
45848 _ACEOF
45849
45850 # Neutralize VPATH when `$srcdir' = `.'.
45851 # Shell code in configure.ac might set extrasub.
45852 # FIXME: do we really want to maintain this feature?
45853 cat >>$CONFIG_STATUS <<_ACEOF
45854   sed "$ac_vpsub
45855 $extrasub
45856 _ACEOF
45857 cat >>$CONFIG_STATUS <<\_ACEOF
45858 :t
45859 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45860 s&@configure_input@&$configure_input&;t t
45861 s&@top_builddir@&$ac_top_builddir_sub&;t t
45862 s&@srcdir@&$ac_srcdir&;t t
45863 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45864 s&@top_srcdir@&$ac_top_srcdir&;t t
45865 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45866 s&@builddir@&$ac_builddir&;t t
45867 s&@abs_builddir@&$ac_abs_builddir&;t t
45868 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45869 s&@INSTALL@&$ac_INSTALL&;t t
45870 $ac_datarootdir_hack
45871 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45872
45873 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45874   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45875   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45876   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45877 which seems to be undefined.  Please make sure it is defined." >&5
45878 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45879 which seems to be undefined.  Please make sure it is defined." >&2;}
45880
45881   rm -f "$tmp/stdin"
45882   case $ac_file in
45883   -) cat "$tmp/out"; rm -f "$tmp/out";;
45884   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45885   esac
45886  ;;
45887   :H)
45888   #
45889   # CONFIG_HEADER
45890   #
45891 _ACEOF
45892
45893 # Transform confdefs.h into a sed script `conftest.defines', that
45894 # substitutes the proper values into config.h.in to produce config.h.
45895 rm -f conftest.defines conftest.tail
45896 # First, append a space to every undef/define line, to ease matching.
45897 echo 's/$/ /' >conftest.defines
45898 # Then, protect against being on the right side of a sed subst, or in
45899 # an unquoted here document, in config.status.  If some macros were
45900 # called several times there might be several #defines for the same
45901 # symbol, which is useless.  But do not sort them, since the last
45902 # AC_DEFINE must be honored.
45903 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45904 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45905 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45906 # PARAMS is the parameter list in the macro definition--in most cases, it's
45907 # just an empty string.
45908 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
45909 ac_dB='\\)[      (].*,\\1define\\2'
45910 ac_dC=' '
45911 ac_dD=' ,'
45912
45913 uniq confdefs.h |
45914   sed -n '
45915         t rset
45916         :rset
45917         s/^[     ]*#[    ]*define[       ][      ]*//
45918         t ok
45919         d
45920         :ok
45921         s/[\\&,]/\\&/g
45922         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45923         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45924   ' >>conftest.defines
45925
45926 # Remove the space that was appended to ease matching.
45927 # Then replace #undef with comments.  This is necessary, for
45928 # example, in the case of _POSIX_SOURCE, which is predefined and required
45929 # on some systems where configure will not decide to define it.
45930 # (The regexp can be short, since the line contains either #define or #undef.)
45931 echo 's/ $//
45932 s,^[     #]*u.*,/* & */,' >>conftest.defines
45933
45934 # Break up conftest.defines:
45935 ac_max_sed_lines=50
45936
45937 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45938 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45939 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45940 # et cetera.
45941 ac_in='$ac_file_inputs'
45942 ac_out='"$tmp/out1"'
45943 ac_nxt='"$tmp/out2"'
45944
45945 while :
45946 do
45947   # Write a here document:
45948     cat >>$CONFIG_STATUS <<_ACEOF
45949     # First, check the format of the line:
45950     cat >"\$tmp/defines.sed" <<\\CEOF
45951 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
45952 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
45953 b
45954 :def
45955 _ACEOF
45956   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45957   echo 'CEOF
45958     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45959   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45960   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45961   grep . conftest.tail >/dev/null || break
45962   rm -f conftest.defines
45963   mv conftest.tail conftest.defines
45964 done
45965 rm -f conftest.defines conftest.tail
45966
45967 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45968 cat >>$CONFIG_STATUS <<\_ACEOF
45969   if test x"$ac_file" != x-; then
45970     echo "/* $configure_input  */" >"$tmp/config.h"
45971     cat "$ac_result" >>"$tmp/config.h"
45972     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45973       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45974 echo "$as_me: $ac_file is unchanged" >&6;}
45975     else
45976       rm -f $ac_file
45977       mv "$tmp/config.h" $ac_file
45978     fi
45979   else
45980     echo "/* $configure_input  */"
45981     cat "$ac_result"
45982   fi
45983   rm -f "$tmp/out12"
45984  ;;
45985
45986   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45987 echo "$as_me: executing $ac_file commands" >&6;}
45988  ;;
45989   esac
45990
45991
45992   case $ac_file$ac_mode in
45993     "libtool":C)
45994
45995     # See if we are running on zsh, and set the options which allow our
45996     # commands through without removal of \ escapes.
45997     if test -n "${ZSH_VERSION+set}" ; then
45998       setopt NO_GLOB_SUBST
45999     fi
46000
46001     cfgfile="${ofile}T"
46002     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46003     $RM "$cfgfile"
46004
46005     cat <<_LT_EOF >> "$cfgfile"
46006 #! $SHELL
46007
46008 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46009 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46010 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46011 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46012 #
46013 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46014 #                 2006, 2007, 2008 Free Software Foundation, Inc.
46015 #   Written by Gordon Matzigkeit, 1996
46016 #
46017 #   This file is part of GNU Libtool.
46018 #
46019 # GNU Libtool is free software; you can redistribute it and/or
46020 # modify it under the terms of the GNU General Public License as
46021 # published by the Free Software Foundation; either version 2 of
46022 # the License, or (at your option) any later version.
46023 #
46024 # As a special exception to the GNU General Public License,
46025 # if you distribute this file as part of a program or library that
46026 # is built using GNU Libtool, you may include this file under the
46027 # same distribution terms that you use for the rest of that program.
46028 #
46029 # GNU Libtool is distributed in the hope that it will be useful,
46030 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46031 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46032 # GNU General Public License for more details.
46033 #
46034 # You should have received a copy of the GNU General Public License
46035 # along with GNU Libtool; see the file COPYING.  If not, a copy
46036 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46037 # obtained by writing to the Free Software Foundation, Inc.,
46038 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46039
46040
46041 # The names of the tagged configurations supported by this script.
46042 available_tags="CXX "
46043
46044 # ### BEGIN LIBTOOL CONFIG
46045
46046 # Which release of libtool.m4 was used?
46047 macro_version=$macro_version
46048 macro_revision=$macro_revision
46049
46050 # Whether or not to build shared libraries.
46051 build_libtool_libs=$enable_shared
46052
46053 # Whether or not to build static libraries.
46054 build_old_libs=$enable_static
46055
46056 # What type of objects to build.
46057 pic_mode=$pic_mode
46058
46059 # Whether or not to optimize for fast installation.
46060 fast_install=$enable_fast_install
46061
46062 # The host system.
46063 host_alias=$host_alias
46064 host=$host
46065 host_os=$host_os
46066
46067 # The build system.
46068 build_alias=$build_alias
46069 build=$build
46070 build_os=$build_os
46071
46072 # A sed program that does not truncate output.
46073 SED=$lt_SED
46074
46075 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46076 Xsed="\$SED -e 1s/^X//"
46077
46078 # A grep program that handles long lines.
46079 GREP=$lt_GREP
46080
46081 # An ERE matcher.
46082 EGREP=$lt_EGREP
46083
46084 # A literal string matcher.
46085 FGREP=$lt_FGREP
46086
46087 # A BSD- or MS-compatible name lister.
46088 NM=$lt_NM
46089
46090 # Whether we need soft or hard links.
46091 LN_S=$lt_LN_S
46092
46093 # What is the maximum length of a command?
46094 max_cmd_len=$max_cmd_len
46095
46096 # Object file suffix (normally "o").
46097 objext=$ac_objext
46098
46099 # Executable file suffix (normally "").
46100 exeext=$exeext
46101
46102 # whether the shell understands "unset".
46103 lt_unset=$lt_unset
46104
46105 # turn spaces into newlines.
46106 SP2NL=$lt_lt_SP2NL
46107
46108 # turn newlines into spaces.
46109 NL2SP=$lt_lt_NL2SP
46110
46111 # How to create reloadable object files.
46112 reload_flag=$lt_reload_flag
46113 reload_cmds=$lt_reload_cmds
46114
46115 # An object symbol dumper.
46116 OBJDUMP=$lt_OBJDUMP
46117
46118 # Method to check whether dependent libraries are shared objects.
46119 deplibs_check_method=$lt_deplibs_check_method
46120
46121 # Command to use when deplibs_check_method == "file_magic".
46122 file_magic_cmd=$lt_file_magic_cmd
46123
46124 # The archiver.
46125 AR=$lt_AR
46126 AR_FLAGS=$lt_AR_FLAGS
46127
46128 # A symbol stripping program.
46129 STRIP=$lt_STRIP
46130
46131 # Commands used to install an old-style archive.
46132 RANLIB=$lt_RANLIB
46133 old_postinstall_cmds=$lt_old_postinstall_cmds
46134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46135
46136 # A C compiler.
46137 LTCC=$lt_CC
46138
46139 # LTCC compiler flags.
46140 LTCFLAGS=$lt_CFLAGS
46141
46142 # Take the output of nm and produce a listing of raw symbols and C names.
46143 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46144
46145 # Transform the output of nm in a proper C declaration.
46146 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46147
46148 # Transform the output of nm in a C name address pair.
46149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46150
46151 # Transform the output of nm in a C name address pair when lib prefix is needed.
46152 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46153
46154 # The name of the directory that contains temporary libtool files.
46155 objdir=$objdir
46156
46157 # Shell to use when invoking shell scripts.
46158 SHELL=$lt_SHELL
46159
46160 # An echo program that does not interpret backslashes.
46161 ECHO=$lt_ECHO
46162
46163 # Used to examine libraries when file_magic_cmd begins with "file".
46164 MAGIC_CMD=$MAGIC_CMD
46165
46166 # Must we lock files when doing compilation?
46167 need_locks=$lt_need_locks
46168
46169 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46170 DSYMUTIL=$lt_DSYMUTIL
46171
46172 # Tool to change global to local symbols on Mac OS X.
46173 NMEDIT=$lt_NMEDIT
46174
46175 # Tool to manipulate fat objects and archives on Mac OS X.
46176 LIPO=$lt_LIPO
46177
46178 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46179 OTOOL=$lt_OTOOL
46180
46181 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46182 OTOOL64=$lt_OTOOL64
46183
46184 # Old archive suffix (normally "a").
46185 libext=$libext
46186
46187 # Shared library suffix (normally ".so").
46188 shrext_cmds=$lt_shrext_cmds
46189
46190 # The commands to extract the exported symbol list from a shared archive.
46191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46192
46193 # Variables whose values should be saved in libtool wrapper scripts and
46194 # restored at link time.
46195 variables_saved_for_relink=$lt_variables_saved_for_relink
46196
46197 # Do we need the "lib" prefix for modules?
46198 need_lib_prefix=$need_lib_prefix
46199
46200 # Do we need a version for libraries?
46201 need_version=$need_version
46202
46203 # Library versioning type.
46204 version_type=$version_type
46205
46206 # Shared library runtime path variable.
46207 runpath_var=$runpath_var
46208
46209 # Shared library path variable.
46210 shlibpath_var=$shlibpath_var
46211
46212 # Is shlibpath searched before the hard-coded library search path?
46213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46214
46215 # Format of library name prefix.
46216 libname_spec=$lt_libname_spec
46217
46218 # List of archive names.  First name is the real one, the rest are links.
46219 # The last name is the one that the linker finds with -lNAME
46220 library_names_spec=$lt_library_names_spec
46221
46222 # The coded name of the library, if different from the real name.
46223 soname_spec=$lt_soname_spec
46224
46225 # Command to use after installation of a shared archive.
46226 postinstall_cmds=$lt_postinstall_cmds
46227
46228 # Command to use after uninstallation of a shared archive.
46229 postuninstall_cmds=$lt_postuninstall_cmds
46230
46231 # Commands used to finish a libtool library installation in a directory.
46232 finish_cmds=$lt_finish_cmds
46233
46234 # As "finish_cmds", except a single script fragment to be evaled but
46235 # not shown.
46236 finish_eval=$lt_finish_eval
46237
46238 # Whether we should hardcode library paths into libraries.
46239 hardcode_into_libs=$hardcode_into_libs
46240
46241 # Compile-time system search path for libraries.
46242 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46243
46244 # Run-time system search path for libraries.
46245 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46246
46247 # Whether dlopen is supported.
46248 dlopen_support=$enable_dlopen
46249
46250 # Whether dlopen of programs is supported.
46251 dlopen_self=$enable_dlopen_self
46252
46253 # Whether dlopen of statically linked programs is supported.
46254 dlopen_self_static=$enable_dlopen_self_static
46255
46256 # Commands to strip libraries.
46257 old_striplib=$lt_old_striplib
46258 striplib=$lt_striplib
46259
46260
46261 # The linker used to build libraries.
46262 LD=$lt_LD
46263
46264 # Commands used to build an old-style archive.
46265 old_archive_cmds=$lt_old_archive_cmds
46266
46267 # A language specific compiler.
46268 CC=$lt_compiler
46269
46270 # Is the compiler the GNU compiler?
46271 with_gcc=$GCC
46272
46273 # Compiler flag to turn off builtin functions.
46274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46275
46276 # How to pass a linker flag through the compiler.
46277 wl=$lt_lt_prog_compiler_wl
46278
46279 # Additional compiler flags for building library objects.
46280 pic_flag=$lt_lt_prog_compiler_pic
46281
46282 # Compiler flag to prevent dynamic linking.
46283 link_static_flag=$lt_lt_prog_compiler_static
46284
46285 # Does compiler simultaneously support -c and -o options?
46286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46287
46288 # Whether or not to add -lc for building shared libraries.
46289 build_libtool_need_lc=$archive_cmds_need_lc
46290
46291 # Whether or not to disallow shared libs when runtime libs are static.
46292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46293
46294 # Compiler flag to allow reflexive dlopens.
46295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46296
46297 # Compiler flag to generate shared objects directly from archives.
46298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46299
46300 # Whether the compiler copes with passing no objects directly.
46301 compiler_needs_object=$lt_compiler_needs_object
46302
46303 # Create an old-style archive from a shared archive.
46304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46305
46306 # Create a temporary old-style archive to link instead of a shared archive.
46307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46308
46309 # Commands used to build a shared archive.
46310 archive_cmds=$lt_archive_cmds
46311 archive_expsym_cmds=$lt_archive_expsym_cmds
46312
46313 # Commands used to build a loadable module if different from building
46314 # a shared archive.
46315 module_cmds=$lt_module_cmds
46316 module_expsym_cmds=$lt_module_expsym_cmds
46317
46318 # Whether we are building with GNU ld or not.
46319 with_gnu_ld=$lt_with_gnu_ld
46320
46321 # Flag that allows shared libraries with undefined symbols to be built.
46322 allow_undefined_flag=$lt_allow_undefined_flag
46323
46324 # Flag that enforces no undefined symbols.
46325 no_undefined_flag=$lt_no_undefined_flag
46326
46327 # Flag to hardcode \$libdir into a binary during linking.
46328 # This must work even if \$libdir does not exist
46329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46330
46331 # If ld is used when linking, flag to hardcode \$libdir into a binary
46332 # during linking.  This must work even if \$libdir does not exist.
46333 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46334
46335 # Whether we need a single "-rpath" flag with a separated argument.
46336 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46337
46338 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46339 # DIR into the resulting binary.
46340 hardcode_direct=$hardcode_direct
46341
46342 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46343 # DIR into the resulting binary and the resulting library dependency is
46344 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46345 # library is relocated.
46346 hardcode_direct_absolute=$hardcode_direct_absolute
46347
46348 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46349 # into the resulting binary.
46350 hardcode_minus_L=$hardcode_minus_L
46351
46352 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46353 # into the resulting binary.
46354 hardcode_shlibpath_var=$hardcode_shlibpath_var
46355
46356 # Set to "yes" if building a shared library automatically hardcodes DIR
46357 # into the library and all subsequent libraries and executables linked
46358 # against it.
46359 hardcode_automatic=$hardcode_automatic
46360
46361 # Set to yes if linker adds runtime paths of dependent libraries
46362 # to runtime path list.
46363 inherit_rpath=$inherit_rpath
46364
46365 # Whether libtool must link a program against all its dependency libraries.
46366 link_all_deplibs=$link_all_deplibs
46367
46368 # Fix the shell variable \$srcfile for the compiler.
46369 fix_srcfile_path=$lt_fix_srcfile_path
46370
46371 # Set to "yes" if exported symbols are required.
46372 always_export_symbols=$always_export_symbols
46373
46374 # The commands to list exported symbols.
46375 export_symbols_cmds=$lt_export_symbols_cmds
46376
46377 # Symbols that should not be listed in the preloaded symbols.
46378 exclude_expsyms=$lt_exclude_expsyms
46379
46380 # Symbols that must always be exported.
46381 include_expsyms=$lt_include_expsyms
46382
46383 # Commands necessary for linking programs (against libraries) with templates.
46384 prelink_cmds=$lt_prelink_cmds
46385
46386 # Specify filename containing input files.
46387 file_list_spec=$lt_file_list_spec
46388
46389 # How to hardcode a shared library path into an executable.
46390 hardcode_action=$hardcode_action
46391
46392 # The directories searched by this compiler when creating a shared library.
46393 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46394
46395 # Dependencies to place before and after the objects being linked to
46396 # create a shared library.
46397 predep_objects=$lt_predep_objects
46398 postdep_objects=$lt_postdep_objects
46399 predeps=$lt_predeps
46400 postdeps=$lt_postdeps
46401
46402 # The library search path used internally by the compiler when linking
46403 # a shared library.
46404 compiler_lib_search_path=$lt_compiler_lib_search_path
46405
46406 # ### END LIBTOOL CONFIG
46407
46408 _LT_EOF
46409
46410   case $host_os in
46411   aix3*)
46412     cat <<\_LT_EOF >> "$cfgfile"
46413 # AIX sometimes has problems with the GCC collect2 program.  For some
46414 # reason, if we set the COLLECT_NAMES environment variable, the problems
46415 # vanish in a puff of smoke.
46416 if test "X${COLLECT_NAMES+set}" != Xset; then
46417   COLLECT_NAMES=
46418   export COLLECT_NAMES
46419 fi
46420 _LT_EOF
46421     ;;
46422   esac
46423
46424
46425 ltmain="$ac_aux_dir/ltmain.sh"
46426
46427
46428   # We use sed instead of cat because bash on DJGPP gets confused if
46429   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46430   # text mode, it properly converts lines to CR/LF.  This bash problem
46431   # is reportedly fixed, but why not run on old versions too?
46432   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46433     || (rm -f "$cfgfile"; exit 1)
46434
46435   case $xsi_shell in
46436   yes)
46437     cat << \_LT_EOF >> "$cfgfile"
46438
46439 # func_dirname file append nondir_replacement
46440 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46441 # otherwise set result to NONDIR_REPLACEMENT.
46442 func_dirname ()
46443 {
46444   case ${1} in
46445     */*) func_dirname_result="${1%/*}${2}" ;;
46446     *  ) func_dirname_result="${3}" ;;
46447   esac
46448 }
46449
46450 # func_basename file
46451 func_basename ()
46452 {
46453   func_basename_result="${1##*/}"
46454 }
46455
46456 # func_dirname_and_basename file append nondir_replacement
46457 # perform func_basename and func_dirname in a single function
46458 # call:
46459 #   dirname:  Compute the dirname of FILE.  If nonempty,
46460 #             add APPEND to the result, otherwise set result
46461 #             to NONDIR_REPLACEMENT.
46462 #             value returned in "$func_dirname_result"
46463 #   basename: Compute filename of FILE.
46464 #             value retuned in "$func_basename_result"
46465 # Implementation must be kept synchronized with func_dirname
46466 # and func_basename. For efficiency, we do not delegate to
46467 # those functions but instead duplicate the functionality here.
46468 func_dirname_and_basename ()
46469 {
46470   case ${1} in
46471     */*) func_dirname_result="${1%/*}${2}" ;;
46472     *  ) func_dirname_result="${3}" ;;
46473   esac
46474   func_basename_result="${1##*/}"
46475 }
46476
46477 # func_stripname prefix suffix name
46478 # strip PREFIX and SUFFIX off of NAME.
46479 # PREFIX and SUFFIX must not contain globbing or regex special
46480 # characters, hashes, percent signs, but SUFFIX may contain a leading
46481 # dot (in which case that matches only a dot).
46482 func_stripname ()
46483 {
46484   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46485   # positional parameters, so assign one to ordinary parameter first.
46486   func_stripname_result=${3}
46487   func_stripname_result=${func_stripname_result#"${1}"}
46488   func_stripname_result=${func_stripname_result%"${2}"}
46489 }
46490
46491 # func_opt_split
46492 func_opt_split ()
46493 {
46494   func_opt_split_opt=${1%%=*}
46495   func_opt_split_arg=${1#*=}
46496 }
46497
46498 # func_lo2o object
46499 func_lo2o ()
46500 {
46501   case ${1} in
46502     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46503     *)    func_lo2o_result=${1} ;;
46504   esac
46505 }
46506
46507 # func_xform libobj-or-source
46508 func_xform ()
46509 {
46510   func_xform_result=${1%.*}.lo
46511 }
46512
46513 # func_arith arithmetic-term...
46514 func_arith ()
46515 {
46516   func_arith_result=$(( $* ))
46517 }
46518
46519 # func_len string
46520 # STRING may not start with a hyphen.
46521 func_len ()
46522 {
46523   func_len_result=${#1}
46524 }
46525
46526 _LT_EOF
46527     ;;
46528   *) # Bourne compatible functions.
46529     cat << \_LT_EOF >> "$cfgfile"
46530
46531 # func_dirname file append nondir_replacement
46532 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46533 # otherwise set result to NONDIR_REPLACEMENT.
46534 func_dirname ()
46535 {
46536   # Extract subdirectory from the argument.
46537   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46538   if test "X$func_dirname_result" = "X${1}"; then
46539     func_dirname_result="${3}"
46540   else
46541     func_dirname_result="$func_dirname_result${2}"
46542   fi
46543 }
46544
46545 # func_basename file
46546 func_basename ()
46547 {
46548   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46549 }
46550
46551
46552 # func_stripname prefix suffix name
46553 # strip PREFIX and SUFFIX off of NAME.
46554 # PREFIX and SUFFIX must not contain globbing or regex special
46555 # characters, hashes, percent signs, but SUFFIX may contain a leading
46556 # dot (in which case that matches only a dot).
46557 # func_strip_suffix prefix name
46558 func_stripname ()
46559 {
46560   case ${2} in
46561     .*) func_stripname_result=`$ECHO "X${3}" \
46562            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46563     *)  func_stripname_result=`$ECHO "X${3}" \
46564            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46565   esac
46566 }
46567
46568 # sed scripts:
46569 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46570 my_sed_long_arg='1s/^-[^=]*=//'
46571
46572 # func_opt_split
46573 func_opt_split ()
46574 {
46575   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46576   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46577 }
46578
46579 # func_lo2o object
46580 func_lo2o ()
46581 {
46582   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46583 }
46584
46585 # func_xform libobj-or-source
46586 func_xform ()
46587 {
46588   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46589 }
46590
46591 # func_arith arithmetic-term...
46592 func_arith ()
46593 {
46594   func_arith_result=`expr "$@"`
46595 }
46596
46597 # func_len string
46598 # STRING may not start with a hyphen.
46599 func_len ()
46600 {
46601   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46602 }
46603
46604 _LT_EOF
46605 esac
46606
46607 case $lt_shell_append in
46608   yes)
46609     cat << \_LT_EOF >> "$cfgfile"
46610
46611 # func_append var value
46612 # Append VALUE to the end of shell variable VAR.
46613 func_append ()
46614 {
46615   eval "$1+=\$2"
46616 }
46617 _LT_EOF
46618     ;;
46619   *)
46620     cat << \_LT_EOF >> "$cfgfile"
46621
46622 # func_append var value
46623 # Append VALUE to the end of shell variable VAR.
46624 func_append ()
46625 {
46626   eval "$1=\$$1\$2"
46627 }
46628
46629 _LT_EOF
46630     ;;
46631   esac
46632
46633
46634   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46635     || (rm -f "$cfgfile"; exit 1)
46636
46637   mv -f "$cfgfile" "$ofile" ||
46638     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46639   chmod +x "$ofile"
46640
46641
46642     cat <<_LT_EOF >> "$ofile"
46643
46644 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46645
46646 # The linker used to build libraries.
46647 LD=$lt_LD_CXX
46648
46649 # Commands used to build an old-style archive.
46650 old_archive_cmds=$lt_old_archive_cmds_CXX
46651
46652 # A language specific compiler.
46653 CC=$lt_compiler_CXX
46654
46655 # Is the compiler the GNU compiler?
46656 with_gcc=$GCC_CXX
46657
46658 # Compiler flag to turn off builtin functions.
46659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46660
46661 # How to pass a linker flag through the compiler.
46662 wl=$lt_lt_prog_compiler_wl_CXX
46663
46664 # Additional compiler flags for building library objects.
46665 pic_flag=$lt_lt_prog_compiler_pic_CXX
46666
46667 # Compiler flag to prevent dynamic linking.
46668 link_static_flag=$lt_lt_prog_compiler_static_CXX
46669
46670 # Does compiler simultaneously support -c and -o options?
46671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46672
46673 # Whether or not to add -lc for building shared libraries.
46674 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46675
46676 # Whether or not to disallow shared libs when runtime libs are static.
46677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46678
46679 # Compiler flag to allow reflexive dlopens.
46680 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46681
46682 # Compiler flag to generate shared objects directly from archives.
46683 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46684
46685 # Whether the compiler copes with passing no objects directly.
46686 compiler_needs_object=$lt_compiler_needs_object_CXX
46687
46688 # Create an old-style archive from a shared archive.
46689 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46690
46691 # Create a temporary old-style archive to link instead of a shared archive.
46692 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46693
46694 # Commands used to build a shared archive.
46695 archive_cmds=$lt_archive_cmds_CXX
46696 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46697
46698 # Commands used to build a loadable module if different from building
46699 # a shared archive.
46700 module_cmds=$lt_module_cmds_CXX
46701 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46702
46703 # Whether we are building with GNU ld or not.
46704 with_gnu_ld=$lt_with_gnu_ld_CXX
46705
46706 # Flag that allows shared libraries with undefined symbols to be built.
46707 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46708
46709 # Flag that enforces no undefined symbols.
46710 no_undefined_flag=$lt_no_undefined_flag_CXX
46711
46712 # Flag to hardcode \$libdir into a binary during linking.
46713 # This must work even if \$libdir does not exist
46714 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46715
46716 # If ld is used when linking, flag to hardcode \$libdir into a binary
46717 # during linking.  This must work even if \$libdir does not exist.
46718 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46719
46720 # Whether we need a single "-rpath" flag with a separated argument.
46721 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46722
46723 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46724 # DIR into the resulting binary.
46725 hardcode_direct=$hardcode_direct_CXX
46726
46727 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46728 # DIR into the resulting binary and the resulting library dependency is
46729 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46730 # library is relocated.
46731 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46732
46733 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46734 # into the resulting binary.
46735 hardcode_minus_L=$hardcode_minus_L_CXX
46736
46737 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46738 # into the resulting binary.
46739 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46740
46741 # Set to "yes" if building a shared library automatically hardcodes DIR
46742 # into the library and all subsequent libraries and executables linked
46743 # against it.
46744 hardcode_automatic=$hardcode_automatic_CXX
46745
46746 # Set to yes if linker adds runtime paths of dependent libraries
46747 # to runtime path list.
46748 inherit_rpath=$inherit_rpath_CXX
46749
46750 # Whether libtool must link a program against all its dependency libraries.
46751 link_all_deplibs=$link_all_deplibs_CXX
46752
46753 # Fix the shell variable \$srcfile for the compiler.
46754 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46755
46756 # Set to "yes" if exported symbols are required.
46757 always_export_symbols=$always_export_symbols_CXX
46758
46759 # The commands to list exported symbols.
46760 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46761
46762 # Symbols that should not be listed in the preloaded symbols.
46763 exclude_expsyms=$lt_exclude_expsyms_CXX
46764
46765 # Symbols that must always be exported.
46766 include_expsyms=$lt_include_expsyms_CXX
46767
46768 # Commands necessary for linking programs (against libraries) with templates.
46769 prelink_cmds=$lt_prelink_cmds_CXX
46770
46771 # Specify filename containing input files.
46772 file_list_spec=$lt_file_list_spec_CXX
46773
46774 # How to hardcode a shared library path into an executable.
46775 hardcode_action=$hardcode_action_CXX
46776
46777 # The directories searched by this compiler when creating a shared library.
46778 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46779
46780 # Dependencies to place before and after the objects being linked to
46781 # create a shared library.
46782 predep_objects=$lt_predep_objects_CXX
46783 postdep_objects=$lt_postdep_objects_CXX
46784 predeps=$lt_predeps_CXX
46785 postdeps=$lt_postdeps_CXX
46786
46787 # The library search path used internally by the compiler when linking
46788 # a shared library.
46789 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46790
46791 # ### END LIBTOOL TAG CONFIG: CXX
46792 _LT_EOF
46793
46794  ;;
46795     "default-1":C)
46796     for ac_file in $CONFIG_FILES; do
46797       # Support "outfile[:infile[:infile...]]"
46798       case "$ac_file" in
46799         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46800       esac
46801       # PO directories have a Makefile.in generated from Makefile.in.in.
46802       case "$ac_file" in */Makefile.in)
46803         # Adjust a relative srcdir.
46804         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46805         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46806         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46807         # In autoconf-2.13 it is called $ac_given_srcdir.
46808         # In autoconf-2.50 it is called $srcdir.
46809         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46810         case "$ac_given_srcdir" in
46811           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46812           /*) top_srcdir="$ac_given_srcdir" ;;
46813           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46814         esac
46815         # Treat a directory as a PO directory if and only if it has a
46816         # POTFILES.in file. This allows packages to have multiple PO
46817         # directories under different names or in different locations.
46818         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46819           rm -f "$ac_dir/POTFILES"
46820           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46821           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46822           POMAKEFILEDEPS="POTFILES.in"
46823           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46824           # on $ac_dir but don't depend on user-specified configuration
46825           # parameters.
46826           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46827             # The LINGUAS file contains the set of available languages.
46828             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46829               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46830             fi
46831             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46832             # Hide the ALL_LINGUAS assigment from automake.
46833             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46834             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46835           else
46836             # The set of available languages was given in configure.in.
46837             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46838           fi
46839           # Compute POFILES
46840           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46841           # Compute UPDATEPOFILES
46842           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46843           # Compute DUMMYPOFILES
46844           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46845           # Compute GMOFILES
46846           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46847           case "$ac_given_srcdir" in
46848             .) srcdirpre= ;;
46849             *) srcdirpre='$(srcdir)/' ;;
46850           esac
46851           POFILES=
46852           UPDATEPOFILES=
46853           DUMMYPOFILES=
46854           GMOFILES=
46855           for lang in $ALL_LINGUAS; do
46856             POFILES="$POFILES $srcdirpre$lang.po"
46857             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46858             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46859             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46860           done
46861           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46862           # environment variable.
46863           INST_LINGUAS=
46864           if test -n "$ALL_LINGUAS"; then
46865             for presentlang in $ALL_LINGUAS; do
46866               useit=no
46867               if test "%UNSET%" != "$LINGUAS"; then
46868                 desiredlanguages="$LINGUAS"
46869               else
46870                 desiredlanguages="$ALL_LINGUAS"
46871               fi
46872               for desiredlang in $desiredlanguages; do
46873                 # Use the presentlang catalog if desiredlang is
46874                 #   a. equal to presentlang, or
46875                 #   b. a variant of presentlang (because in this case,
46876                 #      presentlang can be used as a fallback for messages
46877                 #      which are not translated in the desiredlang catalog).
46878                 case "$desiredlang" in
46879                   "$presentlang"*) useit=yes;;
46880                 esac
46881               done
46882               if test $useit = yes; then
46883                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46884               fi
46885             done
46886           fi
46887           CATALOGS=
46888           if test -n "$INST_LINGUAS"; then
46889             for lang in $INST_LINGUAS; do
46890               CATALOGS="$CATALOGS $lang.gmo"
46891             done
46892           fi
46893           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46894           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"
46895           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46896             if test -f "$f"; then
46897               case "$f" in
46898                 *.orig | *.bak | *~) ;;
46899                 *) cat "$f" >> "$ac_dir/Makefile" ;;
46900               esac
46901             fi
46902           done
46903         fi
46904         ;;
46905       esac
46906     done ;;
46907     "default":C)
46908  ;;
46909
46910   esac
46911 done # for ac_tag
46912
46913
46914 { (exit 0); exit 0; }
46915 _ACEOF
46916 chmod +x $CONFIG_STATUS
46917 ac_clean_files=$ac_clean_files_save
46918
46919
46920 # configure is writing to config.log, and then calls config.status.
46921 # config.status does its own redirection, appending to config.log.
46922 # Unfortunately, on DOS this fails, as config.log is still kept open
46923 # by configure, so config.status won't be able to write to it; its
46924 # output is simply discarded.  So we exec the FD to /dev/null,
46925 # effectively closing config.log, so it can be properly (re)opened and
46926 # appended to by config.status.  When coming back to configure, we
46927 # need to make the FD available again.
46928 if test "$no_create" != yes; then
46929   ac_cs_success=:
46930   ac_config_status_args=
46931   test "$silent" = yes &&
46932     ac_config_status_args="$ac_config_status_args --quiet"
46933   exec 5>/dev/null
46934   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46935   exec 5>>config.log
46936   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46937   # would make configure fail if this is the last instruction.
46938   $ac_cs_success || { (exit 1); exit 1; }
46939 fi
46940
46941
46942 if test "${support_bat}" = "yes" ; then
46943    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46944       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46945 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46946    { (exit 1); exit 1; }; }
46947    fi
46948
46949    QMAKEBIN="qmake"
46950
46951    if test "x$QMAKEQT4" != "xnone"; then
46952        QMAKEBIN=qmake-qt4
46953    fi
46954
46955    cd src/qt-console
46956    echo "Creating bat Makefile"
46957    touch bat
46958    chmod 755 bat
46959    $QMAKEBIN
46960    ${MAKE:-make} clean
46961    cd ${BUILD_DIR}
46962 fi
46963
46964 if test X"$GCC" = "Xyes" ; then
46965   echo "Doing make of dependencies"
46966   ${MAKE:-make} depend
46967 fi
46968
46969 cd src/qt-console
46970 chmod 755 install_conf_file build-depkgs-qt-console
46971 cd ${BUILD_DIR}
46972
46973 cd scripts
46974 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46975 chmod 755 dvd-handler dvd-simulator make_catalog_backup.pl
46976 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46977 cd ..
46978
46979 c=updatedb
46980 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
46981 chmod 755 $c/update_postgresql_tables_10_to_11
46982
46983 c=src/cats
46984
46985 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
46986 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
46987
46988 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
46989 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
46990
46991 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
46992 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
46993
46994 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
46995 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
46996
46997 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
46998 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
46999
47000 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
47001 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
47002
47003
47004 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
47005 chmod 755 $c/sqlite
47006 chmod 755 $c/mysql
47007
47008 chmod 755 src/win32/build-depkgs-mingw32
47009
47010 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47011    largefile_support="yes"
47012 fi
47013
47014 if test X"$GCC" = "Xyes" ; then
47015                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47016    if test "x${CCVERSION}" = "x" ; then
47017       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47018    fi
47019    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47020    if test x"${CXXVERSION}" = x ; then
47021       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47022    fi
47023 fi
47024
47025 # clean up any old junk
47026 echo " "
47027 echo "Cleaning up"
47028 echo " "
47029 ${MAKE:-make} clean
47030
47031 if test "x${db_type}" = "xInternal" ; then
47032    echo " "
47033    echo " "
47034    echo "You have not specified either --enable-client-only or one of the"
47035    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47036    echo "  This is not permitted. Please reconfigure."
47037    echo " "
47038    echo "Aborting the configuration ..."
47039    echo " "
47040    echo " "
47041    exit 1
47042 fi
47043
47044 echo "
47045 Configuration on `date`:
47046
47047    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47048    Bacula version:          ${BACULA} ${VERSION} (${DATE})
47049    Source code location:    ${srcdir}
47050    Install binaries:        ${sbindir}
47051    Install libraries:       ${libdir}
47052    Install config files:    ${sysconfdir}
47053    Scripts directory:       ${scriptdir}
47054    Archive directory:       ${archivedir}
47055    Working directory:       ${working_dir}
47056    PID directory:           ${piddir}
47057    Subsys directory:        ${subsysdir}
47058    Man directory:           ${mandir}
47059    Data directory:          ${datarootdir}
47060    Plugin directory:        ${plugindir}
47061    C Compiler:              ${CC} ${CCVERSION}
47062    C++ Compiler:            ${CXX} ${CXXVERSION}
47063    Compiler flags:          ${WCFLAGS} ${CFLAGS}
47064    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
47065    Libraries:               ${LIBS}
47066    Statically Linked Tools: ${support_static_tools}
47067    Statically Linked FD:    ${support_static_fd}
47068    Statically Linked SD:    ${support_static_sd}
47069    Statically Linked DIR:   ${support_static_dir}
47070    Statically Linked CONS:  ${support_static_cons}
47071    Database type:           ${db_type}
47072    Database port:           ${db_port}
47073    Database lib:            ${DB_LIBS}
47074    Database name:           ${db_name}
47075    Database user:           ${db_user}
47076
47077    Job Output Email:        ${job_email}
47078    Traceback Email:         ${dump_email}
47079    SMTP Host Address:       ${smtp_host}
47080
47081    Director Port:           ${dir_port}
47082    File daemon Port:        ${fd_port}
47083    Storage daemon Port:     ${sd_port}
47084
47085    Director User:           ${dir_user}
47086    Director Group:          ${dir_group}
47087    Storage Daemon User:     ${sd_user}
47088    Storage DaemonGroup:     ${sd_group}
47089    File Daemon User:        ${fd_user}
47090    File Daemon Group:       ${fd_group}
47091
47092    SQL binaries Directory   ${SQL_BINDIR}
47093
47094    Large file support:      $largefile_support
47095    Bacula conio support:    ${got_conio} ${CONS_LIBS}
47096    readline support:        ${got_readline} ${PRTREADLINE_SRC}
47097    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
47098    TLS support:             ${support_tls}
47099    Encryption support:      ${support_crypto}
47100    ZLIB support:            ${have_zlib}
47101    enable-smartalloc:       ${support_smartalloc}
47102    enable-lockmgr:          ${support_lockmgr}
47103    bat support:             ${support_bat}
47104    enable-gnome:            ${support_gnome} ${gnome_version}
47105    enable-bwx-console:      ${support_wx_console} ${wx_version}
47106    enable-tray-monitor:     ${support_tray_monitor}
47107    client-only:             ${build_client_only}
47108    build-dird:              ${build_dird}
47109    build-stored:            ${build_stored}
47110    Plugin support:          ${have_plugins}
47111    ACL support:             ${have_acl}
47112    XATTR support:           ${have_xattr}
47113    Python support:          ${support_python} ${PYTHON_LIBS}
47114    Batch insert enabled:    ${support_batch_insert}
47115
47116   " > config.out
47117
47118 # create a small shell script useful for support with
47119 # configure options and config.out info
47120 cat > scripts/bacula_config << EOF
47121 #!/bin/sh
47122 cat << __EOC__
47123 $ $0 $ac_configure_args
47124 EOF
47125 cat config.out >> scripts/bacula_config
47126 echo __EOC__ >> scripts/bacula_config
47127 chmod 755 scripts/bacula_config
47128
47129 cat config.out
47130
47131 # Display a warning message if postgresql client lib is <= 8.1
47132 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47133         -a x$support_batch_insert = xyes
47134 then
47135         echo "WARNING: Your PostgreSQL client library is too old to detect "
47136         echo " if it was compiled with --enable-thread-safety, consider to"
47137         echo " upgrade it in order to avoid problems with Batch insert mode"
47138         echo
47139 fi